Function: syncExtrudedRects()
ts
function syncExtrudedRects(prev, host, rects, data, lift, mesh): ExtrusionPrimitive | undefined;Experimental
Draw a trace's rects extruded when it has depth (plan E9.10; see extrudeRects in extrusion-loader.ts, which calls this once the chunk has loaded): creates, updates or (for a flat trace) removes the extrusion primitive and returns it. The flat rects are hidden while extruded; lift (labels, error bars) moves to the front faces and out of the 2.5D view's clipping. rects' data gives the shapes and colors (fill, opacity); the trace gives depth (widths along the position axis, orientation), bevel and material.
Parameters
| Parameter | Type |
|---|---|
prev | | ExtrusionPrimitive | undefined |
host | ExtrusionHost |
rects | { object: Object3D; } |
rects.object | Object3D |
data | Partial<RectData> |
lift | readonly LiftedPrimitive[] |
mesh | MeshLazy |
Returns
| ExtrusionPrimitive | undefined