*boolean_solids

Performs a Boolean operation on selected solid entities.

Syntax

*boolean_solids solids SolidMarkA=<markA_id> ?SolidMarkB=<markB_id>? ?OpCode=<value>? ?Option=<value>? ?BooleanTolerance=<value>?

Type

HyperMesh Tcl Modify Command

Description

This command performs a Boolean operation on selected solid entities.

Inputs

SolidMarkA=<markA_id>
The ID of the mark containing solid entities in set A. Valid values are 1 and 2.
SolidMarkB=<markB_id>
The ID of the mark containing solid entities in set B. Valid values are 1 and 2.
OpCode=<value>
The code of the Boolean operation to be performed.
14 - A and B
8 - A or B
2 - A minus B
Option=<value>
Specifies how to process internal shared boundaries in resulted solid or solids.
0 - All boundaries shared between sets A and B are removed.
1 - Surfaces that were part of the boundary of solids in the set B are kept in the result.
2 - All shared boundaries are kept in the result.
3 - All shared boundaries are removed.
BooleanTolerance=<value>
Solids in proximity below this distance will get combined. Currently used for Boolean combine operations among FE-Geometry solids. Any positive value is acceptable.

Examples

To subtract solid ID 20 from solid ID 10:
*createmark solids 1 10
*createmark solids 2 20
*boolean_solids SolidMarkA=1 SolidMarkB=2 OpCode=2

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

2024