Simple Highlighting Example

The code example later in this section shows how to highlight a subentity. The following procedure lists the basic steps.

To highlight a subentity

  1. Obtain the GS marker for the selected entity from the selection set.
  2. Pass the GS marker to the entity class to be converted to a subentity path using the getSubentPathsAtGsMarker() function. Specify the type of subentity you're interested in (vertex, edge, face).
  3. Once you have the path to the selected subentity, you're ready to call the highlight() function, passing in the correct subentity path.