bump rev 3.3.D16
This commit is contained in:
parent
262a86cd2e
commit
cc250e8a49
5 changed files with 10 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "grid-apps",
|
||||
"version": "3.3.15D",
|
||||
"version": "3.3.16D",
|
||||
"description": "grid.space 3d slice & modeling tools",
|
||||
"author": "Stewart Allen <sa@grid.space>",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ gapp.main("main.kiri", [], (root) => {
|
|||
const modfns = root.kirimod = ( root.kirimod || [] );
|
||||
|
||||
const kiri = root.kiri = {
|
||||
beta: 3315,
|
||||
beta: 3316,
|
||||
driver: {}, // driver modules
|
||||
load(fn) {
|
||||
modfns.push(fn);
|
||||
|
|
|
|||
|
|
@ -158,11 +158,15 @@ mesh.tool = class MeshTool {
|
|||
}
|
||||
|
||||
findConnectedSurface(faces, radians) {
|
||||
const found = {};
|
||||
const check = faces.slice();
|
||||
for (let face of faces) {
|
||||
found[face] = 1;
|
||||
}
|
||||
while (check.length) {
|
||||
const face = check.shift();
|
||||
const norm = this.normals[face];
|
||||
const fadj = this.getAdjacentFaces(face).filter(f => !faces.contains(f));
|
||||
const fadj = this.getAdjacentFaces(face).filter(f => !found[f]);
|
||||
for (let f of fadj) {
|
||||
const fn = this.normals[f]
|
||||
.map((v,i) => Math.abs(norm[i] - v))
|
||||
|
|
@ -170,6 +174,7 @@ mesh.tool = class MeshTool {
|
|||
if (fn <= radians) {
|
||||
faces.push(f);
|
||||
check.push(f)
|
||||
found[f] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -325,8 +325,7 @@ let model = {
|
|||
}
|
||||
const tool = rec.tool;
|
||||
if (tool && tool.sides && radians) {
|
||||
const surface = tool.findConnectedSurface(faces, radians);
|
||||
// console.log({surface});
|
||||
tool.findConnectedSurface(faces, radians);
|
||||
}
|
||||
return { faces, edges, verts, point };
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
let terms = {
|
||||
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||
LICENSE: "See the license.md file included with the source distribution",
|
||||
VERSION: "3.3.D15"
|
||||
VERSION: "3.3.D16"
|
||||
};
|
||||
|
||||
if (typeof(module) === 'object') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue