Intermact API Reference / @intermact/render-three / ThreeObject3DView
Class: ThreeObject3DView
Defined in: object-view-3d.ts:53
Renders one 3D Intermact object (design.md §15.2, §10) into three.js objects and updates them from a RuntimeState3D diff: transform (position + quaternion + scale), opacity, and Create reveal. The provider's GeometryProvider3D.kind selects line / mesh / points.
- Lines reveal by arc length (honoring
revealStart/revealEnd), using each segment's cumulative length so motion is uniform regardless of sample density. - Geometry is hot-rebuilt when
geometryVersionbumps (reactive recompute /replaceObject), mirroring the 2D view. - Point clouds with per-point scalars are colored via a rampColor ramp.
Framework-free: R3F hosts group and calls update per frame.
Constructors
Constructor
new ThreeObject3DView(
object):ThreeObject3DView
Defined in: object-view-3d.ts:76
Parameters
object
IMObject3D
Returns
ThreeObject3DView
Properties
group
readonlygroup:Group<Object3DEventMap>
Defined in: object-view-3d.ts:54
Methods
dispose()
dispose():
void
Defined in: object-view-3d.ts:354
Returns
void
update()
update(
render,_ctx?):void
Defined in: object-view-3d.ts:305
Parameters
render
ObjectRenderState
_ctx?
Returns
void