RNV: Fix compilation problem with new OCCT.

This commit is contained in:
inv 2013-12-12 11:20:45 +00:00
parent c83f022c63
commit d7caf30133
2 changed files with 4 additions and 4 deletions

View File

@ -1701,8 +1701,8 @@ Handle(AIS_AngleDimension) EntityGUI_3DSketcherDlg::createAISAngleDimension(doub
std::string Angle_str = doubleToString(theAngle); std::string Angle_str = doubleToString(theAngle);
// Construction of the plane // Construction of the plane
gce_MakePln gce_MP2(P0, P1, P2); //gce_MakePln gce_MP2(P0, P1, P2);
Handle(Geom_Plane) aPlane = new Geom_Plane(gce_MP2.Value()); //Handle(Geom_Plane) aPlane = new Geom_Plane(gce_MP2.Value());
TopoDS_Vertex V0 = BRepBuilderAPI_MakeVertex(P0); TopoDS_Vertex V0 = BRepBuilderAPI_MakeVertex(P0);
TopoDS_Vertex V1 = BRepBuilderAPI_MakeVertex(P1); TopoDS_Vertex V1 = BRepBuilderAPI_MakeVertex(P1);
@ -1725,7 +1725,7 @@ Handle(AIS_AngleDimension) EntityGUI_3DSketcherDlg::createAISAngleDimension(doub
// todo : port // todo : port
Handle(AIS_AngleDimension) anIO = new AIS_AngleDimension( anEdge1, anEdge2, aPlane->Pln() ); Handle(AIS_AngleDimension) anIO = new AIS_AngleDimension( anEdge1, anEdge2 );
anIO->SetCustomValue( theAngle ); anIO->SetCustomValue( theAngle );

View File

@ -347,7 +347,7 @@ SALOME_Prs* MeasureGUI_AngleDlg::buildPrs()
gce_MakePln gce_MP(aP11, aP12, aP3); gce_MakePln gce_MP(aP11, aP12, aP3);
Handle(Geom_Plane) aPlane = new Geom_Plane(gce_MP.Value()); Handle(Geom_Plane) aPlane = new Geom_Plane(gce_MP.Value());
Handle(AIS_AngleDimension) anIO = new AIS_AngleDimension( anEdge1, anEdge2, aPlane->Pln() ); Handle(AIS_AngleDimension) anIO = new AIS_AngleDimension( anEdge1, anEdge2 );
Handle(Prs3d_DimensionAspect) aDimensionStyle = new Prs3d_DimensionAspect; Handle(Prs3d_DimensionAspect) aDimensionStyle = new Prs3d_DimensionAspect;