mirror of
https://github.com/Theaninova/Bampy.git
synced 2025-12-12 20:46:19 +00:00
feat: stuff
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
export let buildSurface = [300, 300, 300];
|
export let buildSurface = [300, 300, 300];
|
||||||
export let layerHeight = 0.2;
|
export let layerHeight = 0.2;
|
||||||
export let nozzleSize = 0.4;
|
export let nozzleSize = 0.4;
|
||||||
export let tolerance = 0.005;
|
export let tolerance = 0.1;
|
||||||
|
|
||||||
export let maxNonPlanarAngle = MathUtils.degToRad(20);
|
export let maxNonPlanarAngle = MathUtils.degToRad(20);
|
||||||
export let bedNormal = new Vector3(0, 0, 1);
|
export let bedNormal = new Vector3(0, 0, 1);
|
||||||
@@ -80,7 +80,6 @@
|
|||||||
const faceIndex = qualifyingTriangles.findIndex((it) => it);
|
const faceIndex = qualifyingTriangles.findIndex((it) => it);
|
||||||
qualifyingTriangles[faceIndex] = false;
|
qualifyingTriangles[faceIndex] = false;
|
||||||
qualifyingTrianglesCount--;
|
qualifyingTrianglesCount--;
|
||||||
console.log(qualifyingTrianglesCount);
|
|
||||||
const surface = [faceIndex];
|
const surface = [faceIndex];
|
||||||
let cursor = 0;
|
let cursor = 0;
|
||||||
while (cursor < surface.length) {
|
while (cursor < surface.length) {
|
||||||
@@ -100,7 +99,6 @@
|
|||||||
) {
|
) {
|
||||||
qualifyingTriangles[triangleIndex] = false;
|
qualifyingTriangles[triangleIndex] = false;
|
||||||
qualifyingTrianglesCount--;
|
qualifyingTrianglesCount--;
|
||||||
console.log(qualifyingTrianglesCount);
|
|
||||||
surface.push(triangleIndex);
|
surface.push(triangleIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,7 +120,7 @@
|
|||||||
surface = new BufferGeometry();
|
surface = new BufferGeometry();
|
||||||
surface.setAttribute('position', positions);
|
surface.setAttribute('position', positions);
|
||||||
surface.setAttribute('normal', $stl.getAttribute('normal'));
|
surface.setAttribute('normal', $stl.getAttribute('normal'));
|
||||||
surface.setIndex(surfaces[0].flat());
|
surface.setIndex(surfaces[4]);
|
||||||
|
|
||||||
/*const hull: [position: Vector3, index: number][][] = [];
|
/*const hull: [position: Vector3, index: number][][] = [];
|
||||||
let limit = 0;
|
let limit = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user