Skip to content
Snippets Groups Projects
Commit 98b873ea authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 6c1d3992
No related branches found
No related tags found
No related merge requests found
// $Id: GEdge.cpp,v 1.25 2007-03-18 23:02:26 geuzaine Exp $ // $Id: GEdge.cpp,v 1.26 2007-05-04 08:56:17 remacle Exp $
// //
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
// //
...@@ -157,3 +157,8 @@ double GEdge::curvature(double par) const ...@@ -157,3 +157,8 @@ double GEdge::curvature(double par) const
SVector3 d = one_over_D*(n2-n1); SVector3 d = one_over_D*(n2-n1);
return norm(d); return norm(d);
} }
bool GEdge::is_mesh_degenereted() const
{
return (v0==v1 && mesh_vertices.size()<2);
}
...@@ -44,6 +44,8 @@ class GEdge : public GEntity { ...@@ -44,6 +44,8 @@ class GEdge : public GEntity {
void addFace(GFace *f); void addFace(GFace *f);
void delFace(GFace *f); void delFace(GFace *f);
/* start==end and no more than 2 segments */
bool is_mesh_degenereted() const;
virtual int dim() const {return 1;} virtual int dim() const {return 1;}
virtual bool periodic(int dim=0) const = 0; virtual bool periodic(int dim=0) const = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment