Commit Graph

86 Commits (4f4bf2b0b86aeca36e95fe10974190d5493cf557)

Author SHA1 Message Date
Torsten Paul d8a1b5f7eb Convert Assignment to use shared pointers for Expressions (fixes #709). 2014-03-30 19:16:50 +02:00
Marius Kintel ab6192e465 Merge branch 'master' into unstable
Conflicts:
	src/openscad.cc
	src/printutils.h
2014-03-02 22:41:05 -05:00
Marius Kintel fbfc9b0879 Print each deprecation message only once per compilation. Fixes #678 2014-03-02 22:09:10 -05:00
Marius Kintel bab951b344 Merge branch 'master' into unstable
Conflicts:
	src/CGALEvaluator.cc
	src/MainWindow.h
	src/MainWindow.ui
	src/import.cc
	src/mainwin.cc
	src/winconsole.c
	tests/CMakeLists.txt
2014-02-23 15:49:26 -05:00
Marius Kintel c9df4c0d26 Last #235 fix: Don't return empty PolySets, as they will be interpreted as 3D object later, causing a mixed 2D-3D error 2014-02-19 23:33:31 -05:00
Don Bright ccc782e39c fix failing tests per comments on github, make slightly more robust 2014-02-19 05:26:19 -06:00
Don Bright 6326aab677 fix issue #235 2014-02-17 14:19:12 -06:00
Marius Kintel 24986eec91 Added Geometry::isEmpty, some cleanups of CGAL_Nef_polyhedron, fixed some 2D-3D-mix issues 2014-01-09 02:06:37 -05:00
Marius Kintel ace3668736 Cleanup: Removed redundant code 2014-01-09 02:06:35 -05:00
Marius Kintel b5abd6a39f Fixes remaining issues after merging #574 2014-01-09 02:06:34 -05:00
Marius Kintel 84ce5dbd5d Implemented import to Polygon2d, fixed twist bug, added convexity support 2014-01-09 02:06:33 -05:00
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
Don Bright 0bd8531b25 delete 'new polyset' on failure of creation 2013-12-15 08:06:45 -06:00
Don Bright 09d60fd5af stub of face tessellation function for polyset 2013-12-14 17:25:40 -06:00
Don Bright 0a2b7ca0d4 FIXME leaking polyset by altering functions signatures 2013-12-14 17:20:35 -06:00
Ivo Noorhoff 61e6178d1b In this commit i'll change just the Qt project, c and header files to get OpenSCAD
building and working on Windows 7 compiled with Visual Studio Express 2012.

A couple of things needed changing :
* MSVC 2012 has no trunc or round, i have added those to mathc99 and included mathc99 to the files needed.
The implementations were taken from boost.
* MSVC 2012 stl does now allow accessing out of bounds elements in std:vector as an array, so "chain->objects[i]" will
fail in "OpenCSGRenderer::renderCSGChain". Whatever the platform, it will me a good idea to change this
code to something that does not trigger undefined behavior.
* MSVC 2012 cannot figure out the types involved in "if (file_size ==  80 + 4 + 50*facenum) {", i have added
a cast to force it to "if (file_size ==  static_cast<std::streamoff>(80 + 4 + 50*facenum)) {".

The next round would be regression testing and debugging and possibly more changes to the OpenSCAD main code.

The round after that would be changing the .pro and .pri files to create correct visual studio solutions.
2013-07-28 13:42:35 +02: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 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 14e1ad2363 Forgot to actually add most files in previous commit (#217) 2013-05-09 12:12:58 +02:00
Marius Kintel 81266c34a1 Re-added donb's patch for handling deprecated parameters to import 2013-04-26 17:45:40 -04: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
don bright 6a87dd5cfa accept 'layername' and 'filename' in import, WARNING deprecation 2013-04-20 14:24:39 -07:00
Marius Kintel ea0d71329a Added bugfix hints. Related to #116 2013-04-18 21:51:46 -04:00
Marius Kintel 442ab618a7 Merge branch 'master' into issue116 2013-04-18 18:34:19 -04:00
Marius Kintel 58bd9c9e3f Cleaned up argument list handling, related to #116 2013-04-18 18:34:14 -04:00
Marius Kintel 151593705f Disable context debug output 2013-04-09 01:04:36 -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 1b8b7aa5fa I think this should fix issue #217 2013-04-05 01:30:09 -04:00
Marius Kintel 56bf724ab4 Print warning in import() if OFF file is not found 2013-03-28 12:10:43 -04:00
don bright dc955eccb9 fix build broken on older gcc 2013-03-03 20:10:34 -08:00
don bright 80457c9c46 older gcc doesn't know about __builtin_bswap32 2013-03-03 21:16:27 -06:00
don bright e9e62272a6 replace packed struct with union. remove some extraneous/debug code 2013-02-02 08:53:13 -08:00
don bright e357399fd9 enable import STL to work on big-endian computers 2013-02-02 07:56:07 -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 087b9bb7c3 Catch exceptions as const references. Related to #204 2012-10-08 20:49:02 -04:00
don bright 10c7607541 more eigen3 fixes.
1. finish converting 'using namespace boost::filsystem' to 'namespace fs = boost::filesystem'.

2. initial version of changes to CMakelists.txt for the regression test
2012-08-18 22:44:46 +02:00
don bright 9f6819e685 initial rework to enable eigen3 per issue #174.
1. enable eigen3 in qmake build system
2. convert Transform3d and cwise() per the eigen2->eigen3 porting faq online
3. get rid of 'using namespace boost::filesystem' as it conflicts with eigen3
2012-08-18 22:28:36 +02:00
don bright 8cc442369f fix bugs in build 2012-07-15 14:29:14 -05:00
Marius Kintel 2495df6bab Add timestamp to cache key for modules importing files. Fixes #141 2012-07-14 21:57:41 -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
Marius Kintel eff1f7f8c9 Ported printutils away from Qt 2012-01-25 03:11:12 +01:00
Marius Kintel 1cfc8c68a2 Open files which can be binary in binary mode. Hopefully solves problem reading binary STL files reported by nop head 2012-01-15 18:53:32 +01:00
donb 65a1c9cf6c add boosty.h for compatability with boost <1.44 2012-01-14 05:02:15 +01:00
Marius Kintel 19ea0f0427 Don't use native() to extract strings from boost::filesystem::path() since that will use wchar under Windows 2012-01-09 03:06:44 +01:00
Marius Kintel 0dff9f4fa5 Removed last traces of Qt 2011-12-25 15:06:38 +01:00
Marius Kintel dc4bc15925 Ported binary STL file reader away from Qt 2011-12-23 22:01:19 +01:00
Marius Kintel 33a2b0e502 Ported away more of the STL parser from Qt 2011-12-06 22:35:03 +01:00
Marius Kintel d9d584ff10 Started on porting import() away from Qt 2011-12-06 04:10:32 +01:00