Geometry

ConvexGeometry

ConvexGeometry can be used to generate a convex hull for a given array of 3D points. The average time complexity for this task is considered to be O(nlog(n)).

Example

geometry / convex

var geometry = new v3d.ConvexGeometry(points); var material = new v3d.MeshBasicMaterial({color: 0x00ff00}); var mesh = new v3d.Mesh(geometry, material); scene.add(mesh);

Constructor

ConvexGeometry(points : Array)

points — Array of Vector3s that the resulting convex hull will contain.

Source

For more info on how to obtain the source code of this module see this page.