Constructor
new Mesh(triangles)
- Source:
- See:
-
- loadOBJ loadBinaryStl,or loadTextSTL to load a model or build your own triangles from scratch
Parameters:
| Name | Type | Description |
|---|---|---|
triangles |
Triangle |
Classes
Methods
fitInside(box, anchor)
Parameters:
| Name | Type | Description |
|---|---|---|
box |
Box | |
anchor |
Vector |
moveTo(position, anchor)
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Vector | |
anchor |
Vector |
transform(matrix)
Parameters:
| Name | Type | Description |
|---|---|---|
matrix |
Matrix |
unitCube()
voxelize(size)
Parameters:
| Name | Type | Description |
|---|---|---|
size |
Number | Size of cube example 1/36 |