Skip to content

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 ​

ParameterType
prev| ExtrusionPrimitive | undefined
hostExtrusionHost
rects{ object: Object3D; }
rects.objectObject3D
dataPartial<RectData>
liftreadonly LiftedPrimitive[]
meshMeshLazy

Returns ​

| ExtrusionPrimitive | undefined

Released under the MIT License.