Browse Source

Draw selected triangle surface highlight as a ofPolyline

master
Krisjanis Rijnieks 9 years ago
parent
commit
5f5cc00ff0
  1. 13
      src/Surfaces/SurfaceManagerGui.cpp

13
src/Surfaces/SurfaceManagerGui.cpp

@ -294,8 +294,19 @@ void SurfaceManagerGui::drawSelectedSurfaceHighlight(){
ofSetColor(255, 255, 255, 255); ofSetColor(255, 255, 255, 255);
line.draw(); line.draw();
ofPopStyle(); ofPopStyle();
}else{ }else if(surfaceManager->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){
surfaceManager->getSelectedSurface()->getMesh().drawWireframe(); surfaceManager->getSelectedSurface()->getMesh().drawWireframe();
}else{
ofPolyline p;
for(unsigned int i = 0;
i < surfaceManager->getSelectedSurface()->getMesh().getVertices().size();
++i){
p.addVertex(ofPoint(
surfaceManager->getSelectedSurface()->getMesh().getVertices()[i]));
}
p.close();
p.draw();
} }
} }

Loading…
Cancel
Save