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

occ work
parent b2d1d583
No related branches found
No related tags found
No related merge requests found
// $Id: Mesh.cpp,v 1.188 2006-11-14 15:21:03 geuzaine Exp $ // $Id: Mesh.cpp,v 1.189 2006-11-14 17:04:55 geuzaine Exp $
// //
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -88,7 +88,7 @@ static unsigned int getColorByElement(MElement *ele) ...@@ -88,7 +88,7 @@ static unsigned int getColorByElement(MElement *ele)
else{ // by entity else{ // by entity
for(int i = 0; i < ele->getNumVertices(); i++){ for(int i = 0; i < ele->getNumVertices(); i++){
GEntity *e = ele->getVertex(i)->onWhat(); GEntity *e = ele->getVertex(i)->onWhat();
if(e->dim() == ele->getDim()) if(e && (e->dim() == ele->getDim()))
return getColorByEntity(e); return getColorByEntity(e);
} }
} }
......
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