Handle to the PackedInstance.
Name | Description |
---|---|
GetClusterSize() | Returns system's cluster size override for this instance. |
GetGeometryId() | Get the Geometry ID of this instance. |
GetInstanceGuid() | Get the original user-set GUID of this instance. |
GetInstanceId() | Get the original ID of this instance. |
GetInstanceIdx() | Get the original ID of this instance. |
GetNumMeshes() | Gets the number of meshes that were in the geometry object this instance was built from. |
GetNumVerts(Geo::s32) | Returns the number of vertices for the mesh at index meshIdx. |
GetOutputUvArray(Geo::s32) | Returns a pointer to the per-vertex uvs for the mesh at index meshIdx. |
GetProjectionCost() | Gets the total projection cost over all meshes. |
GetProjectionCost(Geo::s32) | Gets the projection cost for the given mesh. |
GetUvTransform() | Get per-instance 2d UV packed-instance to packed-system transform. |
public: float GetClusterSize() const
Returns system's cluster size override for this instance.
If non-negative, this specifies a per-instance cluster size, overriding the value set for the system to which this instance belongs.
system's cluster size override for this instance.
public: Geo::GeoGuid GetGeometryId() const
Get the Geometry ID of this instance.
public: Geo::GeoGuid GetInstanceGuid() const
Get the original user-set GUID of this instance.
public: Geo::s32 GetInstanceId() const
Get the original ID of this instance.
public: virtual Geo::s32 GetInstanceIdx() const
Get the original ID of this instance.
Deprecated
Please use GetInstanceId() instead, which returns the same value but is more accurately named.
public: Geo::s32 GetNumMeshes() const
Gets the number of meshes that were in the geometry object this instance was built from.
public: Geo::s32 GetNumVerts
(
Geo::s32 meshIdx
) const
Returns the number of vertices for the mesh at index meshIdx.
[in] | meshIdx | This should be a valid index between [0, GetNumMeshes()-1]. |
The number of verts or -1 if the meshIdx is invalid.
public: const Geo::GeoPoint2 * GetOutputUvArray
(
Geo::s32 meshIdx
) const
Returns a pointer to the per-vertex uvs for the mesh at index meshIdx.
[in] | meshIdx | This should be a valid index between [0, GetNumMeshes()-1]. |
A const pointer to an array of uvs or NULL if the meshIdx is invalid.
public: float GetProjectionCost() const
Gets the total projection cost over all meshes.
public: float GetProjectionCost
(
Geo::s32 meshIdx
) const
Gets the projection cost for the given mesh.
public: Geo::Geo2DTransform GetUvTransform() const
Get per-instance 2d UV packed-instance to packed-system transform.