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. | |
Defines parameters used by the Unity_ModelFactory.
Parameters can be set using Unity_ModelFactory::SetParameters().
|
inline |
Specifies whether model should be adapted to right-handed coordinate system.
By default is true.
|
inline |
Returns the scale factor of the created model.
By default is 1.
|
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.
|
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.