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

NameTypeAccessDescription
VertexDeclarationVertexDeclarationReadNhận thông báo Vertex.
VerticesCountintReadĐếm số các đường cao.
IndicesCountintReadNhận được các chỉ số đếm.
UnmergedVerticesCountintReadNhận được các tảng không bị mờ đếm.
CapacityintReadNhận được khả năng.
VerticesSizeInBytesintReadNhận kích thước của các chiều cao trong byte.
ExcludedboolĐọc / viếtNhận hoặc đặt những người bị loại trừ.
ParentNodesList<Node>Read- Nhận các nút mẹ.
ParentNodeNodeĐọc / viếtNhận hoặc đặt nút mẹ.
SceneSceneReadGặp cảnh.
NamestringĐọc / viếtNhận hoặc đặt tên.
PropertiesPropertyCollectionReadNhận được tài sản.

Methods

SignatureDescription
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ó)

See Also

 Tiếng Việt