TriMesh
Overview
TriMesh là một lớp trong Aspose.3D FOSS cho .NET. Dòng thừa kế từ: Entity, INamedObject, IEnumerable<Vertex>.
Một TriMesh chứa dữ liệu thô mà GPU có thể sử dụng trực tiếp. lớp này là một tiện ích để giúp xây dựng một mảnh chỉ chứa các dữ kiện theo chiều hướng.
Khóa học này cung cấp 32 phương pháp để làm việc với các đối tượng TriMesh trong các chương trình .NET. Các phương pháp có sẵn bao gồm: A3DObject, AddTriangle, BeginVertex, CopyFrom, EndVertex, Entity, FindProperty, FromMesh, FromRawData, GetBoundingBox, GetEntityRendererKey, GetEnumerator,+ 20 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng .NET nào sau khi cài đặt Aspose.3D FOSS cho gói .Net. Tài sản : Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes,Và 6 nhiều hơn nữa.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | Read | Nhận thông báo Vertex. |
VerticesCount | int | Read | Đếm số các đường cao. |
IndicesCount | int | Read | Nhận được các chỉ số đếm. |
UnmergedVerticesCount | int | Read | Nhận được các tảng không bị mờ đếm. |
Capacity | int | Read | Nhận được khả năng. |
VerticesSizeInBytes | int | Read | Nhận kích thước của các chiều cao trong byte. |
Excluded | bool | Đọc / viết | Nhận hoặc đặt những người bị loại trừ. |
ParentNodes | List<Node> | Read | - Nhận các nút mẹ. |
ParentNode | Node | Đọc / viết | Nhận hoặc đặt nút mẹ. |
Scene | Scene | Read | Gặp cảnh. |
Name | string | Đọc / viết | Nhận hoặc đặt tên. |
Properties | PropertyCollection | Read | Nhận được tài sản. |
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() | Nó nhận được hộp biên giới của một thực thể hiện tại trong hệ thống phối hợp không gian đối tượng của nó. |
GetEntityRendererKey() | Nhận chìa khóa của chủ thể renderer đăng ký trong renderers |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Tắt một tài sản năng động. |
GetProperty(property: string) | Nhận giá trị của tài sản cụ thể |
SetProperty(property: string, value: object?) | Đặt giá trị của tài sản cụ thể |
FindProperty(propertyName: string) | Nó có thể là một tài sản năng động (được tạo bởi CreateDynamicProperty/SetProperty) hoặc tài chính bản địa(đã được xác định bằng tên của nó) |