Documentation / Node reference / geo nodes

geo/TextureTrace

Traces the outlines of a picture into closed curves.

Curves

Traces the outline of every shape in a 2D texture into closed curves, in the XY plane. A shape touching the edge closes along it. Outer outlines run counter-clockwise, holes clockwise. Colours are read as linear values, so a mid grey of 128 is about 0.2.

Parameters

Name Type What it does
texturePath NodePath TEX node showing the picture.
channel UInt8 R · G · B · A · LUMINANCE Value of each texel that is traced.
level Float Where the outline passes, from 0 to 1.
inside UInt8 ABOVE · BELOW Which side of the level is the shape.
method UInt8 MARCHING_SQUARES · DUAL_CONTOURING How the outlines follow the picture.
resolution UInt32 Samples along the picture's longest side.
tolerance Float Removes points this close to a straight line, in samples.
center Vector2 Where the middle of the picture sits.
size Float Length of the picture's longest side.

Examples

Scenes you can open in the editor that teach this node.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.