hm_clustersurfaces

Groups surfaces based on continuity even across t-connected edges.

Syntax

hm_clustersurfaces surface_mark feature_angle

Type

HyperMesh Tcl Query Command

Description

This command Forms clusters of surfaces from the given input mark of surfaces, grouping surfaces that are adjacent with angle less than the specified threshold. The surfaces are grouped even across t-connection edges. The command returns a list of lists of surface IDs.

Inputs

surface_mark
The ID of the mark containing the surface to cluster. Valid values are 1 and 2.
feature_angle
The angle threshold (in degrees) used for grouping two surfaces together. If the angle between two surfaces at common edge is less than this value, they are grouped together.

Examples

To group all the surfaces that are connected at an angle less than 20 degrees at the common edge:
*createmark surfaces 1 all 
hm_clustersurfaces 1 20

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2025