TriMesh
개요
TriMesh은 Aspose.3D FOSS for .NET에 있는 클래스입니다. 상속받음: Entity, INamedObject, IEnumerable<Vertex>, 및 1개 더.
TriMesh은 GPU에서 직접 사용할 수 있는 원시 데이터를 포함합니다.
이 클래스는 .NET 프로그램에서 TriMesh 객체를 다루기 위한 40개의 메서드를 제공합니다. 사용 가능한 메서드에는 A3DObject, AddTriangle, BeginVertex, CopyFrom, EndVertex, Entity, FindProperty, FromMesh, FromRawData, GetBoundingBox, GetEntityRendererKey, GetEnumerator 및 추가 21개의 메서드가 포함됩니다. 모든 public 멤버는 Aspose.3D FOSS for .NET 패키지를 설치한 후 any .NET 애플리케이션에서 접근할 수 있습니다. 속성: Capacity, Excluded, IndicesCount, Name, ParentNode, ParentNodes, 및 6개 더.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
VertexDeclaration | VertexDeclaration | 읽기 | 버텍스 선언을 가져옵니다. |
VerticesCount | int | 읽기 | 정점 수를 가져옵니다. |
IndicesCount | int | 읽기 | 인덱스 수를 가져옵니다. |
UnmergedVerticesCount | int | 읽기 | 병합되지 않은 정점 수를 가져옵니다. |
Capacity | int | 읽기 | 용량을 가져옵니다. |
VerticesSizeInBytes | int | 읽기 | 버텍스 크기를 바이트 단위로 가져옵니다. |
Excluded | bool | 읽기/쓰기 | 내보내는 동안 이 엔터티를 제외할지 여부를 가져오거나 설정합니다. |
ParentNodes | List<Node> | 읽기 | 모든 부모 노드를 가져오고, 엔터티는 기하학 인스턴싱을 위해 여러 부모 노드에 연결될 수 있습니다. |
ParentNode | Node | 읽기/쓰기 | 첫 번째 상위 노드를 가져오거나 설정합니다. 첫 번째 상위 노드를 설정하면, 이 엔터티는 다른 상위 노드와 분리됩니다. |
Scene | Scene | 읽기 | 이 객체가 속한 씬을 가져옵니다 |
Name | string | 읽기/쓰기 | 이름을 가져오거나 설정합니다. |
Properties | PropertyCollection | 읽기 | 모든 속성의 컬렉션을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
TriMesh(name: string, declaration: VertexDeclaration) | 이 TriMesh 인스턴스에서 TriMesh(name, declaration)를 호출합니다. |
FromMesh(declaration: VertexDeclaration, mesh: Mesh) | 이 TriMesh 인스턴스에서 FromMesh(declaration, mesh)를 호출합니다. |
CopyFrom(input: TriMesh, vd: VertexDeclaration) | 이 TriMesh 인스턴스에서 CopyFrom(input, vd)를 호출합니다. |
FromMesh(mesh: Mesh, useFloat: bool) | 이 TriMesh 인스턴스에서 FromMesh(mesh, useFloat)를 호출합니다. |
BeginVertex() | 이 TriMesh 인스턴스에서 BeginVertex를 호출합니다. |
EndVertex() | 이 TriMesh 인스턴스에서 EndVertex를 호출합니다. |
WriteVerticesTo(stream: Stream) | 이 TriMesh 인스턴스에서 WriteVerticesTo(stream)를 호출합니다. |
Write16bIndicesTo(stream: Stream) | 이 TriMesh 인스턴스에서 Write16bIndicesTo(stream)를 호출합니다. |
Write32bIndicesTo(stream: Stream) | 이 TriMesh 인스턴스에서 Write32bIndicesTo(stream)을 호출합니다. |
VerticesToArray() | 이 TriMesh 인스턴스에서 VerticesToArray를 호출합니다. |
IndicesToArray(result: ushort[]) | 이 TriMesh 인스턴스에서 IndicesToArray(result)를 호출합니다. |
IndicesToArray(result: int[]) | 이 TriMesh 인스턴스에서 IndicesToArray(result)를 호출합니다. |
ToString() | 이 TriMesh 인스턴스에서 ToString를 호출합니다. |
FromRawData(vd: VertexDeclaration, vertices: byte[], indices: int[], generateVertexMapping: bool) | 이 TriMesh 인스턴스에서 FromRawData(vd, vertices, indices, generateVertexMapping)를 호출합니다. |
LoadVerticesFromBytes(verticesInBytes: byte[]) | 이 TriMesh 인스턴스에서 LoadVerticesFromBytes(verticesInBytes)를 호출합니다. |
AddTriangle(a: int, b: int, c: int) | 이 TriMesh 인스턴스에서 AddTriangle(a, b, c)를 호출합니다. |
GetEnumerator() | 이 TriMesh 인스턴스에서 GetEnumerator를 호출합니다. |
ReadVector4(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadVector4(idx, field)를 호출합니다. |
ReadFVector4(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadFVector4(idx, field)를 호출합니다. |
ReadVector3(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadVector3(idx, field)를 호출합니다. |
ReadFVector3(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadFVector3(idx, field)를 호출합니다. |
ReadVector2(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadVector2(idx, field)를 호출합니다. |
ReadFVector2(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadFVector2(idx, field)를 호출합니다. |
ReadDouble(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadDouble(idx, field)를 호출합니다. |
ReadFloat(idx: int, field: VertexField) | 이 TriMesh 인스턴스에서 ReadFloat(idx, field)를 호출합니다. |
TriMesh(name: string) | 인스턴스를 초기화합니다 |
FromMesh(mesh: Mesh) | 주어진 메시 객체에서 자동으로 생성된 정점 레이아웃을 사용하여 TriMesh를 생성합니다. |
VerticesToTypedArray() | 버텍스 데이터를 타입드 배열로 변환합니다 |
Entity(name: string) | Entity 클래스의 새 인스턴스를 초기화합니다. |
GetBoundingBox() | 현재 엔티티의 객체 공간 좌표계에서 경계 상자를 가져옵니다. |
GetEntityRendererKey() | 렌더러에 등록된 엔티티 렌더러의 키를 가져옵니다. |
SceneObject(name: string) | 기본 이름으로 SceneObject를 초기화합니다 |
SceneObject() | SceneObject를 초기화합니다. |
A3DObject() | 이름 없이 A3DObject 클래스의 새 인스턴스를 초기화합니다. |
A3DObject(name: string) | A3DObject 클래스의 새 인스턴스를 초기화합니다. |
RemoveProperty(property: Property) | 동적 속성을 제거합니다. |
RemoveProperty(property: string) | 이름으로 식별된 지정된 속성을 제거합니다. |
GetProperty(property: string) | 지정된 속성의 값을 가져옵니다 |
SetProperty(property: string, value: object?) | 지정된 속성의 값을 설정합니다 |
FindProperty(propertyName: string) | 속성을 찾습니다. |