Commit 51ca019d authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

ack, problem is roundoff error

parent 6c1e4b97
...@@ -74,7 +74,7 @@ f""" ...@@ -74,7 +74,7 @@ f"""
#include <png.h> #include <png.h>
using namespace std; using namespace std;
int fn(float X,float Y,float Z) {{ int fn(float X,float Y,float Z) {{
cout << Z << ' ' << ({fn}) << endl; cout << Z << ' ' << (Z-(-0.06)) << endl;
return ({fn}); return ({fn});
}} }}
int main(int argc, char** argv) {{ int main(int argc, char** argv) {{
......
...@@ -7958,10 +7958,6 @@ mask = .004 # solder mask size ...@@ -7958,10 +7958,6 @@ mask = .004 # solder mask size
pcb = PCB(x,y,width,height,mask) pcb = PCB(x,y,width,height,mask)
pcb = wire(pcb,w,
point(x,y,zt),
point(x+width,y,zt))
pcb = wire(pcb,w, pcb = wire(pcb,w,
point(x,y,zb), point(x,y,zb),
point(x,y+height,zb)) point(x,y+height,zb))
......
{"function": "(16777215*(((((((3.02-X)-(1))*(0.0)+(Y-(1))*(1.0)) >= 0) & ((((3.02-X)-(1))*(0.0)+(Y-(1))*(1.0)) <= 0.8700000000000001) & ((((3.02-X)-(1))*(-1.0)+(Y-(1))*(0.0)) >= (-0.015/2)) & ((((3.02-X)-(1))*(-1.0)+(Y-(1))*(0.0)) <= (0.015/2)) & (Z == (-0.06))))))", "layers": [-0.06], "xmin": 0.95, "xmax": 2.07, "ymin": 0.95, "ymax": 1.9200000000000002, "mm_per_unit": 25.4, "type": "RGB"}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment