GLDraw

Lower level utilities for creating WebGL shape geometries.
These are not intended for general consumption.

Source

Methods

(static) drawCone(geo, from, to, radius, color)

Create a cone

Parameters:
NameTypeDescription
geoGeometry
fromPoint
toPoint
radiusnumber
colorColor
Source

(static) drawCylinder(geo, from, to, radius, color, fromCap, toCap)

Create a cylinder

Parameters:
NameTypeDefaultDescription
geoGeometry
fromPoint
toPoint
radiusnumber
colorColor
fromCapCAP0

0 for none, 1 for flat, 2 for round

toCapCAP0

= 0 for none, 1 for flat, 2 for round

Source

(static) drawSphere(geo, pos, radius, color, sphereQuality)

Create a sphere.

Parameters:
NameTypeDescription
geoGeometry
posPoint
radiusnumber
colorColor
sphereQualitynumber

Quality of sphere (default 2, higher increases number of triangles)

Source