Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27cd93
)
Compilation fix.
author
dbv
<dbv@opencascade.com>
Wed, 6 Jul 2016 08:56:00 +0000
(11:56 +0300)
committer
dbv
<dbv@opencascade.com>
Wed, 6 Jul 2016 08:56:26 +0000
(11:56 +0300)
src/GeomAPI/GeomAPI_Edge.cpp
patch
|
blob
|
history
diff --git
a/src/GeomAPI/GeomAPI_Edge.cpp
b/src/GeomAPI/GeomAPI_Edge.cpp
index 84f63b17f011665b7b868ce1383c14eaf1cef059..0a590bd9909a3de505c52741e7975800d5ad8678 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Edge.cpp
+++ b/
src/GeomAPI/GeomAPI_Edge.cpp
@@
-227,5
+227,7
@@
bool GeomAPI_Edge::isInPlane(std::shared_ptr<GeomAPI_Pln> thePlane) const
double GeomAPI_Edge::length() const
{
const TopoDS_Edge& anEdge = TopoDS::Edge(impl<TopoDS_Shape>());
- return GCPnts_AbscissaPoint::Length(BRepAdaptor_Curve(anEdge));
+ BRepAdaptor_Curve aBRepAdaptor = BRepAdaptor_Curve(anEdge);
+ Adaptor3d_Curve* anAdaptor3d = &aBRepAdaptor;
+ return GCPnts_AbscissaPoint::Length(*anAdaptor3d);
}