Commit Graph

31 Commits (02112071d4772adfe36ada87c586439065f9382e)

Author SHA1 Message Date
Giles Bathgate acf4c1262b Added a len() function
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-12 19:42:27 +00:00
Marius Kintel e65ea2d651 Only quote strings when using the stream operator. Fixes #35 2011-11-09 18:38:52 +01:00
Marius Kintel 63c5706533 Make old way of specifying version work as well 2011-11-09 03:17:26 +01:00
Marius Kintel bd8fb851f5 Fix for dates being interpreted as octal numbers 2011-11-08 23:27:37 +01:00
Marius Kintel 45161d4356 Slight refactoring of builtin function and module handling 2011-11-06 18:37:12 +01:00
Marius Kintel 2f239205a8 Redefined version() to return the version as a vector. Added version_num() to return a comparable number 2011-10-04 00:09:04 +02:00
Marius Kintel 84e98b178a Cleaned up some unnecessary includes 2011-10-01 01:36:30 +02:00
Marius Kintel 27a7d6c115 Added version() function 2011-09-30 02:43:09 +02:00
Marius Kintel f58c0a3eb5 Some cleanup of the Context class 2011-09-03 18:51:29 +02:00
Marius Kintel 6f632190a0 Ported a bunch of stuff from Qt to STL 2011-09-03 06:10:36 +02:00
don bright ec85e65ee9 fix build errors on windows 2011-08-12 18:48:59 -05:00
Marius Kintel d24b3cc84d Ported recent changes to master into the visitor branch 2011-04-12 20:35:44 +02:00
meta 52a474eb52 Merge branch 'master' of https://github.com/meta23/openscad
Conflicts:
	openscad.pro
2011-01-21 22:09:18 +01:00
Marius Kintel 91c640fb5e Copyright updates 2011-01-21 02:21:09 +01:00
meta d76a63c022 change literal to help choose a proper overload 2011-01-19 00:24:54 +01:00
meta 74faea5ff7 add missing include 2011-01-19 00:20:52 +01:00
meta 8160212499 add C99 math for win32 2011-01-18 00:02:56 +01:00
Marius Kintel 1bc4fe5d4d Ported random function to visitor branch 2010-12-09 19:17:16 +01:00
Marius Kintel 00c237d3ce merged current master 2010-12-09 19:04:11 +01:00
Marius Kintel e0a068a0e8 Refactored some QString usage in the backend to std::string 2010-11-07 16:29:34 -05:00
kintel b36acfd268 coding style
git-svn-id: http://svn.clifford.at/openscad/trunk@575 b57f626f-c46c-0410-a088-ec61d464b74c
2010-10-31 02:51:27 +00:00
kintel d479fca855 Added a rands() function that returns a vector of random numbers.
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
2010-10-31 02:51:11 +00:00
kintel 4dceada8f4 sign() function suggested by Dan Zuras and implemented by Giles Bathgate
git-svn-id: http://svn.clifford.at/openscad/trunk@568 b57f626f-c46c-0410-a088-ec61d464b74c
2010-07-09 09:35:19 +00:00
clifford d6284e5e6b Clifford Wolf:
Added abs() function



git-svn-id: http://svn.clifford.at/openscad/trunk@454 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-26 11:53:32 +00:00
kintel f3d16e23b9 Multiple non-MDI assumptions were made, setting CWD and assuming it didn't change. Fix required to pass more context to nodes (functions). It's not totally clean, but it's a start. Fixes bugs: opening multiple files simultaneously only loaded the first file, refreshing an scad file referencing an external file failed if another scad file was opened in the meantime.
git-svn-id: http://svn.clifford.at/openscad/trunk@451 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-23 20:47:54 +00:00
clifford 230e3306fc Clifford Wolf:
Added exp(x), log(b, x), log(x) and ln(x) functions



git-svn-id: http://svn.clifford.at/openscad/trunk@447 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-21 08:16:09 +00:00
kintel 501fc8d3a3 Added sqrt()
git-svn-id: http://svn.clifford.at/openscad/trunk@435 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-10 17:27:08 +00:00
clifford 07bc7dbecd Clifford Wolf:
Added CGAL exception to all copyright notes, as it is suggested on:
	http://www.cgal.org/license.html
	http://www.fsf.org/licensing/licenses/index_html



git-svn-id: http://svn.clifford.at/openscad/trunk@405 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-01 09:34:18 +00:00
kintel 45f51a8c49 added round(), ceil() and floor()
git-svn-id: http://svn.clifford.at/openscad/trunk@387 b57f626f-c46c-0410-a088-ec61d464b74c
2010-01-31 01:42:17 +00:00
kintel 191dc4857c header file reorg
git-svn-id: http://svn.clifford.at/openscad/trunk@365 b57f626f-c46c-0410-a088-ec61d464b74c
2010-01-30 04:26:05 +00:00
kintel 6940d17181 reorganized file structure layout. more to follow...
git-svn-id: http://svn.clifford.at/openscad/trunk@364 b57f626f-c46c-0410-a088-ec61d464b74c
2010-01-30 04:17:05 +00:00