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 для пакету .Net. Свойства: Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes, і ще 6.
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) або натульне власності ((Ідентифікується його ім’ям)) |