Lower level utilities for creating WebGL shape geometries.
These are not intended for general consumption.
Methods
-
<static> drawCone(geo, from, to, radius, color)
-
Create a cone
Parameters:
Name Type Description geogeometry fromPoint toPoint radiusfloat color$3Dmol.Color -
<static> drawCylinder(geo, from, to, radius, color, fromCap, toCap)
-
Create a cylinder
Parameters:
Name Type Description geogeometry fromPoint toPoint radiusfloat color$3Dmol.Color fromCap$3Dmol.CAP 0 for none, 1 for flat, 2 for round
toCap$3Dmol.CAP = 0 for none, 1 for flat, 2 for round
-
<static> drawSphere(geo, pos, radius, color)
-
Create a sphere.
Parameters:
Name Type Description geogeometry posPoint radiusfloat color$3Dmol.Color