- for ( int i = 1; i <= myPolygonFaces.Length(); i++ )
- {
- TopoDS_Face aFace = TopoDS::Face(myPolygonFaces.Value( i ));
- if ( aViewManager && !aCtx.IsNull() )
- {
- HYDROGUI_Shape* aShape = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
- //Green color for now..
- aShape->setFillingColor(QColor(0,255,0), false, false);
- aShape->setBorderColor(QColor(0,255,0), false, false);
- if( !aFace.IsNull() )
- aShape->setShape( aFace);
-
- myPolygonName2PrsShape.insert( "polygon_" + QString::number(i), aShape);
- }
- }
- if ( !aCtx.IsNull() )
+ for ( int i = 1; i <= myPolygonFaces.Length(); i++ )
+ {
+ TopoDS_Face aFace = TopoDS::Face(myPolygonFaces.Value( i ));
+ if ( aViewManager && !aCtx.IsNull() )