Hi,
I am trying to generate a shell/solid with two closed wires using BRepOffsetAPI_ThruSections.
But it is crashing when I called shape() method to get the generated shape.
Here is the code I use :
/***********************************/
BRepOffsetAPI_ThruSections thruSect(Standard_False, Standard_False, 1.0e-6);
thruSect.AddWire(sections[i]);
thruSect.AddWire(sections[i - 1]);
TopoDS_Shape shape = thruSect.Shape();
/**********************************************/
This fails not for all cases. But it fails only some cases.
Then I search the forum and modified the code as follows.
/*********************/
BRepOffsetAPI_ThruSections thruSect(Standard_False, Standard_False, 1.0e-6);
thruSect.AddWire(sections[i]);
thruSect.AddWire(sections[i - 1]);
thruSect.Build();
TopoDS_Shape shape = thruSect.Shape();
/***********************************/
But when we called Shape() then automatically Build() also invoked there.
So please suggest me are there any ways to over come this issue.
Anything can done by SetSmoothing(), SetContinuity() like other functions.. or If there is any othe API that I can use?
I attached my failing two TopoDS_Wire along with this.
Please help me to solve this.
Thanks in advance.