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

NameTypeAccessDescription
VertexDeclarationVertexDeclarationReadОтримає декларацію вершини.
VerticesCountintReadОцінює вершини.
IndicesCountintReadЗнайде показники.
UnmergedVerticesCountintReadОбирає нез’єднані вершини.
CapacityintReadОбирає потужність.
VerticesSizeInBytesintReadОтримає розмір вершин у байтах.
ExcludedboolЧитання/писанняотримує або встановлює виключені.
ParentNodesList<Node>ReadОбирає батьківські вузли.
ParentNodeNodeЧитання/писанняОбирає або встановлює батьківський вузол.
SceneSceneReadЗнайде місце.
NamestringЧитання/писанняОбирає або встановлює ім’я.
PropertiesPropertyCollectionReadВін отримує власність.

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()Обирає рамку обмежень поточної об’єктивної системи координат.
GetEntityRendererKey()Отримає ключ від рейндеру об’єктів, зареєстрований в рендерері.
SceneObject(name: string)
A3DObject()
RemoveProperty(property: Property)Видає динамічне властивість.
GetProperty(property: string)Отримати значення зазначеного об’єкта.
SetProperty(property: string, value: object?)Назначення значення зазначеного об’єкта:
FindProperty(propertyName: string)Знаходить властивість. Це може бути динамічне властивості (Створення CreateDynamicProperty/SetProperty) або натульне власності ((Ідентифікується його ім’ям))

See Also

 Українська