class
Parameterizer
Computes texture coordinates for arbitrary geometry.
Properties
Property | Description |
---|---|
AutomaticTextureSizeMultiplier | Set/Get a texture dimension length multiplier for the automatic texture size. |
FeatureFlagsMask | The FeatureFlagsMask. Any edge that has one of the flags present as a feature edge, will have the edge forced as a parameterization feature. |
ForcePower2Texture | If automatic_texture_size is enabled, then force the texture sizes to be a power of 2. |
GutterSpace | The minimum number of pixels between charts for mapping image index 0. Use SetGutterSpaceForImageIndex to set for another mapping image index. |
InputMaterialCount | The number of input materials used in the original geometry for mapping to multiple output materials. This needs to be set before you can set any specific in-out material mapping. 0 signifies that no in-out material mapping is used, ie. the process will produce one resulting mapping image. |
LargeChartsImportance | Only used when computing new UVs. The importance value for trying to have as large and few charts as possible. The closer the value is to 1, the slower it is. Having 0 means no extra focus will be put on reducing the number of charts. Having value 1 means maximum focus will be put on reducing the number of charts and thereby increasing the size of the charts. |
MaxStretch | The maximum allowed texture stretch. Range 0->1. |
Name | The name of the Parameterizer object. (Inherited from Object) |
OutputMaterialCount | The number of output mapping images that are to be generated. Setup the mapping between input and output materials with SetInputOutputMaterialMapping. |
TextureHeight | The height of the texture to use for mapping image index 0. Use SetTextureHeightForImageIndex to set for another mapping image index. |
TextureWidth | The width of the texture to use for mapping image index 0. Use SetTextureWidthForImageIndex to set for another mapping image index. |
UseAutomaticTextureSize | The automatic_texture_size flag. If true, then texture sizes will be computed for the reduced mesh depending on its pixel size on screen. |
UseVertexWeights | If UseVertexWeights is enabled, the weights help determine the UV charts and their UV area. |
UseVisibilityWeights | If UseVisibilityWeights is enabled, the weights help determine the UV charts and their UV area. |
Methods
Method | Description |
---|---|
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
GetClass | Get the name of the Parameterizer class. (Inherited from Object) |
GetGutterSpaceForImageIndex | The minimum number of pixels between charts. |
GetInputOutputMaterialMapping | The previously set material mapping for matId. |
GetTextureHeightForImageIndex | The height of the texture to use. |
GetTextureWidthForImageIndex | The width of the texture to use. |
IsA | Returns true if Parameterizer is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the Parameterizer object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the Parameterizer object is valid. (Inherited from Object) |
NonNull | Returns true if the Parameterizer object is valid. (Inherited from Object) |
Parameterize | Executes the parameterization of the geometry. |
PrintInfo | Prints the content/info of the Parameterizer object to the log. (Inherited from Object) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
SetGutterSpaceForImageIndex | The minimum number of pixels between charts. |
SetInputOutputMaterialMapping | The material mapping for inMaterialId, meaning what material of the generated LOD inMaterialId will be baked into. Both InputMaterialCount and OutputMaterialCount need to be set for this mapping to work, and all original materials need to be mapped to an existing output id. |
SetTextureHeightForImageIndex | The height of the texture to use. |
SetTextureWidthForImageIndex | The width of the texture to use. |
Static methods
Method | Description |
---|---|
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spParameterizer, and if this is the case, returns the object cast into spParameterizer. (Inherited from Object) |
Properties details
AutomaticTextureSizeMultiplier
Set/Get a texture dimension length multiplier for the automatic texture size.
FeatureFlagsMask
The FeatureFlagsMask. Any edge that has one of the flags present as a feature edge, will have the edge forced as a parameterization feature.
ForcePower2Texture
If automatic_texture_size is enabled, then force the texture sizes to be a power of 2.
GutterSpace
The minimum number of pixels between charts for mapping image index 0. Use SetGutterSpaceForImageIndex to set for another mapping image index.
InputMaterialCount
The number of input materials used in the original geometry for mapping to multiple output materials. This needs to be set before you can set any specific in-out material mapping. 0 signifies that no in-out material mapping is used, ie. the process will produce one resulting mapping image.
LargeChartsImportance
Only used when computing new UVs. The importance value for trying to have as large and few charts as possible. The closer the value is to 1, the slower it is. Having 0 means no extra focus will be put on reducing the number of charts. Having value 1 means maximum focus will be put on reducing the number of charts and thereby increasing the size of the charts.
MaxStretch
The maximum allowed texture stretch. Range 0->1.
Name
The name of the Parameterizer object. (Inherited from Object)
OutputMaterialCount
The number of output mapping images that are to be generated. Setup the mapping between input and output materials with SetInputOutputMaterialMapping.
TextureHeight
The height of the texture to use for mapping image index 0. Use SetTextureHeightForImageIndex to set for another mapping image index.
TextureWidth
The width of the texture to use for mapping image index 0. Use SetTextureWidthForImageIndex to set for another mapping image index.
UseAutomaticTextureSize
The automatic_texture_size flag. If true, then texture sizes will be computed for the reduced mesh depending on its pixel size on screen.
UseVertexWeights
If UseVertexWeights is enabled, the weights help determine the UV charts and their UV area.
UseVisibilityWeights
If UseVisibilityWeights is enabled, the weights help determine the UV charts and their UV area.
Methods details
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClass
Get the name of the Parameterizer class. (Inherited from Object)
GetGutterSpaceForImageIndex
The minimum number of pixels between charts.
GetInputOutputMaterialMapping
The previously set material mapping for matId.
GetTextureHeightForImageIndex
The height of the texture to use.
GetTextureWidthForImageIndex
The width of the texture to use.
IsA
Returns true if Parameterizer is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull
Returns true if the Parameterizer object is invalid. (Inherited from Object)
IsSameObjectAs
Returns true if the Parameterizer object is valid. (Inherited from Object)
NonNull
Returns true if the Parameterizer object is valid. (Inherited from Object)
Parameterize
Executes the parameterization of the geometry.
PrintInfo
Prints the content/info of the Parameterizer object to the log. (Inherited from Object)
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
SetGutterSpaceForImageIndex
The minimum number of pixels between charts.
SetInputOutputMaterialMapping
The material mapping for inMaterialId, meaning what material of the generated LOD inMaterialId will be baked into. Both InputMaterialCount and OutputMaterialCount need to be set for this mapping to work, and all original materials need to be mapped to an existing output id.
SetTextureHeightForImageIndex
The height of the texture to use.
SetTextureWidthForImageIndex
The width of the texture to use.
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spParameterizer, and if this is the case, returns the object cast into spParameterizer. (Inherited from Object)