TriMesh
Overview
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,И еще шесть.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | Read | Получится вертикальное объявление. |
VerticesCount | int | Read | Считает вершины. |
IndicesCount | int | Read | - Считает показатели. |
UnmergedVerticesCount | int | Read | Получивает неслитые вершины. |
Capacity | int | Read | Получил емкость. |
VerticesSizeInBytes | int | Read | Получает размер вершин в байтах. |
Excluded | bool | Читать/писать | Получает или устанавливает исключенные. |
ParentNodes | List<Node> | Read | Получивает родительские узлы. |
ParentNode | Node | Читать/писать | Получает или устанавливает родительский узел. |
Scene | Scene | Read | Понимаешь, что происходит. |
Name | string | Читать/писать | Получивает или устанавливает имя. |
Properties | PropertyCollection | Read | Получил свойства. |
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() | Получает граничный ящик текущего объекта в его пространственной системе координат. |
GetEntityRendererKey() | Получает ключ рендератора объекта , зарегистрированный в рендарере . |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Устраняет динамическое свойство. |
GetProperty(property: string) | Получить значение указанного свойства |
SetProperty(property: string, value: object?) | Устанавливает значение указанного свойства |
FindProperty(propertyName: string) | Найдет свойство. Это может быть динамическое свойства (созданное CreateDynamicProperty/SetProperty) или собственное свойством ((Идентифицируется по его имени)) |