curve nodes
30 node types in the curve category.
- bezier
- boolean2d
- carve
- circle
- convert_curve
- curve
- curve_attribs
- ends
- extrude
- fill
- fillet_curve
- line
- lines_plan
- loft
- nurbs
- offset_curve
- offset_curve_3d
- parametric_curve
- polywire
- project_curve
- resample
- revolve
- shape2d
- spiral
- spline_fit
- straight_skeleton
- sweep
- trace_image
- triangulate2d
- voronoi2d
bezier#
aliases: bezier_curve beziercurve
Bezier curve prim from control points (CVs) and an order; evaluates exactly wherever it is used.
Houdini Curve SOP in Bezier mode (a BezierCurve prim). Segments of order CVs share their end CVs: 7 CVs of order 4 make two cubic segments (CVs 0-3 and 3-6); a closed curve wraps back to CV 0 (segments × (order-1) CVs). The CVs are ordinary points: transform, deformers, wrangles and attribute nodes move or edit them, and point attributes (Cd, width, Pw weights) blend along the curve. Nodes that need polylines get the evaluated curve automatically (with a note); convert_curve/resample choose the resolution. With an input, each polyline/polygon (or, without prims, all points in order) becomes a Bezier prim on those points.
Inputs
| # | name | description |
|---|---|---|
| 0 | points | optional: polylines/polygons (or ordered points) whose points become CVs (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
points | json | [[0,0,0],[0.6,1.2,0],[1.6,1.2,0],[2.2,0,0],[2.8,-1.2,0],[3.8,-1.2,0],[4.4,0,0]] | CVs [[x,y,z], …] when no input is connected (2-number entries → [x, 0, z]) aliases: cvs positions pts | |
order | int | 4 | 2..11 | order = degree + 1 (4 = cubic, 3 = quadratic, 2 = linear) |
closed | bool | false | closed curve (wraps back to the first CV; regular with a multiple of order-1 CVs) | |
weights | json | [] | rational weight per CV (point attribute Pw; [] = all 1); larger pulls the curve toward the CV |
Writes: Bezier prims (prim spline_order; point Pw with weights)
Example
{
"type": "bezier",
"params": {
"points": [[0, 0, 0], [1, 2, 0], [3, 2, 0], [4, 0, 0]],
"order": 4
}
}
boolean2d#
aliases: curve_boolean shape_boolean
2D boolean of closed shapes in a plane (union / subtract / intersect / xor).
Within each input, a shape lying wholly inside another is a hole in it (a merged plate and circle make a plate with a hole), a shape inside that hole an island, and shapes that only overlap are joined. Faces with holes come out as a few polygons that share edges.
Inputs
| # | name | description |
|---|---|---|
| 0 | a | shapes A |
| 1 | b | shapes B (optional: union of A with itself) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
operation | enum | "union" | boolean op options: union subtract intersect xoraliases: op mode | |
output | enum | "faces" | faces = filled, holes cut (a face with holes as a few polygons sharing edges); outlines = closed contour polygons options: outlines faces | |
plane | enum | "auto" | shape plane options: auto xz xy yz |
Example
{
"nodes": {
"plate": {
"type": "shape2d",
"params": {
"shape": "rounded_rect",
"size": [3, 1.5],
"corner_radius": 0.2
}
},
"hole": { "type": "circle", "params": { "radius": 0.4, "segments": 32 } },
"cut": {
"type": "boolean2d",
"in": ["plate", "hole"],
"params": { "operation": "subtract" }
}
},
"output": "cut"
}
Used in the examples market_street, town_from_lots.
carve#
Trim curves to a portion of their length (u range 0..1).
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines (Bezier/NURBS curves are evaluated first) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
start | float | 0 | 0..1 | start u (0..1 of arc length) |
end | float | 0.5 | 0..1 | end u |
Example
{
"nodes": {
"path": { "type": "spiral", "params": { "turns": 2 } },
"part": {
"type": "carve",
"in": ["path"],
"params": { "start": 0.25, "end": 0.75 }
}
},
"output": "part"
}
circle#
aliases: arc ellipse
Circle / ellipse / arc. Full circles are closed polygons (faces); arcs or open=true give polylines.
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
radius | float | 1 | radius aliases: rad r | |
scale | vec2 | [1,1] | ellipse scale along the plane axes | |
segments | int | 32 | 3..1000000 | number of segments aliases: divisions divs points |
plane | enum | "xz" | orientation plane (xz = ground, facing +Y; xy = facing +Z; yz = facing +X) options: xz xy yz | |
center | vec3 | [0,0,0] | center position aliases: t translate position pos origin | |
arc | vec2 | [0,360] | begin/end angle in degrees (anything < 360 makes an open arc) | |
open | bool | false | output an open polyline instead of a closed polygon face |
Example
{ "type": "circle", "params": { "radius": 2, "segments": 48, "arc": [0, 180] } }
Used in the example market_street.
convert_curve#
aliases: convert curve_convert
Convert curves between polyline, Bezier and NURBS (exact between spline types; fit to pass through points).
Houdini Convert SOP for curves. Spline → polyline evaluates the curve (adaptive by tolerance, or segments per span); closed splines become closed polygons. Bezier ↔ NURBS is exact (multiple knots / blossoming; a short last Bezier segment is degree-elevated). Polyline → spline uses the points as CVs, or with fit passes through them (NURBS: global interpolation; Bezier: smooth cubic segments). Attributes follow (CV blends). Use convert to polyline before nodes that need a specific resolution; others convert automatically.
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines, polygons, Bezier or NURBS curves |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
to | enum | "polyline" | target type options: polyline bezier nurbsaliases: type target | |
order | int | 4 | 2..11 | order of curves made from polylines (fit Bezier is always cubic) |
fit | bool | false | polylines → spline: pass through the points instead of using them as CVs aliases: interpolate | |
parameterization | enum | "centripetal" | knots of NURBS made from polylines (parameterisation: uniform (even), chord (follows point distances), centripetal (√distances; best for sharp turns)) options: uniform chord centripetal | |
segments | int | 0 | 0..10000 | to polyline: segments per knot span / Bezier segment; 0 = adaptive (tolerance) aliases: divisions lod |
tolerance | float | 0 | 0.. | to polyline: largest chord-to-curve distance; 0 = 1/2000 of each curve's CV box diagonal |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" |
Example
{ "type": "convert_curve", "params": { "to": "polyline", "tolerance": 0.001 } }
curve#
aliases: polyline path spline
Curve through explicit points; optional Catmull-Rom smoothing or rounded corners; open or closed.
corner_radius rounds the corners with arcs tangent to both edges: one number for every corner, or a list with one radius per point (0 keeps that corner sharp; the ends of an open curve are never rounded). Radii that do not fit between neighbouring corners shrink. A point that is not three numbers (NaN, null, a missing coordinate) is an error that names it.
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
points | json | [[0,0,0],[1,0.5,0],[2,0,0]] | list of [x,y,z] (2-number entries → [x, 0, z] on the ground) aliases: positions pts | |
closed | bool | false | close the curve (makes a polygon) | |
smooth | bool | false | Catmull-Rom interpolate through the points (not with corner_radius) | |
subdivisions | int | 8 | 1..10000 | smooth: samples per segment |
corner_radius | json | 0 | round the corners: a radius for every corner, or a list with one per point (0 = sharp) aliases: fillet radius radii corner_radii | |
corner_segments | int | 6 | 1..10000 | segments per rounded corner |
Writes: point group fillet (the points of rounded corners)
Example
{
"type": "curve",
"params": {
"points": [[0, 0, 0], [2, 0, 1], [4, 0, -1], [6, 0, 0]],
"smooth": true,
"subdivisions": 12
}
}
Used in the examples asset_cleanup, machined_bracket, rusty_drum.
curve_attribs#
aliases: curveu curve_attributes orient_along_curve orientalongcurve
Write curveu, arclength, tangent, frames (N/up), curvature, segment index and ramps along curves.
Houdini Orient Along Curve plus the measure/attribute parts of Resample. Per point of each curve: curveu (0..1 by arc length), arclength (distance from the start), tangentu (unit tangent), with frame: N = tangent and up = rotation-minimising up (what copy_to_points needs to align copies along the curve; sweep reads up), curvature (1/radius; polylines: circle through the point and its neighbours), segment (index of the edge that starts at the point; splines: knot span / Bezier segment). ramp_attrib evaluates ramp at curveu into a float attribute (e.g. width for polywire, pscale for copies). On Bezier/NURBS prims the values are written on the CVs, evaluated on the curve at each CV's natural parameter (Greville abscissa).
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines, polygons, Bezier or NURBS curves |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
curveu | bool | true | write point curveu (0..1 by arc length) | |
arclength | bool | true | write point arclength (distance from the curve start) aliases: length | |
tangent | bool | true | write point tangentu (unit tangent) | |
frame | bool | false | write point N (= tangent) and up (rotation-minimising), for copy_to_points/sweep aliases: orient frames | |
curvature | bool | false | write point curvature (1/radius) | |
segment | bool | false | write point int segment (edge / span index) | |
up | vec3 | [0,1,0] | initial up of the rotation-minimising frames (an input point attribute up steers them per point instead) | |
ramp_attrib | string | "" | float point attribute to fill with ramp(curveu), e.g. "width" ("" = none) aliases: attrib name | |
ramp | ramp | [[0,1],[1,1]] | value along the curve (u 0..1) for ramp_attrib | |
ramp_scale | float | 1 | multiplier of the ramp values | |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" |
Writes: point curveu, arclength, tangentu, N + up (frame), curvature, segment, ramp_attrib
Example
{
"type": "curve_attribs",
"params": {
"frame": true,
"ramp_attrib": "width",
"ramp": [[0, 0.3], [1, 0.05]]
}
}
Used in the example lsystem_tree.
ends#
aliases: unroll
Convert between closed polygons and open polylines (unroll outlines / close curves).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | polygons or polylines (Bezier/NURBS curves are evaluated first) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "unroll" | unroll: polygon → polyline outline (ends meet); close: polyline → polygon; open: polygon → polyline (drops closing edge) options: unroll close open | |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" |
Example
{
"nodes": {
"ring": { "type": "circle", "params": { "radius": 1, "segments": 32 } },
"outline": {
"type": "ends",
"in": ["ring"],
"params": { "mode": "unroll" }
}
},
"output": "outline"
}
Used in the example town_from_lots.
extrude#
aliases: linear_extrude extrude2d
Extrude flat closed shapes into solids (holes supported). Quad sides + n-gon caps; groups top/bottom/side.
A shape that lies inside another shape of the same input is a hole, and a shape inside a hole is an island again; which way each outline winds does not matter. So a plate with round openings needs no boolean: merge a shape2d rect and circles placed inside it (all in one plane) and extrude the merge in one node, and the circles come out as holes through the solid. Shapes extruded in separate nodes and merged afterwards stay separate solids. Input attributes carry over as polyextrude carries them: caps and side walls take the attributes and groups of the shape they were made from (side walls of a hole take those of the hole), new points those of the point they came from, corners those of their source corner; N is dropped. A vertex uv stays on the caps, and side walls get their own: u once around the outline by length, v up the extrusion, both 0 to 1. scale_top [0, 0] (a pyramid) carries the same attributes and groups, except vertex uv. The apex point copies the first point of its source outline.
Inputs
| # | name | description |
|---|---|---|
| 0 | shapes | closed polygons lying in a plane (e.g. shape2d, circle, text) |
| 1 | sheet | trim sheet for trim_band (a trim_sheet node; optional: else the one the shapes carry) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
height | float | 1 | extrusion distance along the plane normal: plane xz extrudes along +Y, xy along +Z, yz along +X aliases: depth distance h | |
divisions | int | 1 | 1..10000 | segments along the extrusion |
twist | float | 0 | twist in degrees (about each shape centroid) | |
scale_top | vec2 | [1,1] | scale of the top cap (taper); [0,0] = pyramid | |
center | bool | false | extrude symmetrically about the shape plane | |
plane | enum | "auto" | plane the shapes lie in, which sets the extrusion direction: xz extrudes along +Y, xy along +Z, yz along +X (auto = the flattest axis) options: auto xz xy yz | |
caps | bool | true | add top/bottom caps | |
trim_band | string | "" | trim sheet band (or rectangle) to map onto ("" = the node's own uv): u runs along the path at the band's period, v fills the band across the height (its divisions are the segments: faces gives one course per division). A comma list ("stone, coping") gives one band per segment of the height (its divisions are the segments: faces gives one course per division), cycled. "sheet:band" picks a sheet when several are carried. Help topic trim_sheets. aliases: trim | |
trim_around | enum | "wrap" | wrap: consecutive segments of the height (its divisions are the segments: faces gives one course per division) on the same band share it by length (one band wrapped round); faces: every segment fills the whole band options: wrap faces | |
trim_cap | string | "" | band for the caps at real size ("" = the sheet's first band of kind cap, else the first trim_band) | |
trim_offset | float | 0 | shift u along the path, metres (staggers the joints of pieces side by side) |
Writes: prim groups top, bottom, side; the attributes and groups of the input (see above); with trim_band: vertex uv, prim trim_band, trim_sheet and detail trim_sheets
Example
{
"nodes": {
"star": {
"type": "shape2d",
"params": {
"shape": "star",
"radius": 1,
"inner_radius": 0.5,
"sides": 5
}
},
"solid": {
"type": "extrude",
"in": ["star"],
"params": { "height": 0.3, "scale_top": [0.8, 0.8] }
}
},
"output": "solid"
}
Used in the examples cloth_drape, machined_bracket, market_street, scifi_panel.
fill#
aliases: fill_curves fill_outlines
Fill closed outlines into faces, cutting holes (even-odd), e.g. text outlines or nested shapes.
Inputs
| # | name | description |
|---|---|---|
| 0 | outlines | closed polygons/polylines in a plane |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
rule | enum | "EvenOdd" | fill rule for overlapping contours options: EvenOdd NonZero | |
plane | enum | "auto" | plane options: auto xz xy yz |
Example
{
"nodes": {
"glyph": { "type": "text", "params": { "text": "B", "output": "outlines" } },
"face": { "type": "fill", "in": ["glyph"] }
},
"output": "face"
}
Used in the example image_cutouts.
fillet_curve#
aliases: curve_fillet polyline_fillet polyfillet
Round, chamfer or Bezier-blend the corners of polylines and polygons (3D, any plane per corner).
Like Houdini's PolyPath/fillet tools for curves (Fillet SOP is for surfaces). Each corner whose turn exceeds angle_min (and whose point is in group) is replaced by an arc of radius tangent to both edges (round), a straight cut at the same tangent points (chamfer) or a quadratic Bezier through the corner's handle (bezier). clamp shrinks radii that do not fit between neighbouring corners. Corners of open curves at their ends are never filleted. Attributes are blended from the corner and its neighbours; new points join point group "fillet". Bezier/NURBS input is converted to polylines first (a smooth curve has no corners).
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines or polygons |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
radius | float | 0.2 | 0.. | fillet radius (chamfer/bezier: the same tangent points) aliases: rad r |
type | enum | "round" | corner shape options: round chamfer bezieraliases: shape mode | |
segments | int | 6 | 1..10000 | segments per round/bezier corner aliases: divisions |
angle_min | float | 1 | 0..180 | leave corners that turn less than this (degrees) |
group | group (point) | "" | corner points to fillet ("" = all), e.g. "@P.y>0", "0-4" | |
clamp | bool | true | shrink radii that do not fit between neighbouring corners | |
radius_attrib | string | "" | optional point float attribute multiplying the radius per corner |
Writes: point group fillet (new corner points)
Example
{ "type": "fillet_curve", "params": { "radius": 0.5, "segments": 8 } }
Used in the example rail_along_curve.
line#
Straight polyline from an origin along a direction.
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
origin | vec3 | [0,0,0] | start point aliases: start center | |
direction | vec3 | [0,1,0] | direction (normalised) aliases: dir | |
length | float | 1 | length aliases: dist | |
points | int | 2 | 2..1000000 | number of points aliases: count npts |
Example
{
"type": "line",
"params": { "direction": [1, 0, 0], "length": 5, "points": 11 }
}
Used in the examples corridor_panels, market_street, stair_flight.
lines_plan#
aliases: cage_from_lines lines_cage skin_lines
Build a cage from the long lines of a body so the smoothed surface passes through them.
Draw feature lines along the length of the body, with +Z toward the front by default. Give the lines in order around a cross-section. Use an object such as {"keel":[[0,0,-0.5],[0,0,0.5]],"belt":[[0.15,0.1,-0.5],[0.2,0.1,0.5]]} with other lines around the section, or connect named open curves. Four to seven well-placed points per line read smoother than many, and cv helps when the numbers are rough. Use round for noses, tips and domes, and point only for a sharp tip. Place an intake, lamp or outlet face with stations and rows_between, select it with groups, and inset and push it in with poly_extrude before subdivide to avoid jagged or cross-shaped openings. Count a quad mesh’s triangles with nvertices(0) - 2 * nprims(0) and keep the output in quads. Match fit_levels to the levels in subdivide so the surface passes through the sampled lines.
Inputs
| # | name | description |
|---|---|---|
| 0 | lines | open curves in section order with prim string name (defaults to line0, line1 and so on) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
lines | json | {"keel":[[0,-0.067,-0.5],[0,-0.128,-0.29],[0,-0.14,0],[0,-0.122,0.29],[0,-0.051,0.5]],"sill":[[0.059,-0.045,-0.5],[0.121,-0.091,-0.29],[0.137,-0.103,0],[0.117,-0.086,0.29],[0.053,-0.036,0.5]],"belt":[[0.085,0,-0.5],[0.183,0,-0.29],[0.203,0,0],[0.172,0,0.29],[0.075,0,0.5]],"shoulder":[[0.059,0.054,-0.5],[0.127,0.113,-0.29],[0.145,0.132,0],[0.125,0.105,0.29],[0.05,0.046,0.5]],"roof":[[0,0.075,-0.5],[0,0.149,-0.29],[0,0.177,0],[0,0.147,0.29],[0,0.062,0.5]]} | feature line names and [x,y,z] points in metres in section order. A small pod is used when no curves are connected | |
axis | enum | "z" | length axis for station positions in metres. Defaults to z, with the front toward +z. Use mirror none along x options: x y z | |
interpolation | enum | "smooth" | Smooth passes a shape-preserving cubic through the points. Linear joins the points with straight segments. CV uses the points as controls for a clamped uniform cubic B-spline that passes through both endpoints. options: smooth linear cv | |
stations | json | 12 | count or strictly ascending axis positions in metres. Defaults to 12 evenly spaced stations across the shared line range | |
mirror | enum | "x" | x mirrors the positive x half and shares centre lines by default. Use none for a full section options: x none | |
closed | bool | true | join the section into a loop by default. For an open mirrored section, leave at least one end line off x = 0 | |
rows_between | json | 0 | extra rows per line gap, as a count or a list of counts. Defaults to zero. Closed sections without mirroring include the last-to-first gap | |
ends | json | "cap" | open, cap, round, point, or a pair in ascending station order. Cap keeps a flat grid inside a sharp rim. Round fits a dome to the tip where the lines meet. Point makes a sharp tip | |
creases | json | {} | line names with subdivision sharpness weights or [axis position in metres, weight] keys. Defaults to no creases. Keys interpolate linearly and are zero outside their range | |
groups | json | {} | named face selections with between: [line, line] and optional from and to in metres, snapped to the nearest stations. Repeat a boundary line name to select the strip across its mirror. Unmirrored closed sections read between in section order | |
fit_levels | int | 2 | 0..4 | number of subdivision levels to fit, two by default. Zero puts cage points directly on the sampled sections |
Writes: point row (int), line (string), station (int); prim row and station (int), prim groups sides, caps and groups; edge groups line_<name>; vertex uv and creaseweight (float); detail fit_error (float, metres)
Example
{
"nodes": {
"cage": {
"type": "lines_plan",
"params": {
"lines": {
"keel": [
[0, 0.004, -0.5],
[0, -0.058, -0.478],
[0, -0.128, -0.29],
[0, -0.14, 0],
[0, -0.122, 0.29],
[0, -0.044, 0.478],
[0, 0.006, 0.5]
],
"sill": [
[0, 0.004, -0.5],
[0.052, -0.039, -0.478],
[0.121, -0.091, -0.29],
[0.137, -0.103, 0],
[0.117, -0.086, 0.29],
[0.047, -0.031, 0.478],
[0, 0.006, 0.5]
],
"belt": [
[0, 0.004, -0.5],
[0.075, 0, -0.478],
[0.183, 0, -0.29],
[0.203, 0, 0],
[0.172, 0, 0.29],
[0.066, 0.001, 0.478],
[0, 0.006, 0.5]
],
"shoulder": [
[0, 0.004, -0.5],
[0.052, 0.048, -0.478],
[0.127, 0.113, -0.29],
[0.145, 0.132, 0],
[0.125, 0.105, 0.29],
[0.044, 0.041, 0.478],
[0, 0.006, 0.5]
],
"roof": [
[0, 0.004, -0.5],
[0, 0.066, -0.478],
[0, 0.149, -0.29],
[0, 0.177, 0],
[0, 0.147, 0.29],
[0, 0.055, 0.478],
[0, 0.006, 0.5]
]
},
"ends": "round",
"stations": [
-0.5, -0.478, -0.429, -0.306, -0.184, -0.061, 0.061, 0.184, 0.306,
0.429, 0.478, 0.5
],
"creases": {
"belt": [[-0.38, 0], [-0.14, 1.6], [0.14, 1.6], [0.38, 0]]
},
"groups": {
"side_panel": {
"between": ["belt", "shoulder"],
"from": -0.16,
"to": 0.17
}
}
}
},
"body": { "type": "subdivide", "in": ["cage"], "params": { "levels": 2 } }
},
"output": "body"
}
loft#
aliases: skin
Skin a surface through a sequence of curves (in prim order), or through copies of one profile placed by "sections".
Sections: with several input curves, each is a section in prim order. With one curve and the sections list, each entry places a copy of it: {"offset": [x, y, z], "scale": [sx, sy], "rotate": [rx, ry, rz]} (any key may be left out; a number for offset moves it along the curve's normal, a number for scale scales it evenly), applied as scale and rotate about the curve's centre, then the offset. Correspondence: when every section has the same number of points, point k of one section joins point k of the next (insets and rounded corners stay where they are); otherwise each section is resampled evenly by length (resample "length"). Closed sections are turned to run the same way round as the first one, and each starts at the point nearest the previous section's start, so the skin does not twist. Winding: the side faces follow the first section's direction; a closed result (closed sections with caps, or closed: true) is turned to face outward, caps included. uv: u along the section, v across the sections.
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | two or more curves, in order; or one profile with sections |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
sections | json | [] | one input curve: a list of placements, each {offset, scale, rotate} (see the description) aliases: stations placements | |
resample | enum | "auto" | auto = keep the points when every section has the same count, else even by length; length = always resample evenly; none = points by index (counts must match) options: auto length none | |
closed | bool | false | connect the last curve back to the first | |
caps | bool | false | cap the first and last curves (when they are closed) |
Writes: vertex uv; prim groups caps, sides
Example
{
"nodes": {
"a": { "type": "circle", "params": { "radius": 1, "segments": 32 } },
"b": {
"type": "circle",
"params": { "radius": 0.5, "segments": 32, "center": [0, 1, 0] }
},
"c": {
"type": "circle",
"params": { "radius": 0.8, "segments": 32, "center": [0, 2, 0] }
},
"rings": { "type": "merge", "in": ["a", "b", "c"] },
"skin": { "type": "loft", "in": ["rings"], "params": { "caps": true } }
},
"output": "skin"
}
nurbs#
aliases: nurbs_curve nurbscurve
NURBS curve prim from control points (CVs), order, knots and weights; or through points with fit.
Houdini Curve SOP in NURBS mode (a NURBCurve prim). Open curves have n + order knots (automatic: clamped, so the curve starts and ends on its end CVs); closed curves are periodic with n + 1 breakpoints. fit:true makes the curve pass through the points (global interpolation; the CVs are computed). The CVs are ordinary points (transform/deform/wrangle move them, attributes blend along the curve); nodes that need polylines get the evaluated curve automatically. With an input, each polyline/polygon (or all points in order) becomes a NURBS prim.
Inputs
| # | name | description |
|---|---|---|
| 0 | points | optional: polylines/polygons (or ordered points) whose points become CVs (or are interpolated with fit) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
points | json | [[0,0,0],[1,0,1.5],[2.5,0.5,1.5],[3,1,0],[4.5,0.5,-0.5],[5.5,0,0.5]] | CVs [[x,y,z], …] when no input is connected (2-number entries → [x, 0, z]) aliases: cvs positions pts | |
order | int | 4 | 2..11 | order = degree + 1 (4 = cubic); lowered when there are fewer CVs |
closed | bool | false | closed (periodic) curve | |
knots | json | [] | explicit knots: open n + order non-decreasing values, closed n + 1 breakpoints; [] = automatic | |
parameterization | enum | "uniform" | automatic knot spacing (parameterisation: uniform (even), chord (follows point distances), centripetal (√distances; best for sharp turns)) options: uniform chord centripetalaliases: knot_spacing parameterisation | |
weights | json | [] | rational weight per CV (point attribute Pw; [] = all 1) | |
fit | bool | false | interpolate: the curve passes through the points (CVs computed) instead of using them as CVs aliases: interpolate through_points |
Writes: NURBS prims (prim spline_order, prim float[] knots; point Pw with weights)
Example
{
"type": "nurbs",
"params": {
"points": [[0, 0, 0], [2, 0, 2], [4, 0, 0], [6, 0, 2]],
"fit": true
}
}
offset_curve#
aliases: polyexpand2d offset2d inset2d strap stroke
2D offset (grow/shrink) of closed shapes, like PolyExpand2D. Negative distance = inset. Open paths become straps.
Closed shapes grow by distance (shrink when negative). An open path (a polyline whose ends do not meet) becomes a strap: a closed outline at |distance| on both sides, with its ends cut square at the end points (cap butt), rounded, or extended by the distance; extrude it for a 3D strap or band. Shapes and straps in one input are joined. Each output outline or strap keeps its source prim attributes and groups. When shapes merge, the lowest source prim number wins. Each output point copies the attributes of the nearest point on its source prim and keeps its new position.
Inputs
| # | name | description |
|---|---|---|
| 0 | shapes | closed polygons in a plane, or open paths for straps |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
distance | float | 0.1 | offset distance (negative shrinks); straps: half their width aliases: offset dist | |
join | enum | "round" | corner style options: round miter square | |
cap | enum | "butt" | strap ends: butt = cut square at the end point, round = half circle, square = extended by the distance options: butt round square | |
segments | int | 16 | 3..10000 | segments per full circle for round joins and caps |
output | enum | "outlines" | outlines = closed polygons per contour; faces = filled with holes cut options: outlines faces | |
plane | enum | "auto" | shape plane options: auto xz xy yz |
Example
{
"nodes": {
"plan": {
"type": "shape2d",
"params": { "shape": "L", "size": [4, 3], "thickness": 1.2 }
},
"inner": {
"type": "offset_curve",
"in": ["plan"],
"params": { "distance": -0.2, "join": "miter" }
}
},
"output": "inner"
}
Used in the example market_street.
offset_curve_3d#
aliases: curve_offset offset3d polyoffset
Offset curves sideways in 3D (rotation-minimising frame or a fixed plane normal): rails, kerbs, parallel paths.
Each edge moves by distance along its side vector direction × up (positive = to the right of the direction of travel, like side_offset of points_along_curve), where up comes from a rotation-minimising frame started at up (point attribute up overrides) or, with frame "plane", is the fixed up normal (keeps both rails level on a sloped path). Corners: mitre (sharp; beyond mitre_limit × distance becomes bevel), round or bevel on the outer side; inner corners always meet at the mitre point. lift raises the result along up. both:true writes the -distance offset too (prim int side ±1) — a double rail for sweep. Bezier/NURBS curves are sampled first. offset_curve is the 2D (Clipper) offset of closed shapes in a plane: use it for outlines/insets of flat shapes, this one for open 3D paths.
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines/polygons (Bezier/NURBS curves are sampled adaptively) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
distance | float | 0.25 | side offset, positive = right of the direction of travel (negative = left) aliases: offset dist | |
lift | float | 0 | offset along up (e.g. rail height) aliases: height up_offset | |
frame | enum | "rmf" | rmf = rotation-minimising frame along each curve; plane = fixed up normal options: rmf plane | |
up | vec3 | [0,1,0] | initial up (rmf) or the plane normal (plane) aliases: normal plane_normal | |
corner | enum | "mitre" | outer corner style options: mitre round bevelaliases: join corners | |
mitre_limit | float | 4 | 1.. | mitres longer than this × distance are bevelled aliases: miter_limit |
round_segments | int | 4 | 1..10000 | segments per 90° of round corners |
both | bool | false | also output the -distance offset (two rails; prim int side = +1 / -1) aliases: both_sides double | |
keep_input | bool | false | keep the input curves as well | |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" |
Writes: prim int side (+1 / -1) with both
Example
{
"type": "offset_curve_3d",
"params": { "distance": 0.6, "lift": 1, "both": true }
}
Used in the example rail_along_curve.
parametric_curve#
Curve from a JS expression of t returning [x,y,z] (e.g. helices, knots, Lissajous).
The expression runs sandboxed like a wrangle and reads graph vars by their bare name ([cos(tTAU) * radius, t, sin(tTAU) * radius]); all points together must be computed within the script timeout (TOPOTOPO_SCRIPT_TIMEOUT_MS, default 30 s).
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
expr | code | "[cos(t*TAU), t, sin(t*TAU)]" | JS expression (or body with return) of t (and i) returning [x,y,z]. Snippet helpers available. | |
range | vec2 | [0,1] | t start and end | |
count | int | 100 | 2..1000000 | number of points aliases: points segments |
closed | bool | false | closed curve (polygon) |
Example
{
"type": "parametric_curve",
"params": {
"expr": "[(2+cos(3*t))*cos(2*t), sin(3*t), (2+cos(3*t))*sin(2*t)]",
"range": [0, 6.2832],
"count": 400,
"closed": true
}
}
Used in the examples eroded_valley, unreal_landscape.
polywire#
aliases: wire tubes
Turn curves into tubes. Per-point radius from "width" (diameter) or radius × pscale. Great for branches, cables, wireframes.
The tube radius at each point is half its "width" attribute when the curves carry width and use_width is on; pscale is then ignored, so particle trails with a small pscale keep the width they were given. Without width (or with use_width off) the radius is the radius param times point pscale (1 when there is none).
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines (or polygon edges); Bezier/NURBS curves are sampled adaptively |
| 1 | sheet | trim sheet for trim_band (a trim_sheet node; optional: else the one the curves carry) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
radius | float | 0.05 | tube radius when there is no width attribute (or use_width is off), multiplied by point pscale aliases: rad wire_radius | |
divisions | int | 8 | 3..1024 | sides around the tube aliases: sides cols |
caps | bool | true | cap the tube ends | |
use_width | bool | true | use point "width" attribute (diameter) when present; pscale is then ignored | |
trim_band | string | "" | trim sheet band (or rectangle) to map onto ("" = the node's own uv): u runs along the path at the band's period, v fills the band across the tube's circumference. A comma list ("stone, coping") gives one band per segment of the tube's circumference, cycled. "sheet:band" picks a sheet when several are carried. Help topic trim_sheets. aliases: trim | |
trim_around | enum | "wrap" | wrap: consecutive segments of the tube's circumference on the same band share it by length (one band wrapped round); faces: every segment fills the whole band options: wrap faces | |
trim_cap | string | "" | band for the caps at real size ("" = the sheet's first band of kind cap, else the first trim_band) | |
trim_offset | float | 0 | shift u along the path, metres (staggers the joints of pieces side by side) |
Writes: vertex uv; prim groups caps, sides; with trim_band: prim trim_band, trim_sheet and detail trim_sheets
Example
{
"nodes": {
"tree": { "type": "lsystem", "params": { "generations": 4 } },
"branches": {
"type": "polywire",
"in": ["tree"],
"params": { "divisions": 6 }
}
},
"output": "branches"
}
Used in the examples corridor_panels, stair_flight.
project_curve#
aliases: curve_project ray_curve projectcurve
Project curves onto a surface or heightfield (along a direction or to the closest point): roads and paths on terrain.
Houdini Ray SOP applied to curves. Optionally resamples each curve by spacing first (splines exactly), so the projected curve follows the surface between the original points. direction mode casts rays (both ways with bidirectional); closest snaps to the nearest surface point. Writes point hit (1/0) and N (surface normal at the hit); misses stay where they are or are deleted. lift raises the result along the normal. Targets: polygons (input 1), or a heightfield (sampled exactly for vertical rays, through its preview mesh otherwise). sample picks the heightfield surface for vertical rays: bilinear, or unreal_triangles (each cell split along its (0,0)–(1,1) diagonal in heightmap index space, column = X, row = Z: the surface of an Unreal Landscape imported from the field's png16/r16 export), so a road lies exactly on the Landscape.
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | curves (or points) to project |
| 1 | target | surface mesh or heightfield |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "direction" | rays along direction, or the closest surface point options: direction closest | |
direction | vec3 | [0,-1,0] | ray direction (mode direction) aliases: dir | |
bidirectional | bool | true | also cast the opposite direction (the nearer hit wins) | |
spacing | float | 0 | 0.. | resample curves to this segment length first (0 = keep the points) aliases: resample length |
lift | float | 0 | offset from the surface along its normal | |
max_distance | float | 1000000000 | 0.. | ignore hits further than this |
misses | enum | "keep" | points without a hit: stay where they are (hit 0) or are deleted options: keep delete | |
normals | bool | true | write point N from the surface | |
smooth_normals | bool | true | N (and lift) from the interpolated vertex normals of the surface (60° cusp); false = the normal of the hit face | |
group | group (point) | "" | point group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" | |
sample | enum | "bilinear" | heightfield target, vertical rays: bilinear, or unreal_triangles = Unreal Landscape's triangles (each cell cut along its (0,0)–(1,1) diagonal in heightmap index space, column = X, row = Z) options: bilinear unreal_trianglesaliases: sampling sample_mode |
Writes: point hit (int), N (surface normal)
Example
{ "type": "project_curve", "params": { "spacing": 0.25, "lift": 0.05 } }
resample#
Resample curves (and polygon outlines) to even spacing; optional smoothing. Adds curveu.
Bezier/NURBS prims are sampled on the true curve, evenly by arc length (treat_splines "exact"; their CV attributes are blended with the curve's own basis weights), or along their control polygon ("control_polygon"); either way the result is a polyline.
Inputs
| # | name | description |
|---|---|---|
| 0 | curves | polylines, polygons or Bezier/NURBS curves |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "length" | segment length or a fixed segment count per curve options: length count | |
length | float | 0.1 | 0.000001.. | target segment length aliases: seglen segment_length |
count | int | 20 | 1..1000000 | segments per curve (mode=count) aliases: segments |
smooth | bool | false | Catmull-Rom smooth before resampling (polylines) | |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" | |
tangent | bool | false | also write point tangentu (unit tangent) | |
treat_splines | enum | "exact" | Bezier/NURBS prims: sample the curve itself by arc length (exact) or their control polygon as a polyline options: exact control_polygon |
Writes: point curveu (0..1 along each curve), optional tangentu
Example
{
"nodes": {
"path": {
"type": "curve",
"params": { "points": [[0, 0, 0], [3, 0, 2], [6, 0, 0]] }
},
"even": {
"type": "resample",
"in": ["path"],
"params": { "length": 0.25, "smooth": true, "tangent": true }
}
},
"output": "even"
}
Used in the examples asset_cleanup, guided_town.
revolve#
aliases: lathe
Lathe: revolve profile curves around an axis (Y through the origin by default). Profiles touching the axis close up.
Each profile point turns around the axis line (through origin, along axis) at its own distance from it, so the profile can be drawn in any plane that holds the axis: the XY plane (x = radius) for the default Y axis, the XY plane (y = radius) for axis [1, 0, 0]. angle is measured from where the profile is drawn, turning counter-clockwise when the axis points at the viewer, so the plan angle of the result (atan2(z, x) seen from +Y) is minus the angle: a 0..90 revolve about Y ends at -90 in plan, towards -Z. Closed solids always face outward and flip has no effect on them: a closed profile turned a full 360, a closed profile over a partial angle with caps on (the caps are wound with the sides, for any angle and either profile direction), and a profile whose open ends both lie on the axis turned a full 360. Caps are only made for closed profiles. Every other result is an open surface whose facing follows the profile direction and the sign of the angle span: if it faces the wrong way, set flip.
Inputs
| # | name | description |
|---|---|---|
| 0 | profile | curves in a plane holding the axis (default: the XY plane, x = distance from the Y axis) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
axis | vec3 | [0,1,0] | direction of the axis to turn around aliases: direction dir | |
origin | vec3 | [0,0,0] | a point on the axis aliases: center pivot | |
segments | int | 32 | 3..4096 | segments around aliases: divisions cols |
angle | vec2 | [0,360] | start/end angle in degrees, counter-clockwise seen from the axis tip (right-handed): 0..90 about Y runs from +X towards -Z | |
caps | bool | false | cap partial revolves of closed profiles, making a closed solid that faces outward (open profiles get no caps) | |
flip | bool | false | reverse face orientation of an open result; no effect on a closed solid (always faces outward) |
Writes: vertex uv
Example
{
"nodes": {
"profile": {
"type": "curve",
"params": {
"points": [
[0, 0, 0],
[0.4, 0, 0],
[0.25, 0.6, 0],
[0.45, 1.2, 0],
[0, 1.2, 0]
],
"smooth": true
}
},
"vase": {
"type": "revolve",
"in": ["profile"],
"params": { "segments": 48 }
}
},
"output": "vase"
}
Used in the examples asset_cleanup, rusty_drum.
shape2d#
aliases: rect rectangle ngon star polygon2d
Flat 2D shapes as closed polygons: rect, rounded_rect, capsule (slot), ngon, star, gear, cross, L, U.
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
shape | enum | "rect" | shape type; capsule and slot are the same stadium: a rect whose short ends are half circles options: rect rounded_rect capsule slot ngon star gear cross L U | |
size | vec2 | [1,1] | rect/rounded_rect/capsule/slot/cross/L/U: width and depth (overall, ends included) | |
radius | float | 0.5 | ngon/star/gear: outer radius | |
inner_radius | float | 0.25 | star/gear: inner radius | |
sides | int | 6 | 3..100000 | ngon sides / star points / gear teeth aliases: points teeth |
corner_radius | float | 0.1 | 0.. | rounded_rect corner radius |
corner_segments | int | 6 | 1..10000 | rounded_rect/capsule/slot: segments per quarter circle |
thickness | float | 0.25 | cross/L/U arm thickness | |
rotate | float | 0 | rotation in degrees within the plane | |
plane | enum | "xz" | orientation plane (xz = ground, facing +Y; xy = facing +Z; yz = facing +X) options: xz xy yz | |
center | vec3 | [0,0,0] | center position aliases: t translate position pos origin |
Example
{
"type": "shape2d",
"params": { "shape": "gear", "radius": 1, "inner_radius": 0.8, "sides": 16 }
}
Used in the examples cloth_drape, lsystem_tree, scifi_panel.
spiral#
aliases: helix
Helix / spiral curve rising along +Y.
Inputs
None (generator).
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
radius | float | 1 | start radius | |
radius_end | float | -1 | end radius (-1 = same as radius) | |
height | float | 2 | total rise | |
turns | float | 3 | number of turns | |
points_per_turn | int | 32 | 3..100000 | resolution |
clockwise | bool | false | turn direction when seen from above | |
center | vec3 | [0,0,0] | center position aliases: t translate position pos origin |
Example
{
"type": "spiral",
"params": { "radius": 1, "radius_end": 0.3, "height": 3, "turns": 5 }
}
spline_fit#
aliases: fit_curve curve_fit fitcurve
Least-squares NURBS through ordered points: smooth noisy polylines, compress dense curves to few CVs.
Houdini Fit SOP (approximation). Each polyline/polygon (or, without prims, all points in order) is approximated by a B-spline: cv_count CVs, or (cv_count 0) the fewest CVs that keep every point within tolerance (interpolating at worst). Open curves keep their end points. smoothing adds a penalty on the CVs' second differences (0 = none; around 1 irons out noise; larger flattens). Parameters are corrected (re-projected) twice. Output NURBS prims, or polylines sampled from the fit. Writes prim fit_error.
Inputs
| # | name | description |
|---|---|---|
| 0 | points | polylines/polygons (each fitted), or ordered points without prims (one curve) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
order | int | 4 | 2..11 | order of the fitted curve (4 = cubic) |
cv_count | int | 0 | 0..100000 | number of CVs; 0 = as few as the tolerance allows aliases: cvs count |
tolerance | float | 0.01 | 0.. | largest allowed distance from a point to the curve (cv_count 0) aliases: tol max_error |
smoothing | float | 0 | 0.. | second-difference penalty on the CVs (0 = none, ~1 smooths noise) aliases: smooth |
parameterization | enum | "centripetal" | parameterisation: uniform (even), chord (follows point distances), centripetal (√distances; best for sharp turns) options: uniform chord centripetal | |
closed | enum | "auto" | auto = as the input prim (open for point clouds) options: auto open closed | |
output | enum | "nurbs" | NURBS prims or polylines sampled from the fit options: nurbs polyline | |
segments | int | 0 | 0..10000 | polyline output: segments per knot span; 0 = adaptive (tolerance / 4) |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" |
Writes: prim fit_error (largest distance from an input point to the fitted curve)
Example
{
"nodes": {
"spiral": {
"type": "spiral",
"params": { "turns": 1.5, "points_per_turn": 40 }
},
"noisy": {
"type": "jitter",
"in": ["spiral"],
"params": { "amount": 0.04 }
},
"fit": {
"type": "spline_fit",
"in": ["noisy"],
"params": { "tolerance": 0.1, "smoothing": 1 }
}
},
"output": "fit"
}
straight_skeleton#
Straight skeleton, polygon offsets and pitched roofs from planar footprints, including holes.
Input closed polygons lie on XZ at a constant Y. Containment uses even/odd nesting to detect holes, including doubled bridges in one primitive. Each shape (an outer contour and its holes) is processed on its own, so separate shapes may share edges and corners, as lots split from one block do; a hole must lie strictly inside its outer contour, and no two contours may cross. Positive offset distances move inward. Roof pitch attributes use the outgoing edge of each point (or one pitch for the whole source primitive). Output edge numbers follow input primitive and corner order. Straight and doubled corners (within 1e-5 of the shape's extent of the line between their neighbours) are dropped before the skeleton when the edges around them have the same pitch: one roof face spans them, its eave still runs through every footprint point, and its edge number is the first of the merged edges.
Inputs
| # | name | description |
|---|---|---|
| 0 | footprint | Closed planar footprints, with nested contours for holes. |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "skeleton" | Emit skeleton and contour arcs, offset contours, or roof faces. options: skeleton offset roof | |
distance | float | 0.2 | Offset distance in metres: positive inward, negative outward. | |
pitch | float | 30 | 0.01..90 | Roof pitch in degrees (greater than 0, up to 90 for a gable); overridden by pitch_attrib when set. |
pitch_attrib | string | "" | Scalar point or primitive pitch attribute, in degrees; point values belong to outgoing edges. | |
height_cap | float | 0 | 0.. | Maximum roof height above the footprint; 0 leaves the ridge uncapped. |
group | group (prim) | "" | Footprint primitives to process; unselected primitives pass through. |
Writes: Skeleton: prim int kind (0 skeleton, 1 contour). Roof: prim int edge (input contour edge; -1 for a height cap). Source attributes and groups follow contour provenance.
Example
{
"nodes": {
"footprint": {
"type": "curve",
"params": {
"closed": true,
"points": [
[0, 0, 0],
[6, 0, 0],
[6, 0, 2],
[2, 0, 2],
[2, 0, 5],
[0, 0, 5]
]
}
},
"roof": {
"type": "straight_skeleton",
"in": ["footprint"],
"params": { "mode": "roof", "pitch": 35 }
}
},
"output": "roof"
}
Used in the example town_from_lots.
sweep#
Sweep a cross-section along curves using rotation-minimising frames (tubes, ribbons, rails, mouldings).
The profile is drawn in the XY plane around the origin, looking along the curve: at every curve point it is placed with its +Z along the curve (the direction of travel), its +Y on the up direction (the "up" param, or the point attribute up) kept perpendicular to the curve, and its +X = Y × Z, to the left of the direction of travel when up points up. The frame then turns as little as possible from point to point (rotation-minimising), so a flat ribbon does not twist on its own; twist adds a turn. The built-in ribbon faces the frame's +Y, which is up on a level path with the default up. The sides are wound so a closed profile drawn counter-clockwise (seen from +Z) faces outward; caps on open curves face away from the curve. The end caps lie in the profile plane, perpendicular to the curve at its last point: where the last segment is tilted, the cap is tilted with it and its rim pokes above or below a horizontal plane the tube was meant to end on (a ground or snap plane). End the path with a short horizontal run, or cut the result with clip. uv: u runs around the profile, v along the curve; caps take the profile's flat layout.
Inputs
| # | name | description |
|---|---|---|
| 0 | backbone | curves to sweep along (Bezier/NURBS curves are sampled adaptively) |
| 1 | profile | cross-section curve drawn in the XY plane (optional; one per backbone or a single shared one) (optional) |
| 2 | sheet | trim sheet for trim_band (a trim_sheet node; optional: else the one the backbone carries) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
shape | enum | "circle" | built-in profile when no profile input; rect is size wide (X) and high (Y), for straps and bars options: circle square rect ribbon half_circle | |
radius | float | 0.1 | built-in profile radius / half width aliases: width rad | |
size | vec2 | [0.2,0.05] | rect profile: width along the profile X (sideways) and height along Y (up) | |
divisions | int | 12 | 1..1024 | built-in profile segments (equal strips across a ribbon); minimum 1 for ribbon, 2 for other shapes; square and rect use four sides aliases: sides cols |
caps | bool | true | cap open ends (closed profiles only) | |
twist | float | 0 | total twist in degrees along each curve | |
scale_ramp | ramp | [[0,1],[1,1]] | profile scale along the curve (u 0..1); point pscale also multiplies | |
up | vec3 | [0,1,0] | initial up vector (point attribute "up" overrides per point) | |
uv_length | bool | false | v coordinate in world length instead of 0..1 | |
trim_band | string | "" | trim sheet band (or rectangle) to map onto ("" = the node's own uv): u runs along the path at the band's period, v fills the band across the profile. A comma list ("stone, coping") gives one band per segment of the profile, cycled. "sheet:band" picks a sheet when several are carried. Help topic trim_sheets. aliases: trim | |
trim_around | enum | "wrap" | wrap: consecutive segments of the profile on the same band share it by length (one band wrapped round); faces: every segment fills the whole band options: wrap faces | |
trim_cap | string | "" | band for the caps at real size ("" = the sheet's first band of kind cap, else the first trim_band) | |
trim_offset | float | 0 | shift u along the path, metres (staggers the joints of pieces side by side) |
Writes: vertex uv; prim groups caps, sides; with trim_band: prim trim_band, trim_sheet and detail trim_sheets
Example
{
"nodes": {
"path": {
"type": "curve",
"params": {
"points": [[0, 0, 0], [1, 1, 0], [3, 1.5, 1], [4, 3, 1]],
"smooth": true
}
},
"horn": {
"type": "sweep",
"in": ["path"],
"params": {
"radius": 0.3,
"divisions": 16,
"scale_ramp": [[0, 1], [1, 0.1]]
}
}
},
"output": "horn"
}
Used in the examples eroded_valley, lsystem_tree, rail_along_curve, unreal_landscape.
trace_image#
Trace a thresholded image into closed XY contours, with holes and disconnected components.
Traces pixel-cell boundaries (not a bounding rectangle). Foreground is 4-connected: diagonal contacts stay separate. Simplification is conservative, topology-preserving, and bounded by tolerance in pixels. min_area filters entire foreground components by pixel area, retaining their holes. The full canvas maps to [0,width] × [0,widthheight/widthPixels] in XY, including transparent margins. After fill use uv_project {method:"planar",axis:"z",scale:[width,widthheightPixels/widthPixels]}; fill does not preserve contour attributes. More than 1,000,000 boundary edges fails with a hint.
Inputs
| # | name | description |
|---|---|---|
| 0 | image | geometry carrying the image to trace |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
image | string | "" | which image of the input to use ("" = its only image; needed when it holds several) aliases: input_image source_image | |
layer | string | "" | layer name (empty selects the main layer) | |
channel | enum | "alpha" | channel to read; alpha requires RGBA, luminance/R/G/B accept grey options: alpha luminance r g b | |
threshold | float | 0.5 | values at least this threshold are foreground | |
tolerance | float | 0.5 | 0..8192 | maximum contour simplification error in source pixels; 0 only removes collinear points |
min_area | float | 0 | 0..16777216 | minimum connected foreground component area in pixels; 0 retains all components |
extent | float | 0 | 0.. | full image canvas width in metres; height follows image aspect (0 = the metres the image states it covers: texture_size set on its generator, or a bake; refused when it states none) |
Writes: closed curves; point uv; prim class (component ID), contour_id and hole (0/1); detail image_size and image_width
Example
{
"nodes": {
"img": {
"type": "tex_shape",
"params": {
"resolution": [64, 32],
"texture_size": 1,
"shape": "disc",
"falloff": 0
}
},
"out": {
"type": "trace_image",
"in": ["img"],
"params": { "channel": "luminance" }
}
},
"output": "out"
}
Used in the example image_cutouts.
triangulate2d#
aliases: delaunay triangulate_2d
Delaunay-triangulate points projected on a plane (keeps 3D positions) — terrain from point samples, meshes from scatters.
Inputs
| # | name | description |
|---|---|---|
| 0 | points | points |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
plane | enum | "xz" | orientation plane (xz = ground, facing +Y; xy = facing +Z; yz = facing +X) options: xz xy yz | |
max_edge | float | 0 | 0.. | drop triangles with an edge longer than this (0 = keep all) |
Example
{
"nodes": {
"pts": {
"type": "point_grid",
"params": { "counts": [12, 1, 12], "size": [10, 0, 10], "jitter": 0.4 }
},
"hills": {
"type": "noise_displace",
"in": ["pts"],
"params": { "mode": "direction", "amplitude": 1, "frequency": 0.3 }
},
"mesh": {
"type": "triangulate2d",
"in": ["hills"],
"params": { "max_edge": 2 }
}
},
"output": "mesh"
}
voronoi2d#
aliases: voronoi_cells voronoi_2d
2D Voronoi cells around points (on a plane), clipped to a rectangle; site attributes copied to cells. City blocks, cracks, tiles.
Inputs
| # | name | description |
|---|---|---|
| 0 | sites | points (optional: random sites are generated) (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
count | int | 30 | 1..100000 | random sites when no input |
size | vec2 | [10,10] | clip rectangle size (centered at center); [0,0] = sites bbox + 10% | |
center | vec3 | [0,0,0] | center position aliases: t translate position pos origin | |
plane | enum | "xz" | orientation plane (xz = ground, facing +Y; xy = facing +Z; yz = facing +X) options: xz xy yz | |
inset | float | 0 | 0.. | shrink each cell (gap between cells) |
relax | int | 0 | 0..50 | Lloyd relaxation iterations (more even cells) |
seed | float | 0 | random seed |
Writes: closed polygons with prim class (cell id) and site attributes
Example
{
"type": "voronoi2d",
"params": {
"count": 40,
"size": [20, 20],
"inset": 0.2,
"relax": 2,
"seed": 1
}
}
Used in the example town_from_lots.