From c55c8fe929360f33bfcc07f979e623cee6f233c5 Mon Sep 17 00:00:00 2001 From: iko Date: Tue, 9 Jul 2019 17:19:57 +0300 Subject: [PATCH] 0030833: Visualization - Graphic3d_Camera constructor's exceptions Field's initialization part has been added to Graphic3d_Camera constructor receiving Handle(Graphic3d_Camera). --- src/Graphic3d/Graphic3d_Camera.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Graphic3d/Graphic3d_Camera.cxx b/src/Graphic3d/Graphic3d_Camera.cxx index 9c45596cff..a47309427c 100644 --- a/src/Graphic3d/Graphic3d_Camera.cxx +++ b/src/Graphic3d/Graphic3d_Camera.cxx @@ -103,6 +103,21 @@ Graphic3d_Camera::Graphic3d_Camera() // purpose : // ======================================================================= Graphic3d_Camera::Graphic3d_Camera (const Handle(Graphic3d_Camera)& theOther) +: myUp (0.0, 1.0, 0.0), + myEye (0.0, 0.0, -1500.0), + myCenter (0.0, 0.0, 0.0), + myAxialScale (1.0, 1.0, 1.0), + myProjType (Projection_Orthographic), + myFOVy (45.0), + myFOVyTan (Tan (DTR_HALF * 45.0)), + myZNear (DEFAULT_ZNEAR), + myZFar (DEFAULT_ZFAR), + myAspect (1.0), + myScale (1000.0), + myZFocus (1.0), + myZFocusType (FocusType_Relative), + myIOD (0.05), + myIODType (IODType_Relative) { myWorldViewProjState.Initialize (this);