Specification for adding custom shape.
- Source
Extends
Members
callback :Func
function to call on click
- Func
- Inherited From
- Source
clickable :boolean
if true, user can click on object to trigger callback
- boolean
- Inherited From
- Source
color :ColorSpec|Array
Either a single color for the whole object or an array specifying the color at each vertex (CustomShapeSpec
).
- ColorSpec |
Array
- Inherited From
- Source
contextMenuEnabled :boolean
if true, user can right-click or long press to trigger callback
- boolean
- Inherited From
- Source
faceArr :Array
List of triangles to build the custom shape. Each triangle is defined by the indices of 3 vertices in vertexArr, so the array length should be 3 times the number of faces.
- Array
- Source
frame :number
if set, only display in this frame of an animation
- number
- Inherited From
- Source
hidden :boolean
if true, do not display object
- boolean
- Inherited From
- Source
hover_callback :Func
hover callback
- Func
- Inherited From
- Source
hoverable :boolean
if true, user can hover on object to trigger callback
- boolean
- Inherited From
- Source
linewidth :number
width of line for wireframe rendering No longer supported by most browsers
- number
- Inherited From
- Source
normalArr :Array
List of normal vectors for each vertex
- Array
- Source
opacity :number
transparency, between 0 (invisible) and 1 (opaque)
- number
- Inherited From
- Source
unhover_callback :Func
unhover callback
- Func
- Inherited From
- Source
vertexArr :Array
List of vertex positions
- Array
- Source
wireframe :boolean
draw as wireframe, not surface
- boolean
- Inherited From
- Source