Class MeshPrimitiveBase
Geometry to be rendered with the given material.
Implements
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public abstract class MeshPrimitiveBase : ICloneable
Fields
| Name | Description |
|---|---|
| attributes | A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data. |
| indices | The index of the accessor that contains mesh indices.
When this is not defined, the primitives should be rendered without indices
using |
| material | The index of the material to apply to this primitive when rendering. |
| mode | The type of primitives to render. All valid values correspond to WebGL enums. |
| targets | An array of Morph Targets, each Morph Target is a dictionary mapping attributes to their deviations in the Morph Target (index of the accessor containing the attribute displacements' data). |
Properties
| Name | Description |
|---|---|
| Extensions | Mesh primitive extensions |
| IsDracoCompressed |
Methods
| Name | Description |
|---|---|
| Clone() | Clones the object |
| Equals(object) | Primitives are considered equal if their attributes and morph targets (if existing) are equal. This is practical when clustering primitives of a mesh together, that end up in a single Unity Mesh. |
| GetHashCode() | Default hash function. |