Terrain node

hf_project

Stamp input-1 geometry into the heightfield: curves (open polylines, e.g. from a curve or line node) flatten roads, raise ridges, lower ditches or carve rivers with a smooth falloff; polygons/meshes are rasterised for mesh_* modes (stamp a plateau, a crater mesh, building pads). Closed polygons are treated as curves (their outline) in the curve modes. Writes 'height' and the 'project' mask.

Inputs

Parameters 8

modemenu
Default flattenOptions flatten raise lower carve mesh_max mesh_min mesh_replace

flatten: blend terrain to the curve's height inside 'width' (roads, embankments). raise/lower: add/subtract 'amount' along curves (ridges, ditches). carve: cut a channel 'amount' deep below the curve/terrain (rivers). mesh_*: rasterise input-1 polygons (max = stamp a mesh onto the terrain, min = dig, replace = set).

widthfloat
Default 8Range 0 to …

Full width of the fully affected core along curves (world units).

fallofffloat
Default 10Range 0 to …

Width of the smooth shoulder on each side of the core.

amountfloat
Default 3

Height change for raise/lower/carve in world units.

follow_terraintoggle
Default on

Curve heights come from the terrain (sampled along the curve and smoothed) instead of the curve's own Y. Use for roads drawn flat at y=0.

smooth_lengthfloat
Default 30Range 0 to …

With follow_terrain: smoothing window (world units) of the road/river grade along the curve.

height_offsetfloat
Default 0

Added to the target curve height (e.g. raise a road embankment).

mask_layerstring
Default project

Layer receiving the 0..1 footprint of the projection (use it to colour roads or keep trees off them). Empty = none.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type hf_project), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"hf_project","name":"my_hf_project","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.