Commit Graph

70 Commits (4fd18f6d72d3690dec11c7241a8127fe37007dec)

Author SHA1 Message Date
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
Marius Kintel f73b8289f6 Correctly escape special characters in dumped strings. Fixes dumptest_import_dxf-tests 2011-11-07 03:59:40 +01:00
Marius Kintel aa94d42d2c Don't dump timestamp of included files, this wasn't really used anywhere 2011-11-07 02:37:44 +01:00
Marius Kintel 45161d4356 Slight refactoring of builtin function and module handling 2011-11-06 18:37:12 +01:00
Marius Kintel a8db9fa3dd Bugfix: import module toString() output was not parsable 2011-11-03 19:38:57 +01:00
Marius Kintel cdbf45eea0 Removed unused variable 2011-09-30 19:04:08 +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 e9068e5adf Updated tests to reflect recently changed import behavior 2011-09-07 22:27:29 +02:00
Marius Kintel 27a99044d8 Implemented OFF import, refactored PolySet/Polyhedron conversion 2011-09-07 22:04:59 +02:00
Marius Kintel f40f7ef072 Added support for an untyped import() module, deprecating the explicitly typed import_*() ones 2011-09-07 00:47:55 +02:00
Marius Kintel 821c7df1fe Extracted handle_dep() to separate source file 2011-09-04 00:03:16 +02:00
Marius Kintel 6096f2734a De-Qt-ification continues, almost done with DxfData 2011-09-03 22:44:41 +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
Marius Kintel 6041c34f0b Refactored some non-CGAL functionality into separate functions in PolySetCGALEvaluator 2011-09-01 17:03:34 +02: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