Houdini 21.0 Nodes APEX nodes

geo::IntersectPoints

Performs ray intersection with a geometry and computes weights for nearby points, outputting the weights in an array.

On this page
Since 20.0

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

Inputs

intersect_cache: geo::IntersectCache

The intersection cache produced by geo::InitIntersectCache.

geo: Geometry

The geometry to perform the intersection against.

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

result: IntArray

The indices of the points in geo that are within the radius.

weights: FloatArray

The weights of the corresponding points in the result output array. 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: Vector3

The position where the ray intersects with the geometry.

hitnormal: Vector3

The surface normal at the intersection point.

See also

APEX nodes