OpenSCAD type detector – 3D printable model from Thingiverse Thingiverse

OpenSCAD type detector

by arpruss
21 Downloads
8 Likes
0 Makes
Download Model
This is a small library to detect the types of OpenSCAD variables/expressions. Publicly exposed functions are: `isVector(x)`, `isBoolean(x)`, `isFloat(x)`, `isDefiniteFloat(x)` (float, but not NaN or infinity), `isRange(x)`, `isString(x)` and `typeOf(x)`.

The last of these returns a string describing the type: `vector`, `boolean`, `float`, `range`, `string`, `undef`, `unknown`.

Googling showed other solutions to the type detection problem, but I worked to make my solution as efficient as
Source
Thingiverse
Comments
0
Makes
0

Makes

Rating

Noch keine Ratingen

Comments

No comments yet – be the first!
All Thingiverse Models More by arpruss

Similar Models

6 Suggestions

Add to Collection