Torsten Paul
6443df394b
Add concat() builtin ( fixes #201 ).
...
This allows to concatenate multiple vectors and single elements into a
single result vector.
2013-12-26 20:02:31 +01:00
Marius Kintel
e64bf96b37
Added mesh test
2013-12-15 20:15:01 -05:00
Marius Kintel
446dc3d36d
Improved non-planar tests
2013-12-15 18:19:05 -05:00
Don Bright
3b3ef44f66
Merge branch 'master' of github.com:openscad/openscad into planar
...
Conflicts:
src/CGAL_Nef_polyhedron.cc
tests/CMakeLists.txt
2013-12-15 15:32:06 -06:00
Marius Kintel
c7cea0082e
Added testcase for concave polygons in polyhedrons
2013-12-15 15:02:32 -05:00
Don Bright
f12237a9c4
add tests for non-planar bug. add docs to .cc code
2013-12-14 21:58:22 -06:00
Marius Kintel
cca80a1559
bugfix: #562 didn't take into account that it's allowed with all X coordinates being negative
2013-12-14 17:44:05 -05:00
Brody Kenrick
d7d5bea736
Add specific tests for unicode len()
2013-12-06 18:33:42 +11:00
Brody Kenrick
0717c67c9f
Unicode support for strings
...
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-12-05 18:28:40 +11:00
Marius Kintel
de2db22b5f
Split projection tests into cut vs. project
2013-11-25 00:27:15 -05:00
Marius Kintel
91c2b8909c
Added test for implicit union of render() children
2013-11-23 22:10:05 -05:00
Marius Kintel
7b526bc27a
Added test for polygon with hole
2013-11-23 20:00:19 -05:00
Marius Kintel
2162aaed64
Split up projection tests to avoid long running times
2013-11-20 01:27:46 -05:00
Torsten Paul
1fcad169e6
Update 'for' test cases to match the new range expression handling.
2013-11-11 01:38:34 +01:00
Torsten Paul
3c0e9f4f18
Update 'children' test case using range [4 : -1 : 0] which is now valid.
2013-11-11 01:38:24 +01:00
Torsten Paul
bcba02fac3
Add test cases for new range expression handling.
2013-11-11 01:31:53 +01:00
Torsten Paul
74082c8cff
Extend circle tests to cover the new diameter parameter.
2013-10-21 19:47:55 +02:00
Torsten Paul
141f43498c
Add cylinder tests to cover the new diameter parameters.
2013-10-21 19:47:55 +02:00
Torsten Paul
6624fc7089
Extend sphere tests to cover the new diameter parameter.
2013-10-21 19:47:48 +02:00
Marius Kintel
e77615be30
Merge branch 'children' of git://github.com/vicnet/openscad into vicnet-children
...
Conflicts:
tests/CMakeLists.txt
2013-10-13 13:19:34 -04:00
Marius Kintel
0f22d6e9ad
Added test case for parent_module()
2013-10-08 23:41:53 -04:00
Vicnet
4401a136b9
add children tests
2013-10-08 15:35:47 +02:00
Don Bright
30fd8b250a
little tweaks, cleanups, tab fixing, eliminating comments
2013-09-12 20:03:27 -05:00
Don Bright
d6a57b8968
fix bug in 2d resize code
2013-09-12 19:44:07 -05:00
Marius Kintel
a7396cc36f
Fixes two problems related to : lookup was dynamic rather than lexical, assignment was done after all local variables causing it not to be copyable
2013-08-21 01:40:21 -04:00
Don Bright
506ed4e693
first step of dealing with issue #455
2013-08-13 21:14:56 -05:00
Don Bright
d2933590c2
fix #452
2013-08-11 09:54:04 -05:00
Marius Kintel
d9b3f7b52b
Test case for #399
2013-06-25 23:17:51 -04:00
Marius Kintel
a3cd019494
Removed a bunch of less useful tests
2013-06-23 01:56:04 -04:00
Marius Kintel
3f936099fa
Clamp linear_extrude height to 0. Fixes #405
2013-06-15 12:48:09 -04:00
Marius Kintel
b45a93aad2
Related to #399 , reverted assignment evaluation order to be the same as in 2013.01 as the new implementation broke existing scripts. Added some experimental commented out code, which can be used as reference in the future
2013-06-13 10:29:39 -04:00
Marius Kintel
e76a41a346
Added scope and reassignment tests
2013-06-13 01:27:19 -04:00
Marius Kintel
4280ebe7d3
Added scope and reassignment tests
2013-06-13 01:26:57 -04:00
Marius Kintel
2d86c14e1a
Added scope and reassignment tests
2013-06-13 01:26:46 -04:00
Marius Kintel
f2f019f57e
clamp to 3. Fixes #395
2013-06-08 02:12:06 -04:00
Marius Kintel
41f352a788
Added moduledumptest. Fixes #384
2013-06-01 16:11:44 -04:00
Marius Kintel
84088dee58
Improved if-else test to include a multiple-children test
2013-06-01 16:11:15 -04:00
Marius Kintel
f110092852
Added resize() and improved if test
2013-06-01 16:09:05 -04:00
Marius Kintel
00dda1b02c
Assign function results to different variables to improve test coverage
2013-06-01 16:07:27 -04:00
Marius Kintel
794b80ffcf
Modified tests for #304
2013-05-25 13:11:09 -04:00
Marius Kintel
71ab237aad
Added tests for linear extrude with scale. Should mostly fix #273
2013-05-21 21:26:51 -04:00
Marius Kintel
adffb9121f
Added support for 2D scaling in linear_extrude
2013-05-10 18:01:50 +02:00
Marius Kintel
3780677def
Added testcase for #322
2013-05-09 17:28:05 +02:00
Marius Kintel
6ee78e7f68
Handle lack of trailing newline in dat files. Fixes #336
2013-05-09 14:32:43 +02:00
Marius Kintel
c5ebdb788b
Added failing test for #336
2013-05-09 14:23:52 +02:00
Marius Kintel
ad8ba77a15
Added failing test for #352
2013-05-09 12:16:58 +02:00
Marius Kintel
db8ad9631d
Added failing test for the #217 regression
2013-05-08 16:34:38 +02:00
Marius Kintel
e09d1df0e1
Merge branch 'master' into local-scope
2013-05-05 01:26:09 +02:00
Marius Kintel
c4cae2a29a
Fixes crash if hull's children are empty objects. Fixes #345
2013-05-02 22:11:23 -04:00
Marius Kintel
886bc85eec
Fixes remaining dxfdim() issue from #217
2013-04-27 00:53:41 -04:00
Marius Kintel
9b740b558d
Further refactoring of scope/context mechanisms. Mostly related to the new FileContext class. Not quite there yet, but almost
2013-04-26 17:45:03 -04:00
Marius Kintel
b06b4f32f8
Merge branch 'master' into issue116
2013-04-18 18:42:51 -04:00
Marius Kintel
5cee6b58dd
Test old parameter names for import
2013-04-18 18:26:39 -04:00
Marius Kintel
a37813a899
Refactored context handling into using separate Module contexts and Eval contexts. This allows for recursive module calls, and cascading children. I believe this fixes issue #116
2013-04-09 00:28:16 -04:00
Marius Kintel
3307deee93
Added test for inner module variables
2013-04-08 22:41:28 -04:00
Marius Kintel
1b8b7aa5fa
I think this should fix issue #217
2013-04-05 01:30:09 -04:00
don bright
eb8772539c
update test results
2013-03-16 13:34:47 -05:00
don bright
035f022e0a
Merge branch 'master' of github.com:openscad/openscad into resize5
2013-03-16 13:07:21 -05:00
don bright
9891d8c86c
fix 3d test bug, improve 2d test, update release note
2013-03-16 13:04:32 -05:00
Marius Kintel
6b8a5e266c
Handle files with non-ascii filenames. Only rudimentary tested. Fixes #113 #290
2013-03-11 22:14:00 -04:00
don bright
ea0bb94be9
Merge branch 'master' of github.com:openscad/openscad into resize5
2013-03-11 16:40:51 -07:00
don bright
fc257c9383
make resize of flat objects fail in the direction normal to the flat.
...
also fail on resize to negative size.
update tests
2013-03-11 17:23:53 -05:00
Marius Kintel
d9c4b77942
Added test case for value reassignment issue. #289
2013-03-11 17:58:05 -04:00
don bright
4e2965ac17
fix crashbug 2d resize. add 2d tests. print offscreen warning better.
2013-03-11 10:59:52 -05:00
don bright
3cf6c24d83
beginning of resize() command implementation.
2013-03-09 20:28:43 -06:00
Marius Kintel
b7bb0071fb
Added tests which slipped through earlier. Fixes #298
2013-03-09 10:39:46 -05:00
Marius Kintel
c56d8c1e3a
Uncatchable CGAL assertion exception
2013-03-02 22:28:58 +07:00
Justin C
96903036fd
add test sample for issue #267
2013-02-02 02:12:56 -08:00
Marius Kintel
c087605193
Support reading binary STLs which happen to start with the string 'solid'. Fixes #258
2013-01-28 17:58:36 -05:00
Marius Kintel
810f1a8618
Don't just ignore geometric nodes having zero volume/area - when doing difference/intersection, they tend to turn negative objects into positive ones. Fixes #221
2013-01-08 13:26:25 -05:00
Marius Kintel
d983ede356
Merge pull request #222 from mrrobinson/master
...
Difference test for subtracting something from nothing
2013-01-07 19:42:46 -08:00
Marius Kintel
bc7ff5aa8d
Ignore dimension when evaluating control modules mixed with geometry children. Fixes #229
2012-12-27 17:30:13 +01:00
John-Paul Robinson
cd894cbbc3
Added difference test for something from nothing
...
The difference tests all subtract objects from an existing object but if
there is no existing object as the first argument the results are
inconsistent across Mac and Linux platforms. Added a test to highlight
this condition.
2012-11-26 16:47:02 -06:00
Marius Kintel
65fc1d6b01
Detect recursive execution of functions to avoid a stack overflow crash. Fixes #200
2012-10-09 23:32:56 -04:00
Marius Kintel
9c9781334a
Added testcase for issue #204
2012-10-08 20:44:48 -04:00
Marius Kintel
0cea83a35d
Fixed weakness in parser causing modifier characters not to work in front of 'if' statements. Fixes #197
2012-10-07 15:24:08 -04:00
don bright
2ac3286290
add line to hull test
2012-08-22 12:23:17 +02:00
don bright
69f90c13bb
clarify that 'infinity' is not 'really' tested currently.
2012-08-21 02:54:53 +02:00
don bright
358129cad6
improve test scad. don't use dumptest(), 'nan' is a bit of a problem
2012-08-21 02:39:18 +02:00
don bright
a5da9c899b
improve test scad
2012-08-21 01:40:06 +02:00
don bright
f1d4a52f4c
dont crash if there's infinity or NaN in transformation matrix
2012-08-21 01:33:13 +02:00
don bright
47a06c074f
detect flaws in 'use' and 'include' statements. make locate_file consider directories as 'non files'.
2012-08-18 18:38:24 +02:00
don bright
4f7bf1819f
add test for proper rounding of decimals in echo()
2012-07-26 20:49:58 -05:00
Marius Kintel
694382bba9
Merge branch 'master' into value
...
Conflicts:
src/parsersettings.cc
2012-07-05 09:41:15 -04:00
Marius Kintel
22c5f37424
Search for libraries from a list of paths. Preparations for issue #125
2012-06-24 16:29:28 +02:00
Marius Kintel
197a4e4d36
Merge branch 'master' into value
2012-06-04 11:34:27 +02:00
Marius Kintel
38cb06c3f0
Added test cases for issue #123
2012-06-04 11:22:09 +02:00
Don Bright
5b366adf8a
adding new test images for 'hole' with projection-cut
2012-05-28 12:38:40 -05:00
Marius Kintel
203c60d823
Added known STL import failure
2012-05-12 00:55:33 -04:00
Marius Kintel
023ded046f
Slimmed down test case to minimum
2012-04-03 22:28:34 +02:00
Marius Kintel
d63b932027
Merge branch 'master' into value
2012-04-03 13:21:29 +02:00
Marius Kintel
405dfaa65f
typo
2012-04-03 13:21:16 +02:00
Marius Kintel
c5c60f7b68
Merge branch 'master' into value
2012-04-03 13:20:11 +02:00
Marius Kintel
382e5fa7e1
Example file for issue #95
2012-04-03 12:36:22 +02:00
Marius Kintel
8766b955ec
Updated matrix and vector multiplication tests
2012-03-31 23:22:33 +02:00
Andrew Plumb
32a408f594
Test using search() and MCAD/fonts.scad
...
A more comprehensive test that exercises the search function and
MCAD/fonts.scad approach to text rendering together.
2012-02-15 00:10:36 -05:00
Andrew Plumb
505e808067
Added search function
...
Search for characters, strings and integers in a lookup table and
return the index (or indices) for matches.
2012-02-14 23:04:40 -05:00
Andrew Plumb
5d6a259a8b
Added vector math support.
...
Added vector dot-product, matrix*vec, vec*matrix and matrix*matrix
support.
2012-02-14 21:22:48 -05:00
Marius Kintel
cb363df358
Added test case and source code comments related to issue #80
2012-02-03 23:05:42 +01:00
Marius Kintel
456a87efcc
Use teardrop instead of roundedBox - renders better ( #78 )
2012-02-02 23:02:43 +01:00
Marius Kintel
f7c2d467f0
Test cases for #78
2012-02-02 22:55:52 +01:00
Marius Kintel
e541df8bb5
Added test case for recently fixed csg normalization bugfix
2012-01-29 19:02:19 +01:00
Marius Kintel
e5ca86f408
Added forgotten file - gitignore had shadowed it
2012-01-25 21:39:43 +01:00
Marius Kintel
b6714d4b3c
Clarify when CGAL issue was resolved
2012-01-15 18:52:33 +01:00
Marius Kintel
fd5e28713b
More info. case closed
2012-01-14 17:55:07 +01:00
Marius Kintel
10701f7158
Added absolute path tests to include and use tests, fixed bug using absolute paths in use and include
2012-01-14 03:25:09 +01:00
Marius Kintel
ad338d3e46
Another try at fixing double-to-text conversion for testing
2012-01-09 01:44:01 +01:00
Marius Kintel
d3c9654ed5
Merge branch 'inftest' of https://github.com/brad/openscad into brad-inftest
2012-01-09 00:22:38 +01:00
Brad Pitcher
28f5f7a910
added tests passing infinity to various functions
2012-01-08 11:40:04 -08:00
Marius Kintel
3c18145b13
Merge branch 'master' into boost_filesystem
2012-01-08 19:14:30 +01:00
Marius Kintel
e20a7c261a
Added test model causing a minkowski assert with a subsequent corrupt polyhedron
2012-01-08 13:27:31 +01:00
Marius Kintel
fdce8d15fc
Merge branch 'master' into boost_filesystem
...
Conflicts:
boost.pri
src/lexer.l
tests/CMakeLists.txt
2012-01-04 23:07:32 +01:00
Marius Kintel
fac508c8cd
Added use-tests, minimal change to include-tests
2012-01-03 20:34:31 +01:00
Marius Kintel
c6004a5c27
Updated intersection-tests to avoid hard-to-compare OpenGL z-buffer fighting
2011-12-28 18:05:14 +01:00
Marius Kintel
9e6cc9cebb
Added test for hexagonal cylinder orientation, aka. captured nuts
2011-12-26 17:19:10 +01:00
Marius Kintel
cbabbaed70
Merge branch 'master' into boost_filesystem
...
Conflicts:
openscad.pro
src/module.h
2011-12-26 16:37:00 +01:00
Marius Kintel
d91021746a
Added test case for nan occuring in exported STL files
2011-12-26 13:21:29 +01:00
Marius Kintel
5db9bfc2ff
Added test case for color override
2011-12-25 17:16:29 +01:00
Marius Kintel
dc4bc15925
Ported binary STL file reader away from Qt
2011-12-23 22:01:19 +01:00
Marius Kintel
03a2da9f4a
Test case for recent CSG regression reported by Ed Nisley
2011-12-23 14:12:35 +01:00
Marius Kintel
16f644872f
Added 2D render() test
2011-12-21 18:03:58 +01:00
Marius Kintel
f707466580
simple surface test
2011-12-21 17:15:38 +01:00
Marius Kintel
679b8d05c8
bugfix: 2D hull() now works with for loops. Thanks to nophead to reasserting this bug.
2011-12-07 05:21:11 +01:00
Marius Kintel
c2f29733b5
Modified test to not cause z buffer fighting
2011-11-27 02:47:15 +01:00
Marius Kintel
70e0b93c1d
Updated polygon test with double-specification of start vertex
2011-11-25 01:00:52 +01:00
Marius Kintel
3a5c43cc3c
Another try for Windows test compatibility; no backslashes in filenames
2011-11-24 23:13:12 +01:00
Marius Kintel
2d98fb91ce
Added stl import bug
2011-11-23 23:04:49 +01:00
Marius Kintel
60d7e80c48
Modified escape-test to avoid issues with Windows drive letters
2011-11-23 16:49:09 +01:00
Marius Kintel
73092dd4c8
Added support for 3D object in the hull() module
2011-11-23 16:11:48 +01:00
Brad Pitcher
af2d4223df
string indexing tests
2011-11-13 12:15:28 -08:00
Marius Kintel
9c14544a92
Hooked up function tests
2011-11-12 20:53:12 +01:00
Marius Kintel
170c506ab7
Merge branch 'length-function'
2011-11-12 20:47:51 +01:00
Marius Kintel
8fd4c47835
Reorganized some tests
2011-11-12 20:46:00 +01:00
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
53da8926c3
Modified render-tests to trigger an OpenCSG rendering bug
2011-11-08 03:32:33 +01:00
Marius Kintel
7bec474b34
Added escape-test
2011-11-07 03:51:43 +01:00
Marius Kintel
f4bd15912a
Last CGAL assert fix wasn't enough; expanded the fix to all operators
2011-11-05 18:25:05 +01:00
Marius Kintel
4120846d18
Catch a CGAL assert caused by a subtraction resulting in non-manifold geometry. see testdata/scad/bugs/rotate-diff-nonmanifold-crash.scad
2011-11-05 18:07:56 +01:00
Marius Kintel
14b806c9c0
Added builtin-tests
2011-11-05 17:06:13 +01:00
Marius Kintel
04bc3ed890
Added support for parsing numbers in scientific notation, e.g. to allow roundtripping of written csg files as well as parsing of externally generated scad files
2011-11-05 16:22:48 +01:00
Marius Kintel
a8ee02ebf5
Added test for rotation of open polyline
2011-10-30 13:49:28 +01:00
Marius Kintel
741239402c
import_dxf -> import
2011-10-30 13:10:51 +01:00
Marius Kintel
25edffcff4
Added echotest and echo test cases
2011-10-08 14:53:47 +02:00
Marius Kintel
afc0f1e949
Added euler angle rotate test
2011-10-04 03:32:08 +02:00
Marius Kintel
ea67faa9d6
FIXME: Add scale() tests
2011-10-04 03:03:25 +02: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
2601d468e3
Added dxf test cases
2011-10-01 00:43:38 +02:00
Marius Kintel
8311652819
Use new form of import()
2011-10-01 00:42:29 +02:00
Marius Kintel
e5c242adb7
Moved transform-insert test from minimal to dxf
2011-09-30 19:03:10 +02:00