10.51. Compute Triangle Face Ids

Group (Subgroup)

Surface Meshing (Connectivity/Arrangement)

(Note: this filter’s human name is Compute Triangle Face Ids, even though its source file is named SharedFeatureFace.)

Description

This filter assigns a unique Id to each Triangle in a Triangle Geometry (a surface mesh built from triangles) that identifies the unique boundary on which that triangle resides. A Feature is a region of material; the Face Labels of a triangle are the pair of Feature Ids on either side of it. All triangles sharing the same pair of Face Labels form one shared boundary and receive the same unique Id.

For example, if only two Features shared a single boundary, every triangle on that boundary would be labeled with one unique Id. This procedure groups the triangles into unique boundaries, which are themselves treated as a new set of Features (one per shared boundary).

The filter therefore also creates a Feature Attribute Matrix (a table holding one row of data per shared-boundary feature) and places two Attribute Arrays into it:

  1. The number of triangles in each unique boundary.

  2. The pair of Face Labels values that made up each unique boundary.

This process can be viewed as a segmentation in which each unique Id is the shared boundary between two features.

Randomize Face IDs

The Randomize Face IDs parameter shuffles the assigned boundary Id values. The grouping of triangles is unchanged; only the numeric Id labels are permuted. This is purely a visualization aid: with sequential Ids, neighboring boundaries can map to similar colors and blend together, whereas randomized Ids spread adjacent boundaries across the color map so they are easier to tell apart. The two figures below illustrate the difference.

Generated Feature Boundaries with Randomization

Example Surface Mesh Coloring By Feature Face Id

Generated Feature Boundaries without Randomization

Example Surface Mesh Coloring By Feature Face Id

Required Input Sources

Input Parameter(s)

Parameter Name

Parameter Type

Parameter Notes

Description

Randomize Face IDs

Bool

Specifies if feature IDs should be randomized. Can be helpful when visualizing the faces.

Input Data

Parameter Name

Parameter Type

Parameter Notes

Description

Triangle Geometry

Geometry Selection

Triangle

The complete path to the Geometry for which to calculate the normals

Face Labels

Array Selection

Allowed Types: int32 Comp. Shape: 2

The DataPath to the FaceLabels values.

Output Face Data

Parameter Name

Parameter Type

Parameter Notes

Description

Feature Face Ids

DataObjectName

The name of the calculated Feature Face Ids DataArray

Output Face Feature Data

Parameter Name

Parameter Type

Parameter Notes

Description

Face Feature Attribute Matrix

DataObjectName

The name of the AttributeMatrix that holds the Feature Face data

Feature Face Labels

DataObjectName

The name of the array that holds the calculated Feature Face Labels

Feature Number of Triangles

DataObjectName

The name of the array that holds the calculated number of triangles for each feature face

Example Pipelines

  • (03) Small IN100 Mesh Statistics

DREAM3D-NX Help

If you need help, need to file a bug report or want to request a new feature, please head over to the DREAM3DNX-Issues GitHub site where the community of DREAM3D-NX users can help answer your questions.