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