hm_getcentroid

Returns the geometric centroid for selected entities.

Syntax

hm_getcentroid entity_type mark_id

Type

HyperMesh Tcl Query

Description

Returns the geometric centroid for selected entities.

Inputs

entity_type
The type of entity to query. Valid values are surfaces and solids.
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

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

Version History

12.0.110