TriMesh
Vue de l’ensemble
‘TriMesh’ est une classe dans Aspose.3D FOSS pour .NET. hérite de: ‘Entity’, ‘INamedObject’, `IEnumerable
Un TriMesh contient des données crus qui peuvent être utilisées par le GPU directement. Cette classe est un outil pour aider à construire une mesh qui ne contiendra que les données per-vertex.
Cette classe fournit 32 méthodes pour travailler avec des objets TriMesh dans les programmes .NET. Les méthodologies disponibles comprennent : ‘A3DObject’, ‘AddiTriangle’, BeginVertex', ‘CopyFrom’, 'EndVertx' , 'Entity', ’FindProperty', ‚FomMash, ‘FramRawData’, ‘‘GetBoundingBox,GatEntitiRendererKeyet 20 méthode supplémentaires. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l'Aspose.3D FOSS pour le package .net. Propriétés: 'Compétence', ‘’Excluded’,Indices’, ‘Name’, ‘’ParentNode’, 6′ et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | Read | Gets the vertex declaration. |
VerticesCount | int | Read | Gets the vertices count. |
IndicesCount | int | Read | Gets the indices count. |
UnmergedVerticesCount | int | Read | Gets the unmerged vertices count. |
Capacity | int | Read | Gets the capacity. |
VerticesSizeInBytes | int | Read | Gets the vertices size in bytes. |
Excluded | bool | Read/Write | Gets or sets the excluded. |
ParentNodes | List<Node> | Read | Gets the parent nodes. |
ParentNode | Node | Read/Write | Gets or sets the parent node. |
Scene | Scene | Read | Gets the scene. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
méthodes
| Signature | Description |
|---|---|
TriMesh(name: string, declaration: VertexDeclaration) | |
FromMesh(declaration: VertexDeclaration, mesh: Mesh) | |
CopyFrom(input: TriMesh, vd: VertexDeclaration) | |
FromMesh(mesh: Mesh, useFloat: bool) | |
BeginVertex() | |
EndVertex() | |
WriteVerticesTo(stream: Stream) | |
Write16bIndicesTo(stream: Stream) | |
Write32bIndicesTo(stream: Stream) | |
VerticesToArray() | |
IndicesToArray(result: ushort[]) | |
IndicesToArray(result: int[]) | |
ToString() | |
FromRawData(vd: VertexDeclaration, vertices: byte[], indices: int[], generateVertexMapping: bool) | |
LoadVerticesFromBytes(verticesInBytes: byte[]) | |
AddTriangle(a: int, b: int, c: int) | |
GetEnumerator() | |
ReadVector4(idx: int, field: VertexField) | |
ReadFVector4(idx: int, field: VertexField) | |
ReadVector3(idx: int, field: VertexField) | |
ReadFVector3(idx: int, field: VertexField) | |
ReadVector2(idx: int, field: VertexField) | |
ReadFVector2(idx: int, field: VertexField) | |
ReadDouble(idx: int, field: VertexField) | |
ReadFloat(idx: int, field: VertexField) | |
Entity(name: string) | |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Voir aussi
- Aspose.3D - référence API d’entreprise