Namespace: GLDraw

$3Dmol. GLDraw

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
geo geometry
from Point
to Point
radius float
color $3Dmol.Color

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

Create a cylinder

Parameters:
Name Type Description
geo geometry
from Point
to Point
radius float
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
geo geometry
pos Point
radius float
color $3Dmol.Color
3Dmol.js © 2019
Documentation generated by JSDoc 3.6.7 on Sat Jan 22 2022 11:52:23 GMT-0500 (Eastern Standard Time) using the DocStrap template.