hm_getclosedshelllayerelems

Separates thin closed-shell meshes into top and bottom layers.

Syntax

hm_getclosedshelllayerelems entity_type mark_id

Type

HyperMesh Tcl Query Command

Description

This command separates top and bottom layer elements of thin closed-shell solids and puts elements of respective layers on element marks 1 and 2. The command expects each solid to be contained in a single component, i.e., any input solid should not be spread across multiple components. This command is slightly tolerant towards imperfectly closed shells and therefore the input need not be completely watertight.

Inputs

entity_type
Must be set to comps.
mark_id
The ID of the mark containing the entities. Valid values are 1 and 2.

Example

To get the top and bottom layers for comps 54 and 55:

*createmark comps 1 "by id" 54 55
hm_getclosedshelllayerelems comps 1

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

14.0.110