Geometry
개요
Geometry은(는) Aspose.3D FOSS for TypeScript에 포함된 클래스입니다. 상속 대상: Entity.
Geometry 객체는 제어점을 추가하고, 정점 요소(UV 포함)를 생성하며, 메쉬 데이터에 대한 경계 상자를 가져올 수 있습니다.
이 클래스는 TypeScript 프로그램의 Geometry 객체를 위해 16개의 메서드를 선언합니다. 사용 가능한 메서드에는 addControlPoint, addElement, constructor, createElement, createElementUV, findProperty, getBoundingBox, getElement, getEntityRendererKey, getProperty, getVertexElementOfUV, removeProperty 및 추가 메서드 2개가 포함됩니다. 공개 멤버는 Aspose.3D FOSS for TypeScript 패키지를 설치한 후 모든 TypeScript 애플리케이션에서 접근할 수 있습니다. 속성: castShadows, controlPoints, excluded, name, parentNode, parentNodes 및 추가 5개.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
visible | boolean | 읽기/쓰기 | 가시성을 가져옵니다. |
castShadows | boolean | 읽기/쓰기 | 캐스트 그림자를 가져옵니다. |
receiveShadows | boolean | 읽기/쓰기 | 그림자 수신 여부를 가져옵니다. |
vertexElements | VertexElement[] | 읽기 | 버텍스 요소를 가져옵니다. |
controlPoints | Vector4[] | 읽기/쓰기 | 제어점을 가져옵니다. |
parentNodes | Node[] | 읽기 | 부모 노드를 가져옵니다. |
parentNode | `Node | undefined` | 읽기/쓰기 |
excluded | boolean | 읽기/쓰기 | 제외된 것을 가져옵니다. |
scene | `Scene | null` | 읽기/쓰기 |
name | string | 읽기/쓰기 | 이름을 가져옵니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
| `constructor(name: string | null)` |
addControlPoint(point: Vector4) | Vector4 점을 기하학의 제어점 리스트에 추가합니다 |
| `createElement(elementType: VertexElementType, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
| `createElementUV(uvMapping: TextureMapping, mappingMode: MappingMode | null, referenceMode: ReferenceMode |
addElement(element: VertexElement) | VertexElement를 기하학의 vertexElements 컬렉션에 추가합니다 |
getElement(elementType: VertexElementType) → `VertexElement | null` |
getVertexElementOfUV(textureMapping: TextureMapping) → `VertexElementUV | null` |
| `removeProperty(_prop: Property | string)→boolean` |
getProperty(_property: string) → any | 이 Geometry 인스턴스에서 getProperty(_property)를 호출합니다. |
setProperty(_property: string, _value: any) | 속성 값을 설정합니다. |
findProperty(_property: string) → `Property | null` |
getBoundingBox() → any | bounding box를 반환합니다. |
getEntityRendererKey() → any | FOSS 에디션에서는 구현되지 않았으며 — 런타임에 예외를 발생시킵니다. entity renderer key를 반환합니다. |
constructor(name: string) | 이 Geometry 인스턴스에서 constructor(name)를 호출합니다. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | 이 Geometry 인스턴스에서 toString을 호출합니다. |