Irev-Dev / Round-Anything

A set of OpenSCAD utilities for adding radii and fillets, that embodies a robust approach to developing OpenSCAD parts.
https://kurthutten.com/blog/round-anything-a-pragmatic-approach-to-openscad-design
MIT License
492 stars 48 forks source link

Add error message when there are not enough polyRoundExtrude points #28

Closed Irev-Dev closed 3 years ago

Irev-Dev commented 3 years ago

Thanks @Trial-In-Error. This should do the trick. It now prints the following to the console if you don't give enough points to polyRoundExtrude.

ECHO: "There must be at least 3 radii points for polyRoundExtrude. [] is not long enough, you need 3 more point/s. Try:"
ECHO: "polyRoundExtrude([[11,0,1],[20,20,1.1],[8,7,0.5]],2,0.5,-0.8,fn=8);"

Resolves #26

Irev-Dev commented 3 years ago

Feel free to take a look if you like @nickcoutsos.