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 المزيد.

خصائص

اسمالنوعالوصولوصف
VertexDeclarationVertexDeclarationاقرأيحصل على إعلان القمة.
VerticesCountintاقرأيحصل على عدد القمم.
IndicesCountintاقرأيحصل على مؤشرات العد.
UnmergedVerticesCountintاقرأيحصل على عدد القمم غير المدمجة.
Capacityintاقرأيحصل على القدرة.
VerticesSizeInBytesintاقرأيحصل على حجم القمم في بايت.
Excludedboolالقراءة/ الكتابةيحصل على أو يضع المقصود.
ParentNodesList<Node>اقرأيحصل على العقد الأم.
ParentNodeNodeالقراءة/ الكتابةيحصل على أو يضع العقدة الأم.
SceneSceneاقرأيحصل على المشهد.
Namestringالقراءة/ الكتابةيحصل على الاسم أو يحدده.
PropertiesPropertyCollectionاقرأيحصل على العقارات.

الطرق

التوقيعوصف
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) أو خاصة أصلية ((محددة باسمها))

انظر أيضاً

 العربية