1 // Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #include <Standard_Stream.hxx>
25 #include <GEOMImpl_ProjectionDriver.hxx>
27 #include <GEOMImpl_IMirror.hxx>
28 #include <GEOMImpl_IProjection.hxx>
29 #include <GEOMImpl_IProjOnCyl.hxx>
30 #include <GEOMImpl_Types.hxx>
31 #include <GEOM_Function.hxx>
32 #include <GEOMUtils.hxx>
33 #include <GEOMUtils_HTrsfCurve2d.hxx>
35 #include <Approx_Curve2d.hxx>
36 #include <Bnd_Box2d.hxx>
37 #include <BndLib_Add2dCurve.hxx>
38 #include <BRep_Tool.hxx>
39 #include <BRepAdaptor_Curve2d.hxx>
40 #include <BRepBuilderAPI_Transform.hxx>
41 #include <BRepBuilderAPI_MakeEdge.hxx>
42 #include <BRepBuilderAPI_MakeFace.hxx>
43 #include <BRepBuilderAPI_MakeVertex.hxx>
44 #include <BRepBuilderAPI_MakeWire.hxx>
45 #include <BRepClass_FaceClassifier.hxx>
46 #include <BRepExtrema_DistShapeShape.hxx>
47 #include <BRepLib.hxx>
48 #include <BRepOffsetAPI_NormalProjection.hxx>
49 #include <BRepTools.hxx>
50 #include <BRepTools_WireExplorer.hxx>
55 #include <TopoDS_Shape.hxx>
56 #include <TopoDS_Edge.hxx>
57 #include <TopoDS_Face.hxx>
58 #include <TopoDS_Vertex.hxx>
59 #include <TopoDS_Wire.hxx>
60 #include <TopTools_ListIteratorOfListOfShape.hxx>
62 #include <GeomAPI_ProjectPointOnSurf.hxx>
63 #include <Geom_Curve.hxx>
64 #include <Geom_CylindricalSurface.hxx>
65 #include <Geom_Plane.hxx>
66 #include <Geom2d_TrimmedCurve.hxx>
68 #include <gp_Trsf.hxx>
72 //=======================================================================
75 //=======================================================================
76 const Standard_GUID& GEOMImpl_ProjectionDriver::GetID()
78 static Standard_GUID aProjectionDriver ("FF1BBB70-5D14-4df2-980B-3A668264EA16");
79 return aProjectionDriver;
83 //=======================================================================
84 //function : GEOMImpl_ProjectionDriver
86 //=======================================================================
88 GEOMImpl_ProjectionDriver::GEOMImpl_ProjectionDriver()
92 //=======================================================================
95 //=======================================================================
96 Standard_Integer GEOMImpl_ProjectionDriver::Execute(Handle(TFunction_Logbook)& log) const
98 if (Label().IsNull()) return 0;
99 Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label());
101 if (aFunction.IsNull()) return 0;
103 Standard_Integer aType = aFunction->GetType();
105 if (aType == PROJECTION_COPY) {
110 GEOMImpl_IMirror TI (aFunction);
112 Handle(GEOM_Function) anOriginalFunction = TI.GetOriginal();
113 if (anOriginalFunction.IsNull()) return 0;
115 TopoDS_Shape anOriginal = anOriginalFunction->GetValue();
116 if (anOriginal.IsNull()) return 0;
118 // Source shape (point, edge or wire)
119 if (anOriginal.ShapeType() != TopAbs_VERTEX &&
120 anOriginal.ShapeType() != TopAbs_EDGE &&
121 anOriginal.ShapeType() != TopAbs_WIRE) {
122 Standard_ConstructionError::Raise
123 ("Projection aborted : the source shape is neither a vertex, nor an edge or a wire");
127 Handle(GEOM_Function) aTargetFunction = TI.GetPlane();
128 if (aTargetFunction.IsNull()) return 0;
129 TopoDS_Shape aFaceShape = aTargetFunction->GetValue();
131 if (anOriginal.ShapeType() == TopAbs_VERTEX) {
133 gp_Pnt aPnt = BRep_Tool::Pnt(TopoDS::Vertex(anOriginal));
134 gp_Pnt surfPnt = GEOMUtils::ProjectPointOnFace(aPnt, aFaceShape, U, V);
135 aShape = BRepBuilderAPI_MakeVertex(surfPnt).Shape();
138 //see BRepTest_BasicCommands.cxx for example of BRepOffsetAPI_NormalProjection
139 BRepOffsetAPI_NormalProjection OrtProj (aFaceShape);
140 OrtProj.Add(anOriginal);
142 // Compute maximal tolerance of projection.
143 TopExp_Explorer anExp(anOriginal,TopAbs_VERTEX);
144 Standard_Real aMaxTol = Precision::Confusion();
146 for(; anExp.More(); anExp.Next()) {
147 const TopoDS_Vertex aVtx = TopoDS::Vertex(anExp.Current());
148 const Standard_Real aCurTol = BRep_Tool::Tolerance(aVtx);
150 if (aMaxTol < aCurTol) {
155 Standard_Real tol2d = Pow(aMaxTol, 2./3);
156 GeomAbs_Shape Continuity = GeomAbs_C2;
157 Standard_Integer MaxDeg = 14;
158 Standard_Integer MaxSeg = 16;
160 OrtProj.SetParams(aMaxTol, tol2d, Continuity, MaxDeg, MaxSeg);
164 } catch (Standard_Failure& aFail) {
165 TCollection_AsciiString aMsg (aFail.GetMessageString());
167 aMsg = "Projection aborted : possibly the source shape intersects the cylinder's axis";
168 Standard_ConstructionError::Raise(aMsg.ToCString());
170 if (!OrtProj.IsDone()) {
171 Standard_ConstructionError::Raise
172 ("Projection aborted : BRepOffsetAPI_NormalProjection failed");
175 aShape = OrtProj.Shape();
177 // check that the result shape is an empty compound
178 // (IPAL22905: TC650: Projection on face dialog problems)
179 if (!aShape.IsNull() && aShape.ShapeType() == TopAbs_COMPOUND)
181 TopoDS_Iterator anIter(aShape);
183 Standard_ConstructionError::Raise("Projection aborted : empty compound produced");
185 if (anOriginal.ShapeType() == TopAbs_WIRE) {
186 // Make wire from resulting compound (Mantis issue 0023497)
187 TopTools_ListOfShape anEdgesList;
188 for (; anIter.More(); anIter.Next()) {
189 anEdgesList.Append(anIter.Value());
191 BRepBuilderAPI_MakeWire aMkWire;
192 aMkWire.Add(anEdgesList);
193 if (aMkWire.IsDone())
194 aShape = aMkWire.Wire();
199 if (aShape.IsNull()) return 0;
201 aFunction->SetValue(aShape);
202 log->SetTouched(Label());
203 } else if (aType == PROJECTION_ON_WIRE) {
204 // Perform projection of point on a wire or an edge.
205 GEOMImpl_IProjection aProj (aFunction);
206 Handle(GEOM_Function) aPointFunction = aProj.GetPoint();
207 Handle(GEOM_Function) aShapeFunction = aProj.GetShape();
209 if (aPointFunction.IsNull() || aShapeFunction.IsNull()) {
213 TopoDS_Shape aPoint = aPointFunction->GetValue();
214 TopoDS_Shape aShape = aShapeFunction->GetValue();
216 if (aPoint.IsNull() || aShape.IsNull()) {
220 // Check shape types.
221 if (aPoint.ShapeType() != TopAbs_VERTEX) {
222 Standard_ConstructionError::Raise
223 ("Projection aborted : the point is not a vertex");
226 if (aShape.ShapeType() != TopAbs_EDGE &&
227 aShape.ShapeType() != TopAbs_WIRE) {
228 Standard_ConstructionError::Raise
229 ("Projection aborted : the shape is neither an edge nor a wire");
232 // Perform projection.
233 BRepExtrema_DistShapeShape aDistShSh(aPoint, aShape, Extrema_ExtFlag_MIN);
235 if (aDistShSh.IsDone() == Standard_False) {
236 Standard_ConstructionError::Raise("Projection not done");
239 Standard_Boolean hasValidSolution = Standard_False;
240 Standard_Integer aNbSolutions = aDistShSh.NbSolution();
243 Standard_Real aTolConf = BRep_Tool::Tolerance(TopoDS::Vertex(aPoint));
244 Standard_Real aTolAng = 1.e-4;
246 for (i = 1; i <= aNbSolutions; i++) {
247 Standard_Boolean isValid = Standard_False;
248 BRepExtrema_SupportType aSupportType = aDistShSh.SupportTypeShape2(i);
249 TopoDS_Shape aSupportShape = aDistShSh.SupportOnShape2(i);
251 if (aSupportType == BRepExtrema_IsOnEdge) {
252 // Minimal distance inside edge is really a projection.
253 isValid = Standard_True;
254 aDistShSh.ParOnEdgeS2(i, aParam);
255 } else if (aSupportType == BRepExtrema_IsVertex) {
256 TopExp_Explorer anExp(aShape, TopAbs_EDGE);
258 if (aDistShSh.Value() <= aTolConf) {
259 // The point lies on the shape. This means this point
260 // is really a projection.
261 for (; anExp.More() && !isValid; anExp.Next()) {
262 TopoDS_Edge aCurEdge = TopoDS::Edge(anExp.Current());
264 if (aCurEdge.IsNull() == Standard_False) {
265 TopoDS_Vertex aVtx[2];
267 TopExp::Vertices(aCurEdge, aVtx[0], aVtx[1]);
269 for (int j = 0; j < 2; j++) {
270 if (aSupportShape.IsSame(aVtx[j])) {
271 // The current edge is a projection edge.
272 isValid = Standard_True;
273 aSupportShape = aCurEdge;
274 aParam = BRep_Tool::Parameter(aVtx[j], aCurEdge);
281 // Minimal distance to vertex is not always a real projection.
282 gp_Pnt aPnt = BRep_Tool::Pnt(TopoDS::Vertex(aPoint));
283 gp_Pnt aPrjPnt = BRep_Tool::Pnt(TopoDS::Vertex(aSupportShape));
284 gp_Vec aDProjP(aPrjPnt, aPnt);
286 for (; anExp.More() && !isValid; anExp.Next()) {
287 TopoDS_Edge aCurEdge = TopoDS::Edge(anExp.Current());
289 if (aCurEdge.IsNull() == Standard_False) {
290 TopoDS_Vertex aVtx[2];
292 TopExp::Vertices(aCurEdge, aVtx[0], aVtx[1]);
294 for (int j = 0; j < 2; j++) {
295 if (aSupportShape.IsSame(aVtx[j])) {
296 // Check if the point is a projection to the current edge.
297 Standard_Real anEdgePars[2];
298 Handle(Geom_Curve) aCurve =
299 BRep_Tool::Curve(aCurEdge, anEdgePars[0], anEdgePars[1]);
303 aParam = BRep_Tool::Parameter(aVtx[j], aCurEdge);
304 aCurve->D1(aParam, aVal, aD1);
306 if (Abs(aD1.Dot(aDProjP)) <= aTolAng) {
307 // The current edge is a projection edge.
308 isValid = Standard_True;
309 aSupportShape = aCurEdge;
321 if (hasValidSolution) {
322 Standard_ConstructionError::Raise
323 ("Projection aborted : multiple solutions");
326 // Store the valid solution.
327 hasValidSolution = Standard_True;
329 // Normalize parameter.
330 TopoDS_Edge aSupportEdge = TopoDS::Edge(aSupportShape);
331 Standard_Real aF, aL;
333 BRep_Tool::Range(aSupportEdge, aF, aL);
335 if (Abs(aL - aF) <= aTolConf) {
336 Standard_ConstructionError::Raise
337 ("Projection aborted : degenerated projection edge");
340 aParam = (aParam - aF)/(aL - aF);
343 // Compute edge index.
344 TopExp_Explorer anExp(aShape, TopAbs_EDGE);
347 for (; anExp.More(); anExp.Next(), anIndex++) {
348 if (aSupportShape.IsSame(anExp.Current())) {
349 aProj.SetIndex(anIndex);
355 Standard_ConstructionError::Raise
356 ("Projection aborted : Can't define edge index");
359 // Construct a projection vertex.
360 const gp_Pnt &aPntProj = aDistShSh.PointOnShape2(i);
361 TopoDS_Shape aProj = BRepBuilderAPI_MakeVertex(aPntProj).Shape();
363 aFunction->SetValue(aProj);
367 if (!hasValidSolution) {
368 Standard_ConstructionError::Raise("Projection aborted : no projection");
370 } else if (aType == PROJECTION_ON_CYLINDER) {
371 GEOMImpl_IProjOnCyl aProj (aFunction);
372 Handle(GEOM_Function) aShapeFunction = aProj.GetShape();
374 if (aShapeFunction.IsNull()) {
378 TopoDS_Shape aShape = aShapeFunction->GetValue();
380 if (aShape.IsNull()) {
385 const TopAbs_ShapeEnum aType = aShape.ShapeType();
386 const Standard_Real aRadius = aProj.GetRadius();
387 const Standard_Real aStartAngle = aProj.GetStartAngle();
388 const Standard_Real aLengthAngle = aProj.GetAngleLength();
389 const Standard_Real aRotationAngle = aProj.GetAngleRotation();
391 if (aType != TopAbs_WIRE && aType != TopAbs_FACE) {
395 if (aRadius <= Precision::Confusion()) {
399 TopoDS_Shape aProjShape = projectOnCylinder
400 (aShape, aRadius, aStartAngle, aLengthAngle, aRotationAngle);
402 if (aProjShape.IsNull()) {
406 aFunction->SetValue(aProjShape);
412 //================================================================================
414 * \brief Returns a name of creation operation and names and values of creation parameters
416 //================================================================================
418 bool GEOMImpl_ProjectionDriver::
419 GetCreationInformation(std::string& theOperationName,
420 std::vector<GEOM_Param>& theParams)
422 if (Label().IsNull()) return 0;
423 Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
425 Standard_Integer aType = function->GetType();
427 theOperationName = "PROJECTION";
430 case PROJECTION_COPY:
432 GEOMImpl_IMirror aCI( function );
434 AddParam( theParams, "Source object", aCI.GetOriginal() );
435 AddParam( theParams, "Target face", aCI.GetPlane() );
438 case PROJECTION_ON_WIRE:
440 GEOMImpl_IProjection aProj (function);
442 AddParam(theParams, "Point", aProj.GetPoint());
443 AddParam(theParams, "Shape", aProj.GetShape());
447 case PROJECTION_ON_CYLINDER:
449 theOperationName = "PROJ_ON_CYL";
451 GEOMImpl_IProjOnCyl aProj (function);
452 const Standard_Real aLengthAngle = aProj.GetAngleLength();
454 AddParam(theParams, "Shape", aProj.GetShape());
455 AddParam(theParams, "Radius", aProj.GetRadius());
456 AddParam(theParams, "Start angle", aProj.GetStartAngle());
458 if (aLengthAngle >= 0.) {
459 AddParam(theParams, "Length angle", aLengthAngle);
462 AddParam(theParams, "Rotation angle", aProj.GetAngleRotation());
473 //================================================================================
475 * \brief Performs projection of a planar wire or a face on a cylinder.
477 //================================================================================
479 TopoDS_Shape GEOMImpl_ProjectionDriver::projectOnCylinder
480 (const TopoDS_Shape &theShape,
481 const Standard_Real theRadius,
482 const Standard_Real theStartAngle,
483 const Standard_Real theAngleLength,
484 const Standard_Real theAngleRotation) const
486 TopoDS_Shape aResult;
489 const TopAbs_ShapeEnum aType = theShape.ShapeType();
492 if (aType == TopAbs_WIRE) {
493 // Try to create a planar face.
494 TopoDS_Wire aWire = TopoDS::Wire(theShape);
495 BRepBuilderAPI_MakeFace aMkFace(aWire, Standard_True);
497 if (aMkFace.IsDone()) {
498 aFace = aMkFace.Face();
500 // Check if the wire is a straight line.
501 TopExp_Explorer anEExp(aWire, TopAbs_EDGE);
504 for (; anEExp.More(); anEExp.Next()) {
505 anEdge = TopoDS::Edge(anEExp.Current());
507 if (!BRep_Tool::Degenerated(anEdge)) {
513 // Not degenerated edge found. Try to create a plane.
514 Standard_Real aPar[2];
515 Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, aPar[0], aPar[1]);
516 gp_Pnt aP0 = aCurve->Value(aPar[0]);
517 gp_Pnt aP1 = aCurve->Value(0.5*(aPar[1] + aPar[0]));
518 gp_Vec aX(aP1.XYZ().Subtracted(aP0.XYZ()));
519 Standard_Real aTolConf = Precision::Confusion();
521 if (aX.Magnitude() > aTolConf) {
524 // Get the plane normal ortogonal to Z axis.
525 gp_Vec aZ(0., 0., 1.);
526 gp_Vec aN = aX.Crossed(aZ);
528 if (aN.Magnitude() <= aTolConf) {
529 // aX is parallel to aZ. Get the plane normal ortogonal to Y axis.
530 gp_Vec aY(0., 1., 0.);
535 if (aN.Magnitude() > aTolConf) {
536 gp_Ax3 anAxis(aP0, gp_Dir(aN), gp_Dir(aX));
537 Handle(Geom_Plane) aPlane = new Geom_Plane(anAxis);
538 BRepBuilderAPI_MakeFace aMkFace(aPlane, aWire);
540 if (aMkFace.IsDone()) {
541 aFace = aMkFace.Face();
547 } else if (aType == TopAbs_FACE) {
548 aFace = TopoDS::Face(theShape);
551 if (aFace.IsNull()) {
555 // Compute 2d translation transformation.
556 TopoDS_Wire anOuterWire = BRepTools::OuterWire(aFace);
557 BRepTools_WireExplorer aOWExp(anOuterWire, aFace);
559 if (!aOWExp.More()) {
564 // Rotate 2D presentation of face.
565 TopoDS_Vertex aFirstVertex = aOWExp.CurrentVertex();
566 TopoDS_Edge aFirstEdge = aOWExp.Current();
567 gp_Pnt aPnt = BRep_Tool::Pnt(aFirstVertex);
568 BRepAdaptor_Curve2d anAdaptorCurve(aFirstEdge, aFace);
569 Standard_Real aParam =
570 BRep_Tool::Parameter(aFirstVertex, aFirstEdge, aFace);
573 gp_Vec2d aVecU0(1., 0);
575 anAdaptorCurve.D1(aParam, aPntUV, aVecUV);
577 if (aVecUV.Magnitude() <= gp::Resolution()) {
581 if (aFirstEdge.Orientation() == TopAbs_REVERSED) {
585 const Standard_Real anAngle = aVecUV.Angle(aVecU0) + theAngleRotation;
586 const Standard_Boolean isToRotate = Abs(anAngle) > Precision::Angular();
589 Standard_Real aPar[2];
592 aRotTrsf.SetRotation(aPntUV, anAngle);
595 for (; aOWExp.More(); aOWExp.Next()) {
596 TopoDS_Edge anEdge = aOWExp.Current();
597 Handle(Geom2d_Curve) aCurve =
598 BRep_Tool::CurveOnSurface(anEdge, aFace, aPar[0], aPar[1]);
600 if (aCurve.IsNull()) {
605 aCurve = Handle(Geom2d_Curve)::DownCast(aCurve->Transformed(aRotTrsf));
608 BndLib_Add2dCurve::Add(aCurve, aPar[0], aPar[1], 0., aUVBox);
614 aUVBox.Get(aU[0], aV[0], aU[1], aV[1]);
616 // Compute anisotropic transformation from a face's 2d space
617 // to cylinder's 2d space.
618 GEOMUtils::Trsf2d aTrsf2d
619 (1./theRadius, 0., theStartAngle - aU[0]/theRadius,
620 0., 1., aPnt.Z() - aPntUV.Y());
622 // Compute scaling trsf.
623 const Standard_Boolean isToScale = theAngleLength >= Precision::Angular();
624 gp_Trsf2d aScaleTrsf;
627 // Perform 2d scaling.
628 gp_Pnt2d aMidPnt(0.5*(aU[1] + aU[0]), 0.5*(aV[1] + aV[0]));
629 const Standard_Real aScaleFactor = theAngleLength*theRadius/(aU[1] - aU[0]);
631 aTrsf2d.TransformD0(aMidPnt);
633 aScaleTrsf.SetScale(aMidPnt, aScaleFactor);
636 // Get 2d presentation of a face.
637 Handle(Geom_Surface) aCylinder =
638 new Geom_CylindricalSurface(gp_Ax3(), theRadius);
639 GeomAdaptor_Surface aGACyl(aCylinder);
640 TopExp_Explorer anExp(aFace, TopAbs_WIRE);
641 TopTools_ListOfShape aWires;
642 Standard_Real aUResol = aGACyl.UResolution(Precision::Confusion());
643 Standard_Real aVResol = aGACyl.VResolution(Precision::Confusion());
645 for (; anExp.More(); anExp.Next()) {
646 TopoDS_Wire aWire = TopoDS::Wire(anExp.Current());
647 BRepTools_WireExplorer aWExp(aWire, aFace);
648 BRepBuilderAPI_MakeWire aMkWire;
650 for (; aWExp.More(); aWExp.Next()) {
651 TopoDS_Edge anEdge = aWExp.Current();
652 Handle(Geom2d_Curve) aCurve =
653 BRep_Tool::CurveOnSurface(anEdge, aFace, aPar[0], aPar[1]);
655 if (aCurve.IsNull()) {
660 aCurve = Handle(Geom2d_Curve)::DownCast(aCurve->Transformed(aRotTrsf));
663 // Transform the curve to cylinder's parametric space.
664 Handle(GEOMUtils::HTrsfCurve2d) aTrsfCurve =
665 new GEOMUtils::HTrsfCurve2d(aCurve, aPar[0], aPar[1], aTrsf2d);
666 Approx_Curve2d aConv (aTrsfCurve, aPar[0], aPar[1],
667 aUResol, aVResol, GeomAbs_C1,
670 if (!aConv.IsDone() && !aConv.HasResult()) {
674 Handle(Geom2d_Curve) aCylCurve = aConv.Curve();
677 aCylCurve->Transform(aScaleTrsf);
680 // Create edge and add it to the wire.
681 BRepBuilderAPI_MakeEdge aMkEdge(aCylCurve, aCylinder);
683 if (!aMkEdge.IsDone()) {
687 aMkWire.Add(aMkEdge.Edge());
689 if (!aMkWire.IsDone()) {
694 if (aWire.IsSame(anOuterWire)) {
695 // Make the outer wire first.
696 aWires.Prepend(aMkWire.Wire());
698 aWires.Append(aMkWire.Wire());
703 if (aWires.IsEmpty()) {
707 TopTools_ListIteratorOfListOfShape aWIter(aWires);
708 TopoDS_Wire aWire = TopoDS::Wire(aWIter.Value());
709 BRepBuilderAPI_MakeFace aMkFace(aCylinder, aWire);
711 if (!aMkFace.IsDone()) {
715 for (aWIter.Next(); aWIter.More(); aWIter.Next()) {
716 aWire = TopoDS::Wire(aWIter.Value());
719 if (!aMkFace.IsDone()) {
725 TopoDS_Face aCylFace = aMkFace.Face();
726 TopoDS_Shape aResShape;
728 BRepLib::BuildCurves3d(aCylFace);
731 if (aType == TopAbs_WIRE) {
732 TopExp_Explorer aResExp(aCylFace, TopAbs_WIRE);
734 if (aResExp.More()) {
735 aResShape = aResExp.Current();
738 aResShape = aCylFace;
741 if (aResShape.IsNull() == Standard_False) {
742 if (!GEOMUtils::CheckShape(aResShape, true)) {
743 if (!GEOMUtils::FixShapeTolerance(aResShape)) {
754 IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ProjectionDriver,GEOM_BaseDriver)