change default wire view to edges and persist preference
This commit is contained in:
parent
96095a3870
commit
5650f25f3d
4 changed files with 27 additions and 13 deletions
|
|
@ -449,12 +449,13 @@ class MeshModel extends meshObject {
|
|||
}
|
||||
if (was) {
|
||||
this.mesh.remove(this._wire);
|
||||
this._wire?.geometry.dispose();
|
||||
this._wire = undefined;
|
||||
this.opacity({restore: true});
|
||||
}
|
||||
if (bool === 'edges') {
|
||||
let edges = new THREE.EdgesGeometry(this.mesh.geometry, 5);
|
||||
this._wire = new THREE.LineSegments(edges, materials.wireframe);
|
||||
if (bool && opt.edges) {
|
||||
let edges = new THREE.EdgesGeometry(this.mesh.geometry, opt.edges);
|
||||
this._wire = new THREE.LineSegments(edges, materials.wireline);
|
||||
this.mesh.add(this._wire);
|
||||
this.opacity({temp: opt.opacity || 0.15});
|
||||
} else if (bool) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue