Methods
Shape
addShape
adds a shape to the scene example usage box shape const boxshape = { extents { x 0 5, y 0 5, z 0 5 }, position { x 1 0, y 1 0, z 1 0 }, type "box" }; const shapeid = viewer3d addshape(boxshape); circle shape const circleshape = { position { x 1 0, y 1 0, z 1 0 }, radius 1 0, type "circle" }; const shapeid = viewer3d addshape(circleshape); sphere shape const sphereshape = { position { x 1 0, y 1 0, z 1 0 }, radius 1 0, type "sphere" }; const shapeid = viewer3d addshape(sphereshape); parameters shape shape to add true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type box shape true 165,165,165,166left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type onclick function called when user clicks the box true 661left unhandled content type left unhandled content type circle shape true 165,165,165,166left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type onclick function called when user clicks the circle true 661left unhandled content type left unhandled content type sphere shape true 165,165,165,166left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type onclick function called when user clicks the sphere true 661left unhandled content type left unhandled content type return value id of the shape true 661left unhandled content type left unhandled content type