Constructor
new DefMesh(paramsopt, pointsopt, normalsopt, uvsopt)
Default values
Points are obligatory for a mesh, either by default values or dependencies, but normals and uvs are optional. If they are given, they need to have the same size as the points
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
|
points |
Array.<THREE.Vector3> |
<optional> |
The vertices |
normals |
Array.<THREE.Vector3> |
<optional> |
The normals |
uvs |
Array.<THREE.Vector3> |
<optional> |
The uvs |
- Source:
Methods
compute() → {Object}
Computes the mesh object
- Source:
Returns:
A mesh of type TYPE_MESH
- Type
- Object
(static) fromTriangleFan(pointsopt) → {CreateInfo}
Computes a triangle fan mesh.
A fan constructs consecutive triangles sharing the first point.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
points |
Array.<(Number|Object)> |
<optional> |
Either the indices or values of TYPE_POINT3. The points |
- Source:
Returns:
The creation info
- Type
- CreateInfo