Bug in BRepOffsetAPI_MakeFilling.

Hi All,

According to the OCC doc, BRepOffsetAPI_MakeFilling supports GeomAbs_C0,GeomAbs_G1 and GeomAbs_G2 filling.
But in the sub routine: the constuction function of BRepFill_CurveConstraint, there is a judgement:

if ((Tang2))
Standard_Failure::Raise("BRepFill : The continuity is not G0 G1 or G2");

But currently the order is defined as:
enum GeomAbs_Shape {
GeomAbs_C0,
GeomAbs_G1,
GeomAbs_C1,
GeomAbs_G2,
GeomAbs_C2,
GeomAbs_C3,
GeomAbs_CN
};
GeomAbs_G2 is 3. It means cannot do any G2 filling any more.

Thanks in advance. Any suggestion is welcome.

-Ding

Timo Roth's picture

The problem is still there in OCC 6.3.1

in GeomPlate_CurveConstraint :: GeomPlate_CurveConstraint (const Handle(Adaptor3d_HCurveOnSurface)& Boundary,
const Standard_Integer Tang,
const Standard_Integer NPt,
const Standard_Real TolDist,
const Standard_Real TolAng,
const Standard_Real TolCurv
)

you can find:

myOrder=Tang;
if ((Tang<-1)||(Tang>2))
Standard_Failure::Raise("GeomPlate : The continuity is not G0 G1 or G2");