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
Added new geometrical objects
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Pnt.cpp
diff --git
a/src/GeomAPI/GeomAPI_Pnt.cpp
b/src/GeomAPI/GeomAPI_Pnt.cpp
index 83d1dddf9adad8bc90bbff2829df19c80238f8e3..abf73f07bad436622fbc36819131fdc4f994cbde 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Pnt.cpp
+++ b/
src/GeomAPI/GeomAPI_Pnt.cpp
@@
-51,3
+51,8
@@
const boost::shared_ptr<GeomAPI_XYZ> GeomAPI_Pnt::xyz()
{
return boost::shared_ptr<GeomAPI_XYZ>(new GeomAPI_XYZ(MY_PNT->X(), MY_PNT->Y(), MY_PNT->Z()));
}
+
+double GeomAPI_Pnt::distance(const boost::shared_ptr<GeomAPI_Pnt>& theOther) const
+{
+ return MY_PNT->Distance(theOther->impl<gp_Pnt>());
+}