hm_collisiongetconfig

Returns flags to be used for configuration of the collision detection.

Syntax

hm_collisiongetconfig keyword1 ?keyword2? ... ?keywordN?

Type

HyperMesh Tcl Query

Description

Converts keywords into a numerical value for the configuration of the collision detection module. The returned value is used for the config argument to hm_collisioninit.

One or more keywords can be provided. Valid keywords are:

Inputs

intersect_planar
If listed, consider coplanar facets which are partially/fully overlapping, within a given tolerance defined by hm_collisoininit, as intersected.
If not listed, do not consider these planar intersections (default).
penetrat_min_overlap
If listed, consider only penetrations between two facets if they have an overlap greater than a given tolerance defined by hm_collisioninit.
If not listed, such penetrations are even reported if a node of one of the facets penetrates exactly onto the edge of the other facet (default).
This is ignored if any of the options edge_penetration, midside_nodes or split_quads are used in hm_collisionentitycreate.

Example

To configure the collision detection for planar intersections:

set config [hm_collisiongetconfig intersect_planar]
hm_collisioninit $config

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

14.0