mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 23:43:27 +01:00
not show boundary
This commit is contained in:
parent
28faec86ab
commit
92ff059969
3 changed files with 6 additions and 3 deletions
|
|
@ -260,9 +260,10 @@ TCAD.SketchFace = function(poly) {
|
|||
this.sketch3DGroup = null;
|
||||
};
|
||||
|
||||
TCAD.SketchFace.prototype.syncSketches = function(geom) {
|
||||
var material = new THREE.LineBasicMaterial({
|
||||
TCAD.SketchFace.prototype.SKETCH_MATERIAL = new THREE.LineBasicMaterial({
|
||||
color: 0xFFFFFF, linewidth: 3});
|
||||
|
||||
TCAD.SketchFace.prototype.syncSketches = function(geom) {
|
||||
var normal = this.polygon.normal;
|
||||
var offVector = normal.multiply(0.5);
|
||||
|
||||
|
|
@ -285,7 +286,7 @@ TCAD.SketchFace.prototype.syncSketches = function(geom) {
|
|||
|
||||
lg.vertices.push(a.plus(offVector).three());
|
||||
lg.vertices.push(b.plus(offVector).three());
|
||||
var line = new THREE.Segment(lg, material);
|
||||
var line = new THREE.Segment(lg, this.SKETCH_MATERIAL);
|
||||
this.sketch3DGroup.add(line);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ TCAD.App = function() {
|
|||
this.viewer.scene.add(sketchFace.sketch3DGroup);
|
||||
}
|
||||
}
|
||||
this.viewer.render();
|
||||
|
||||
|
||||
function storage_handler(evt) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ TCAD.workbench.readSketchGeom = function(sketch) {
|
|||
for (var l = 0; l < sketch.layers.length; ++l) {
|
||||
for (var i = 0; i < sketch.layers[l].length; ++i) {
|
||||
var obj = sketch.layers[l][i];
|
||||
if (obj.edge !== undefined) continue;
|
||||
if (obj._class === 'TCAD.TWO.Segment') {
|
||||
out.lines.push([
|
||||
obj.points[0][1][1], obj.points[0][2][1], //x,y
|
||||
|
|
|
|||
Loading…
Reference in a new issue