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
A fix to remove the selection filter by abort the sketch operation.
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Curve.cpp
diff --git
a/src/GeomAPI/GeomAPI_Curve.cpp
b/src/GeomAPI/GeomAPI_Curve.cpp
index 77bf7d9a2660842d0fee494d689961fbe6b57106..9b4f4e26d8e8869945df7aa7a5b24ef34bb93ff5 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Curve.cpp
+++ b/
src/GeomAPI/GeomAPI_Curve.cpp
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: GeomAPI_Curve.cpp
// Created: 04 Sep 2014
// Author: Mikhail PONIKAROV
// File: GeomAPI_Curve.cpp
// Created: 04 Sep 2014
// Author: Mikhail PONIKAROV
@@
-19,7
+21,7
@@
GeomAPI_Curve::GeomAPI_Curve()
{
}
{
}
-GeomAPI_Curve::GeomAPI_Curve(const
boost
::shared_ptr<GeomAPI_Shape>& theShape)
+GeomAPI_Curve::GeomAPI_Curve(const
std
::shared_ptr<GeomAPI_Shape>& theShape)
: GeomAPI_Interface(new Handle_Geom_Curve()) // initially it is null
{
const TopoDS_Shape& aShape = theShape->impl<TopoDS_Shape>();
: GeomAPI_Interface(new Handle_Geom_Curve()) // initially it is null
{
const TopoDS_Shape& aShape = theShape->impl<TopoDS_Shape>();
@@
-28,7
+30,7
@@
GeomAPI_Curve::GeomAPI_Curve(const boost::shared_ptr<GeomAPI_Shape>& theShape)
Standard_Real aStart, anEnd;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, aStart, anEnd);
if (!aCurve.IsNull()) {
Standard_Real aStart, anEnd;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, aStart, anEnd);
if (!aCurve.IsNull()) {
- setImpl(
&aCurve
);
+ setImpl(
new Handle(Geom_Curve)(aCurve)
);
}
}
}
}
}
}