class
PartRemover
The PartRemover tool can identify unconnected sub-meshes, and remove meshes that fall below a set size threshold. This size threshold can be set globally for the entire geometry, or per-material to be able to remove things like decals effectively.
Properties
Property | Description |
---|---|
Geometry | The geometry data object to run the part removal on. If a scene is set, this parameter is ignored by the reducer. |
Name | The name of the PartRemover object. (Inherited from Object) |
Scene | The scene object to run the part removal on. |
SizeThreshold | The size threshold to be used when removing parts. If SizeThreshold is equal to, or greater than, the boundingbox radius of a part, then that part is removed. If UsePerMaterialSizeThresholds is true, this value will be ignored and the per-material values will be used instead. |
UsePerMaterialSizeThresholds | The UsePerMaterialSizeThresholds flag. If true, the global SizeThreshold value will be ignored and the per-material values in the PerMaterialSizeThresholds will be used instead. |
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 PartRemover class. (Inherited from Object) |
GetPerMaterialSizeThresholds | The per-material threshold array. These thresholds are mapped per material ID in the geometrydata object if UsePerMaterialSizeThresholds is true. The size and values in this array needs to be set up by the user, and material IDs that fall outside the set array will be ignored. |
IsA | Returns true if PartRemover is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the PartRemover object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the PartRemover object is valid. (Inherited from Object) |
NonNull | Returns true if the PartRemover object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the PartRemover object to the log. (Inherited from Object) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
RunPartRemoval | Runs the part removal processing. |
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 spPartRemover, and if this is the case, returns the object cast into spPartRemover. (Inherited from Object) |
Properties details
Geometry
The geometry data object to run the part removal on. If a scene is set, this parameter is ignored by the reducer.
Name
The name of the PartRemover object. (Inherited from Object)
Scene
The scene object to run the part removal on.
SizeThreshold
The size threshold to be used when removing parts. If SizeThreshold is equal to, or greater than, the boundingbox radius of a part, then that part is removed. If UsePerMaterialSizeThresholds is true, this value will be ignored and the per-material values will be used instead.
UsePerMaterialSizeThresholds
The UsePerMaterialSizeThresholds flag. If true, the global SizeThreshold value will be ignored and the per-material values in the PerMaterialSizeThresholds will be used instead.
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 PartRemover class. (Inherited from Object)
GetPerMaterialSizeThresholds
The per-material threshold array. These thresholds are mapped per material ID in the geometrydata object if UsePerMaterialSizeThresholds is true. The size and values in this array needs to be set up by the user, and material IDs that fall outside the set array will be ignored.
IsA
Returns true if PartRemover is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull
Returns true if the PartRemover object is invalid. (Inherited from Object)
IsSameObjectAs
Returns true if the PartRemover object is valid. (Inherited from Object)
NonNull
Returns true if the PartRemover object is valid. (Inherited from Object)
PrintInfo
Prints the content/info of the PartRemover object to the log. (Inherited from Object)
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
RunPartRemoval
Runs the part removal processing.
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 spPartRemover, and if this is the case, returns the object cast into spPartRemover. (Inherited from Object)