Skip to content

Commit

Permalink
Use the number of steps to make the z value be explicate and absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jan 11, 2025
1 parent 5cf631a commit f6e3ee1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public static CSG sweep(Polygon p, String name, Bounds b) {

int steps=(int)new LengthParameter(name + "_CaDoodle_Step", 30.0, nopt).getMM();
double angle=new LengthParameter(name + "_CaDoodle_Angle", 360.0, nopt).getMM()/steps;
double z=new LengthParameter(name + "_CaDoodle_Z", 0.0, nopt).getMM();
double d = new LengthParameter(name + "_CaDoodle_Z", 0.0, nopt).getMM()-b.getTotalY();
if(d<0)
d=0;
double z=d/steps;
double radius=new LengthParameter(name + "_CaDoodle_Rad", 10.0, nopt).getMM();
if(angle<0)
angle=-angle;
Expand Down

0 comments on commit f6e3ee1

Please sign in to comment.