Mesh Operations
explode
Explode a solid outward by a vector, separating its components.
Syntax:
Parameters:
| Parameter | Type | Description |
|---|---|---|
obj |
solid | The object to explode |
v |
[x, y, z] or number |
Explosion vector or scalar |
Examples:
oversample
Subdivide mesh edges for finer geometric detail. This increases the number of triangles in the mesh.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to oversample |
size |
double | — | maximal edge lengthl |
texture |
string | — | path to png filel |
projection |
string | — | Projection type |
texturewidth |
double | — | width of single canvas on model |
textureheigh |
double | — | height of single danvas on model |
texturedepth |
double | — | texture depth for maximal png color |
Valid projections are none, cylindrical, spherical, triplanar, cubic, planarx, planary, planarz
Examples:
debug
Visualize mesh faces for debugging purposes. Colors faces to help identify geometry issues.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to debug |
faces |
bool | False |
Show individual faces |
Examples:
repair
Attempt to make a solid watertight (manifold). This is useful for fixing imported meshes that have holes, self-intersections, or other defects.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
obj |
solid | — | The object to repair |
color |
bool | False |
Preserve color information |
Examples:
separate
Split a solid into its disconnected components. Returns a list of separate solid objects.
Syntax:
Parameters:
| Parameter | Type | Description |
|---|---|---|
obj |
solid | The object to split |
Returns: A list of separate solid objects.
Examples: