Log inGet started
Package

quickGeometry.package

Newest version

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 }).

InputDefaultMeaning
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.
depth1How far it extrudes along +Z.
curveSegments12Segments 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 })