Simplygon C++ API  8.3.35800.0
SimplygonSDK::IGeometryValidator Class Referenceabstract

#include <SimplygonSDK.h>

Inheritance diagram for SimplygonSDK::IGeometryValidator:
SimplygonSDK::IObject

Public Member Functions

virtual bool GetCheckDegenerateFaceIndices ()=0
 
virtual bool GetCheckZeroAreaFaces ()=0
 
virtual const char * GetClass ()
 
virtual rstring GetErrorString ()=0
 
virtual unsigned int GetErrorValue ()=0
 
virtual bool IsA (const char *type) const
 
virtual void SetAllowedBoneCount (unsigned int value)=0
 
virtual void SetAllowedGroupCount (unsigned int value)=0
 
virtual void SetAllowedMaterialCount (unsigned int value)=0
 
virtual void SetCheckDegenerateFaceIndices (bool value)=0
 
virtual void SetCheckZeroAreaFaces (bool value)=0
 
virtual bool ValidateGeometry (IGeometryData *geom)=0
 
- Public Member Functions inherited from SimplygonSDK::IObject
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 IGeometryValidatorSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObject
static bool IsClassA (const char *type)
 
static IObjectSafeCast (IObject *ptr)
 

Detailed Description

Checks the geometry for consistent indices, number of triangles etc.

Definition at line 8866 of file SimplygonSDK.h.

Member Function Documentation

◆ 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
typeis 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
typeis 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()

static IGeometryValidator* SimplygonSDK::IGeometryValidator::SafeCast ( IObject ptr)
inlinestatic

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
ptris the pointer to be cast into a IGeometryValidator pointer
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
valuethe 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
valuethe 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
valuethe 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
valuethe 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
valuethe 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
geomthe 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: