Skip to content
Snippets Groups Projects
Commit a6ce3cfe authored by Johannes Eder's avatar Johannes Eder
Browse files

refactoring

parent ca45699d
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ import static org.fortiss.tooling.graphicsGL.ui.util.GLPrimitives.prepareName;
import static org.fortiss.tooling.graphicsGL.ui.util.GLPrimitives.restoreMatrix;
import static org.fortiss.tooling.graphicsGL.ui.util.GLPrimitives.saveMatrix;
import static org.fortiss.tooling.graphicsGL.ui.util.GLPrimitives.setColor;
import static org.fortiss.tooling.graphicsGL.util.Graphics3DModelElementFactory.RED;
import static org.fortiss.tooling.graphicsGL.util.Graphics3DModelElementFactory.BLUE;
import static org.fortiss.tooling.graphicsGL.util.Graphics3DModelElementFactory.WHITE;
import static org.lwjgl.util.glu.GLU.GLU_FILL;
......@@ -69,11 +69,17 @@ public class Graph3DViewObject extends ViewObjectBase {
setColor(WHITE);
for(GraphPoint3D p : graph.getPointsList()) {
if(p == highlighted) {
setColor(RED);
setColor(BLUE);
renderPoint(p);
setColor(WHITE);
} else {
setColor(WHITE);
Color3D color = p.getColor();
if(color != null) {
setColor(color);
}
renderPoint(p);
setColor(WHITE);
}
}
for(GraphLine3D l : graph.getLinesList()) {
......
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