Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #2998: Add help description for automatic creation of constraints
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Pln.cpp
diff --git
a/src/GeomAPI/GeomAPI_Pln.cpp
b/src/GeomAPI/GeomAPI_Pln.cpp
index 60e417c7c5df4d79f6c29ab2f9ecb2c8533f2c86..c52dda9d659e869e48c55bc1c6e19a1aeebe1977 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Pln.cpp
+++ b/
src/GeomAPI/GeomAPI_Pln.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include <GeomAPI_Pln.h>
//
#include <GeomAPI_Pln.h>
@@
-120,6
+119,13
@@
double GeomAPI_Pln::distance(const std::shared_ptr<GeomAPI_Pln> thePlane) const
return aMyPln.Distance(anOtherPln);
}
return aMyPln.Distance(anOtherPln);
}
+double GeomAPI_Pln::distance(const std::shared_ptr<GeomAPI_Pnt> thePoint) const
+{
+ const gp_Pln& aMyPln = impl<gp_Pln>();
+ const gp_Pnt& aPnt = thePoint->impl<gp_Pnt>();
+ return aMyPln.Distance(aPnt);
+}
+
void GeomAPI_Pln::translate(const std::shared_ptr<GeomAPI_Dir> theDir, double theDist)
{
gp_Vec aVec(theDir->impl<gp_Dir>());
void GeomAPI_Pln::translate(const std::shared_ptr<GeomAPI_Dir> theDir, double theDist)
{
gp_Vec aVec(theDir->impl<gp_Dir>());