OCCT 7.0.0 porting

This commit is contained in:
mnt 2016-03-02 11:42:36 +03:00
parent 888266c778
commit c5f4b97cbd
2 changed files with 5 additions and 4 deletions

View File

@ -112,7 +112,7 @@ Standard_Integer GEOMImpl_ArcDriver::Execute(LOGBOOK& log) const
if (aType == CIRC_ARC_THREE_PNT)
{
GC_MakeArcOfCircle arc (aP1, aP2, aP3);
aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
aShape = BRepBuilderAPI_MakeEdge(arc.Value()).Edge();
} else if ( aType == CIRC_ARC_CENTER ) { // CIRC_ARC_CENTER
Standard_Boolean sense = aCI.GetSense();
@ -128,7 +128,7 @@ Standard_Integer GEOMImpl_ArcDriver::Execute(LOGBOOK& log) const
Handle(Geom_Circle) aGeomCirc = circ.Value();
GC_MakeArcOfCircle arc (aGeomCirc->Circ(), aP2, aP3, Standard_True);
aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
aShape = BRepBuilderAPI_MakeEdge(arc.Value()).Edge();
} else if ( aType == ELLIPSE_ARC_CENTER_TWO_PNT ) { // ELLIPSE_ARC_CENTER_TWO_PNT
if ( aP1.Distance(aP2) <= aP1.Distance(aP3) ) {
// Standard_ConstructionError::Raise("Arc creation aborted: the distance from Center Point to Point 1 needs to be bigger than the distance from Center Point to Point 2");
@ -146,7 +146,7 @@ Standard_Integer GEOMImpl_ArcDriver::Execute(LOGBOOK& log) const
// double alpha = fabs(aV1.Angle(aV2));
GC_MakeArcOfEllipse arc (aGeomEllipse->Elips(), aP2, aP3, Standard_True);
aShape = BRepBuilderAPI_MakeEdge(arc).Edge();
aShape = BRepBuilderAPI_MakeEdge(arc.Value()).Edge();
}
}
}

View File

@ -127,7 +127,8 @@ Standard_Integer GEOMImpl_PlaneDriver::Execute(LOGBOOK& log) const
if (gp_Vec(aP1, aP2).IsParallel(gp_Vec(aP1, aP3), Precision::Angular()))
Standard_ConstructionError::Raise("Plane creation aborted: points lay on one line");
GC_MakePlane aMakePlane (aP1, aP2, aP3);
aShape = BRepBuilderAPI_MakeFace(aMakePlane, -aSize, +aSize, -aSize, +aSize,
aShape = BRepBuilderAPI_MakeFace(aMakePlane.Value(),
-aSize, +aSize, -aSize, +aSize,
Precision::Confusion()).Shape();
} else if (aType == PLANE_FACE) {
Handle(GEOM_Function) aRef = aPI.GetFace();