hm_collisionvisualizebymark

Enables the visualization of collision entities using one of various supported visualization modes.

Syntax

hm_collisionvisualizebymark mark_id node_mark_id review_type fit_view display_type

Type

HyperMesh Tcl Query

Description

Enables the visualization of collision entities using one of various supported visualization modes.

Inputs

mark_id
The ID of the markcontaining the collision entities to be visualized. Valid values are 1 and 2.
node_mark_id
The ID of the mark containing the slave nodes from the collision entities on mark_id. Only these nodes will be visualized. Valid values are 1 and 2.
If 0 is specified, all colliding nodes/elements will be visualized.
review_type
A flag that indicates the type of visualization. Valid values are:
1 - Highlight failed elements
2 - Review failed elements
3 - Contour penetration depths
4 - Penetration vectors and intersection lines
5 - Contour relative penetrations
fit_view
0 - Do not fit view
1 - Fit view
display_type
A flag that indicates which elements to display. Valid values are:
1 - Display all elements
2 - Display components with failed elements
3 - Display only failed elements

Examples

To highlight intersecting elements of comps 1001 and 1002 with auto-fit and display of the components with failed elements:

set config [hm_collisiongetconfig collirad intersections];
*clearmark comps 1 all;
eval *createmark comps 1 1001 1002;
*collisioncheck2_temp comps 1 $config 0.0 0.0 0.0 0.0;
*createmark collisions 1 all;
hm_collisionvisualizebymark 1 0 1 1 2;

To generate a contour plot of penetration depths of comps 1001 and 1002 without auto-fit and display only failed elements:

set config [hm_collisiongetconfig collirad penetrations];
*clearmark comps 1 all;
eval *createmark comps 1 1001 1002;
*collisioncheck2_temp comps 1 $config 0.0 0.0 0.0 0.0;
*createmark collisions 1 all;
hm_collisionvisualizebymark 1 0 3 0 3;

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

2019