Renders geometry into the scene. drawAnyAsync accepts almost anything the platform
produces - OCCT shapes, JSCAD and Manifold solids, meshes, points, lines, polylines, curves,
surfaces and tag text - works out what it was given, and creates the renderer objects for it.
Every draw call returns the created object so you can keep it, update it on the next frame by
passing it back in, or dispose it. Options control colour, opacity, size and whether the result
is pickable. This is the bridge between the kernel, which knows nothing about rendering, and the
engine, which knows nothing about CAD.
Renders geometry into the scene. drawAnyAsync accepts almost anything the platform produces - OCCT shapes, JSCAD and Manifold solids, meshes, points, lines, polylines, curves, surfaces and tag text - works out what it was given, and creates the renderer objects for it. Every draw call returns the created object so you can keep it, update it on the next frame by passing it back in, or dispose it. Options control colour, opacity, size and whether the result is pickable. This is the bridge between the kernel, which knows nothing about rendering, and the engine, which knows nothing about CAD.