TriMesh
المعلومات العامة
TriMesh هي فئة في Aspose.3D FOSS لـ .NET. الميراث من: Entity, INamedObject, IEnumerable<Vertex>.
TriMesh يحتوي على بيانات خام يمكن استخدامها من قبل GPU مباشرة. هذه الطبقة هي أداة مفيدة للمساعدة في بناء شبكة تحتوي فقط على البيانات لكل عمق.
توفر هذه الفئة 32 طريقة للعمل مع TriMesh كائنات في برامج .NET. المنهجيات المتاحة تشمل: A3DObject, AddTriangle, BeginVertex, CopyFrom, EndVertex, Entity, FindProperty, FromMesh, FromRawData, GetBoundingBox, GetEntityRendererKey, GetEnumerator,و 20 طريقة إضافية. جميع الأعضاء العامين يمكن الوصول إليهم من أي تطبيق .NET بعد تثبيت حزمة Aspose.3D FOSS for .Net. خصائص: Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes,و 6 المزيد.
خصائص
| اسم | النوع | الوصول | وصف |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | اقرأ | يحصل على إعلان القمة. |
VerticesCount | int | اقرأ | يحصل على عدد القمم. |
IndicesCount | int | اقرأ | يحصل على مؤشرات العد. |
UnmergedVerticesCount | int | اقرأ | يحصل على عدد القمم غير المدمجة. |
Capacity | int | اقرأ | يحصل على القدرة. |
VerticesSizeInBytes | int | اقرأ | يحصل على حجم القمم في بايت. |
Excluded | bool | القراءة/ الكتابة | يحصل على أو يضع المقصود. |
ParentNodes | List<Node> | اقرأ | يحصل على العقد الأم. |
ParentNode | Node | القراءة/ الكتابة | يحصل على أو يضع العقدة الأم. |
Scene | Scene | اقرأ | يحصل على المشهد. |
Name | string | القراءة/ الكتابة | يحصل على الاسم أو يحدده. |
Properties | PropertyCollection | اقرأ | يحصل على العقارات. |
الطرق
| التوقيع | وصف |
|---|---|
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) أو خاصة أصلية ((محددة باسمها)) |