Skip to content

Commit 4f2ec15

Browse files
committed
Improved model corners to reduce blockiness
1 parent 27da01c commit 4f2ec15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/STLWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void writeSTLfromArray(const vector<float> &hList, int width, int height, float
112112
Vector c = Vector((x-1)*xScale,y-1,hc);
113113
Vector d = Vector((x-1)*xScale,y,hd);
114114

115-
if(abs(hd-hb)>abs(ha-hc)){
115+
if(abs(hd-hb)<abs(ha-hc)){
116116
addTriangle(createTriangle(a,d,b));
117117
addTriangle(createTriangle(c,b,d));
118118
}else{

0 commit comments

Comments
 (0)