add more selection info. merge groups and models stats

This commit is contained in:
Stewart Allen 2022-01-05 21:16:18 -05:00
commit 5e9aed2c9a
3 changed files with 45 additions and 13 deletions

View file

@ -127,6 +127,18 @@ mesh.model = class MeshModel extends mesh.object {
this._group = gv;
}
get attributes() {
return this.mesh.geometry.attributes;
}
get vertices() {
return this.attributes.vertices.count;
}
get faces() {
return this.vertices / 3;
}
opacity(ov) {
let mat = this.mesh.material;
if (ov === undefined) {