quickGeometry.package
- ..
- .metadata118 B
- README.md749 B
- extrude.module
This package holds more than this page lists. See all of its files in its world.
README.md
shape.extrude
A 2D shape path extruded along +Z with flat caps.
In a scene: ExtrudeGeometry(shape, { depth, curveSegments }).
| Input | Default | Meaning |
|---|---|---|
shape | {} | The outline as path commands: { 'moveTo', x, y }, { 'lineTo', x, y }, { 'arc', cx, cy, r, a0, a1, clockwise } and the rest. A Shape writes them. |
depth | 1 | How far it extrudes along +Z. |
curveSegments | 12 | Segments used for curved path commands. |
The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.
ExtrudeGeometry(RoundedRectShape(1, 0.6, 0.1), { depth = 0.2 })