Houdini 21.0 Nodes Copernicus nodes

Mask from Curves Copernicus node

Creates a mask from 2D curves.

On this page
Since 21.0

This node closes the provided curves and renders them into a black and white mask. The curves can be polygon, Bezier, or NURBS and are automatically converted.

Parameters

Output Type

The output type.

Mask

Output a mask with white inside the curves and black outside the curves.

SDF

Output the distance from the closed curves as a signed distance field (SDF).

Blur

Applies a postprocess blur to the mask output that softens the edges.

Units

The units to use for blurring the mask.

Image

Specify the blur in image space.

Pixels

Specify the blur in absolute pixels.

Size

The size of the mask blur in image space or pixels, which the Units parameter determines.

Conversion Quality

How well to convert NURBs and Bezier into polygons. Higher values result in smoother conversions but require more time.

Resample

Resamples the incoming polygons so they have equal-spaced points. This can reduce dense geometry or add smoothness to low resolution curves.

Segment Length

The size in world space to resample each edge of the input curves.

Treat Polygons As

Set the new points along an implicit curve. Refining a polygon normally has little effect on the smoothness of the curve since the new points lie on the edges.

Straight Edges

New points lie along the original curve’s edges.

Subdivision Curves

New points treat the original curves as control points of a B-spline.

Interpolating Curves

New points follow a B-spline that interpolates the original points. This helps keep the size of the curve, but might introduce overshoots and oscillations.

Inputs

size_ref

The layer onto which to render the curves. If the curves aren’t on the layer directly, they're projected by the layer’s camera.

curves

The geometry with the curves to rasterize. If the curves are open, the node first closes them.

Outputs

mask

The layer with a black and white mask of the rendered curves or with an SDF that stores the distance to the curves. This is set by the Output Type parameter.

id

The ID layer that stores which curve number contributed to the pixel. -1 is used where no curve contributed.

Note

The Blur parameter may have non-zero mask values with no IDs.

See also

Copernicus nodes