hm_getcentroid
Returns the geometric centroid for selected entities.
Syntax
hm_getcentroid entity_type mark_id
Type
HyperMesh Tcl Query Command
Description
Returns the geometric centroid for selected entities.
Inputs
- entity_type
- The type of entity to query. Valid values are surfaces, solids and nodes.
- mark_id
- The ID of the mark containing the entities. Valid values are 1 and 2.
Example
To get the centroid of all surfaces:
*createmark surfs 1 all
hm_getcentroid surfs 1
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
12.0.110
2022 – Added nodes to the list of supported entity types.