eulerjs API / @eulerjs/core / geometryOfObject
geometryOfObject()
ts
function geometryOfObject(object):
| BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>
| undefined;Defined in: packages/core/src/geometry.ts:102
Every mesh under object (itself included) as one non-indexed geometry, in the frame of object's world position and orientation. Scale is baked into the vertices, so the result is in world units and can be given to a body, which has no scale. Undefined when there are no meshes.
Parameters
| Parameter | Type |
|---|---|
object | Object3D |
Returns
| BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap> | undefined
