1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

0024077: Build errors on master branch on Mac OS X

small correction
Init() method is called with other parameter.
This commit is contained in:
nbv 2013-07-19 09:36:49 +04:00
parent 66deda1eea
commit 440906ef6a
2 changed files with 5 additions and 8 deletions

View File

@ -788,12 +788,11 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferSurfaceOfRevolution
const Standard_Real UL = endAngle - startAngle; const Standard_Real UL = endAngle - startAngle;
// PTV 29.08.2002 end of OCC663 // PTV 29.08.2002 end of OCC663
aMakeF = BRepBuilderAPI_MakeFace(aResultSurf, UF, aMakeF.Init(aResultSurf, UF, UL, VF, VL, Precision::Confusion());
UL, VF, VL, Precision::Confusion());
}//if (!IsFullAngle) }//if (!IsFullAngle)
else else
{ {
aMakeF = BRepBuilderAPI_MakeFace(aResultSurf, Precision::Confusion()); aMakeF.Init(aResultSurf, Standard_True, Precision::Confusion());
} }
if (aMakeF.IsDone()) if (aMakeF.IsDone())

View File

@ -703,9 +703,7 @@ static TopoDS_Face TranslateBoundedSurf (const Handle(StepGeom_Surface) &surf,
if (!StepToGeom_MakeSurface::Convert(surf,theSurf) || //:i6: protection if (!StepToGeom_MakeSurface::Convert(surf,theSurf) || //:i6: protection
!theSurf->IsKind(STANDARD_TYPE(Geom_BoundedSurface))) return res; !theSurf->IsKind(STANDARD_TYPE(Geom_BoundedSurface))) return res;
BRepBuilderAPI_MakeFace myMkFace; BRepBuilderAPI_MakeFace myMkFace;
Handle(Geom_RectangularTrimmedSurface) RS = Handle(Geom_RectangularTrimmedSurface) RS =
Handle(Geom_RectangularTrimmedSurface)::DownCast(theSurf); Handle(Geom_RectangularTrimmedSurface)::DownCast(theSurf);
@ -714,13 +712,13 @@ static TopoDS_Face TranslateBoundedSurf (const Handle(StepGeom_Surface) &surf,
Standard_Real umin, umax, vmin, vmax; Standard_Real umin, umax, vmin, vmax;
theSurf->Bounds(umin, umax, vmin, vmax); theSurf->Bounds(umin, umax, vmin, vmax);
myMkFace = BRepBuilderAPI_MakeFace(RS->BasisSurface(), umin, umax, vmin, vmax, TolDegen); myMkFace.Init(RS->BasisSurface(), umin, umax, vmin, vmax, TolDegen);
} }
else else
{ {
myMkFace = BRepBuilderAPI_MakeFace(theSurf, TolDegen); myMkFace.Init(theSurf, Standard_True, TolDegen);
} }
return myMkFace.Face(); return myMkFace.Face();
} }