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คําอธิบาย
visiblebooleanอ่าน/เขียนรับค่า visible.
castShadowsbooleanอ่าน/เขียนรับเงาที่ถูกสร้าง.
receiveShadowsbooleanอ่าน/เขียนรับค่า receive shadows.
vertexElementsVertexElement[]อ่านรับค่าองค์ประกอบของเวอร์เท็กซ์.
controlPointsVector4[]อ่าน/เขียนรับจุดควบคุม.

วิธีการ

Signatureคําอธิบาย
`constructor(name: stringnull)`
addControlPoint(point: Vector4)เพิ่มจุด Vector4 ไปยังรายการของ จุดควบคุมทางภูมิศาสตร์
`createElement(elementType: VertexElementType, mappingMode: MappingModenull, referenceMode: ReferenceMode
`createElementUV(uvMapping: TextureMapping, mappingMode: MappingModenull, referenceMode: ReferenceMode
addElement(element: VertexElement)เพิ่ม VertexElement ไปยัง vertexElements ของกิณฑิต
getElement(elementType: VertexElementType) → `VertexElementnull`
getVertexElementOfUV(textureMapping: TextureMapping) → `VertexElementUVnull`
`removeProperty(_prop: Propertystring)boolean`
getProperty(_property: string)any
setProperty(_property: string, _value: any)ตั้งค่าค่า property.
findProperty(_property: string) → `Propertynull`
getBoundingBox()anyกลับกล่องกําหนด.
getEntityRendererKey()anyไม่ถูกนําไปใช้ใน FOSS edition throws ในเวลาทํางาน. ส่งรหัสตัวแทนให้กลับ.

ดูเช่นกัน

 ภาษาไทย