*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:
- 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:
- comp_name=<value>
- The name of the component in which user wants the result entities to be created.
Examples
*createmark surfs 1 20-50
*geom_simplify surf_mark=1 cover=per_body dest_component=named_comp comp_name="CYLINDER FITTING"
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2022.3