Loading

Revisited & customizable: universal hose coupler and funnel maker

by MoonCactus, published

Revisited & customizable: universal hose coupler and funnel maker by MoonCactus Jan 27, 2013

Description

Just wanted to give a try of the thingiverse customizer, which may help people looking for some specific adapters :)

Recent Comments

view all
You are right, but a slider also require a maximum value. And if I specify a "very big" one, it will shrink the useful range to something not user friendly... Also it looks like they only support integers, but I did not double check as I was a bit lazy.

Of course I could try to circumvent this, eg. by adding a log() on the scale, or by using abs() as you suggest for positive numbers, but this will not make the interface more friendly: we would better make it impossible in the first place imho.

And indeed, if the user really wants a negative nut size, I do not even want to try to guess what he means and "pollute" the openscad source code to fix the case... ;)
you could use a slider to constrain the values to only positive values. alternatively, you could set another variable equal to the abs() of your input variable to make sure the number is always positive. (you should probably note that behaviour in the comment for the input variable)

More from DIY

view more

Instructions

This is a derivative of my own thing & webservice thingiverse.com/thing:26096

This is a parametric hose coupler through a webservice. It can create STL files directly for adpators (adapters?) that couple two hoses or pipes. Hey, you can even make funnels with it!

Just provide your own dimensions and get the file!

The customizer lacks a few control on the values imho (eg. how to force a variable to be positive?). Now, it is probably a work in progress that will get better with time, and it is nonetheless extremely useful.
you could use a slider to constrain the values to only positive values. alternatively, you could set another variable equal to the abs() of your input variable to make sure the number is always positive. (you should probably note that behaviour in the comment for the input variable)
You are right, but a slider also require a maximum value. And if I specify a "very big" one, it will shrink the useful range to something not user friendly... Also it looks like they only support integers, but I did not double check as I was a bit lazy.

Of course I could try to circumvent this, eg. by adding a log() on the scale, or by using abs() as you suggest for positive numbers, but this will not make the interface more friendly: we would better make it impossible in the first place imho.

And indeed, if the user really wants a negative nut size, I do not even want to try to guess what he means and "pollute" the openscad source code to fix the case... ;)
Top