sheet
Generate a 3D surface from a Python function. This is a PythonSCAD-only function that creates parametric surfaces.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
func |
callable | — | A Python function f(i, j) -> [x, y, z] that maps parameter values to 3D coordinates |
imin |
float | — | Minimum value of the first parameter |
imax |
float | — | Maximum value of the first parameter |
jmin |
float | — | Minimum value of the second parameter |
jmax |
float | — | Maximum value of the second parameter |
fs |
float | 1.0 |
Step size for sampling |
iclose |
bool | False |
Close the surface along the i parameter |
jclose |
bool | False |
Close the surface along the j parameter |
Examples: