hm_getwrappoints
Returns a list of points, from the first input point to the third input point, that trace a convex path across the specified entities.
Syntax
hm_getwrappoints entity_type mark_id x1 y1 z1 x2 y2 z2 x3 y3 z3
Type
HyperMesh Tcl Query
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.
- x1
- y1
- z1
- Defines the normal coordinates of the first input point.
- x2
- y2
- z2
- Defines the normal coordinates of the second input point.
- x3
- y3
- z3
- Defines the normal coordinates of the third input point.
Example
To get the wrap points for all displayed elements using input points (0,0,0) (10,0,0) (10,10,0):
*createmark elems 1 displayed
hm_getwrappoints elems 1 0 0 0 10 0 0 10 10 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