add more selection info. merge groups and models stats
This commit is contained in:
parent
3d1e111801
commit
5e9aed2c9a
3 changed files with 45 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue