Skip to content
Snippets Groups Projects
Commit 7a2f4774 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

slicing has parity artifacts

parent f67db662
Branches
No related tags found
No related merge requests found
// //
// mesh slice raster // mesh slice raster
// //
// todo
// fill interior
// slice planar vertices
//
// Neil Gershenfeld // Neil Gershenfeld
// (c) Massachusetts Institute of Technology 2018 // (c) Massachusetts Institute of Technology 2018
// //
...@@ -496,9 +492,9 @@ function worker() { ...@@ -496,9 +492,9 @@ function worker() {
// //
// check for crossings // check for crossings
// //
if ((v[0][2] <= (zmax-depth)) && (v[2][2] >= (zmax-depth))) { if ((v[0][2] < (zmax-depth)) && (v[2][2] > (zmax-depth))) {
// //
// crossing found, check for side and stroke // crossing found, check for side and save
// //
if (v[1][2] < (zmax-depth)) { if (v[1][2] < (zmax-depth)) {
var x0 = v[2][0]+(v[0][0]-v[2][0]) var x0 = v[2][0]+(v[0][0]-v[2][0])
...@@ -527,14 +523,6 @@ function worker() { ...@@ -527,14 +523,6 @@ function worker() {
} }
} }
// //
// sort segments
// map reduce filter foreach sort summon heroes
//
//var y0 = segs.map((p,index) => [p[1],index])
//var y1 = segs.map((p,index) => [p[3],index])
//y0.sort((a,b) => (a[0]-b[0]))
//y1.sort((a,b) => (a[0]-b[0]))
//
// fill interior // fill interior
// //
for (var row = 0; row < h; ++row) { for (var row = 0; row < h; ++row) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment