I have a situation where I want opencascade to add a vertex at the intersection of too lines when possible.
now when I want to enumerate, the compound, I want to have 5 points instead of 4, How to achieve it. (In my application which is fem, there is another joint at the intersection, the program should identify it and treat it properly).
I wonder if it is possible with open cascade.
Code:
auto a = gp_Pnt(0, 0, 0);
auto b = gp_Pnt(100, 0, 0);
auto c = gp_Pnt(50, -100, 0);
auto d = gp_Pnt(50, 100, 0);
auto edge1 = BRepBuilderAPI_MakeEdge(a, b);
auto edge2 = BRepBuilderAPI_MakeEdge(c, d);
TopoDS_Compound aRes;
BRep_Builder aBuilder;
aBuilder.MakeCompound (aRes);
aBuilder.Add (aRes, edge1);
aBuilder.Add (aRes, edge2);
now when I want to enumerate, the compound, I want to have 5 points instead of 4, How to achieve it. (In my application which is fem, there is another joint at the intersection, the program should identify it and treat it properly).
I wonder if it is possible with open cascade.