hm_getplaneintercepts
Returns the maximum and minimum points of a plane cross-section virtual intersection with entities.
Syntax
hm_getplaneintercepts entity_type mark_id normal_x normal_y normal_z base_x base_y base_z vec_x vec_y vec_z
Type
HyperMesh Tcl Query Command
Description
Given a mark of entities, a plane definition, and a vector, returns the maximum and minimum coordinates on the cross-section defined by the virtual intersection of the entities with the plane, in the vector direction.
Inputs
- entity_type
- The type of entities to consider. Valid values are elems, surfs and comps (elems take priority over surfs).
- mark_id
- The ID of the mark containing the input entities.
- normal_x
- normal_y
- normal_z
- Defines the normal direction of the input plane
- base_x
- base_y
- base_z
- Defines the base location of the input plane and vector.
- vec_x
- vec_y
- vec_z
- Defines the vector direction.
Example
To get the plane intercept coordinates for the plane defined by normal (1,0,0) base (0,0,0) and along the direction (0,1,0) for all displayed elements:
*createmark elems 1 displayed
hm_getplaneintercepts elems 1 1 0 0 0 0 0 0 1 0
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