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

set min num pts=2 for OCC circles (fixes bug in Mblade.iges)
parent a0fa9e8f
No related branches found
No related tags found
No related merge requests found
// $Id: OCCEdge.cpp,v 1.16 2007-01-16 11:31:41 geuzaine Exp $
// $Id: OCCEdge.cpp,v 1.17 2007-01-23 08:52:04 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -184,12 +184,15 @@ GEntity::GeomType OCCEdge::geomType() const
}
}
int OCCEdge::minimumMeshSegments () const
int OCCEdge::minimumMeshSegments() const
{
return GEdge::minimumMeshSegments () ;
if(geomType() == Circle || geomType() == Ellipse)
return 2;
else
return GEdge::minimumMeshSegments();
}
int OCCEdge::minimumDrawSegments () const
int OCCEdge::minimumDrawSegments() const
{
int n = GEdge::minimumDrawSegments();
......
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