triangulation

Methods

triangulate(parameters) → {Object}

Triangulates an entity (Solid, Face, Wire, or Edge) into a three.js compatible mesh.

Parameters:
NameTypeDescription
parametersObject

Triangulation parameters.

Properties
NameTypeAttributesDefaultDescription
entitySolid | Face | Wire | Edge

The entity to triangulate.

linearTolerancenumber<optional>
0.1

The linear tolerance for triangulation (default is 0.1).

angularTolerancenumber<optional>
0.1

The angular tolerance for triangulation (default is 0.1).

Returns:

An object containing positions, normals, and indexes for the mesh.

Type: 
Object