MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029388Open CASCADE[OCCT] OCCT:Visualizationpublic2017-12-15 11:142018-06-14 17:56
Reporterabv 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 6.8.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0029388: Visualization - Setting camera eye position to (0,0,0) kills the application
DescriptionSetting camera eye position in 3d viewer to (0,0,0) kills the application.

The reason is that "eye" and "center" of the camera are parameters manipulated independently, and center is at (0,0,0) by default. Vector from the eye to the center defines view direction. When eye is set to (0,0,0), this direction becomes indefinite (see Graphic3d_Camera::Direction()). (In debug mode, exception is thown by gp_Dir constructor.)

It sounds reasonable storing Direction() within Graphic3d_Camera independently from Center/Eye, so that it remains always valid.
Steps To ReproduceSetting Eye directly:
pload AISV MODELING
box b 10 10 10
vdisplay b
vviewparams -eye 0 0 0 


Eye becomes equals to Center within Fit All due to floating point precision limitations (crashes in Debug mode):
pload MODELING VISUALIZATION
box b 5.0e+21 1000.0 350.0
vclear
vinit View1
vaxo
vcamera -persp
vdisplay -dispMode 1 b
vfit

TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0028033newapl Visualization - Graphic3d_Camera::ZFitAll() throws exception on camera rotation 
related to 0029837newkgv Visualization, TKOpenGl - Fit All operation works not correct 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-12-15 11:14 abv New Issue
2017-12-15 11:14 abv Assigned To => kgv
2017-12-15 11:37 kgv Relationship added related to 0028033
2018-03-25 12:05 kgv Target Version 7.3.0 => 7.4.0*
2018-06-14 17:51 kgv Relationship added related to 0029837
2018-06-14 17:56 kgv Description Updated View Revisions
2018-06-14 17:56 kgv Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker