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

*** empty log message ***

parent 359e1e89
No related branches found
No related tags found
No related merge requests found
// $Id: OCCEdge.cpp,v 1.35 2008-02-23 16:19:22 remacle Exp $ // $Id: OCCEdge.cpp,v 1.36 2008-02-23 17:43:54 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -206,11 +206,12 @@ int OCCEdge::minimumMeshSegments() const ...@@ -206,11 +206,12 @@ int OCCEdge::minimumMeshSegments() const
else else
np = CTX.mesh.min_curv_points - 1; np = CTX.mesh.min_curv_points - 1;
// if the edge is closed, ensure that at least 3 points are generated in the // if the edge is closed, ensure that at least 3 points are
// 1D mesh (4 segments, one of which is degenerated) // generated in the 1D mesh (4 segments, one of which is
// degenerated)
if (getBeginVertex() == getEndVertex()) np = std::max(4, np); if (getBeginVertex() == getEndVertex()) np = std::max(4, np);
return std::max(np,meshAttributes.minimumMeshSegments); return std::max(np, meshAttributes.minimumMeshSegments);
} }
int OCCEdge::minimumDrawSegments() const int OCCEdge::minimumDrawSegments() 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