MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011231 | VTK | (No Category) | public | 2010-09-14 06:55 | 2013-04-05 20:35 |
| Reporter | Sven Buijssen | ||||
| Assigned To | Sebastien Jourdain | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0011231: Superquadric source has y axis orientation but claims to provide z axis orientation. Patches included | ||||
| Description | From the source code documentation: * vtkCylinderSource.h states in line 18 that the axis of the cylinder is aligned along the global y-axis. * vtkSuperquadricSource.cxx states in line 50 and 277 that the default axis of symmetry is aligned along the global z-axis. Different axes. Please consider the python code attached. It renders a cylinder and a superquadric source next to each other. Clearly, both sources have the same axis of symmetry. The attached GNU Octave code - copy and pasted into GNU Octave shell - renders superquadrics with three different axes of symmetry. The definition of the superquadrics are taken from the paper Gordon Kindlmann. Superquadric Tensor Glyphs. In Proceedings IEEE TVCG/EG Symposium on Visualization 2004, pages 147-154, May 2004, http://www.cs.utah.edu/~gk/papers/vissym04/ [^] Formulas (3) and (5) in http://www.cs.utah.edu/~gk/papers/vissym04/vissym04kindlmann.pdf [^] In the paper the definition range for phi is [0,pi] and for theta [0,2pi]. The present implementation in VTK uses different ranges: phi in [-pi/2,pi], theta in [-pi,pi] The formulas have been adapted accordingly. Please find attached a patch that sets the axis of superquadric aligned to the global z-axis as claimed. The remaining patches provide the pending code for alignment along the global y-axis as well as a method to set the desired axis of alignment. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/8385/vtk_create_sources_cylinder_along_with_superquadric.py https://www.vtk.org/Bug/file/8386/octave_superquadric.source.m https://www.vtk.org/Bug/file/8387/0001-BUG-Axis-of-symmetry-claimed-to-be-the-global-z-axis.patch https://www.vtk.org/Bug/file/8388/0002-ENH-Provide-code-for-aligned-of-axis-along-the-globa.patch https://www.vtk.org/Bug/file/8389/0003-ENH-Provide-a-method-to-set-axis-of-symmetry.patch https://www.vtk.org/Bug/file/8409/0001-BUG-Axis-of-symmetry-claimed-to-be-the-global-z-axis.updated.patch https://www.vtk.org/Bug/file/8410/0002-ENH-Provide-code-for-aligned-of-axis-along-the-globa.updated.patch https://www.vtk.org/Bug/file/9342/newSource.png ![]() https://www.vtk.org/Bug/file/9343/oldSource.png ![]() | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-09-14 06:55 | Sven Buijssen | New Issue | |||
| 2010-09-14 06:55 | Sven Buijssen | File Added: vtk_create_sources_cylinder_along_with_superquadric.py | |||
| 2010-09-14 06:56 | Sven Buijssen | File Added: octave_superquadric.source.m | |||
| 2010-09-14 06:56 | Sven Buijssen | File Added: 0001-BUG-Axis-of-symmetry-claimed-to-be-the-global-z-axis.patch | |||
| 2010-09-14 06:56 | Sven Buijssen | File Added: 0002-ENH-Provide-code-for-aligned-of-axis-along-the-globa.patch | |||
| 2010-09-14 06:56 | Sven Buijssen | File Added: 0003-ENH-Provide-a-method-to-set-axis-of-symmetry.patch | |||
| 2010-09-23 17:04 | Sven Buijssen | Note Added: 0022338 | |||
| 2010-09-23 17:04 | Sven Buijssen | File Added: 0001-BUG-Axis-of-symmetry-claimed-to-be-the-global-z-axis.updated.patch | |||
| 2010-09-23 17:04 | Sven Buijssen | File Added: 0002-ENH-Provide-code-for-aligned-of-axis-along-the-globa.updated.patch | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2012-11-12 11:13 | guest | Status | expired => tabled | ||
| 2012-11-12 11:18 | guest | Status | tabled => todo | ||
| 2012-11-12 11:19 | guest | Status | todo => active development | ||
| 2012-11-16 17:04 | Sebastien Jourdain | File Added: newSource.png | |||
| 2012-11-16 17:04 | Sebastien Jourdain | File Added: oldSource.png | |||
| 2012-11-16 17:10 | Sebastien Jourdain | Note Added: 0029744 | |||
| 2012-11-16 17:13 | Sebastien Jourdain | Assigned To | => Sebastien Jourdain | ||
| 2012-11-16 17:13 | Sebastien Jourdain | Status | active development => todo | ||
| 2012-11-16 17:13 | Sebastien Jourdain | Resolution | open => fixed | ||
| 2012-11-16 17:14 | Sebastien Jourdain | Status | todo => backlog | ||
| 2012-11-16 17:14 | Sebastien Jourdain | Resolution | fixed => reopened | ||
| 2012-11-18 18:08 | Sebastien Jourdain | Status | backlog => todo | ||
| 2012-11-18 18:08 | Sebastien Jourdain | Resolution | reopened => fixed | ||
| 2012-11-18 18:08 | Sebastien Jourdain | Status | todo => active development | ||
| 2012-11-18 18:09 | Sebastien Jourdain | Status | active development => gatekeeper review | ||
| 2012-11-18 18:09 | Sebastien Jourdain | Note Added: 0029745 | |||
| 2012-11-18 18:09 | Sebastien Jourdain | Status | gatekeeper review => customer review | ||
| 2012-11-18 18:11 | Sebastien Jourdain | Note Added: 0029746 | |||
| 2013-04-05 20:35 | Berk Geveci | Status | customer review => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||