Skip to content
On this page

class SceneValidator

Checks the Scene based on currently set validation flags.

Properties

PropertyDescription
CheckBonesIf set, bones will be checked for validity.
CheckDegenerateFaceIndicesIf set, faces that have the same index more than once will not be allowed.
CheckGUIDsIf set, GUIDs have to be non-empty and unique.
CheckMaterialsIf Set, check material table for invalid material data and shading nodes
CheckMeshesIf set, meshes will be checked for validity.
CheckTexturesIf set, check the texture table for invalid or missing textures
CheckZeroAreaFacesIf set, faces that have zero area will not be allowed.
IgnoreNonFatalErrorsIf set, check to ignore non fatal errors
MaximumErrorStringsToReportAn upper limit to numbers of strings returned in an error report.
NameThe name of the SceneValidator object. (Inherited from Object)
TextureNodesMustHaveCoordinateNameIf set, check texture nodes cannot have only unnamed coordinate levels

Methods

MethodDescription
AddObserverAdds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClassGet the name of the SceneValidator class. (Inherited from Object)
GetErrorCountReturns a uint with the number of errors that was found for the last check that was performed.
GetErrorStringReturns a string describing the error that was found in the last check that was performed.
IsAReturns true if SceneValidator is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNullReturns true if the SceneValidator object is invalid. (Inherited from Object)
IsSameObjectAsReturns true if the SceneValidator object is valid. (Inherited from Object)
NonNullReturns true if the SceneValidator object is valid. (Inherited from Object)
PrintInfoPrints the content/info of the SceneValidator object to the log. (Inherited from Object)
RemoveObserverRemoves a previously added observer object. (Inherited from Object)
ValidateSceneChecks if the data stored in the Scene is stored correctly for use by Simplygon

Static methods

MethodDescription
IsClassAReturns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCastSafeCast makes sure the input object is of a class that can be cast into spSceneValidator, and if this is the case, returns the object cast into spSceneValidator. (Inherited from Object)

Properties details

CheckBones

If set, bones will be checked for validity.

CheckDegenerateFaceIndices

If set, faces that have the same index more than once will not be allowed.

CheckGUIDs

If set, GUIDs have to be non-empty and unique.

CheckMaterials

If Set, check material table for invalid material data and shading nodes

CheckMeshes

If set, meshes will be checked for validity.

CheckTextures

If set, check the texture table for invalid or missing textures

CheckZeroAreaFaces

If set, faces that have zero area will not be allowed.

IgnoreNonFatalErrors

If set, check to ignore non fatal errors

MaximumErrorStringsToReport

An upper limit to numbers of strings returned in an error report.

Name

The name of the SceneValidator object. (Inherited from Object)

TextureNodesMustHaveCoordinateName

If set, check texture nodes cannot have only unnamed coordinate levels

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 SceneValidator class. (Inherited from Object)

GetErrorCount

Returns a uint with the number of errors that was found for the last check that was performed.

GetErrorString

Returns a string describing the error that was found in the last check that was performed.

IsA

Returns true if SceneValidator is a or is a descendant of the class named as the type parameter. (Inherited from Object)

IsNull

Returns true if the SceneValidator object is invalid. (Inherited from Object)

IsSameObjectAs

Returns true if the SceneValidator object is valid. (Inherited from Object)

NonNull

Returns true if the SceneValidator object is valid. (Inherited from Object)

PrintInfo

Prints the content/info of the SceneValidator object to the log. (Inherited from Object)

RemoveObserver

Removes a previously added observer object. (Inherited from Object)

ValidateScene

Checks if the data stored in the Scene is stored correctly for use by Simplygon

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 spSceneValidator, and if this is the case, returns the object cast into spSceneValidator. (Inherited from Object)