QuadricPrimitive

Base class for quadric primitives, such as sphere and torus.

Constructor

new L3D.QuadricPrimitive()

Properties

Quadrics only have a single point, the center of the quadric.

Methods

scale(s)

Apply a scale to the quadric transform.

Parameters
s Vector3

transformBy(geom, matrix)

If the primitive requires any additional transformation beyond just transforming the points, the transformation can be applied here.

Parameters
geom Geometry
matrix Matrix4