summaryrefslogtreecommitdiff
path: root/src/func.cc
AgeCommit message (Collapse)Author
2014-01-02Add concat() function to list of experimental features.Torsten Paul
2013-12-26Add concat() builtin (fixes #201).Torsten Paul
This allows to concatenate multiple vectors and single elements into a single result vector.
2013-12-05Unicode support for stringsBrody Kenrick
Add suport for using unicode strings in .scad files. Support iterating across them/accessing them via [] and searching. -------- Add GLIB (to build for test and normal build -- both with installed and built locally development files). Add support for unicode chars to length and search builtin functions and [] for strings. Added unicode testing functions. Ad GLIB to library info page.
2013-08-18Enable module stack introspection from within an SCAD scriptŁukasz Stelmach
The _current_module and _parent_module variables have been replaced by a built-in function parent_module(n). It takes one numeric parameter n, and returns n-th element from the module stack. If no argument provided, n defaults to 1 and the function returns the name of the direct parent module. If n is equal 0 current module name is returned.
2013-08-11fix #452Don Bright
2013-05-20try to refactor the 'is_modified( includefile )' codeDon Bright
2013-05-09Support lookup tables with one element, final fix of #322Marius Kintel
2013-05-09Update func.ccNateTG
Fix for https://github.com/openscad/openscad/issues/322
2013-04-26Experiment: Lazy evaluation of argument lists in evaluation context. Allows ↵Marius Kintel
e.g. for loop variables to be dependent on each other
2013-04-24Merge branch 'master' into issue116Marius Kintel
2013-04-19Tag search failures as warningsMarius Kintel
2013-04-18Cleaned up argument list handling, related to #116Marius Kintel
2013-04-09Refactored context handling into using separate Module contexts and Eval ↵Marius Kintel
contexts. This allows for recursive module calls, and cascading children. I believe this fixes issue #116
2013-01-30make boost random work with version less than 1.47don bright
2013-01-06remove unneeded frand functionsdon bright
2013-01-06clarify that its not nondeterministic, we are supporting older systemsdon bright
where the C++/boost random_device stuff doesn't work. boost random_device in particular has a lot of issues with old versions not working, with -lboost_random not being installed by default, etc, that complicate the build too much.
2013-01-06also use process ID to seed pseudo random number generatordon bright
2013-01-06fix typodon bright
2013-01-06remove boost::random_device, move min/max out of the random generator loopdon bright
2013-01-06switch builtin_rands() to use boost::random per issue 234don bright
2012-10-28cleanupdon bright
2012-10-28refactor, cleanup, put code where it belongs, make simple logging classdon bright
2012-10-10cosmeticsMarius Kintel
2012-03-27Rewrote the Value class to be based on boost::variant - this should reduce ↵Marius Kintel
memory footprint and improve performance
2012-02-18Kill warningsMarius Kintel
2012-02-18minor fixes: Don't copy input vectors, fixed a leak of a Value object + some ↵Marius Kintel
cosmetics
2012-02-15Added search functionAndrew Plumb
Search for characters, strings and integers in a lookup table and return the index (or indices) for matches.
2012-01-08bugfix: Infinite loop in deg2rad/rad2deg when giving it an inf number, e.g. ↵Marius Kintel
1/0. Reported by Triffid Hunter.
2011-11-12Added a len() functionGiles Bathgate
This returns the number of elements in a vector, and the length of a string. Added a basic test script that can be checked for echo output.
2011-11-09Only quote strings when using the stream operator. Fixes #35Marius Kintel
2011-11-09Make old way of specifying version work as wellMarius Kintel
2011-11-08Fix for dates being interpreted as octal numbersMarius Kintel
2011-11-06Slight refactoring of builtin function and module handlingMarius Kintel
2011-10-03Redefined version() to return the version as a vector. Added version_num() ↵Marius Kintel
to return a comparable number
2011-09-30Cleaned up some unnecessary includesMarius Kintel
2011-09-30Added version() functionMarius Kintel
2011-09-03Some cleanup of the Context classMarius Kintel
2011-09-03Ported a bunch of stuff from Qt to STLMarius Kintel
2011-08-12fix build errors on windowsdon bright
2011-04-12Ported recent changes to master into the visitor branchMarius Kintel
2011-01-21Merge branch 'master' of https://github.com/meta23/openscadmeta
Conflicts: openscad.pro
2011-01-21Copyright updatesMarius Kintel
2011-01-18change literal to help choose a proper overloadmeta
2011-01-18add missing includemeta
2011-01-17add C99 math for win32meta
2010-12-09Ported random function to visitor branchMarius Kintel
2010-12-09merged current masterMarius Kintel
2010-11-07Refactored some QString usage in the backend to std::stringMarius Kintel
2010-10-31coding stylekintel
git-svn-id: http://svn.clifford.at/openscad/trunk@575 b57f626f-c46c-0410-a088-ec61d464b74c
2010-10-31Added a rands() function that returns a vector of random numbers.kintel
the function takes either 3 arguments or 4 rands(min,max,num) or rands(min,max,num,seed) git-svn-id: http://svn.clifford.at/openscad/trunk@574 b57f626f-c46c-0410-a088-ec61d464b74c
contact: Jan Huwald // Impressum