For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

BREPOFFSETAPI_THRUSECTIONS Fails in building a shape with four wires.

Janath Francisco's picture
Forums: 

Hi,

I am trying to generate a solid with four closed wires using  BRepOffsetAPI_ThruSections.

But it is returning a 0,after when I called Build() method to get the generated shape.

Following is the code I use :

BRepOffsetAPI_ThruSections generator(Standard_False,Standard_False, 1.0e-6);
generator.SetParType(Approx_Centripetal);
generator.SetMaxDegree(2);

generator.AddWire(Wire_1);
generator.AddWire(Wire_2);
generator.AddWire(Wire_3);
generator.AddWire(Wire_4);

generator.Build();

if(generator.IsDone()){
TopoDS_Shape shape   = generator.Shape();
}

generator.IsDone() returns 0 value, after execute generator.Build().

1)Thru section works between only 2 crossections.

   - Thru section between section 1,2,3,4 (fails)

   - Thru section between  section 1,2 (works), Thru section between  section 1,3 (works), Thru section between  section 2,3 (works),Thru section between  section 1,4 (works),Thru section between  section 2,4 (works),Thru section between                            section 3,4 (works)

 So please suggest me are there any ways to over come this issue.                                                                                                                                                                                                                                                                                                        I have attached my failing four TopoDS_Wire  along with this.

 Please help me to solve this.                                                                                                                                                                                                                                                                                                                                                                     Thanks in advance,