mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 09:24:18 +01:00
change color for wireframe and sketches
This commit is contained in:
parent
5dc1300e57
commit
e30f53262a
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue