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

[Bug] BRepFilletAPI_MakeFillet

Dulanga Bulathgama's picture
Forums: 

Hello,

I'm Using OpenCascade 6.5.2
Erroneous result were occurred when a 1x1x1 box is filleted with 0.6 radius on all edges

following is the sample code and the result is attached

TopoDS_Shape Box = BRepPrimAPI_MakeBox(gp_Pnt(0,0,0),1,1,1);
BRepFilletAPI_MakeFillet fillet(Box);

for (TopExp_Explorer ex(Box,TopAbs_EDGE); ex.More(); ex.Next())
{
TopoDS_Edge Edge =TopoDS::Edge(ex.Current());
fillet.Add(0.6,Edge);
}

fillet.Build();
if(fillet.IsDone())
{
TopoDS_Shape blendedBox = fillet.Shape();
AISShape->Set(blendedBox);
myContext->Redisplay(AISShape);
}

**Note
if the radius was 1 instead of 0.6, then the IsDone() method returns false