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

wip

parent 1d0008ca
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ var outputs = {
var fn = `Math.min(${fn},Math.min(Y-0,${size}-Y))`
var fn = `Math.min(${fn},Math.min(Z-0,${size}-Z))`
for (var d = 0; d < depth; ++d) {
var fn = `Math.min(${fn},-Math.min(Math.min((Math.pow(3,${d})*X/${size})%1-1/3,2/3-(Math.pow(3,${d})*X/${size})%1),Math.min((Math.pow(3,${d})*Y/${size})%1-1/3,2/3-(Math.pow(3,${d})*Y/${size})%1)))`
var fn = `Math.min(${fn},-Math.min(Math.min((Math.pow(3,${d})*X/${size})%1-1/3,2/3-(Math.pow(3,${d})*X/${size})%1),Math.min(Math.min((Math.pow(3,${d})*Y/${size})%1-1/3,2/3-(Math.pow(3,${d})*Y/${size})%1),Math.min((Math.pow(3,${d})*Z/${size})%1-1/3,2/3-(Math.pow(3,${d})*Z/${size})%1))))`
}
var variables = ['X','Y','Z']
var limits = [[0,size],[0,size],[0,size]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment