Log inGet started
Package

shape.nodebox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

shape.lathe

A surface of revolution: a profile of { radius, y } points revolved around Y.

In a scene: LatheGeometry(points, segments).

InputDefaultMeaning
points{}The profile: a list of { radius, y } pairs.
segments12Segments around the axis.
phiStart0Where the revolution starts, in radians.
phiLength2 piHow far it revolves, in radians.

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.

LatheGeometry({ Vector3(0, 0), Vector3(0.4, 0.1), Vector3(0.3, 0.8), Vector3(0, 1) }, 32)