IntersectionΒΆ
Learning targets
Use Boolean operation to intersect two objects
This example intersects two circles by means of the Boolean intersection operator to form a lens like object.
.jcm Input File
layout.jcm [ASCII]
1Layout2D { 2 UnitOfLength = 1 3 Objects { 4 Parallelogram { 5 Priority = ComputationalDomain 6 DomainId = 1 7 BoundingBox { 8 Offset = [1 1 1 1] 9 } 10 } 11 12 BooleanOperation { 13 DomainId = 2 14 Operator = Intersection 15 A { 16 Circle { 17 Radius = 6 18 GlobalPosition = [-4.0 0.0] 19 RefineAll = 2 20 } 21 } 22 23 B { 24 Circle { 25 Radius = 4 26 GlobalPosition = [1.75 0.0] 27 RefineAll = 2 28 } 29 } 30 } 31 } 32}
Shape manipulating operations such as corner rounding can be applied to the resulting shape, e.g.:
BooleanOperation {
A {
...
}
B {
...
}
CornerRounding {
Radius = 0.5
MaxAngle = 140
NPoints = 5
}
}
which yields the following geometry: