add geo/mesh class to contain repair utilities
This commit is contained in:
parent
cf2b282b57
commit
36be938d2a
4 changed files with 190 additions and 2 deletions
|
|
@ -26,8 +26,7 @@
|
|||
tracker = UTIL.pwait,
|
||||
newSlice = KIRI.newSlice,
|
||||
newOrderedLine = BASE.newOrderedLine,
|
||||
beltfact = Math.cos(Math.PI/4),
|
||||
ibeltfact = 1/beltfact;
|
||||
beltfact = Math.cos(Math.PI/4);
|
||||
|
||||
/**
|
||||
* Convenience method. Gets a Widget's points and calls slice()
|
||||
|
|
|
|||
|
|
@ -303,6 +303,11 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
|||
}
|
||||
};
|
||||
|
||||
PRO.debugMesh = function(precision) {
|
||||
let mesh = new base.Mesh({precision, vertices: this.getVertices().array});
|
||||
return mesh;
|
||||
};
|
||||
|
||||
PRO.getVertices = function() {
|
||||
return this.mesh.geometry.attributes.position;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue