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

#include <SimplygonSDK.h>

Inheritance diagram for SimplygonSDK::IPackedGeometryData:
SimplygonSDK::IObject

Public Member Functions

virtual CountedPointer< IValueArrayAddBaseTypeUserTriangleField (rid base_type, const char *name, unsigned int tuple_size)=0
 
virtual CountedPointer< IValueArrayAddBaseTypeUserVertexField (rid base_type, const char *name, unsigned int tuple_size)=0
 
virtual SGDEPRECATED void AddBitangents (rid level)=0
 
virtual void AddBoneWeights (unsigned int tuplesize)=0
 
virtual void AddColors (rid level)=0
 
virtual SGDEPRECATED void AddDiffuseColors ()=0
 
virtual void AddGroupIds ()=0
 
virtual void AddMaterialIds ()=0
 
virtual void AddNormals ()=0
 
virtual SGDEPRECATED void AddSpecularColors ()=0
 
virtual void AddTangents (rid level)=0
 
virtual void AddTexCoords (rid level)=0
 
virtual void AddTriangles (unsigned int count)=0
 
virtual void AddUserTriangleField (IValueArray *field)=0
 
virtual void AddUserVertexField (IValueArray *field)=0
 
virtual void AddVertexLocks ()=0
 
virtual void AddVertexWeighting ()=0
 
virtual void AddVertices (unsigned int count)=0
 
virtual int AppendPackedGeometry (IGeometryData *source, IRidArray *NewVertexIds, bool collapseToOriginalVertices)=0
 
virtual void DeepCopy (IPackedGeometryData *source, bool copy_data)=0
 
virtual CountedPointer< IRealArrayGetBitangents (rid level)=0
 
virtual CountedPointer< IRidArrayGetBoneIds ()=0
 
virtual CountedPointer< IRealArrayGetBoneWeights ()=0
 
virtual const char * GetClass ()
 
virtual CountedPointer< IRealArrayGetColors (rid level)=0
 
virtual CountedPointer< IRealArrayGetCoords ()=0
 
virtual SGDEPRECATED CountedPointer< IRealArrayGetDiffuseColors ()=0
 
virtual CountedPointer< IRidArrayGetGroupIds ()=0
 
virtual void GetInf (real *realReturnDataPtr)=0
 
virtual CountedPointer< IRidArrayGetMaterialIds ()=0
 
virtual CountedPointer< IRealArrayGetNormals ()=0
 
virtual SGDEPRECATED CountedPointer< IRealArrayGetSpecularColors ()=0
 
virtual void GetSup (real *realReturnDataPtr)=0
 
virtual CountedPointer< IRealArrayGetTangents (rid level)=0
 
virtual CountedPointer< IRealArrayGetTexCoords (rid level)=0
 
virtual unsigned int GetTriangleCount ()=0
 
virtual CountedPointer< IFieldDataGetTriangles ()=0
 
virtual CountedPointer< IValueArrayGetUserTriangleField (const char *name)=0
 
virtual CountedPointer< IValueArrayGetUserVertexField (const char *name)=0
 
virtual unsigned int GetVertexCount ()=0
 
virtual CountedPointer< IRidArrayGetVertexIds ()=0
 
virtual CountedPointer< IBoolArrayGetVertexLocks ()=0
 
virtual CountedPointer< IRealArrayGetVertexWeighting ()=0
 
virtual CountedPointer< IFieldDataGetVertices ()=0
 
virtual bool IsA (const char *type) const
 
virtual CountedPointer< IPackedGeometryDataNewCopy (bool copy_data)=0
 
virtual CountedPointer< IGeometryDataNewUnpackedCopy ()=0
 
virtual SGDEPRECATED void RemoveBitangents (rid level)=0
 
virtual void RemoveBoneWeights ()=0
 
virtual void RemoveColors (rid level)=0
 
virtual SGDEPRECATED void RemoveDiffuseColors ()=0
 
virtual void RemoveGroupIds ()=0
 
virtual void RemoveMaterialIds ()=0
 
virtual void RemoveNormals ()=0
 
virtual SGDEPRECATED void RemoveSpecularColors ()=0
 
virtual void RemoveTangents (rid level)=0
 
virtual void RemoveTexCoords (rid level)=0
 
virtual void RemoveUserTriangleField (const char *name)=0
 
virtual void RemoveUserVertexField (const char *name)=0
 
virtual void RemoveVertexLocks ()=0
 
virtual void RemoveVertexWeighting ()=0
 
virtual void SetInf (const real *vec_realInputDataPtr)=0
 
virtual void SetSup (const real *vec_realInputDataPtr)=0
 
virtual void SetTriangleCount (unsigned int count)=0
 
virtual void SetVertexCount (unsigned int count)=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 IPackedGeometryDataSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObject
static bool IsClassA (const char *type)
 
static IObjectSafeCast (IObject *ptr)
 

Detailed Description

IPackedGeometryData keeps the same information as IGeometryData, but with all corner data fields moved into per-vertex fields. No per-corner fields exist, apart from the VertexIds field. Please note that the number of vertices in an IPackedGeometryData is commonly higher than in an IGeometryData, as vertices must be split to accommodate for different corner data.

Definition at line 6087 of file SimplygonSDK.h.

Member Function Documentation

◆ AddBaseTypeUserTriangleField()

virtual CountedPointer<IValueArray> SimplygonSDK::IPackedGeometryData::AddBaseTypeUserTriangleField ( rid  base_type,
const char *  name,
unsigned int  tuple_size 
)
pure virtual

Adds an empty user-specified triangle field. To be able to add a field, it must have a name that does not conflict with the existing triangle fields.

Parameters
base_typeis the type of data in the field, the alternatives can be found in SimplygonSDK::BaseTypes
nameis the name of the new field
tuple_sizeis the tuple size of the new field
Returns
the newly added field

◆ AddBaseTypeUserVertexField()

virtual CountedPointer<IValueArray> SimplygonSDK::IPackedGeometryData::AddBaseTypeUserVertexField ( rid  base_type,
const char *  name,
unsigned int  tuple_size 
)
pure virtual

Adds an empty user-specified vertex field. To be able to add a field, it must have a name that does not conflict with the existing vertex fields.

Parameters
base_typeis the type of data in the field, the alternatives can be found in SimplygonSDK::BaseTypes
nameis the name of the new field
tuple_sizeis the tuple size of the new field
Returns
the newly added field

◆ AddBitangents()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::AddBitangents ( rid  level)
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use AddTangents() instead. Bitangents are Added and Removed in unison with Tangents. Only need to call AddTangents to add both Tangent and Bitangent fields, and RemoveTangents to remove both fields. Use GetBitangents to retrieve the bitangent field.
Parameters
levelis the level of the new field

◆ AddBoneWeights()

virtual void SimplygonSDK::IPackedGeometryData::AddBoneWeights ( unsigned int  tuplesize)
pure virtual

Adds the BoneWeights and BoneIds fields in the vertices. The BoneWeights and BoneIds fields are added and removed in unison, and should always be the same tuple size.
(Field names: "BoneWeights" & "BoneIds", Tuple size: varying , Stored as: Vertex attribute)

Parameters
tuplesizeis the size of the tuples in the new bone weight and bone id field

◆ AddColors()

virtual void SimplygonSDK::IPackedGeometryData::AddColors ( rid  level)
pure virtual

Adds a Color field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'Colors0' - 'Colors255'
(Field name: "Colors0"

  • "Colors255", Tuple size: 4 , Stored as: Vertex attribute)
    Parameters
    levelis the level of the Color field to add

◆ AddDiffuseColors()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::AddDiffuseColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use AddColors() instead. DiffuseColors is now an alias for 'Colors0'

◆ AddGroupIds()

virtual void SimplygonSDK::IPackedGeometryData::AddGroupIds ( )
pure virtual

Adds the GroupIds field in the triangles.
(Field name: "GroupIds", Tuple size: 1 , Stored as: triangle attribute)

◆ AddMaterialIds()

virtual void SimplygonSDK::IPackedGeometryData::AddMaterialIds ( )
pure virtual

Adds the MaterialIds field in the triangles.
(Field name: "MaterialIds", Tuple size: 1 , Stored as: triangle attribute)

◆ AddNormals()

virtual void SimplygonSDK::IPackedGeometryData::AddNormals ( )
pure virtual

Adds the Normals field in the vertices.
(Field name: "Normals" , Tuple size: 3 , Stored as: Vertex attribute)

◆ AddSpecularColors()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::AddSpecularColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use AddColors() instead. SpecularColors is now an alias for 'Colors1'

◆ AddTangents()

virtual void SimplygonSDK::IPackedGeometryData::AddTangents ( rid  level)
pure virtual

Adds a Tangents field in the vertices.
(Field name: "Tangents0" - "Tangents255" & "Bitangents0" - "Bitangents255", Tuple size: 3 , Stored as: Vertex attribute)

Parameters
levelis the level of the new tangent fields

◆ AddTexCoords()

virtual void SimplygonSDK::IPackedGeometryData::AddTexCoords ( rid  level)
pure virtual

Adds a TexCoords field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'TexCoords0' - 'TexCoords255'
(Field name: "TexCoords0" - "TexCoords255", Tuple size: 2 , Stored as: Vertex attribute)

Parameters
levelis the level of the new texcoord field

◆ AddTriangles()

virtual void SimplygonSDK::IPackedGeometryData::AddTriangles ( unsigned int  count)
pure virtual

Increases the triangle count by the specified value.

Parameters
countis the number of triangles to add
Returns
the current triangle count

◆ AddUserTriangleField()

virtual void SimplygonSDK::IPackedGeometryData::AddUserTriangleField ( IValueArray field)
pure virtual

Adds a user-specified triangle field from an already populated array. To be able to add a field, it must have a name that does not conflict with the existing triangle fields.

Parameters
fieldis the array that is to be added

◆ AddUserVertexField()

virtual void SimplygonSDK::IPackedGeometryData::AddUserVertexField ( IValueArray field)
pure virtual

Adds a user-specified vertex field from an already populated value array. To be able to add a field, it must have a name that does not conflict with the existing vertex fields.

Parameters
fieldis the field that is to be added

◆ AddVertexLocks()

virtual void SimplygonSDK::IPackedGeometryData::AddVertexLocks ( )
pure virtual

Adds the VertexLocks field for the vertices. If the value for a vertex is true, then the vertex should be locked, and not be removed in the collapse-process.
(Field name: "VertexLocks", Tuple size: 1 , Stored as: Vertex attribute)

◆ AddVertexWeighting()

virtual void SimplygonSDK::IPackedGeometryData::AddVertexWeighting ( )
pure virtual

Adds the VertexWeighting field for the vertices.
(Field name: "VertexWeighting", Tuple size: 1 , Stored as: Vertex attribute)

◆ AddVertices()

virtual void SimplygonSDK::IPackedGeometryData::AddVertices ( unsigned int  count)
pure virtual

AddVertices increases the vertex count by the specified value.

Parameters
countis the number of vertices to add

◆ AppendPackedGeometry()

virtual int SimplygonSDK::IPackedGeometryData::AppendPackedGeometry ( IGeometryData source,
IRidArray NewVertexIds,
bool  collapseToOriginalVertices 
)
pure virtual

Appends all vertex-tuples in "source" that don't already exists in the current GeometryData. For each vertex field in this PackedGeometryData, the "source" must contain a corresponding vertex or corner field. All extra-fields in "source" will be skipped however. Returns the number of new and unique vertices created, and the NewVertexIds will contain the indices for the triangles of the "source" Geometry. The VertexIds of the current GeometryData will still be valid. If collapseToOriginalVertices is set to true, all vertices from source will be collapsed to the closest matching vertex of the current geometry. This means that no new vertices will be added, so the returned value will always be 0. If the "NewVertexIds"-array is not initiated before send into this function, it will do nothing and return -1 instead, as error value. The method does not append triangle ids or triangle field data from "source" to the current object.

Parameters
sourceis the geometry from which to append
NewVertexIdswill be written to and contain the indices for the appended geometries triangles
collapseToOriginalVerticeswill determine if the appended vertices are collapsed to existing ones or not
Returns
the number of unique verts added to the packed geometry

◆ DeepCopy()

virtual void SimplygonSDK::IPackedGeometryData::DeepCopy ( IPackedGeometryData source,
bool  copy_data 
)
pure virtual

Copies the field setup and data from another object. To only copy the setup, set copy_data to false.

Parameters
sourceis the source from which the data will be copied
copy_datais the bool determining whether to copy the data or just the field setup

◆ GetBitangents()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetBitangents ( rid  level)
pure virtual

Gets a Bitangents field in the vertices.
(Field name: "Tangents0" - "Tangents255" & "Bitangents0" - "Bitangents255", Tuple size: 3 , Stored as: Vertex attribute)

Parameters
levelis the level of the bitangent field to get
Returns
the bitangent array for the requested level

◆ GetBoneIds()

virtual CountedPointer<IRidArray> SimplygonSDK::IPackedGeometryData::GetBoneIds ( )
pure virtual

Gets the BoneIds field.
(Field name: "BoneIds", Tuple size: varying , Stored as: Vertex attribute)

Returns
the bone id array

◆ GetBoneWeights()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetBoneWeights ( )
pure virtual

Gets the BoneWeights field.
(Field name: "BoneWeights", Tuple size: varying , Stored as: Vertex attribute)

Returns
the bone weights array

◆ GetClass()

virtual const char* SimplygonSDK::IPackedGeometryData::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.

◆ GetColors()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetColors ( rid  level)
pure virtual

Gets a Color field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'Colors0' - 'Colors255'
(Field name: "Colors0"

  • "Colors255", Tuple size: 4 , Stored as: Vertex attribute)
    Parameters
    levelis the level of the Colors field to get
    Returns
    the colors array

◆ GetCoords()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetCoords ( )
pure virtual

Gets the Coords field in the vertices.
(Field name: "Coords", Tuple size: 3 , Stored as: Vertex attribute)

Returns
the vertex coords array

◆ GetDiffuseColors()

virtual SGDEPRECATED CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetDiffuseColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use GetColors() instead. DiffuseColors is now an alias for 'Colors0'

◆ GetGroupIds()

virtual CountedPointer<IRidArray> SimplygonSDK::IPackedGeometryData::GetGroupIds ( )
pure virtual

Gets the GroupIds field in the triangles.
(Field name: "GroupIds", Tuple size: 1 , Stored as: triangle attribute)

Returns
the material ids array

◆ GetInf()

virtual void SimplygonSDK::IPackedGeometryData::GetInf ( real realReturnDataPtr)
pure virtual

Get the inferior (minimum) extent of the geometry

Parameters
realReturnDataPtrpointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size

◆ GetMaterialIds()

virtual CountedPointer<IRidArray> SimplygonSDK::IPackedGeometryData::GetMaterialIds ( )
pure virtual

Gets the MaterialIds field in the triangles.
(Field name: "MaterialIds", Tuple size: 1 , Stored as: triangle attribute)

Returns
the material ids array

◆ GetNormals()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetNormals ( )
pure virtual

Gets the Normals field in the vertices.
(Field name: "Normals" , Tuple size: 3 , Stored as: Vertex attribute)

Returns
the normals array

◆ GetSpecularColors()

virtual SGDEPRECATED CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetSpecularColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use GetColors() instead. SpecularColors is now an alias for 'Colors1'

◆ GetSup()

virtual void SimplygonSDK::IPackedGeometryData::GetSup ( real realReturnDataPtr)
pure virtual

Get the superior (maximum) extent of the geometry

Parameters
realReturnDataPtrpointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size

◆ GetTangents()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetTangents ( rid  level)
pure virtual

Gets a Tangents field in the vertices.
(Field name: "Tangents0" - "Tangents255" & "Bitangents0" - "Bitangents255", Tuple size: 3 , Stored as: Vertex attribute)

Parameters
levelis the level of the tangent field to get
Returns
the tangent array for the requested level

◆ GetTexCoords()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetTexCoords ( rid  level)
pure virtual

Adds/Removes/Gets a TexCoords field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'TexCoords0' - 'TexCoords255'
(Field name: "TexCoords0" - "TexCoords255", Tuple size: 2 , Stored as: Vertex attribute)

Parameters
levelis the level of the texcoord field to get
Returns
the texcoord array for the requested level

◆ GetTriangleCount()

virtual unsigned int SimplygonSDK::IPackedGeometryData::GetTriangleCount ( )
pure virtual

Gets the number of triangles in the geometry.

Returns
the current triangle count

◆ GetTriangles()

virtual CountedPointer<IFieldData> SimplygonSDK::IPackedGeometryData::GetTriangles ( )
pure virtual

Retrieves the ReFieldData object that contains the triangle fields

Returns
the triangle fields data

◆ GetUserTriangleField()

virtual CountedPointer<IValueArray> SimplygonSDK::IPackedGeometryData::GetUserTriangleField ( const char *  name)
pure virtual

Gets a user-specified triangle field. To be able to add a field, it must have a name that does not conflict with the existing triangle fields.

Parameters
namename of the field to be fetched

◆ GetUserVertexField()

virtual CountedPointer<IValueArray> SimplygonSDK::IPackedGeometryData::GetUserVertexField ( const char *  name)
pure virtual

Gets a user-specified vertex field.

Parameters
nameis the name of the field to be fetched
Returns
the matching field, or NULL if no such field exists

◆ GetVertexCount()

virtual unsigned int SimplygonSDK::IPackedGeometryData::GetVertexCount ( )
pure virtual

Gets the number of vertices in the geometry.

Returns
the current vertex count

◆ GetVertexIds()

virtual CountedPointer<IRidArray> SimplygonSDK::IPackedGeometryData::GetVertexIds ( )
pure virtual

Gets the VertexIds field in the triangles.

Returns
the vertex ids array

◆ GetVertexLocks()

virtual CountedPointer<IBoolArray> SimplygonSDK::IPackedGeometryData::GetVertexLocks ( )
pure virtual

Gets the VertexLocks field for the vertices. If the value for a vertex is true, then the vertex should be locked, and not be removed in the collapse-process.
(Field name: "VertexLocks", Tuple size: 1 , Stored as: Vertex attribute)

Returns
an array containing the vertex lock bools

◆ GetVertexWeighting()

virtual CountedPointer<IRealArray> SimplygonSDK::IPackedGeometryData::GetVertexWeighting ( )
pure virtual

Gets the VertexWeighting field for the vertices.
(Field name: "VertexWeighting", Tuple size: 1 , Stored as: Vertex attribute)

Returns
the vertex weighting array

◆ GetVertices()

virtual CountedPointer<IFieldData> SimplygonSDK::IPackedGeometryData::GetVertices ( )
pure virtual

Retrieves the IFieldData object that contains the vertex fields

Returns
the vertex fields data

◆ IsA()

virtual bool SimplygonSDK::IPackedGeometryData::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::IPackedGeometryData::IsClassA ( const char *  type)
inlinestatic

The IsClassA function returns true if IPackedGeometryData 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 6108 of file SimplygonSDK.h.

◆ NewCopy()

virtual CountedPointer<IPackedGeometryData> SimplygonSDK::IPackedGeometryData::NewCopy ( bool  copy_data)
pure virtual

Creates another geometry data object with the same field setup. To also copy the data to the new object, set copy_data to true.

Parameters
copy_datadetermines if the data is included in the new copy
Returns
the new packed geometry data object

◆ NewUnpackedCopy()

virtual CountedPointer<IGeometryData> SimplygonSDK::IPackedGeometryData::NewUnpackedCopy ( )
pure virtual

Creates an "unpacked" ReGeometryData object. Please note that since the data in the RePackedGeometryData structure is per-vertex, you may have to weld the resulting ReGeometryData to remove vertices with the same spatial coordinates.

Returns
the new unpacked geometry data object

◆ RemoveBitangents()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::RemoveBitangents ( rid  level)
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use RemoveTangents() instead. Bitangents are Added and Removed in unison with Tangents. Only need to call AddTangents to add both Tangent and Bitangent fields, and RemoveTangents to remove both fields. Use GetBitangents to retrieve the bitangent field.
Parameters
levelis the level of the field to be removed

◆ RemoveBoneWeights()

virtual void SimplygonSDK::IPackedGeometryData::RemoveBoneWeights ( )
pure virtual

Removes the BoneWeights and BoneIds fields in the vertices. The BoneWeights and BoneIds fields are added and removed in unison, and should always be the same tuple size.
(Field names: "BoneWeights" & "BoneIds", Tuple size: varying , Stored as: Vertex attribute)

◆ RemoveColors()

virtual void SimplygonSDK::IPackedGeometryData::RemoveColors ( rid  level)
pure virtual

Removes a Color field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'Colors0' - 'Colors255'
(Field name: "Colors0"

  • "Colors255", Tuple size: 4 , Stored as: Vertex attribute)
    Parameters
    levelis the level of the Color field to remove

◆ RemoveDiffuseColors()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::RemoveDiffuseColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use RemoveColors() instead. DiffuseColors is now an alias for 'Colors0'

◆ RemoveGroupIds()

virtual void SimplygonSDK::IPackedGeometryData::RemoveGroupIds ( )
pure virtual

Removes the GroupIds field in the triangles.
(Field name: "GroupIds", Tuple size: 1 , Stored as: triangle attribute)

◆ RemoveMaterialIds()

virtual void SimplygonSDK::IPackedGeometryData::RemoveMaterialIds ( )
pure virtual

