Marius Kintel
4cd712d24d
Merge remote-tracking branch 'origin/master' into stack-size-hack
...
Conflicts:
src/context.h
src/control.cc
src/evalcontext.h
src/localscope.cc
src/module.cc
2014-11-25 11:25:37 -05:00
Marius Kintel
23c9dee265
bugfix: Correctly handle else scopes, handle overrides inside assign scopes
2014-11-25 00:45:00 -05:00
Marius Kintel
406e6e1bac
#409 Pass Value objects as shared_ptr instances instead of by Value to battle excess stack usage
2014-11-23 00:59:17 -05:00
Marius Kintel
ea1d561c46
Support variable assignment in local blocks. This should fix #347 but more testing is needed
2014-11-17 00:57:36 -05:00
Torsten Paul
d8a1b5f7eb
Convert Assignment to use shared pointers for Expressions ( fixes #709 ).
2014-03-30 19:16:50 +02:00
Marius Kintel
dc9429acac
Use GeometryEvaluator instead of CGALEvaluator. A bunch of refactoring and fixes as a result of that. Renamed GUI menu items to reflect preview vs. render
2014-01-09 02:06:35 -05:00
Marius Kintel
acd08b6f1a
Green refactoring, but uncertain if we should keep it
2014-01-09 02:06:32 -05:00
Don Bright
506ed4e693
first step of dealing with issue #455
2013-08-13 21:14:56 -05:00
Don Bright
31c88a434b
merge branch to get windows "library path" working. tweak build system,
...
eliminate several compiler warnings.
2013-05-25 22:37:26 -05:00
Marius Kintel
9a297ecee5
Refactoring: Split out FileModule from Module, Added LocalScope renamed some confusing 'evaluate' methods to 'instantiate', added FileContext (not yet used)
2013-04-26 17:45:03 -04:00
Marius Kintel
58bd9c9e3f
Cleaned up argument list handling, related to #116
2013-04-18 18:34:14 -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
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
don bright
1726c26518
fix bug
2013-03-11 13:30:40 -05:00
don bright
6d3089032c
allow resize's autosize to apply to individual dimensions
2013-03-11 12:00:15 -05: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
5559ae9a6a
move transform from CGALEvaluator to Nef_polyhedron - reuse in resize(). also
...
move ZRemover code to cgalutils, also cleanup SVG code
2013-03-10 21:35:30 -05:00
don bright
3cf6c24d83
beginning of resize() command implementation.
2013-03-09 20:28:43 -06:00
Marius Kintel
327310f190
Rewrote the Value class to be based on boost::variant - this should reduce memory footprint and improve performance
2012-03-28 00:05:58 +02:00
Marius Kintel
45161d4356
Slight refactoring of builtin function and module handling
2011-11-06 18:37:12 +01:00
Marius Kintel
84e98b178a
Cleaned up some unnecessary includes
2011-10-01 01:36:30 +02:00
Marius Kintel
cbba974d3a
Initial attempt of cleaning up polyset handling. PolySet no longer keeps a refcount, basic cache mechanism is in place, instantiating polysets are controlled through PolySetEvaluator
2011-09-09 05:53:05 +02:00
Marius Kintel
1e4e18c524
minkowski sums should now work again
2011-09-06 14:57:24 +02:00
Marius Kintel
5417b4fa65
Ported use for Qt's foreach to BOOST_FOREACH
2011-09-04 20:35:23 +02:00
Marius Kintel
6f632190a0
Ported a bunch of stuff from Qt to STL
2011-09-03 06:10:36 +02:00
Marius Kintel
1633fb0344
Refactoring of CGAL functionality to allow for forward-declaration of CGAL classes in header files, reducing coupling and thus compilation times
2011-09-01 04:09:06 +02:00
Marius Kintel
cf4821c589
De-Qt-ified AbstractNode
2011-08-04 04:58:17 +02:00
Marius Kintel
580f41b47a
bugfix: hull() was missing name() implementation
2011-04-29 11:17:33 -04:00
Marius Kintel
d24b3cc84d
Ported recent changes to master into the visitor branch
2011-04-12 20:35:44 +02:00
Marius Kintel
b6e9179e48
misc. fixes: Now supports hull() in OpenCSG mode, dump supports hull(), convexity not needed for hull()
2011-04-11 01:51:16 +02:00
Marius Kintel
3fbadddeac
Added warning about missing 3D version of hull()
2011-04-11 01:48:09 +02:00
Marius Kintel
06cc8b1d58
indentation
2011-04-11 01:47:06 +02:00
Giles Bathgate
ded6d3b1b4
Convex hull now works properly with multiple children that do not neccecerily need to be touching.
2011-04-09 20:27:08 +01:00
Giles Bathgate
5d5c745fde
Slight improvement. You no longer need an arbitary shape in the script for it to work.
...
See changes in testdata/scad/convex_hull.scad The square(2) was never
rendered it was just there because the hull is calculated when it
itterates onto the second child. I also removed the unneeded parameter.
2011-04-09 17:53:19 +01:00
Giles Bathgate
9cc441025c
Basic implementation of convex hull for 2d polyhedra.
...
The code was provided to me by Len Trigg via email.
2011-04-09 10:27:50 +01:00
Giles Bathgate
9aa7b94459
WIP adding support for convex hull operations.
2011-04-08 22:19:06 +01:00
Marius Kintel
91c640fb5e
Copyright updates
2011-01-21 02:21:09 +01:00
Marius Kintel
e0a068a0e8
Refactored some QString usage in the backend to std::string
2010-11-07 16:29:34 -05:00
kintel
e0c5673e1b
Reverted accidental commits
...
git-svn-id: http://svn.clifford.at/openscad/trunk@573 b57f626f-c46c-0410-a088-ec61d464b74c
2010-10-31 01:58:50 +00:00
kintel
53337ff654
Committed current version of visitor refactoring
...
git-svn-id: http://svn.clifford.at/openscad/trunk@571 b57f626f-c46c-0410-a088-ec61d464b74c
2010-10-31 01:19:06 +00:00
Marius Kintel
d0390c41a2
Added AbstractNode::name(), changed CSGTextRenderer to use this instead of the rtti name
2010-10-31 02:42:38 +02:00
Marius Kintel
93f3d4a1b6
CSGTermRenderer refactoring: Added matrix to traversal state
2010-10-31 02:42:38 +02:00
Marius Kintel
f0b49ee9e9
Started refactoring of render_csg_term() into a visitor
2010-10-31 02:42:38 +02:00
Marius Kintel
e8e213b3c9
Another refactoring session:
...
o mk_cache_id() obsoleted by removing the node index from the dump
o node index output removed from each node and make optional in NodeDumper
o The visitors are no longer global, but associated with a tree
o Added Tree class to manage node trees and the (now implicit) dump cache
o Moved PolySet cache into PolySetRenderer
2010-10-31 02:42:35 +02:00
Marius Kintel
99f406d994
Removed temporary REMOVE_DUMP define
2010-10-31 02:42:35 +02:00
Marius Kintel
184d0e041f
Initial implementation of CGALRenderer
2010-10-31 02:42:35 +02:00
Marius Kintel
7468c94067
Mostly completed test implementation of text-based CGALRenderer
2010-10-31 02:42:34 +02:00
Marius Kintel
9bb4fc829a
Added REMOVE_DUMP define
2010-10-31 02:42:34 +02:00
Marius Kintel
393c5a19fe
Committed current version of visitor refactoring
2010-10-31 02:42:34 +02:00
clifford
1cbb05babf
Clifford Wolf:
...
Little progress with 2d minkowski code
git-svn-id: http://svn.clifford.at/openscad/trunk@480 b57f626f-c46c-0410-a088-ec61d464b74c
2010-03-03 19:27:22 +00:00