Houdini 21.0 Nodes APEX nodes

geo::AttribIntersectPoints

Performs ray intersection with a geometry and computes weights for nearby points, outputting the weights as geometry attributes.

On this page
Since 20.0

This is the same as geo::IntersectPoints, except that the results are returned in updated geometry attributes instead of arrays.

The geo ports of this node are in-place ports, which means that the geometry is updated without creating a copy.

Inputs

*geo: Geometry Required

The geometry to perform the intersection against.

intersect_cache: geo::IntersectCache

The intersection cache produced by geo::InitIntersectCache.

origin: Vector3

The origin position of the casted ray.

dir: Vector3

The direction vector of the casted ray.

radius: Float

The distance around the intersection point to calculate weights for. Points within the radius that are closest to the intersection point have a weight of 1, with the weight values falling off to 0 at the radius distance.

focal: Float

An optional value that is added to the weight of the points within radius. Note that the resulting weight is first clamped to the 0-1 range before it is smoothed.

connected: Bool

If set to True, radius is interpreted as the distance from the intersection point following a path along the surface of the geometry.

Outputs

*geo: Geometry

The input geo with its attributes updated to reflect the intersection. The modified attributes are:

  • weight: Floating point attribute containing the distance to the intersection point weighted within the radius. The weight values are smoothed so that there are no discontinuities as they reach the 0 and 1 values. The points that are closest to the intersection position have a value of 1.

  • hitpos: Float3 detail attribute containing the position where the ray intersects with the geometry.

  • hitml: Float3 detail attribute containing the surface normal at the intersection point.

See also

APEX nodes