![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual const char * | GetClass () |
virtual CountedPointer< IGeometryData > | GetGeometry ()=0 |
virtual CountedPointer< IRealArray > | GetPerMaterialSizeThresholds ()=0 |
virtual CountedPointer< IScene > | GetScene ()=0 |
virtual real | GetSizeThreshold ()=0 |
virtual bool | GetUsePerMaterialSizeThresholds ()=0 |
virtual bool | IsA (const char *type) const |
virtual void | RunPartRemoval ()=0 |
virtual void | SetGeometry (IGeometryData *value)=0 |
virtual void | SetScene (IScene *value)=0 |
virtual void | SetSizeThreshold (real value)=0 |
virtual void | SetUsePerMaterialSizeThresholds (bool value)=0 |
![]() | |
virtual rid | AddObserver (robserver *Observer, rid EventId)=0 |
virtual void | AddRef ()=0 |
virtual rstring | GetName ()=0 |
virtual void * | GetUserComponentArea (rid userid)=0 |
virtual void | PrintInfo ()=0 |
virtual void | Release ()=0 |
virtual void | RemoveObserver (rid ObserverId)=0 |
virtual void | SetName (const char *Name)=0 |
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static IPartRemover * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
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.
Definition at line 20908 of file SimplygonSDK.h.
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IObject.
|
pure virtual |
Get the geometry data object to run the part removal on. If a scene is set, this parameter is ignored by the reducer.
|
pure virtual |
Get 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.
|
pure virtual |
Get the scene object to run the part removal on.
|
pure virtual |
Get 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.
|
pure virtual |
Get the UsePerMaterialSizeThresholds flag. If true, the global SizeThreshold value will be ignored and the per-material values in the PerMaterialSizeThresholds will be used instead.
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IObject.
|
inlinestatic |
The IsClassA function returns true if IPartRemover is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 20929 of file SimplygonSDK.h.
|
pure virtual |
Runs the part removal processing
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a IPartRemover pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a IPartRemover pointer |
Definition at line 20942 of file SimplygonSDK.h.
|
pure virtual |
Set the geometry data object to run the part removal on. If a scene is set, this parameter is ignored by the reducer.
value | is the geometry data to be used for processing |
|
pure virtual |
Set the scene object to run the part removal on.
value | is the scene data to be used for processing |
|
pure virtual |
Set 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.
value | is the new value of SizeThreshold |
|
pure virtual |
Set the UsePerMaterialSizeThresholds flag. If true, the global SizeThreshold value will be ignored and the per-material values in the PerMaterialSizeThresholds will be used instead.
value | is the new value of UsePerMaterialSizeThresholds |