nophead / NopSCADlib

Library of parts modelled in OpenSCAD and a framework for making projects
GNU General Public License v3.0
1.17k stars 155 forks source link

Countersunk hole for 3D printed part? #242

Closed ganzgustav22 closed 1 year ago

ganzgustav22 commented 1 year ago

I'm trying to make a countersunk hole for 3D printed parts.

I've read the documentation here, but it doesn't seem to have an explanation or example on how to call the function. https://hydraraptor.blogspot.com/2020/12/sinkholes.html

I've downloaded the NopSCADlib, extracted it, put it into a subdir and included it like this: include <NopSCADlib/lib.scad> Now I wanted to make a countersunk hole, like this: screw_polysink(type = hs_cs, h = 100, alt = false, sink = 0);

But I get warnings and an error:

image

Could somebody please give a hint of maybe what I might be doing wrong?

nophead commented 1 year ago

The type parameter should be a screw with a countersunk head, not a screw head type.

ganzgustav22 commented 1 year ago

d'ohhh. Now with "type = M3_cs_cap_screw" it works. Thanks a lot :)

nophead commented 1 year ago

No problem. Most of my modules and functions that operate on objects have a type parameter. It is like self in Python or this in C++. Perhaps type was not the best name for it but too late to change now.