add (flawed) faces to sketch

This commit is contained in:
Stewart Allen 2024-08-15 13:46:12 -04:00
commit 2ca2dc1c70
5 changed files with 41 additions and 5 deletions

View file

@ -680,7 +680,9 @@ let sketch = {
let add = {
sketch(opt) {
selection.set([ sketch.add(new mesh.sketch(opt)) ]);
let nu = new mesh.sketch(opt);
selection.set([ sketch.add(nu) ]);
return nu;
},
/** add sketch components */
@ -1071,6 +1073,12 @@ const tool = {
}
},
toSketch() {
for (let m of selection.models()) {
m.selectionToSketch();
}
},
rename(models, type = 'model') {
models = fallback(models, true);
let model = models[0];