#include <SimplygonSDK.h>
Checks the geometry for consistent indices, number of triangles etc.
Definition at line 8866 of file SimplygonSDK.h.
◆ GetCheckDegenerateFaceIndices()
virtual bool SimplygonSDK::IGeometryValidator::GetCheckDegenerateFaceIndices |
( |
| ) |
|
|
pure virtual |
Get the CheckDegenerateFaceIndices flag. If set, faces that have the same index more than once will not be allowed.
- Returns
- the flag value
◆ GetCheckZeroAreaFaces()
virtual bool SimplygonSDK::IGeometryValidator::GetCheckZeroAreaFaces |
( |
| ) |
|
|
pure virtual |
Get the CheckZeroAreaFaces flag. If set, faces that have zero area will not be allowed.
- Returns
- the flag value
◆ GetClass()
virtual const char* SimplygonSDK::IGeometryValidator::GetClass |
( |
| ) |
|
|
virtual |
GetClass returns the name of the class of the object.
- Returns
- the name of the actual class of the object, as a const char string
Reimplemented from SimplygonSDK::IObject.
◆ GetErrorString()
virtual rstring SimplygonSDK::IGeometryValidator::GetErrorString |
( |
| ) |
|
|
pure virtual |
Returns a string describing the error that was found for the last check that was performed.
- Returns
- the last string describing the error
◆ GetErrorValue()
virtual unsigned int SimplygonSDK::IGeometryValidator::GetErrorValue |
( |
| ) |
|
|
pure virtual |
Returns the error-code for the last check that was performed. 0 means no error was found, and values less than 0 means an error was found.
- Returns
- the last error-code
◆ IsA()
virtual bool SimplygonSDK::IGeometryValidator::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the object is, or is a descendant of |
- Returns
- true if the object is of the specified class, false if not
Reimplemented from SimplygonSDK::IObject.
◆ IsClassA()
static bool SimplygonSDK::IGeometryValidator::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IGeometryValidator is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 8887 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a IGeometryValidator pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the IGeometryValidator object, if the cast can be made, and a NULL pointer otherwise
Definition at line 8900 of file SimplygonSDK.h.
◆ SetAllowedBoneCount()
virtual void SimplygonSDK::IGeometryValidator::SetAllowedBoneCount |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Get the AllowedBoneCount count. This is the number of bones used in the scene. Only indices within this range are allowed.
- Parameters
-
value | the desired flag value |
- Returns
- the flag value
◆ SetAllowedGroupCount()
virtual void SimplygonSDK::IGeometryValidator::SetAllowedGroupCount |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Get the AllowedGroupCount count. This is the number of groups/objects used in the scene. Only indices within this range are allowed.
- Parameters
-
value | the desired flag value |
- Returns
- the flag value
◆ SetAllowedMaterialCount()
virtual void SimplygonSDK::IGeometryValidator::SetAllowedMaterialCount |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Get the AllowedMaterialCount count. This is the number of materials used in the scene. Only indices within this range are allowed.
- Parameters
-
value | the desired flag value |
◆ SetCheckDegenerateFaceIndices()
virtual void SimplygonSDK::IGeometryValidator::SetCheckDegenerateFaceIndices |
( |
bool |
value | ) |
|
|
pure virtual |
Set the CheckDegenerateFaceIndices flag. If set, faces that have the same index more than once will not be allowed.
- Parameters
-
value | the desired flag value |
◆ SetCheckZeroAreaFaces()
virtual void SimplygonSDK::IGeometryValidator::SetCheckZeroAreaFaces |
( |
bool |
value | ) |
|
|
pure virtual |
Set the CheckZeroAreaFaces flag. If set, faces that have zero area will not be allowed.
- Parameters
-
value | the desired flag value |
◆ ValidateGeometry()
virtual bool SimplygonSDK::IGeometryValidator::ValidateGeometry |
( |
IGeometryData * |
geom | ) |
|
|
pure virtual |
Checks if the data stored in the Geometry is stored correctly.
- Parameters
-
geom | the geometry data to validate |
- Returns
- True if the geometry is stored correct, or false if something is wrong.
The documentation for this class was generated from the following file: