discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

double height from minkowski function?

F
fred_dot_u
Thu, Mar 24, 2016 11:37 PM

I've defined the height to be 6 in the following assignments. When I parse
out each individual segment, the numbers are correct, yet when the model is
created, it is 12 high.

Is this an undocumented feature, or have I created a typo I am unable to
recognize?

thanks
fred

--
View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I've defined the height to be 6 in the following assignments. When I parse out each individual segment, the numbers are correct, yet when the model is created, it is 12 high. Is this an undocumented feature, or have I created a typo I am unable to recognize? thanks fred -- View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
Parkinbot
Thu, Mar 24, 2016 11:48 PM

Minkowski adds up all dimensions, also the height. So you have to use
spindle_base_height = 3;

Why? Otherwise this code wouldn't work:

w = spindle_base_diameter / sqrt(2) - (2 * mink_radius);
minkowski()
{
cube([w,w,h]);
sphere(spindle_base_height);
}

--
View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714p16715.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Minkowski adds up all dimensions, also the height. So you have to use spindle_base_height = 3; Why? Otherwise this code wouldn't work: > w = spindle_base_diameter / sqrt(2) - (2 * mink_radius); > minkowski() > { > cube([w,w,h]); > sphere(spindle_base_height); > } -- View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714p16715.html Sent from the OpenSCAD mailing list archive at Nabble.com.
F
fred_dot_u
Fri, Mar 25, 2016 12:46 AM

That's good to know. An easy fix, thank you very much

--
View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714p16716.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

That's good to know. An easy fix, thank you very much -- View this message in context: http://forum.openscad.org/double-height-from-minkowski-function-tp16714p16716.html Sent from the OpenSCAD mailing list archive at Nabble.com.