Geometry
ภาพรวม
Geometry เป็นคลาสใน Aspose.3D FOSS สําหรับ Typescript. ทายาทจาก: Entity.
Geometry.constructor สร้าง Geometry ด้วยชื่อที่เลือกได้.
หมวดนี้ให้ 13 วิธีในการทํางานกับวัตถุ Geometry ในโปรแกรม Typescript. วิธีการที่ใช้ได้แก่: addControlPoint, addElement, constructor, createElement, createElementUV, findProperty, getBoundingBox, getElement, getEntityRendererKey, getProperty, getVertexElementOfUV, removeProperty,และ 1 วิธีการเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Typescript ได้หลังจากติดตั้งแพ็คเกจ Aspose.3D FOSS for Typscript. คุณสมบัติ: castShadows, controlPoints, receiveShadows, vertexElements, visible.
คําอธิบาย
Geometry เป็นคลาสในห้องสมุด FOSS ของ Aspose.3D สําหรับ TypeScript ที่เปิดเผยวิธี 12 และคุณสมบัติ 5 เพื่อการใช้งานแบบโปรแกรม มันขยายไปยัง Entity, มีฟังก์ชันที่แบ่งจากแบบแม่ของมัน.
ความสามารถหลัก ประกอบด้วย: boolean; boolean; boolean.การปฏิบัติงานเหล่านี้ทําให้ผู้พัฒนาสามารถรวมฟังก์ชันทางภูมิศาสตร์ได้โดยตรงกับแอปพลิเคชั่น TypeScript.
กลุ่มนี้ยังให้บริการที่ vertexElements property (ได้ตัวส่วนของ vertex).
อินสแตนส์ถูกสร้างผ่านคอนструкเตอร์เดียว ที่เริ่มต้นวัตถุด้วยค่าตั้งค่า.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
visible | boolean | อ่าน/เขียน | รับค่า visible. |
castShadows | boolean | อ่าน/เขียน | รับเงาที่ถูกสร้าง. |
receiveShadows | boolean | อ่าน/เขียน | รับค่า receive shadows. |
vertexElements | VertexElement[] | อ่าน | รับค่าองค์ประกอบของเวอร์เท็กซ์. |
controlPoints | Vector4[] | อ่าน/เขียน | รับจุดควบคุม. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
| `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 | |
setProperty(_property: string, _value: any) | ตั้งค่าค่า property. |
findProperty(_property: string) → `Property | null` |
getBoundingBox() → any | กลับกล่องกําหนด. |
getEntityRendererKey() → any | ไม่ถูกนําไปใช้ใน FOSS edition throws ในเวลาทํางาน. ส่งรหัสตัวแทนให้กลับ. |