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

NameTypeAccessDescription
VertexDeclarationVertexDeclarationReadGets the vertex declaration.
VerticesCountintReadGets the vertices count.
IndicesCountintReadGets the indices count.
UnmergedVerticesCountintReadGets the unmerged vertices count.
CapacityintReadGets the capacity.
VerticesSizeInBytesintReadGets the vertices size in bytes.
ExcludedboolRead/WriteGets or sets the excluded.
ParentNodesList<Node>ReadGets the parent nodes.
ParentNodeNodeRead/WriteGets or sets the parent node.
SceneSceneReadGets the scene.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

méthodes

SignatureDescription
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
 Français