Boolean OperationsΒΆ
Learning targets (advanced)
- Construct geometrical objects by Boolean operators
- Apply shape modifications, e.g. corner roundings
Besides a simple priority-based overlay of geometrical objects as presented in the previous section, it is also possible to apply the Boolean operation Union
, Intersection
, Difference
and Complement
in order to construct a more complicated geometrical object.
The example to this section shows an intersection of a large quadrilateral with four smaller quadrilaterals.
The .jcm
code for Boolean operation reads as:
BooleanOperation {
DomainId = 2
Operator = Difference
A {
Parallelogram {
...
}
}
B {
Parallelogram {
...
}
Parallelogram {
...
}
Parallelogram {
...
}
Parallelogram {
...
}
}
CornerRounding {
Radius = 1.0
NPoints = 5
}
}
The sections A
and B
contain layout definitions again and are considered as the terms in the Boolean operation (Difference), (Union) or . The corners of the resulting object are rounded with one single command.