TriMesh
ภาพรวม
TriMesh เป็นคลาสใน Aspose.3D FOSS สําหรับ .NET. ทายาทจาก: Entity, INamedObject, IEnumerable<Vertex>.
TriMesh มีข้อมูลทรัพย์ที่สามารถใช้โดย GPU โดยตรง.
หมวดนี้ให้วิธีการ 37 สําหรับทํางานกับ TriMesh วัตถุในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: A3DObject, AddTriangle, BeginVertex, CopyFrom, EndVertex, Entity, FindProperty, FromMesh, FromRawData, GetBoundingBox, GetEntityRendererKey, GetEnumerator,และ 21 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.3D FOSS for .Net. คุณสมบัติ: Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes,และอีก 6 คน.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
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 | อ่าน | รับคอลเลกชันของคุณสมบัติทั้งหมด. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
TriMesh(name: string, declaration: VertexDeclaration) | เรียก TriMesh ((ชื่อ, การประกาศ) ในตัวอย่างนี้ TriMesh. |
FromMesh(declaration: VertexDeclaration, mesh: Mesh) | เรียก FromMesh ((ประกาศ, mesh) ในตัวอย่างนี้ TriMesh. |
CopyFrom(input: TriMesh, vd: VertexDeclaration) | เรียก CopyFrom ((input, vd) ในตัวอย่างนี้ TriMesh. |
FromMesh(mesh: Mesh, useFloat: bool) | เรียก FromMesh ((mesh, useFloat) ในตัวอย่างนี้ TriMesh. |
BeginVertex() | เรียก BeginVertex ในตัวอย่างนี้ TriMesh. |
EndVertex() | เรียก EndVertex ในตัวอย่างนี้ TriMesh. |
WriteVerticesTo(stream: Stream) | เรียก WriteVerticesTo(stream) ในตัวอย่างนี้ TriMesh. |
Write16bIndicesTo(stream: Stream) | เรียก Write16bIndicesTo(stream) ในตัวอย่างนี้ TriMesh. |
Write32bIndicesTo(stream: Stream) | เรียก Write32bIndicesTo(stream) ในตัวอย่างนี้ TriMesh. |
VerticesToArray() | เรียก VerticesToArray ในตัวอย่างนี้ TriMesh. |
IndicesToArray(result: ushort[]) | เรียก IndicesToArray ((ผล) ในตัวอย่างนี้ TriMesh. |
IndicesToArray(result: int[]) | เรียก IndicesToArray ((ผล) ในตัวอย่างนี้ TriMesh. |
ToString() | เรียก ToString ในตัวอย่างนี้ TriMesh. |
FromRawData(vd: VertexDeclaration, vertices: byte[], indices: int[], generateVertexMapping: bool) | เรียก FromRawData ((vd, vertices, indices , generateVertexMapping) ในตัวอย่างนี้ TriMesh. |
LoadVerticesFromBytes(verticesInBytes: byte[]) | เรียก LoadVerticesFromBytes(verticesInBytes) ในตัวอย่างนี้ TriMesh. |
AddTriangle(a: int, b: int, c: int) | เรียก AddTriangle ((a, b, c) ในตัวอย่างนี้ TriMesh. |
GetEnumerator() | เรียก GetEnumerator ในตัวอย่างนี้ TriMesh. |
ReadVector4(idx: int, field: VertexField) | เรียก ReadVector4 ((idx, field) ในตัวอย่างนี้ TriMesh. |
ReadFVector4(idx: int, field: VertexField) | เรียก ReadFVector4 ((idx, field) ในตัวอย่าง TriMesh นี้. |
ReadVector3(idx: int, field: VertexField) | เรียก ReadVector3 ((idx, field) ในตัวอย่างนี้ TriMesh. |
ReadFVector3(idx: int, field: VertexField) | เรียก ReadFVector3 ((idx, field) ในตัวอย่าง TriMesh นี้. |
ReadVector2(idx: int, field: VertexField) | เรียก ReadVector2 ((idx, field) ในตัวอย่างนี้ TriMesh. |
ReadFVector2(idx: int, field: VertexField) | เรียก ReadFVector2 ((idx, field) ในตัวอย่าง TriMesh นี้. |
ReadDouble(idx: int, field: VertexField) | เรียก ReadDouble ((idx, field) ในตัวอย่างนี้ TriMesh. |
ReadFloat(idx: int, field: VertexField) | เรียก ReadFloat ((idx, field) ในตัวอย่างนี้ TriMesh. |
TriMesh(name: string) | เริ่มต้นตัวอย่างของ |
FromMesh(mesh: Mesh) | สร้าง TriMesh จากวัตถุเมชที่ให้ด้วยการจัดวาง vertex ที่สร้างโดยอัตโนมัติ. |
VerticesToTypedArray() | เปลี่ยนข้อมูลจุดสูงเป็นอาร์เรย์ที่เขียนแบบ |
Entity(name: string) | เริ่มตัวอย่างใหม่ของชั้น Entity. |
GetBoundingBox() | ได้กรอบกําหนดขององค์การปัจจุบันในระบบสื่อระยะโคอเรนตี้ของมัน. |
GetEntityRendererKey() | ได้รหัสของตัวรับการแสดงผลที่ลงทะเบียนในตัวแทนให้ความเห็น |
SceneObject(name: string) | เริ่มต้น SceneObject ด้วยชื่อตามปกติ |
A3DObject() | เริ่มตัวอย่างใหม่ของ A3DObject class โดยไม่มีชื่อ. |
RemoveProperty(property: Property) | ยกย้ายคุณสมบัติไดนามิก. |
GetProperty(property: string) | รับค่าของคุณสมบัติที่ระบุ |
SetProperty(property: string, value: object?) | ตั้งค่าค่าของคุณสมบัติที่ระบุ |
FindProperty(propertyName: string) | หาที่ดินได้. |