Skip to content
Snippets Groups Projects
Commit bfdb8f5d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

parFromPoint returns numeric_limit::max() if failed

parent 769f0fb2
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ class GEdge : public GEntity { ...@@ -53,6 +53,7 @@ class GEdge : public GEntity {
virtual std::list<GFace*> faces() const { return l_faces; } virtual std::list<GFace*> faces() const { return l_faces; }
// get the parameter location for a point in space on the edge // get the parameter location for a point in space on the edge
// (returns std::numeric_limits<double>::max() if failed)
virtual double parFromPoint(const SPoint3 &) const = 0; virtual double parFromPoint(const SPoint3 &) const = 0;
// get the point for the given parameter location // get the point for the given parameter location
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>. // bugs and problems to <gmsh@geuz.org>.
#include <limits>
#include "GModel.h" #include "GModel.h"
#include "Message.h" #include "Message.h"
#include "OCCEdge.h" #include "OCCEdge.h"
...@@ -130,7 +131,7 @@ SVector3 OCCEdge::firstDer(double par) const ...@@ -130,7 +131,7 @@ SVector3 OCCEdge::firstDer(double par) const
double OCCEdge::parFromPoint(const SPoint3 &pt) const double OCCEdge::parFromPoint(const SPoint3 &pt) const
{ {
Msg::Error("parFromPoint not implemented for OCCEdge"); Msg::Error("parFromPoint not implemented for OCCEdge");
return 0.; return std::numeric_limits<double>::max();
} }
GEntity::GeomType OCCEdge::geomType() const GEntity::GeomType OCCEdge::geomType() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment