Skip to content

Commit

Permalink
Improved model corners to reduce blockiness
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatcherC committed Mar 4, 2016
1 parent 27da01c commit 4f2ec15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/STLWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void writeSTLfromArray(const vector<float> &hList, int width, int height, float
Vector c = Vector((x-1)*xScale,y-1,hc);
Vector d = Vector((x-1)*xScale,y,hd);

if(abs(hd-hb)>abs(ha-hc)){
if(abs(hd-hb)<abs(ha-hc)){
addTriangle(createTriangle(a,d,b));
addTriangle(createTriangle(c,b,d));
}else{
Expand Down

0 comments on commit 4f2ec15

Please sign in to comment.