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:
parent
66deda1eea
commit
440906ef6a
@ -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())
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user