Represents a TriLib Geometry Group. A Geometry Group contains child Geometries.
More...
|
Mesh | GenerateMesh (AssetLoaderContext assetLoaderContext, Matrix4x4[] bindPoses=null, IList< int > materialIndices=null) |
| Generates the final Unity Mesh.
|
|
void | Setup (AssetLoaderContext assetLoaderContext, int verticesCapacity, int geometriesCapacity, int bonesCapacity) |
| Configures this Geometry Group.
|
|
TGeometry | GetGeometry< TGeometry > (AssetLoaderContext assetLoaderContext, int materialIndex, bool isQuad) |
| Gets a new or existing Geometry from this group.
|
|
void | AddBoneWeight (int vertexIndex, BoneWeight1 boneWeight1) |
| Adds a new Bone Weight to this group.
|
|
void | LimitBoneWeights (AssetLoaderContext assetLoaderContext) |
| Limits the Bone Weights in this group to 4 Bones per Vertex.
|
|
void | TransferToBlendShape (IGeometryGroup baseGeometryGroup, IBlendShapeKey blendShapeKey, IList< int > originalVertexIndices) |
|
HashSet< VertexAttribute > | GetVertexAttributes () |
|
void | SetVertexAttributes (HashSet< VertexAttribute > vertexAttributes) |
|
void | Cleanup (AssetLoaderContext assetLoaderContext) |
|
void | InitialMeshSetup (AssetLoaderContext assetLoaderContext, IList< int > materialIndices) |
|
void | FinalMeshSetup (AssetLoaderContext assetLoaderContext, Matrix4x4[] bindPoses) |
|
bool | Is32Bits () |
|
bool | GetHalfPrecision () |
|
void | SetHalfPrecision (bool value) |
|
Vector3 | GetCenter () |
|
void | AddGeometry (AssetLoaderContext assetLoaderContext, int materialIndex, int meshIndex, int indexCount, IntPtr indices, bool isQuad=false) |
|
int | AddVertex (AssetLoaderContext assetLoaderContext, int vertexIndex, TVertexData vertexData) |
| Adds or gets an existing Vertex to/from this Geometry Group.
|
|
|
Dictionary< int, IGeometry > | GeometriesData [get] |
| Gets/Sets the Geometries in this group.
|
|
List< IBlendShapeKey > | BlendShapeKeys [get, set] |
| Gets/Sets the Blend-Shape keys in this group.
|
|
Vector3 | Pivot [get, set] |
| Gets/Sets this Geometry Group local pivot position.
|
|
RawBoneWeights | RawBoneWeights [get, set] |
| Gets/Sets the Bone-Weights from this group.
|
|
BoneWeight[] | ProcessedBoneWeights [get, set] |
| Gets/Sets the processed (limited to 4 Bones per-Vertex) Bone Weights from this group.
|
|
bool | HasNormals [get, set] |
|
bool | HasTangents [get, set] |
|
bool | HasColors [get, set] |
|
bool | HasUv1 [get, set] |
|
bool | HasUv2 [get, set] |
|
bool | HasUv3 [get, set] |
|
bool | HasUv4 [get, set] |
|
bool | HasBones [get, set] |
|
bool | HasInvalidNormals [get, set] |
|
int | VerticesDataCount [get] |
|
int | IndexCount [get] |
|
Mesh | Mesh [get, set] |
|
CommonVerticesData | VerticesData [get, set] |
|
string | Name [get, set] |
| Gets/Sets the Object name.
|
|
bool | Used [get, set] |
| Gets/Sets the flag indicating whether this object used somewhere.
|
|
Represents a TriLib Geometry Group. A Geometry Group contains child Geometries.
- Template Parameters
-
TVertexData | The type of VertexData this group has. |