*geom_simplify

Simplifies the general shape of the input selection by fitting a box, a cylinder, or a convex-hull.

Syntax

*geom_simplify <select_type>=<selection> primitive_type=<value> ?option1=<value1>? ?option2=<value2>? … ?optionN=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

Simplifies the general shape of the input selection by fitting a box, a cylinder, or a convex-hull.

Inputs

<select_type>=<selection>
There are several ways to provide the ID of the mark containing the input entities. Valid values are 1 and 2. Only one option can be used at a time:
node_mark=<mark_id>
The ID of the mark containing the input nodes.
point_mark=<mark_id>
The ID of the mark containing the input points.
surf_mark=<mark_id>
The ID of the mark containing the input surfaces.
primitive_type=<value>
The type of shape used for fitting. Valid values are box, cylinder, and convex_hull.
cover=<value>
Applicable only for input entity type surfaces. Valid values are:
per_body - Input surfaces are grouped into connected set of surfaces and individual fittings are done per group. (default)
all - Fitting is performed for all input surfaces at once.
simplify=<value>
Valid only for primitive_type set to convex_hull. If set to 1, the shape is further simplified by combining faces together, or removing small size faces. The new shape will not cover the input as tightly as the non-simplified convex hull. Valid values are 0 (default) or 1.
delete_original=<value>
Applicable only if the input entities are surface. Valid values are 0 (default) and 1. If set to 1, the input surfaces are deleted after successful fitting.
dest_comp=<value>
Valid values are:
current - New entities are created in the current component. (default)
original - New entities are created in the component of the input solid.
named_comp - New entities are created in the named component specified in comp_name argument. If a component with the given name does not exist, a new component is created.
comp_name=<value>
The name of the component in which user wants the result entities to be created.

Examples

To fit cylinders to a set of surfaces ID 20-50, in a component named ‘CYLINDER FITTING, with a cylinder for each connected set of input surfaces:
*createmark surfs 1 20-50
*geom_simplify surf_mark=1 cover=per_body dest_component=named_comp comp_name="CYLINDER FITTING"

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

2022.3