Hide menu
cadex.Unity_ModelFactoryParameters Class Reference

Defines parameters used by the Unity_ObjectFactory. More...

Public Member Functions

 Unity_ModelFactoryParameters ()
 Constructor. More...
 
void SetScaleFactor (float theScaleFactor)
 Sets the scale factor of the exported model. More...
 
void SetAdaptToRightHandedCoordinateSystem (bool theOption)
 Specifies whether model should be adapted to right-handed coordinate system. More...
 
float ScaleFactor ()
 Returns the scale factor of the created model. More...
 
bool AdaptToRightHandedCoordinateSystem ()
 Specifies whether model should be adapted to right-handed coordinate system. More...
 

Detailed Description

Defines parameters used by the Unity_ObjectFactory.

Parameters can be set using Unity_ObjectFactory::SetParameters().

Constructor & Destructor Documentation

◆ Unity_ModelFactoryParameters()

cadex.Unity_ModelFactoryParameters.Unity_ModelFactoryParameters ( )
inline

Constructor.

Member Function Documentation

◆ AdaptToRightHandedCoordinateSystem()

bool cadex.Unity_ModelFactoryParameters.AdaptToRightHandedCoordinateSystem ( )
inline

Specifies whether model should be adapted to right-handed coordinate system.

By default is true.

◆ ScaleFactor()

float cadex.Unity_ModelFactoryParameters.ScaleFactor ( )
inline

Returns the scale factor of the created model.

By default is 1.

◆ SetAdaptToRightHandedCoordinateSystem()

void cadex.Unity_ModelFactoryParameters.SetAdaptToRightHandedCoordinateSystem ( bool  theOption)
inline

Specifies whether model should be adapted to right-handed coordinate system.

CAD Exchanger internally uses right-handed coordinate system (XYZ), opposites Unity's left-handed one (XZY). Converting model "as is" leads to visual mirroring of its geometry, so setting this parameter enabled will swap Y and Z axes of the model to keep it look correct. Set this parameter to false if you would like to convert the model "as is", it may be useful if your target endpoint software uses left-handed coordinate system too.

◆ SetScaleFactor()

void cadex.Unity_ModelFactoryParameters.SetScaleFactor ( float  theScaleFactor)
inline

Sets the scale factor of the exported model.

For example, value of 5 will make the model 5 times larger, and value of 0.2 will make the model 5 times smaller.