MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #29388 All Revisions ] Back to Issue ]
Summary 0029388: Visualization - Setting camera eye position to (0,0,0) kills the application
Revision 2018-06-14 17:56 by kgv
Description Setting 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.
Revision 2017-12-15 11:14 by abv
Description Setting 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.)


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker