I have a doubt about the Boolean operations in OCC.
I have two wires W1,W2.
I have the offset of wire W1 as S1.
Now,I want to perform CUT operation on S1 and W2 so as to remove the common portion and get the resultant as a shape 'S'.
But the output obtained is either S1 or W2, but not the resultant wire.
if the Cut operation is between (S1,W2)the result is
if the Cut operation is between (W2,S1)the result is
My code is
const GeomAbs_JoinType Join=GeomAbs_Tangent;
Standard_Real dist2 = -1.5;
TopoDS_Shape S1= off.Shape();
Handle(AIS_Shape) ais2=new AIS_Shape(S);
The Shape S should be the result obtained after cut operation.
But S is displaying either S1 or res2. The two wires are intersecting so the resultant obtained should be the combination of two wires with the common part(the purple wire inside the red wire) removed. Can anyone help me please. How can I get the resultant wire S as a combination of S and res2?
Thanks a lot,