View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000794VTK(No Category)public2004-04-24 00:442005-02-01 11:34
ReporterClinton Stimpson 
Assigned ToKen Martin 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000794: vtkRenderer::ResetCamera doesn't account for Z coordinates very well
DescriptionI have attached a .vtu file of a hexahedron.
If I read it into paraview, you'd think it looks ok at first, but then try rotating. The entire thing is not visible on the screen. If I hit the button to zoom to extents, it doesn't do that.
Basically, vtkRenderer::ResetCamera isn't giving the z coordinate enough consideration.

I'll attach an implementation of ResetCamera which works for me.
TagsNo tags attached.
Project
Type
Attached Files? file icon bigz-box.vtu [^] (1,349 bytes) 1969-12-31 19:00
cpp file icon GRenderer.cpp [^] (1,718 bytes) 1969-12-31 19:00
patch file icon resetCamera.patch [^] (1,840 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0001010)
Mathieu Malaterre (developer)
2004-05-02 14:47

Adding a patch
(0001011)
Mathieu Malaterre (developer)
2004-05-02 14:48

I suspect this patch will never be merged in VTK since it will require to change a lot of our Baseline images.
(0001630)
Ken Martin (developer)
2004-10-21 13:30

Actually if this is the issue I think it is, I do want to fix it and we can regenerate the images. I'll try to look into this after PV 1.8 is branched
(0002012)
Ken Martin (developer)
2005-02-01 11:34

I have modified the camera reset code starting from clinton's patch. I made some changes to handle the geometry better. Bascially this should work pretty well for most cases. It still has the odd behaviour that it is fitting the height only. e.g. for windows with more extreme aspect ratios the geometry is only guaranteed to fit on one axis. The change was only to vtkRenderer.cxx and a zillion valid images.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team