Commit Graph

67 Commits (dc93436da9b4c1d4b81375ba3a013b120d661caa)

Author SHA1 Message Date
Marius Kintel b8c15cfb8a Preliminary large refactoring: Created GeometryEvaluator as a replacement for PolySetEvaluator. Use ClipperLib for 2D CSG (first baby steps). This design is far from perfect but sacrifice design for staying in the green. This version is broken, but can render primitives. 2014-01-09 02:06:32 -05:00
Marius Kintel acd08b6f1a Green refactoring, but uncertain if we should keep it 2014-01-09 02:06:32 -05:00
Torsten Paul b49f51dab3 Moved get_fragments_from_r into Calc 2013-12-27 17:48:15 -05:00
Marius Kintel a9bb2651e0 Deprecated polygons(triangles=[]) 2013-12-15 20:11:49 -05:00
Don Bright 60a4561da5 fix bug in polyhedron() primitive keyword 'faces' vs 'triangles' 2013-12-14 22:15:57 -06:00
Don Bright 36db9de870 in polyhedron() replace "triangles" w "faces", but allow backwards compatability
by accepting 'triangles' and putting them into 'faces' variable
2013-12-14 21:15:29 -06:00
Torsten Paul bc4ace7e26 Add diameter variable to the sphere, cylinder and circle primitives (fixes #392).
When doing the lookup, the diameter value has priority so if both diameter
and radius are given, the radius value is ignored and a warning is printed.
2013-10-20 22:49:40 +02:00
Marius Kintel d2a729bdfa Ignore malformed polygons 2013-10-19 17:15:25 -04:00
Marius Kintel f2f019f57e clamp to 3. Fixes #395 2013-06-08 02:12:06 -04:00
Marius Kintel adffb9121f Added support for 2D scaling in linear_extrude 2013-05-10 18:01:50 +02:00
Marius Kintel 130e10778e Initial code to support scaling of linear_extrude(). Part of Issue #273 2013-05-10 13:45:28 +02: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
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
Andrew Plumb d4efb54284 Cleaned up unsigned int compiler warnings 2012-02-13 11:23:18 -05:00
Marius Kintel eff1f7f8c9 Ported printutils away from Qt 2012-01-25 03:11:12 +01:00
Marius Kintel 80f50f0883 bugfix: The parameter yielded half as many segments as expected 2011-12-19 16:31:38 +01:00
Marius Kintel 3f6a2f0fbb Improved sphere tesselation for low resolution spheres 2011-12-13 01:24:53 +01:00
Marius Kintel faf4a64851 Killed some warnings 2011-12-04 22:20:19 +01: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 6096f2734a De-Qt-ification continues, almost done with DxfData 2011-09-03 22:44:41 +02:00
Marius Kintel 6f632190a0 Ported a bunch of stuff from Qt to STL 2011-09-03 06:10:36 +02:00
Marius Kintel c555a9646a change: Always use r as fallback variable if either of r1 or r2 are missing 2011-09-02 02:32:07 +02:00
Marius Kintel 6041c34f0b Refactored some non-CGAL functionality into separate functions in PolySetCGALEvaluator 2011-09-01 17:03:34 +02:00
Marius Kintel 08c83d306e Merge branch 'master' into visitor
Conflicts:
	src/primitives.cc
2011-08-25 17:46:21 +02:00
Giles Bathgate 8196385438 Fix for crash caused by 0-sized square as reported by chrysn. 2011-08-14 20:59:22 +01:00
Marius Kintel 80e526880a Started on getBoundingBox functionality, refactored some vector code as part of this initiative 2011-08-05 02:11:20 +02:00
Marius Kintel 6882228058 Merge branch 'master' into visitor
Conflicts:
	src/GLView.h
	src/glview.cc
	src/mainwin.cc
	src/render-opencsg.cc
2011-07-31 01:58:51 +02:00
Marius Kintel 21ac6c05d1 merged in recent changes in master 2011-07-11 03:54:20 +02:00
Marius Kintel c807f9bbd1 Windows build fixes from Kliment Yanev 2011-06-05 19:55:50 +02:00
Marius Kintel 33a660f173 Removed offset since it's always 0 2011-06-05 17:40:53 +02:00
Giles Bathgate 82b1216ad2 Restores rotation of cylinder to that of previous versions of openscad.
Fix for changes done in commit 8c95ac4462
2011-06-04 11:35:32 +01:00
Marius Kintel 2f740380dc Merged with master 2011-04-28 17:36:56 -04:00
Marius Kintel 8c95ac4462 Changed circle calculation to match sphere tessellation; makes example022 look better 2011-04-13 14:30:55 +02:00
Marius Kintel d24b3cc84d Ported recent changes to master into the visitor branch 2011-04-12 20:35:44 +02:00
Marius Kintel c9093c0ad5 Merge remote branch 'gitorious/sphere-cylinder-optimisation' into sphere-cyl 2011-04-08 00:43:08 +02:00
Marius Kintel 496cc66cf2 Bugfix: Clamp and to 0.01 to fix a crash 2011-04-08 00:36:13 +02:00
Giles Bathgate 9d94eaddc8 Fixed for when rings <= 0. 2011-04-07 23:34:57 +01:00
Giles Bathgate 9357469cce Optimised sphere generation.
Simply use the same number of fragments for each ring, and use
half the number of fragments to determine the number of rings
This results in a sphere that has the same projection when
viewed from above or from the front.
2011-03-22 20:38:48 +00:00
Giles Bathgate 5eed043d53 Optimised cylinder generation.
When the sides are vertical we can use 4 sided polygons instead of
triangles to define the sides, this reduces the facet count for the
sides of the cylinder by half.
2011-03-22 19:50:59 +00: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 a117735f76 don't use C99 variable length arrays 2011-01-19 00:17:31 +01:00
Marius Kintel 93c00f9efe Allow render_polyset() to return NULL 2010-11-07 17:50:57 -05:00
Marius Kintel e0a068a0e8 Refactored some QString usage in the backend to std::string 2010-11-07 16:29:34 -05:00
Marius Kintel 264608981c Fixed some issues with PolySetRenderer, causing e.g. extrusions to fail in OpenCSG mode 2010-11-03 19:26:06 +01: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