Removes the MaterialIds field in the triangles.
(Field name: "MaterialIds", Tuple size: 1 , Stored as: triangle attribute)

◆ RemoveNormals()

virtual void SimplygonSDK::IPackedGeometryData::RemoveNormals ( )
pure virtual

Removes the Normals field in the vertices.
(Field name: "Normals" , Tuple size: 3 , Stored as: Vertex attribute)

◆ RemoveSpecularColors()

virtual SGDEPRECATED void SimplygonSDK::IPackedGeometryData::RemoveSpecularColors ( )
pure virtual
Deprecated:
Method is marked as deprecated and will be removed in future version. Use RemoveColors() instead. SpecularColors is now an alias for 'Colors1'

◆ RemoveTangents()

virtual void SimplygonSDK::IPackedGeometryData::RemoveTangents ( rid  level)
pure virtual

Removes a Tangents field in the vertices.
(Field name: "Tangents0" - "Tangents255" & "Bitangents0" - "Bitangents255", Tuple size: 3 , Stored as: Vertex attribute)

Parameters
levelis the level of the tangent fields to remove

◆ RemoveTexCoords()

virtual void SimplygonSDK::IPackedGeometryData::RemoveTexCoords ( rid  level)
pure virtual

Removes a TexCoords field in the vertices. The valid id range of the level parameter is 0-255, which equals fields 'TexCoords0' - 'TexCoords255'
(Field name: "TexCoords0" - "TexCoords255", Tuple size: 2 , Stored as: Vertex attribute)

Parameters
levelis the level of the texcoord field to remove

◆ RemoveUserTriangleField()

virtual void SimplygonSDK::IPackedGeometryData::RemoveUserTriangleField ( const char *  name)
pure virtual

Removes a user-specified triangle field. To be able to add a field, it must have a name that does not conflict with the existing triangle fields.

Parameters
namename of the field to be removed

◆ RemoveUserVertexField()

virtual void SimplygonSDK::IPackedGeometryData::RemoveUserVertexField ( const char *  name)
pure virtual

Removes a user-specified vertex field.

Parameters
nameis the name of the field that is to be removed

◆ RemoveVertexLocks()

virtual void SimplygonSDK::IPackedGeometryData::RemoveVertexLocks ( )
pure virtual

Removes the VertexLocks field for the vertices. If the value for a vertex is true, then the vertex should be locked, and not be removed in the collapse-process.
(Field name: "VertexLocks", Tuple size: 1 , Stored as: Vertex attribute)

◆ RemoveVertexWeighting()

virtual void SimplygonSDK::IPackedGeometryData::RemoveVertexWeighting ( )
pure virtual

Removes the VertexWeighting field for the vertices.
(Field name: "VertexWeighting", Tuple size: 1 , Stored as: Vertex attribute)

◆ SafeCast()

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

SafeCast makes sure the pointer is of a class that can be cast into a IPackedGeometryData pointer, and if this is possible, returns the cast pointer.

Parameters
ptris the pointer to be cast into a IPackedGeometryData pointer
Returns
a pointer to the IPackedGeometryData object, if the cast can be made, and a NULL pointer otherwise

Definition at line 6121 of file SimplygonSDK.h.

◆ SetInf()

virtual void SimplygonSDK::IPackedGeometryData::SetInf ( const real vec_realInputDataPtr)
pure virtual

Set the inferior (minimum) extent of the geometry

Parameters
vec_realInputDataPtris the values that the minimum extent of the geometry is to be set to

◆ SetSup()

virtual void SimplygonSDK::IPackedGeometryData::SetSup ( const real vec_realInputDataPtr)
pure virtual

Set the superior (maximum) extent of the geometry

Parameters
vec_realInputDataPtris the values that the maximum extent of the geometry is to be set to

◆ SetTriangleCount()

virtual void SimplygonSDK::IPackedGeometryData::SetTriangleCount ( unsigned int  count)
pure virtual

Sets the number of triangles in the geometry.

Parameters
countis the number of triangles to add. Value cannot be less than 0. Value cannot be greater than INT_MAX.

◆ SetVertexCount()

virtual void SimplygonSDK::IPackedGeometryData::SetVertexCount ( unsigned int  count)
pure virtual

Sets the number of vertices in the geometry.

Parameters
countis the new vertexcount. Value cannot be less than 0. Value cannot be greater than INT_MAX.

The documentation for this class was generated from the following file: