Tag Points from Prims

Given input points and tagged mesh prims, create a tag for each point based on what prim contains that point. If a point is not contained within any tagged mesh prim, it is given the defaultTag. If a point is contained within multiple tagged mesh prims, the tag from the first encountered prim is used.

Installation

To use this Node, you must enable omni.genproc.core in the Extension Manager.

Inputs

Name

Type

Description

Default

Tagged Bundle Prims (bundle)

bundle

Bundle containing tagged prims

Points (points)

float[3][]

Vertices to be tagged

Tag Attribute Name (tagName)

token

Tag attribute to look for in prims

tag

Default Tag Value (defaultTag)

token

Default value assigned to any point not inside a tagged prim

Outputs

Name

Type

Description

Default

tags

token[]

Per-point tags