From e30f53262a0db90fdae816a33aecc29e5e76fa13 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Tue, 1 Sep 2015 21:14:19 -0700 Subject: [PATCH] change color for wireframe and sketches --- web/app/engine.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/engine.js b/web/app/engine.js index fcfaf171..331ecfc9 100644 --- a/web/app/engine.js +++ b/web/app/engine.js @@ -410,7 +410,7 @@ TCAD.Solid.prototype.makeWireframe = function(polygons) { var lg = new THREE.Geometry(); lg.vertices.push(a); lg.vertices.push(b); - var line = new THREE.Segment(lg, TCAD.SketchFace.prototype.SKETCH_MATERIAL); + var line = new THREE.Segment(lg, TCAD.SketchFace.prototype.WIREFRAME_MATERIAL); this.wireframeGroup.add(line); edges.put(edge, true); } @@ -442,7 +442,9 @@ TCAD.SketchFace = function(solid, poly) { if (typeof THREE !== "undefined") { TCAD.SketchFace.prototype.SKETCH_MATERIAL = new THREE.LineBasicMaterial({ - color: 0xFFFFFF, linewidth: 3}); + color: 0xFFFFFF, linewidth: 3}); + TCAD.SketchFace.prototype.WIREFRAME_MATERIAL = new THREE.LineBasicMaterial({ + color: 0x2B3856, linewidth: 3}); } TCAD.SketchFace.prototype.syncSketches = function(geom) {