TriMesh
Overview
TriMesh यह एक क्लास है Aspose.3D FOSS के लिए .NET. वारिस से: Entity, INamedObject, IEnumerable<Vertex>.
एक TriMesh में कच्चे डेटा होते हैं जिन्हें सीधे जीपीयू द्वारा उपयोग किया जा सकता है. यह क्लास एक मशीन बनाने में मदद करने के लिए एक उपकरण है जिसमें केवल प्रति-वॉर्टेक्स डेटे होते है।.
इस वर्ग में .NET प्रोग्रामों में TriMesh वस्तुओं के साथ काम करने के लिए 32 तरीके प्रदान किए जाते हैं।. उपलब्ध तरीकों में शामिल हैं: A3DObject, AddTriangle, BeginVertex, CopyFrom, EndVertex, Entity, FindProperty, FromMesh, FromRawData, GetBoundingBox, GetEntityRendererKey, GetEnumerator,और 20 अतिरिक्त तरीके।. सभी सार्वजनिक सदस्य किसी भी .NET अनुप्रयोग के लिए उपलब्ध हैं Aspose.3D FOSS को स्थापित करने के बाद .Net पैकेज के साथ।. संपत्ति : Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes,और 6 और भी।.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | Read | Vertex की घोषणा करें।. |
VerticesCount | int | Read | गहराई से गिनती की जाती है।. |
IndicesCount | int | Read | संकेतों की गिनती करें।. |
UnmergedVerticesCount | int | Read | अंधेरे की गिनती कर रहे हैं।. |
Capacity | int | Read | क्षमता प्राप्त करें।. |
VerticesSizeInBytes | int | Read | बेट्स में आकार के ऊर्ध्वाधर प्राप्त करें।. |
Excluded | bool | पढ़ना / लिखना | इसे प्राप्त करें या बाहर निकाल दें।. |
ParentNodes | List<Node> | Read | माता-पिता के नोड्स को पकड़ो।. |
ParentNode | Node | पढ़ना / लिखना | माता-पिता को नोड प्राप्त करें या स्थापित करें।. |
Scene | Scene | Read | दृश्य को लेते हैं।. |
Name | string | पढ़ना / लिखना | नाम प्राप्त करें या अपना नाम निर्धारित करें।. |
Properties | PropertyCollection | Read | संपत्ति प्राप्त करें।. |
Methods
| 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() | यह अपने ऑब्जेक्ट स्पेस कोड प्रणाली में वर्तमान वस्तु के बंडल बॉक्स प्राप्त करता है।. |
GetEntityRendererKey() | रिलेंडर में पंजीकृत वस्तु रेंडर की कुंजी प्राप्त करता है |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | एक गतिशील संपत्ति को हटा दें।. |
GetProperty(property: string) | निर्दिष्ट संपत्ति का मूल्य प्राप्त करें |
SetProperty(property: string, value: object?) | निर्दिष्ट संपत्ति के मूल्य को निर्धारित करें |
FindProperty(propertyName: string) | यह एक गतिशील संपत्ति हो सकती है ( CreateDynamicProperty/SetProperty द्वारा बनाया गया) या मूल संपदा(इसका नाम से पहचाना जाता है) |