Results 1 to 10 of 74
Thread: Need some geometry help
Threaded View
-
12-08-2014, 04:21 AM #16
Roxy, you put this up in post # 37:
He has defined a new pow() function that allows a negative number to be raised to a fractional power. Check out the very end of his .C file.
Code:
double power(double f,double p)
{
int sign;
double absf;
sign = (f < 0 ? -1 : 1);
absf = (f < 0 ? -f : f);
if (absf < 0.00001)
return(0.0);
else
return(sign * pow(absf,p));
}
would you explain what a pow() function is? I believe that function is recognised by Openscad
OME
New to 3d printing looking for...
05-20-2024, 12:56 AM in Tips, Tricks and Tech Help