X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IBasicOperations.cxx;fp=src%2FGEOMImpl%2FGEOMImpl_IBasicOperations.cxx;h=659d8ff6484799c5f8f8678f251adb8e958c1374;hb=66a2554913f5c53b13a4e811160becede9b11132;hp=352a6ed19d6bda52ab00bf264dcd9d2f3307c260;hpb=ade417c569fc552473b95f31f9624449dce21b8a;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx b/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx index 352a6ed19..659d8ff64 100644 --- a/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx @@ -184,6 +184,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::makePointOnGeom double theParam2, double theParam3, const PointLocation theLocation, + int theNumberOfPnts, const bool takeOrientationIntoAccount, Handle(GEOM_Object) theRefPoint) { @@ -250,6 +251,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::makePointOnGeom break; case PointOn_Face: aPI.SetSurface(aRefFunction); + aPI.SetNumberOfPoints(theNumberOfPnts); break; default: break; } @@ -296,7 +298,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::makePointOnGeom break; case PointOn_Face: GEOM::TPythonDump(aFunction) << aPoint << " = geompy.MakeVertexInsideFace(" - << theGeomObj << ")"; + << theGeomObj << ", " << theNumberOfPnts << ")"; break; default: break; } @@ -316,7 +318,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnCurve bool takeOrientationIntoAccount) { return makePointOnGeom(theCurve, theParameter, 0.0, 0.0, PointOn_CurveByParam, - takeOrientationIntoAccount); + 1, takeOrientationIntoAccount); } //============================================================================= @@ -344,7 +346,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnCurveByLength Handle(GEOM_Object) theStartPoint) { return makePointOnGeom(theCurve, theLength, 0.0, 0.0, PointOn_CurveByLength, - false, theStartPoint); + 1, false, theStartPoint); } //============================================================================= @@ -379,9 +381,10 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnSurfaceByCoord * MakePointOnFace */ //============================================================================= -Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnFace (Handle(GEOM_Object) theFace) +Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnFace (Handle(GEOM_Object) theFace, + int theNumberOfPnts) { - return makePointOnGeom(theFace, 0., 0., 0., PointOn_Face); + return makePointOnGeom(theFace, 0., 0., 0., PointOn_Face, theNumberOfPnts); } //=============================================================================