Commit Graph

2462 Commits (master)

Author SHA1 Message Date
Marius Kintel 0e15b4bf54 Merge branch 'master' of github.com:openscad/openscad 2015-01-13 13:18:14 -05:00
Marius Kintel 4b60231d3b Merge branch 'master' into libtess2 2015-01-13 13:14:51 -05:00
Marius Kintel df2dae4e59 Added new tessellator using libtess2 instead of CGAL 2015-01-13 13:14:09 -05:00
Torsten Paul 366663610f Clarify editor zoom to be font size change and add proper icons. 2015-01-13 02:26:12 +01:00
Torsten Paul 303217d0b9 Always set both height and viewer_distance (fixes #1153).
The only exception is the initialization in the Constructor which seems
to matter for the test suite where the Camera is initialized with type
NONE. This still needs some investigation as unifying both variables into
a single one does break tests on Travis (but not locally).
2015-01-12 17:48:24 +01:00
Torsten Paul 7b33e9eb67 Highlight export warnings in console window. 2015-01-12 17:31:14 +01:00
Tim Deagan ce5b38d96e Add on-launch code to set Document Icon in windows registry
Since OpenSCAD doesn't distribute with additional image files, this means a new icon needs to be built into the .exe. This is accomplished by adding a line to the end of openscad_win32.rc file consisting of something like the following:
IDI_ICON2 ICON DISCARDABLE "icons/openscad_doc.ico"
which will get built into the exe as icon index 1 (icon index 0 is the current app icon.)

In the cmdline and gui functions in openscad.cc I added code to set the HKEY_CURRENT_USER/Software/Classes/OpenSCAD_File/DefaultIcon/Default value to the icon index 1 of openscad.exe

	modified:   openscad_win32.rc
	modified:   src/openscad.cc
2015-01-11 18:21:08 -06:00
Torsten Paul 094bc92090 Scale icons depending on font size. 2015-01-10 17:21:56 +01:00
Torsten Paul 197dd5ef3b Add scale marker icon for dark theme. 2015-01-10 02:06:19 +01:00
Torsten Paul ddd1228a51 Add settings entry to enable/disable warning display in the 3D view. 2015-01-10 00:54:52 +01:00
Torsten Paul 1ae9ed5ada Allow true/false for boolean settings. 2015-01-10 00:54:13 +01:00
Torsten Paul 670d9a0833 Enable word wrap to prevent the message forcing a bigger viewport size. 2015-01-10 00:35:45 +01:00
Marius Kintel 4fc31db780 Merge branch 'master' of github.com:openscad/openscad 2015-01-09 18:14:27 -05:00
Torsten Paul cd5ecb5eeb Make welcome screen work for dark themes. 2015-01-09 20:20:29 +01:00
Torsten Paul bb7adc83cb Add white icons. 2015-01-09 19:24:04 +01:00
Torsten Paul ceae9d57d0 Merge branch 'toolbar' of https://github.com/openscad/openscad into gui-updates
Conflicts:
	openscad.qrc
	src/MainWindow.ui
2015-01-09 19:09:22 +01:00
Torsten Paul 5943704194 Fix icon selection for dark theme. 2015-01-09 19:04:43 +01:00
Torsten Paul 166e3df850 Remove setting the font size for the warning/error bar. 2015-01-09 18:20:07 +01:00
Torsten Paul 13ba427bb4 Extend Windows version detection (fixes #1076).
As GetVersionEx() is deprecated and will not report Windows 8.1 without
additional resource file manipulation this is now using the code from
http://hg.m1xa.com/findversion (by M1xA / MIT license) which is using the
VerifyVersionInfo API.
2015-01-09 02:00:33 +01:00
Torsten Paul 6e85c54fc4 Validate size of search vector entries (fixes #1147). 2015-01-08 22:11:45 +01:00
Torsten Paul 10bee498e6 Fix duplicated output of DEPRECATED marker. 2015-01-08 19:34:37 +01:00
Torsten Paul e3441b50a1 Move winconsole to separate folder. 2015-01-08 19:12:13 +01:00
Marius Kintel 35d25f394c Normalize calculated normal vector also for polygons without holes 2015-01-08 00:16:45 -05:00
Marius Kintel e44c103b72 Fixed merge error 2015-01-07 23:55:38 -05:00
Marius Kintel b893834c86 Merge remote-tracking branch 'origin/master' into warning-in-viewport 2015-01-07 23:51:45 -05:00
Marius Kintel 93a9db4917 Merge branch 'master' into warning-in-viewport 2015-01-07 23:42:15 -05:00
Marius Kintel c8097c411e Merge pull request #1131 from TDeagan/scalemarkers_numbered
Scalemarkers numbered
2015-01-07 23:41:38 -05:00
Torsten Paul da657d7543 Treat deprecation as warning message (fixes #1143). 2015-01-07 17:05:50 +01:00
Marius Kintel 47fcde8d5c Merge branch 'gridfix' 2015-01-07 10:56:31 -05:00
Marius Kintel 0bd0129f8f bugfix: Apparently execution order wasn't deterministic, caused bugs on older gcc's 2015-01-07 02:09:37 -05:00
Marius Kintel 8c53981cfa Killed compiler warnings 2015-01-07 02:06:25 -05:00
Marius Kintel 55b5d26965 Bugfix: Integer norm is only available in Eigen 3.2.3 -> 2015-01-07 01:02:29 -05:00
Marius Kintel 74a93a3be8 Merge remote-tracking branch 'origin/gridfix' 2015-01-06 23:58:19 -05:00
Marius Kintel 1941a7fc0d #1105 Workaround for CGAL problem: Don't trust normal vectors from Nef polyhedrons, normalize calculated normal vectors 2015-01-06 22:51:44 -05:00
Marius Kintel 5537e82274 Added printPolyhedron 2015-01-06 22:50:40 -05:00
Marius Kintel 2eda0b60a0 cosmetics 2015-01-06 22:50:07 -05:00
Marius Kintel b302cb172b Merge remote-tracking branch 'origin/master' into gridfix 2015-01-06 22:47:43 -05:00
Torsten Paul dda527dabd Show error/warning status in viewport. 2015-01-07 03:14:46 +01:00
Torsten Paul 7b2d01ff51 Use double backslashes to quote fontconfig input. 2015-01-07 00:50:58 +01:00
Marius Kintel 08fd033293 Be conservative and don't apply the CGAL hull fix to unknown versions without testing 2015-01-06 17:55:42 -05:00
Marius Kintel 31f42ee81d Merge remote-tracking branch 'origin/master' into gridfix
Conflicts:
	src/cgalutils.cc
2015-01-06 12:44:17 -05:00
Marius Kintel 61c17092e1 #1089 Only apply convex_hull_3 bugfix to appropriate CGAL versions 2015-01-06 12:24:53 -05:00
Marius Kintel 82dbabac92 Apply convex hull bugfix from CGAL, work around next issue by avoiding using std::set iterators, updated test cases. Fixes #1089 2015-01-06 11:12:03 -05:00
Marius Kintel 073b2e7740 Merge remote-tracking branch 'origin/master' into gridfix 2015-01-06 00:21:43 -05:00
Marius Kintel abf9a96881 Fix crash when checking if invalid Nef3 is valid 2015-01-05 23:30:51 -05:00
Marius Kintel 87e483095b Merge remote-tracking branch 'origin/master' into gridfix 2015-01-05 22:36:29 -05:00
Marius Kintel 966add80a8 Run fixed bug test cases as part of the normal regression tests 2015-01-05 21:43:17 -05:00
Marius Kintel 27f8370c7b Export blank image on empty top-level objects, instead of no image 2015-01-05 21:41:05 -05:00
Marius Kintel 32b2d2ec97 Fixed buggy vertex quantizing and polygon tessellation. Should improve some corner cases 2015-01-05 18:22:58 -05:00
Marius Kintel 26f8742023 Added convexValue() 2015-01-05 17:38:42 -05:00
Marius Kintel 5a2b89981c Minor fix: If we know that a PolySet is convex, there is no need to perform a computationally expensive test. Should improve #1090 2015-01-05 17:37:14 -05:00
Marius Kintel 1ad4af8b0b Collapse consequtive identical vertices instead of deleting the whole polygon. Fixes #1138 2015-01-05 16:04:48 -05:00
Marius Kintel f79414a208 More debug output 2015-01-05 15:57:42 -05:00
Marius Kintel 1896c3f09a Gracefully handle malformed PolySets in minkowski. Fixes #1137 2015-01-05 14:33:54 -05:00
Marius Kintel 1a1f36035d polyhedron debug output had indices reversed 2015-01-05 13:38:26 -05:00
Marius Kintel d0cee28898 Merge branch 'master' of github.com:openscad/openscad 2015-01-05 13:36:06 -05:00
Marius Kintel 0cf6de75a4 Updated hosting issue. Fixes #1136 2015-01-05 13:36:03 -05:00
Torsten Paul 3c337449e9 Unify zoom handling for perspective and orthogonal mode. 2015-01-05 18:34:08 +01:00
Marius Kintel 578b70c40d Merge pull request #1134 from openscad/orthogonal-zoom-fix
Orthogonal zoom fix
2015-01-05 11:04:20 -05:00
Marius Kintel 2fd06f4b78 #1089 Correctly handle CGAL exception behavior 2015-01-04 13:38:06 -05:00
Marius Kintel d920a29a3e Merge pull request #1133 from openscad/svg-scaling-fix
Remove border from SVG viewport to fix scaling issues (fixes #1122).
2015-01-04 11:54:32 -05:00
Torsten Paul 8d401d3534 Use viewport height as "distance" for the status text in orthogonal mode.
While this is not strictly correct as the actual distance has no effect
in orthogonal mode, it's giving the user an indication of the zoom factor.
2015-01-04 17:09:27 +01:00
Torsten Paul 712049795f Use correct eye position in orthogonal projection mode (fixes #1058). 2015-01-04 17:09:27 +01:00
Torsten Paul 0e20a7cb17 Remove border from SVG viewport to fix scaling issues (fixes #1122). 2015-01-04 16:09:44 +01:00
Marius Kintel 86daffdfd7 Merge branch 'master' of github.com:openscad/openscad 2015-01-03 16:44:16 -05:00
Marius Kintel d997226f3c #1089 Provide error message instead of crashing hard on CGAL hull exceptions 2015-01-03 16:43:28 -05:00
Torsten Paul 7cefaa7300 Drop setting the WhitespaceBackgroundColor.
QScintilla uses this color even when the whitespace is selected instead of
drawing it in the selection background color. This causes selection to
look strange when the whitespace display is enabled.
2015-01-03 19:28:42 +01:00
Tim Deagan 358ba86fc8 Swap out spaces for tabs
modified:   src/GLView.h
	modified:   src/MainWindow.h
	modified:   src/QGLView.h
	modified:   src/mainwin.cc

QtCreator ignores the prefs and will only put in spaces instead of tabs.  These are manual fixes in Notepad++ to try and keep the indents in the standard mode.
2015-01-02 01:32:37 -06:00
Marius Kintel 09e7bfc96d #1129 Fixed crash when performing empty projection 2015-01-01 23:01:09 -05:00
Marius Kintel 648b7acc22 Prefix some missing errors with 'ERROR:' to make highlighting work. Fixes #1123 2014-12-31 13:49:54 -05:00
Marius Kintel 15d1dbce28 Merge branch 'master' of github.com:openscad/openscad 2014-12-31 02:52:58 -05:00
Marius Kintel 4eaf8797c2 Small refactoring: Split out Polyhedron-related functions to from cgalutils.cc to cgalutils-polyhedron.cc 2014-12-31 02:52:56 -05:00
Torsten Paul bebe08483f The WrapFlagInMargin value is only available in QScintilla 2.7 and later.
This is a workaround for Debian 7 which has QScintilla 2.6.2. The "Margin"
setting is simply ignored and behaves as "None".
2014-12-30 13:58:48 +01:00
Torsten Paul 8d4d83f168 Fix build with Qt4. 2014-12-30 13:03:51 +01:00
Marius Kintel bc30dca513 Merge pull request #1119 from openscad/scintilla-updates
Scintilla updates
2014-12-30 02:51:38 -05:00
Marius Kintel e69513fa2e #1119 Added missing slot to change tab key function 2014-12-30 02:49:47 -05:00
Tim Deagan 7a71e59f2d Fix layout of number 6 character & add comments
The layout of the array that drives the 6 char was wrong.  Additional
commenting added
2014-12-29 21:23:46 -06:00
Torsten Paul 9bcb38df48 Change settings handling to use Value objects. 2014-12-30 02:37:16 +01:00
Tim Deagan 1826aa98f7 Addition of header to support function to print scale marker position values on large axes.
modified:   src/GLView.h
2014-12-29 15:00:37 -06:00
Tim Deagan 4823f26706 Addition of function to generate scale maker numeric values on large axes.
modified:   src/GLView.cc

The added function takes the length of the axis (l), the currrent position on the axis (i) and the size of the divisions between i and uses a variety of arrays to decode the characters of the position into GL_LINES, GL_LINE_STRIPs, GL_LINE_LOOPs as appropriate.  The various orientations required by the axis are handled by abstracting the line vertex sequences into arrays (set per axis.)
2014-12-29 14:55:15 -06:00
Torsten Paul 2c89f562a3 Update GUI to make options a bit clearer for the user. 2014-12-29 03:49:45 +01:00
Torsten Paul 6f9c4f7f09 Integrate with QSettings. 2014-12-29 00:29:09 +01:00
Marius Kintel 03f63c1c40 Minor compile fix 2014-12-28 16:05:54 -05:00
Marius Kintel 3e2ff23c00 Merge pull request #1115 from openscad/quantizevertices
Quantize vertices
2014-12-27 00:25:18 -05:00
Tim Deagan b6dcea12d0 Merge remote-tracking branch 'upstream/master' into scalemarkers
merging the upstream/master branch into my working branch prior to syncing with my fork
12/26/2014 22:07 CST tim deagan
2014-12-26 22:07:03 -06:00
Tim Deagan 1068f61dc6 Add optional menu driven scaling tics to the large axes
Tim Deagan 12/26/2014

While add-on rulers can be extremely useful, there are many times that a quick scaling marker would be handy. This feature generates tics every 10 units, driven off the log10 of the l variable defining axes length.  As you zoom in or out, the tics automatically re-scale themselves.  Every tenth tic is slightly larger.  A menu item is added to the view menu to enable or disable the feature.

I experimented with menu driven scaling (.01, .1, 1, 10, etc.), but using small increments when zoomed out brought the app to it's knees.  Adding a visual indicator of the current scaling might be nice, but I'm nto sure where to put it (possibly below the small axes,) since it changes as zooming and would clutter the console.

 Changes to be committed:
	new file:   images/scalemarkers.png
	modified:   openscad.qrc
	modified:   src/GLView.cc
	modified:   src/GLView.h
	modified:   src/MainWindow.h
	modified:   src/MainWindow.ui
	modified:   src/QGLView.h
	modified:   src/mainwin.cc
2014-12-26 21:44:31 -06:00
Torsten Paul 6c25d5ccb6 Add more settings (AutoIndent / TabIndents / IndentationsUseTabs). 2014-12-27 02:59:11 +01:00
Torsten Paul 0cb6b3267a Add editor settings. 2014-12-27 02:17:15 +01:00
Torsten Paul dde4575c88 Add class to handle settings. 2014-12-27 00:12:23 +01:00
Torsten Paul 3a5ee3a4c6 Add GUI controls for editor settings. 2014-12-27 00:12:17 +01:00
Marius Kintel cce016b97b Merge remote-tracking branch 'origin/master' into quantizevertices 2014-12-26 14:08:09 -05:00
Torsten Paul 7ccdb778fc Enable GL_LINE_STIPPLE only for the block where a stipple pattern is used (fixes #1111). 2014-12-26 19:20:11 +01:00
Marius Kintel 3f0b16dd75 Merge branch 'master' of github.com:openscad/openscad 2014-12-25 17:27:40 -05:00
Marius Kintel 641ac4a506 #1107 Correctly display validity for objects which didn't yet touch CGAL 2014-12-25 17:27:13 -05:00
shaina7837 1ba2216108 reset view icon added 2014-12-26 00:56:31 +05:30
shaina7837 295f257bf8 undo redo icons added 2014-12-26 00:35:13 +05:30
shaina7837 2654bf9575 unindent duplicate image removed 2014-12-25 23:44:41 +05:30
shaina7837 040aac5e8f Indent icon added 2014-12-25 23:34:28 +05:30
shaina7837 ed500abd39 indent unindent icons added 2014-12-25 23:12:32 +05:30
Torsten Paul d2af825640 Enable resource lookup for Windows build (needed for dev and MSYS2 package). 2014-12-25 18:22:51 +01:00
Torsten Paul fd4fe0816a Fix style sheet to remove borders from QStatusBar items. 2014-12-25 18:22:51 +01:00
Marius Kintel c2643d82ea #1069 Correctly fall back to CGAL minkowski if our convex decomposition-based minkowski fails. Fixes #1069 for now, but our convex-based minkowski should not fail 2014-12-23 22:50:38 -05:00
Marius Kintel 32c3e0d322 Merge pull request #1106 from openscad/gui-updates
Gui updates
2014-12-23 13:20:32 -05:00
Torsten Paul d296d93ddc Quit application when last main window is closed (fixes #1079). 2014-12-23 19:05:53 +01:00
Torsten Paul 0801fc432d Add background to the drag&drop pixmap to make it better readable. 2014-12-23 18:42:16 +01:00
Torsten Paul 481665f8a3 Change layout to allow longer version number text. 2014-12-23 18:28:16 +01:00
Torsten Paul c9a234a079 Add OK button, some Linux window managers do not add a close button to dialogs. 2014-12-23 18:27:39 +01:00
Marius Kintel a68560707f Merge branch 'master' of github.com:openscad/openscad 2014-12-23 01:10:23 -05:00
Marius Kintel 328cd7f362 #1028 Adjusted return values for errors 2014-12-23 01:07:35 -05:00
Marius Kintel b48089e694 Merge branch 'master' of git://github.com/jgelderloos/openscad 2014-12-23 01:02:50 -05:00
Marius Kintel 9b00f69311 #1065 Made font cache progress dialog indeterminate also on Windows 2014-12-23 00:49:37 -05:00
Marius Kintel 22ed0780fa Merge branch 'master' of github.com:openscad/openscad 2014-12-23 00:37:45 -05:00
Marius Kintel c5e4715575 bugfix: highlighted differences didn't render correctly 2014-12-23 00:37:43 -05:00
Torsten Paul 5dc88d0eed Switch between progress widget and status label. 2014-12-23 06:33:35 +01:00
Torsten Paul 3d9b66cf0f Fix crash on startup for the MinGW version. 2014-12-23 06:33:35 +01:00
Marius Kintel 756d3e2a97 Merge pull request #1102 from openscad/text-fixes-part6
Text fixes (part 6)
2014-12-23 00:03:34 -05:00
Torsten Paul b37b49f407 Add version number to launching screen and main windows (fixes #1101). 2014-12-23 03:56:17 +01:00
Torsten Paul 5ad36c82b6 Add OpenSCAD version to the status bar. 2014-12-23 03:33:42 +01:00
Torsten Paul c4e895a813 Add drag&drop to the FontListDialog. 2014-12-23 03:07:27 +01:00
Marius Kintel d071ba16cb Merge pull request #1087 from openscad/offset-updates2
Update offset() parameter handling.
2014-12-22 19:18:40 -05:00
Torsten Paul b2227c7191 Quote special characters when copying the font selector. 2014-12-23 00:05:42 +01:00
Torsten Paul b5f5ffd142 Update German translation and merge new template. 2014-12-22 23:38:35 +01:00
Marius Kintel f945ce3ad8 Correctly calculate arc_tolerance for Clipper 2014-12-22 16:58:22 -05:00
Marius Kintel 781ec4d7bf Minor doc clarification 2014-12-22 16:58:03 -05:00
Marius Kintel 5fe30c66eb Merge pull request #1094 from openscad/fontconfig-init
Use QtConcurrentRun to initialize FontConfig in a separate thread.
2014-12-22 11:23:20 -05:00
Torsten Paul c278963a85 Path and filenames need to use system encoding (fixes #1092). 2014-12-21 17:56:50 +01:00
Torsten Paul 98a9ea7e12 Use QtConcurrentRun to initialize FontConfig in a separate thread. 2014-12-21 03:49:20 +01:00
Torsten Paul 5a0ea7abe2 Color code warning and error messages in the console window (fixes #855). 2014-12-21 02:12:06 +01:00
Torsten Paul 128498a678 Allow reading the keyword lists from the color scheme files. 2014-12-20 17:27:18 +01:00
Torsten Paul 90b7dd82c2 Update lexer keywords. 2014-12-20 04:46:59 +01:00
Torsten Paul b1871c6309 Fix color schemes (brace highlight / selection color / line-end markers). 2014-12-20 02:51:11 +01:00
Torsten Paul ad51cadfbd Update offset() parameter handling.
- Rounded offset is now using parameter r
- Using delta only or delta with camfer = false creates no chamfer
- Using delta with chamfer =true creates chamfer at delta distance
2014-12-19 16:48:13 +01:00
Marius Kintel d72c121fa6 Minor Grid3 refactoring 2014-12-19 02:40:17 -05:00
Marius Kintel 0aa215b90c Quantize vertices when building Nef polyhedrons from PolySets 2014-12-19 02:27:56 -05:00
Marius Kintel f0c7ee6d61 #1068 Attempt to fix the Windows line ending issue 2014-12-17 16:19:13 -05:00
Marius Kintel 6492d25265 #1065 The text module is no longer experimental 2014-12-17 12:56:52 -05:00
Marius Kintel 1aef9f2758 #1065 Show progress dialog while building font cache 2014-12-17 12:12:53 -05:00
Marius Kintel 3d0749b619 Improve displayed rendering time by including compilation time 2014-12-16 18:01:25 -05:00
Marius Kintel 0448b0f1db #1076 Fix memory display on 64-bit Windows 2014-12-16 17:40:13 -05:00
Marius Kintel a40b2848e9 killed compiler warning 2014-12-16 17:39:38 -05:00
Marius Kintel 93b6113edc #1065 fix: It's allowed to pass NULL geometry to the preview renderer 2014-12-16 17:22:41 -05:00
Marius Kintel fe3cae8120 #1065 Text preview optimization: Don't tesselate every frame 2014-12-16 17:03:06 -05:00
Torsten Paul 0f2806ab8a Assume internally used strings are stored in UTF-8. 2014-12-16 21:31:00 +01:00
Torsten Paul 4be9a43b40 Add debug output for the Node Id Cache. 2014-12-16 21:21:06 +01:00
Marius Kintel 77c865d1be Improved regex to correctly match quoted characters in strings 2014-12-16 13:03:12 -05:00
jgelderloos 01ce545e1a Merge branch 'master' of https://github.com/jgelderloos/openscad 2014-12-13 16:21:18 -05:00
jgelderloos 6f68330ce0 Changed exit codes to 0 and added help description to help menu #1028 2014-12-13 16:03:25 -05:00
Marius Kintel 14870d69de #1066 Build fix 2014-12-12 14:35:42 -05:00
Marius Kintel f1b1faad44 Preserve whitespace inside strings when creating cache keys. Fixes #1066 2014-12-12 14:06:28 -05:00
Marius Kintel 9fe80a3a66 Mac build fix 2014-12-11 17:23:45 -05:00
Marius Kintel 9da865604c #600 Tag menu action roles to allow translated menu items to move to the correct Mac OS X menu 2014-12-11 16:58:20 -05:00
Marius Kintel 0a10aca8aa #1051 Suppress warning and error output after 5 equal messages 2014-12-11 16:37:27 -05:00
Marius Kintel 9863aa9ab2 #1051 Detect recursion after 1M tail recursion iterations 2014-12-11 16:09:55 -05:00
Marius Kintel df53d05bba Merge pull request #1062 from openscad/sysinfo
Report system information in the 'Library Info' dialog
2014-12-10 22:45:15 -05:00
Marius Kintel 39612397fa #1057 Sysinfo for Mac OS X 2014-12-10 22:44:39 -05:00
Marius Kintel 73b6700b69 Empty polysets are convex. Fixes crash in is_approximately_convex() 2014-12-09 17:46:03 -05:00
Marius Kintel 7e728fac6a Improve polyset convexity check by tessellating polygons prior to testing. Fixes #1061 2014-12-09 16:53:11 -05:00
Torsten Paul 845bd5706e Guard against reading huge files. 2014-12-09 22:46:09 +01:00
Marius Kintel f32e03dffb Merge branch 'master' of github.com:openscad/openscad 2014-12-09 16:42:05 -05:00
Marius Kintel 6d9329966a #1061 fixed test build behaving differently from GUI build due to ENABLE_CGAL flag not being passed to all relevant sources. Added testcase 2014-12-09 16:42:02 -05:00
Torsten Paul f7816e02cd Add system info (OS / CPUs/ RAM / Distribution (when on Linux)). 2014-12-09 22:21:04 +01:00
Torsten Paul f4a6da7fb0 Try to detect if compiling with a 32bit or 64bit compiler. 2014-12-09 21:19:57 +01:00
Torsten Paul 3a90fa12fa Merge pull request #1060 from openscad/qglformat-patch
Disable vertical refresh syncing.
2014-12-09 21:18:57 +01:00
Marius Kintel 2462799655 Handle a bunch of nullspace corner cases. Fixes #1029 2014-12-08 18:25:48 -05:00
Torsten Paul 342af594ad Disable vertical refresh syncing. 2014-12-08 18:54:39 +01:00
Marius Kintel 94aabb05b5 #1054 Fixed memory leak 2014-12-08 00:57:28 -05:00
Marius Kintel ccea6fdde9 Bugfix: 2D scale or mirror sometimes caused flipped normals which caused larger issues downstream. Fixes #1055 2014-12-07 20:09:45 -05:00
Marius Kintel 6c6882fb2e #1055 Doc: Clarify sanitized polygons 2014-12-07 19:54:31 -05:00
Torsten Paul 2f4171f506 Add optional target suffix for the binary / installation folder.
This is mainly intended to be used for building snapshot binaries that
are able to install in parallel to a release build. E.g. by using the
parameter "SUFFIX=-nightly" for qmake, the target binary will be called
openscad-nightly and the resource base folder /usr/share/openscad-nightly.
2014-12-06 19:23:19 +01:00
Torsten Paul 50e79a6817 Fix evaluation of ! expressions. 2014-12-05 20:54:01 +01:00
Torsten Paul 092b9eeddc Build with -DNOGDI by default to prevent name conflicts with windows.h. 2014-12-04 23:30:42 +01:00
Torsten Paul b6167b0b60 Merge branch 'master' into translation2
Conflicts:
	src/PlatformUtils.h
2014-12-04 20:51:44 +01:00
Marius Kintel 8bd04b1417 Merge pull request #1030 from openscad/issue409
Optimize stack usage (#409)
2014-12-04 14:05:15 -05:00
Torsten Paul 407da2ea8c Move catch for function recursion detection.
Catching this at ModuleInstantiation::evaluate() should ensure the whole
function call is terminated with the first exception. Otherwise function
calls with multiple recursion points (e.g. function f(x) = f(x) + f(x);)
will still descent into the recursion multiple times.
2014-12-04 19:40:15 +01:00
Marius Kintel 87f532493e #1047 Some more cleanup for NULLGL 2014-12-03 10:58:44 -05:00
Marius Kintel 88713b01cf Merge branch 'nullglfix' of git://github.com/bmcage/openscad into bmcage-nullglfix 2014-12-03 10:13:12 -05:00
Benny Malengier 3e0ef9dd68 Needed changes to have NULLGL compiling.
Resulting prog compiles to output stl
2014-12-02 12:31:59 +01:00
Marius Kintel 0067aafbb0 Forgot to commit Value -> ValuePtr fix to header 2014-12-01 17:34:47 -05:00
Marius Kintel be595efd31 Merge remote-tracking branch 'origin/master' into issue409
Conflicts:
	src/mainwin.cc
	src/module.cc
2014-12-01 17:07:01 -05:00
Marius Kintel a59e7d658e Merge branch 'master' of github.com:openscad/openscad 2014-12-01 17:06:30 -05:00
Marius Kintel 582d5dde8c #1030 bugfix: contexts need a parent, or it may crash 2014-12-01 16:52:04 -05:00
Marius Kintel 1e2b28ac2f Merge remote-tracking branch 'origin/master' into translation2 2014-12-01 16:47:36 -05:00
Marius Kintel 57974baa13 Silence verbose debug output 2014-12-01 16:47:00 -05:00
Marius Kintel d6d814586c Merge pull request #1037 from openscad/issue949
Use FileContext when evaluating $vp{rtd} variables (fixes #949).
2014-12-01 10:56:32 -05:00
Marius Kintel 80050e94db merge fixes 2014-12-01 02:51:56 -05:00
Marius Kintel 5743064d56 Merge remote-tracking branch 'origin/master' into translation2 2014-12-01 02:34:28 -05:00
Marius Kintel a05fe72c6b Rewrote tessellation used for NefPolyhedron to PolySet conversion. Should fix #1033 2014-12-01 00:54:01 -05:00
Torsten Paul ef9f2f3289 Retain FileContext to lookup $vp{rtd} variables after compilation (fixes #949). 2014-11-30 16:37:17 +01:00
Torsten Paul 6263bfd269 Render crosshair a bit less intrusive. 2014-11-30 03:22:14 +01:00
Torsten Paul fcbd9fc024 Fix crosshair at the center of the display (fixes #1025). 2014-11-30 03:04:15 +01:00
Torsten Paul 3992cc547b Update drawing logic (fixes #1035).
- Draw negative part of the axis with stippled lines
- Calculate contrast color for axis based on background color
- Disable lighting for axis / crosshair
2014-11-30 03:04:01 +01:00
Marius Kintel 75b57cd9b5 Added some malformed polyhedron tests and fixed an assertion bug 2014-11-27 21:00:23 -05:00
Marius Kintel fac2340989 More correct handling of empty geometry. Should fix a few crash bugs 2014-11-27 20:40:37 -05:00
Marius Kintel c2775d4541 doc 2014-11-27 20:38:53 -05:00
Marius Kintel 91139402ea toPolygon2d() should never return NULL 2014-11-27 20:38:09 -05:00
Marius Kintel defb486a64 createGeometry() should never return NULL 2014-11-27 20:37:40 -05:00
Marius Kintel 4d6db2caa7 fixes crash when intersecting 3 or more 2d objects which results in an empty polygon 2014-11-27 15:27:09 -05:00
Torsten Paul a820487032 Simple implementation of tail-recursion elimination. 2014-11-26 22:53:10 +01:00
Marius Kintel 819f5d085f Moved Polygon typedef out of PolySet class 2014-11-26 15:22:15 -05:00
Marius Kintel 0b58b7d2b3 Compile fix: Don't include Carbon as it pollutes the global namespace with e.g. 'Polygon' 2014-11-26 15:02:44 -05:00
Marius Kintel ecbaec0849 Updated ClipperLib to 6.2.1 2014-11-25 17:41:08 -05:00
Marius Kintel b621287610 C++11 build fix 2014-11-25 17:40:49 -05:00
Marius Kintel 2e8d93d5be Some Expression refactoring 2014-11-25 17:08:14 -05:00
Marius Kintel b03345ec18 bugfix: dump of list comprehension if expression was buggy 2014-11-25 17:01:10 -05:00
Marius Kintel d99dea1db2 bugfix after merging master - dynamic memory caused contexts not to be destructed 2014-11-25 15:53:44 -05:00
Marius Kintel 32bc6ae516 inlined stack pointer retrieval to silence compiler warning 2014-11-25 15:06:20 -05:00
Marius Kintel 2644b19ce7 Reimplemented serialization of expression to string after last refactoring 2014-11-25 15:05:36 -05:00
Marius Kintel be9b0ee925 indentation 2014-11-25 11:26:14 -05:00
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 3612db6a2f Fixes crash during the second run of a failing recursive module 2014-11-24 20:44:39 -05:00
Marius Kintel f1b29e1db9 Removed old stack measurement code 2014-11-24 18:54:51 -05:00
Marius Kintel 15835271c2 Implemented stackLimit() for Mac OS X 2014-11-24 18:29:13 -05:00
Marius Kintel d8010a0659 Take a copy of the name of the recursive component, don't use a pointer to a temporary string 2014-11-24 18:25:38 -05:00
Marius Kintel e0fbeb8d95 Use StackCheck to detect module recursion 2014-11-24 18:12:58 -05:00
Torsten Paul aa586136ae Remove duplicate warning message. 2014-11-24 23:52:07 +01:00
Torsten Paul c206fab087 Merge branch 'stack-size-hack' of github.com:openscad/openscad into stack-size-hack 2014-11-24 23:46:57 +01:00
Torsten Paul 241723dd8f Merge branch 'stack-size-hack' of github.com:openscad/openscad into stack-size-hack
Conflicts:
	src/expr.cc
2014-11-24 23:46:39 +01:00
Marius Kintel 5debac7de0 Throw and catch RecursionException on module recursion 2014-11-24 17:44:39 -05:00
Marius Kintel edc64bdbe9 forgot exceptions.h 2014-11-24 17:43:13 -05:00
Torsten Paul dc8f559b85 Use class hierarchy for the different types of expressions. 2014-11-24 23:37:42 +01:00
Torsten Paul 756f8079d8 Add class to determine the current stack size. 2014-11-24 23:36:29 +01:00
Torsten Paul ba4c50c631 Add function to retrieve the maximum stack size. 2014-11-24 23:34:57 +01:00
Marius Kintel ab96a82629 Minor cleanup of recursion exception handling 2014-11-24 17:30:05 -05:00
Marius Kintel 54a111472f Initial experiment with using exceptions to handle stack overflows 2014-11-24 12:54:14 -05:00
Torsten Paul 6ed14dafb0 Remove big switch statement from expression evaluation.
The switch statement causes a huge stack overhead that is very bad for
evaluating recursive functions.
2014-11-24 00:53:46 +01:00
Torsten Paul 69451af578 Use heap for Context object. 2014-11-24 00:53:46 +01:00
Torsten Paul 609f665406 Extract PRINTB() from recursion stack. 2014-11-24 00:53:46 +01:00
Torsten Paul 1f73807097 Hack to track stack size in function evaluation. 2014-11-24 00:53:41 +01: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 d381ec8bcf #347 Deprecated assign() 2014-11-20 18:31:24 -05:00
Marius Kintel 6a1bc270fd Removed unused member variable 2014-11-20 18:30:58 -05:00
Marius Kintel b2c205ba4c Merge remote-tracking branch 'origin/master' into translation2
Conflicts:
	tests/csgtexttest.cc
2014-11-17 21:56:53 -05:00
Marius Kintel 1afb706461 Merge remote-tracking branch 'origin/master' into translation2 2014-11-17 21:55:19 -05:00
Marius Kintel b83bf31ac4 Merge branch 'master' into issue347 2014-11-17 01:00:41 -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 8cf85e0987 Fix MDI issues. 2014-11-16 19:35:16 +01:00
Torsten Paul 66b22b24a5 Add path information to info output. 2014-11-15 22:44:46 +01:00
Torsten Paul e1db572688 Fix application path initialization for --info. 2014-11-15 22:44:46 +01:00
Torsten Paul 7761c0887b Postpone color scheme initialization after the application path is set. 2014-11-15 22:44:46 +01:00
Torsten Paul 635bf29308 Throw an error if the application path is accessed before it's initialized. 2014-11-15 22:44:46 +01:00
Torsten Paul ce16eb5ce0 Lookup resource folder only once and add some debug output. 2014-11-15 22:44:46 +01:00
Torsten Paul 650a0d2d21 Add debug output for color scheme enumeration. 2014-11-15 18:39:17 +01:00
mermerico 85a91d62a5 Improved DXF output compatibility
Changed coordinate order from [X1 X2 Y1 Y2] to [X1 Y1 X2 Y2]. Both orders are standard compliant but [X1 Y1 X2 Y2] is far more common and can be parsed linearly. Some libraries, like the python libraries dxfgrabber and ezdxf, cannot open [X1 X2 Y1 Y2] order.
2014-11-14 09:49:06 -05:00
Torsten Paul 99c617562c Remove obsolete LOCALE_PREFIX and update documentation. 2014-11-13 00:39:17 +01:00
Torsten Paul ca3672b19c Move translation files to locale folder instead of po.
While this is not the standard name for the files, this makes the
resource handling easier as the PlatformUtils code already handles
lookup for both installed and dev layouts. At least for Linux the
installed name would be /usr/share/locale, so we use that in source
too for now.
2014-11-13 00:24:44 +01:00
Torsten Paul 59c4dec623 Merge branch 'master' into translation2 2014-11-12 23:21:42 +01:00
Marius Kintel 40aae17c0e Move software update menu handling to AutoUpdater. This should fix #714 2014-11-10 15:01:34 -05:00
Marius Kintel e518cb9089 bugfix: Correct order of recent files on splash screen 2014-11-08 23:00:56 -05:00
Marius Kintel 31b90d1acb Merge pull request #1008 from openscad/externalize-colorschemes2
Externalize colorschemes
2014-11-08 20:49:15 -05:00