Properties:
color
(type: color) — default: whitecoords
(type: coord[]) — array of cylinders’ centersedgeForm
(type: object) — default: {}
, object with the following properties:
color
(type: color) — edges’ color, default: blackshowEdges
(type: bool) — default: true
radius
(type: number) — default: 1
opacity
(type: number) — default: 1
Draw cylinders from the even-numbered positions to the odd ones.
{
"type": "cone",
"color": [1, 1, 1],
"coords": [
[[0, 0, 0]],
[[1, 1, 1]]
],
"edgeForm": { "showEdges": false }
}
{
"type": "cone",
"color": [1, 1, 1],
"coords": [
[[-1, -1, -1]], // first cone begin
[[0, 0, 0]], // first cone end
[[1, 1, 1]], // second cone begin
[[0, 0, 0]] // second cone end
],
"edgeForm": { "color": [1, 0, 0] }
}