Hide menu
Loading...
Searching...
No Matches
cadex.Unity_ModelFactoryParameters Class Reference

Defines parameters used by the Unity_ModelFactory. More...

Public Member Functions

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

Detailed Description

Defines parameters used by the Unity_ModelFactory.

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

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.