X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IBasicOperations.cxx;h=ba99a4da67e042fe4f616dc19f028ee240cae031;hb=e067674b75266d9f67a2c474d8dc901d9f65fe48;hp=200a4eec53724c3d38c7c409cda0901499a25921;hpb=40d76807e945ceef6a730f4d0177e167d3ccb453;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx b/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx index 200a4eec5..ba99a4da6 100644 --- a/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IBasicOperations.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -25,7 +25,6 @@ #include #include "utilities.h" -#include #include #include @@ -185,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) { @@ -251,6 +251,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::makePointOnGeom break; case PointOn_Face: aPI.SetSurface(aRefFunction); + aPI.SetNumberOfPoints(theNumberOfPnts); break; default: break; } @@ -297,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; } @@ -317,7 +318,7 @@ Handle(GEOM_Object) GEOMImpl_IBasicOperations::MakePointOnCurve bool takeOrientationIntoAccount) { return makePointOnGeom(theCurve, theParameter, 0.0, 0.0, PointOn_CurveByParam, - takeOrientationIntoAccount); + 1, takeOrientationIntoAccount); } //============================================================================= @@ -345,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); } //============================================================================= @@ -380,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); } //=============================================================================