Hide menu
cadex.Unity_ObjectFactoryParameters Class Reference

Defines parameters used by the Unity_ObjectFactory. More...

Public Member Functions

 Unity_ObjectFactoryParameters ()
 Constructor. More...
 
void SetMeshQuality (MeshQuality theMQ)
 Sets the quality of mesh computed from B-Rep. More...
 
void SetMergeTriangleSets (bool theOption)
 Specifies whether part's triangle sets should be merged. More...
 
void SetMeshOptimization (bool theOption)
 Specifies whether part's triangle sets should be optimized. Warning: with this option enabled the source model can be modified. More...
 
void SetImportPMI (bool theOption)
 Specifies whether Product and Manufacturing Information (PMI) should be imported into GameObject from the ModelData_Model. More...
 
void SetShader (Shader theShader)
 Specifies the shader that should be applied to the result GameObject. More...
 
void SetScaleFactor (float theScaleFactor)
 Sets the scale factor of the imported GameObject. More...
 
void SetImportLODs (bool theOption)
 Specifies whether multiple Levels Of Detail (LOD) should be imported into GameObject from the ModelData_Model. More...
 
void SetLODsCulledTransitionValue (float theValue)
 Sets the screen relative height to use for the "Culled" state transition [0-1]. More...
 
MeshQuality MeshQuality ()
 Returns the quality of mesh computed from B-Rep. More...
 
bool MergeTriangleSets ()
 Returns true if part's triangle sets should be merged during conversion. More...
 
bool MeshOptimization ()
 Returns true if part's triangle sets should be optimized. More...
 
bool ImportPMI ()
 Returns true if Product and Manufacturing Information (PMI) should be imported into GameObject from the ModelData_Model. More...
 
Shader Shader ()
 Returns the shader used for creating GameObject. More...
 
float ScaleFactor ()
 Returns the scale factor of the created GameObject. More...
 
bool ImportLODs ()
 Returns true if multiple Levels Of Detail (LOD) should be imported into GameObject from the ModelData_Model. More...
 
float LODsCulledTransitionValue ()
 Returns the screen relative height to use for the "Culled" state transition [0-1]. More...
 

Detailed Description

Defines parameters used by the Unity_ObjectFactory.

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

Constructor & Destructor Documentation

◆ Unity_ObjectFactoryParameters()

cadex.Unity_ObjectFactoryParameters.Unity_ObjectFactoryParameters ( )
inline

Constructor.

Member Function Documentation

◆ ImportLODs()

bool cadex.Unity_ObjectFactoryParameters.ImportLODs ( )
inline

Returns true if multiple Levels Of Detail (LOD) should be imported into GameObject from the ModelData_Model.

By default is false.

◆ ImportPMI()

bool cadex.Unity_ObjectFactoryParameters.ImportPMI ( )
inline

Returns true if Product and Manufacturing Information (PMI) should be imported into GameObject from the ModelData_Model.

By default is false.

◆ LODsCulledTransitionValue()

float cadex.Unity_ObjectFactoryParameters.LODsCulledTransitionValue ( )
inline

Returns the screen relative height to use for the "Culled" state transition [0-1].

By default is 0.05.

◆ MergeTriangleSets()

bool cadex.Unity_ObjectFactoryParameters.MergeTriangleSets ( )
inline

Returns true if part's triangle sets should be merged during conversion.

Merging triangle sets allows to reduce the number of draw calls and improve rendering performance. By default is true.

◆ MeshOptimization()

bool cadex.Unity_ObjectFactoryParameters.MeshOptimization ( )
inline

Returns true if part's triangle sets should be optimized.

Mesh optimization includes various techniques to improve rendering performance. By default is false.

◆ MeshQuality()

MeshQuality cadex.Unity_ObjectFactoryParameters.MeshQuality ( )
inline

Returns the quality of mesh computed from B-Rep.

By default is Fine.

◆ ScaleFactor()

float cadex.Unity_ObjectFactoryParameters.ScaleFactor ( )
inline

Returns the scale factor of the created GameObject.

By default is 1.

◆ SetImportLODs()

void cadex.Unity_ObjectFactoryParameters.SetImportLODs ( bool  theOption)
inline

Specifies whether multiple Levels Of Detail (LOD) should be imported into GameObject from the ModelData_Model.

If set to true, each polygonal representation in the model will imported as an individual LOD.

Note
Does not create new LODs. If enabled, works only with existing LOD's in the model.

◆ SetImportPMI()

void cadex.Unity_ObjectFactoryParameters.SetImportPMI ( bool  theOption)
inline

Specifies whether Product and Manufacturing Information (PMI) should be imported into GameObject from the ModelData_Model.

◆ SetLODsCulledTransitionValue()

void cadex.Unity_ObjectFactoryParameters.SetLODsCulledTransitionValue ( float  theValue)
inline

Sets the screen relative height to use for the "Culled" state transition [0-1].

If object's height takes less than the transition value of screen height - object will become hidden(invisible). For example, the default value is 0.05, which means that is the object will not be rendered when it takes less than 5% of the screen height.

◆ SetMergeTriangleSets()

void cadex.Unity_ObjectFactoryParameters.SetMergeTriangleSets ( bool  theOption)
inline

Specifies whether part's triangle sets should be merged.

Merging triangle sets allows to reduce the number of draw calls and improve rendering performance.

◆ SetMeshOptimization()

void cadex.Unity_ObjectFactoryParameters.SetMeshOptimization ( bool  theOption)
inline

Specifies whether part's triangle sets should be optimized. Warning: with this option enabled the source model can be modified.

Mesh optimization includes various techniques to improve rendering performance.

◆ SetMeshQuality()

void cadex.Unity_ObjectFactoryParameters.SetMeshQuality ( MeshQuality  theMQ)
inline

Sets the quality of mesh computed from B-Rep.

Sets the quality of the mesh which will be computed if imported model contains only boundary representation. If the model already contains polygonal representation, then this setting is ignored and the first representation is used.

◆ SetScaleFactor()

void cadex.Unity_ObjectFactoryParameters.SetScaleFactor ( float  theScaleFactor)
inline

Sets the scale factor of the imported GameObject.

Can be used if actual model dimensions don't match the dimensions of your scene. For example, pass 10 to enlarge the model 10 times in Unity, or 0.1 to shrink it to 1/10th of its size.

◆ SetShader()

void cadex.Unity_ObjectFactoryParameters.SetShader ( Shader  theShader)
inline

Specifies the shader that should be applied to the result GameObject.

Exceptions
ArgumentExceptionif a null value is passed.

◆ Shader()

Shader cadex.Unity_ObjectFactoryParameters.Shader ( )
inline

Returns the shader used for creating GameObject.

By default is Unity's Standard shader.