Optionalcolours: string | string[]Optionalsize: numberOptionalopacity: numberOptionalupdatable: booleanOptionalhidden: booleanOptionaldrawTwoSided: booleanOptionalbackFaceColour: stringOptionalbackFaceOpacity: numberOptionalcolorMapStrategy: colorMapStrategyEnumOptionalarrowSize: numberOptionalarrowAngle: numberOptionalcoloursOne hex color for everything drawn, or a list with one per point, line, polyline, surface or JSCAD mesh; a polyline or JSCAD mesh with its own color keeps it.
OptionalcolorHow a colours list shorter than what is drawn is spread: first color for all, last for the
rest, repeating, or back and forth. JSCAD meshes and curves ignore it.
OptionalsizeThe diameter of each point in model units and the width of lines, a hundredth of it in model units. Lines drawn without options get 2.
OptionalopacityThe opacity of points, lines, surfaces and JSCAD meshes, from 0 for invisible to 1 for opaque.
OptionalupdatableWhen true, handing the drawn object back as babylonMesh changes it in place instead of
drawing a new one.
OptionalhiddenWhen true, surfaces and JSCAD meshes are drawn but not shown until made visible; points and lines ignore it.
OptionaldrawWhen true, the back of each surface and JSCAD mesh is drawn in backFaceColour, which shows
which way it faces.
OptionalbackThe color of the back of surfaces and JSCAD meshes, as a hex string; used with
drawTwoSided.
OptionalbackHow opaque the back of surfaces and JSCAD meshes is, from 0 for invisible to 1 for opaque;
used with drawTwoSided.
OptionalarrowThe length of the arrow head at the end of each line and polyline, showing its direction, in model units; 0 draws none.
OptionalarrowThe angle, in degrees, between each line of an arrow head and the line it ends; larger spreads the head wider.
Built by
draw.optionsSimplefor points, lines, polylines, JSCAD paths and meshes, and Verb curves and surfaces: colors, size, opacity, back faces and arrow heads. Drawn with no options, lines, polylines and curves getsize2 in magenta.