Commit Graph

161 Commits (b04734cbf57db78d188cff9de9a4e33b2366534b)

Author SHA1 Message Date
Marius Kintel f577f91d25 Better warnings and GL info related to OpenCSG capabilities and OpenGL 1.x 2011-12-09 03:43:06 +01:00
Marius Kintel 65a5aa23bf Refactoring: Use shared_ptr instead of our own shared pointer implementation for CSGTerm 2011-12-06 01:17:03 +01:00
Marius Kintel faf4a64851 Killed some warnings 2011-12-04 22:20:19 +01:00
Marius Kintel 5c30bcb691 bugfix: Fix problem with progress bar sometimes jumping backwards 2011-11-09 03:48:07 +01:00
Marius Kintel 5466efe7ef bugfix: PI constant didn't work in cmd-line mode. refactored away duplicate code 2011-11-05 17:04:09 +01:00
Marius Kintel f64dc11d33 Merge branch 'visitortests' 2011-10-30 02:47:21 +01:00
Marius Kintel 5070014b3a Enable standard shortcuts for save and reload on Linux and Windows. F2/F3 will still work. 2011-10-30 02:25:57 +01:00
Marius Kintel a0c72f0577 Killed unnecessary using statement 2011-10-30 02:16:04 +01:00
Marius Kintel a898a518d0 Merge branch 'master' into visitortests 2011-10-20 15:17:22 +02:00
Marius Kintel 038767f6a6 Experimental support for exporting the compiled CSG tree as a text file 2011-10-19 17:35:14 +02:00
Don Bright 7332ec9fe2 clean up linux changes to fit with win32 changes. 2011-10-15 20:14:35 -05:00
Marius Kintel 799ca1d1b3 Merge branch 'master' into visitortests
Conflicts:
	src/polyset.h
2011-10-04 21:06:40 +02:00
Marius Kintel 7c9f2fa616 Don't try to autoreload empty file. Version string cosmetics 2011-10-04 00:34:49 +02:00
Marius Kintel 84e98b178a Cleaned up some unnecessary includes 2011-10-01 01:36:30 +02:00
Marius Kintel 6bf2d6ca1a Merge branch 'master' into visitortests 2011-09-28 01:39:30 +02:00
Marius Kintel f17d9f0057 This should fix the double C:/C:/ bug when dropping a file into the editor under Windows, reported by Stony Smith 2011-09-27 23:21:30 +02:00
Don Bright ccc88b0c43 get throwntogetherrenderer working in tests (initalize csgInfo to null) 2011-09-19 21:25:05 -05:00
Marius Kintel ccb6af2816 Don't output deprecated parameters if they're not specified 2011-09-12 03:46:13 +02:00
Marius Kintel 81ec00c09b Change the diagonal view so that the object's front faces the light 2011-09-11 13:14:15 +02:00
Marius Kintel 95949cf961 Implemented CGAL caching 2011-09-11 10:51:55 +02:00
Marius Kintel 18e97e0bd3 Fixed bug introduced by the new PolySet cache; string filtering done in the wrong place, refactored cache into separate class 2011-09-11 09:10:31 +02:00
Marius Kintel c0641d6916 Reenabled PolySet caching. Pass shared_ptrs to polysets around to better manage memory 2011-09-11 07:33:18 +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 b59be3fbc2 Update recent file also on save/saveas 2011-09-08 09:52:02 +02:00
Marius Kintel 0188ed74fa Removed duplicate error message on parser error 2011-09-08 05:14:52 +02:00
Marius Kintel 75784844ea Implemented OFF export 2011-09-07 22:04:02 +02:00
Marius Kintel 80f998377f bugfix: When canceling the file open dialog, don't open a new window 2011-09-06 18:19:29 +02:00
Marius Kintel 5417b4fa65 Ported use for Qt's foreach to BOOST_FOREACH 2011-09-04 20:35:23 +02:00
Marius Kintel 3d204ad27b Filename case fix 2011-09-04 01:59:06 +02:00
Marius Kintel 821c7df1fe Extracted handle_dep() to separate source file 2011-09-04 00:03:16 +02:00
Marius Kintel f58c0a3eb5 Some cleanup of the Context class 2011-09-03 18:51:29 +02:00
Marius Kintel acfd1e1b19 More de-Qt-ify 2011-09-03 06:30:48 +02:00
Marius Kintel 6f632190a0 Ported a bunch of stuff from Qt to STL 2011-09-03 06:10:36 +02:00
Marius Kintel 2f4582eeba bugfix: Don't try to render empty polyhedrons 2011-09-02 20:18:27 +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 b3dd77d252 Merge branch 'master' into visitor
Conflicts:
	src/mainwin.cc
2011-08-27 21:42:50 +02:00
Marius Kintel 94d3424d63 bugfix: Automatic reload and compile got broken during the rendering refactoring 2011-08-27 21:11:27 +02:00
Marius Kintel 08c83d306e Merge branch 'master' into visitor
Conflicts:
	src/primitives.cc
2011-08-25 17:46:21 +02:00
Marius Kintel 0823b1f3c0 bugfix: Flush caches now also flushes the use'd module cache 2011-08-25 16:54:02 +02:00
Marius Kintel cfea2f8934 bugfix: background and highlight was broken after refactoring 2011-08-06 01:08:11 +02:00
Marius Kintel 2af5648eda Merge branch 'master' into visitor
Conflicts:
	src/OpenCSGRenderer.cc
	src/csgops.cc
	src/mainwin.cc
	src/polyset.cc
	src/projection.cc
2011-08-04 04:02:42 +02:00
Don Bright 00d7bb401c fix broken build on systems that use case sensitive filenames (linux) 2011-08-03 17:45:40 -05: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 4e60d215de removed unused member variable 'enableOpenCSG' 2011-07-30 21:42:31 +02:00
Marius Kintel 887f7eb99f Refactored GL rendering inspired by Giles' work on RapCad. The ultimate goal is to become independent of Qt 2011-07-30 21:29:40 +02:00
Marius Kintel 7a58f11986 Merge branch 'cgal-renderer-refactor' of gitorious.org:openscad/openscad into cgal-renderer-refactor 2011-07-23 22:02:55 +02:00
Marius Kintel 21ac6c05d1 merged in recent changes in master 2011-07-11 03:54:20 +02:00
Marius Kintel 65a5df8810 missing newline 2011-07-11 01:55:29 +02:00
Don Bright d64a03d2a9 cleanup 2011-07-05 18:48:07 -05:00
Don Bright 517abac2ee move functions to more logical location 2011-07-05 18:43:05 -05:00
Don Bright 06f11240b4 Save the setting of 'Design/Auto Reload and Recompile' between sessions 2011-07-05 18:07:26 -05:00
Don Bright 61b41fcb8e Save the window position and sizes of the edit & console windows between sessions. 2011-07-03 22:42:55 +01:00
Don Bright 31a06d1c3b Save view settings between sessions.
A list of the saved settings is as follows:
* Show Edges
* Show Axes
* Show Crosshairs
* View Orthogonal / View Perspective
* Hide Console
* Hide Editor
2011-07-03 21:57:07 +01:00
Marius Kintel 367dcbcb50 Added Export as Image 2011-06-05 20:05:55 +02:00
Marius Kintel d24b3cc84d Ported recent changes to master into the visitor branch 2011-04-12 20:35:44 +02:00
Giles Bathgate ae8cda73a8 Removed the remaining crud. 2011-04-09 06:47:24 +01:00
Giles Bathgate 1d510e0870 Removed a huge whitespace preceeding a lines of code. 2011-04-09 06:46:22 +01:00
Giles Bathgate e02eb751b1 Move setColor into Polyhedron class which is a much more sensible place. 2011-04-09 06:42:00 +01:00
Giles Bathgate 40d7f26628 Remove all the crud from CGAL_Renderer.h, and subclass of the differences. 2011-04-09 06:30:25 +01:00
Marius Kintel 633343c47e Merge branch 'visitor' into pi-constant 2011-02-09 23:44:36 +01:00
Giles Bathgate 744367fda1 Proof of concept implementation of builtin constants. 2011-02-05 16:37:30 +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 a7bf88a9cb removed unused unistd.h 2011-01-18 00:53:52 +01:00
meta 1b44be5a63 rename to fix a name clash with inner scope 2011-01-17 22:38:18 +01:00
meta e63576ce1a replace stat() with QFileInfo 2011-01-17 22:34:46 +01:00
Marius Kintel f06b7025ba Suggest filename based on document name on export 2010-12-26 00:22:45 +01:00
Marius Kintel 10b411f2a1 Cosmetics, temporarily disabled preferences in GLView 2010-11-07 22:54:08 -05:00
Marius Kintel 93c00f9efe Allow render_polyset() to return NULL 2010-11-07 17:50:57 -05:00
Marius Kintel eed6e69530 Quick&Dirty locking of GUI to avoid running two compilations in parallel 2010-11-06 11:03:01 -04: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
Marius Kintel e994adddb1 cosmetics 2010-11-01 04:29:55 +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
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 819ae6d181 bugfix: Matrix initialization state was wrong, made CSGTermRenderer fail 2010-10-31 02:42:39 +02:00
Marius Kintel fdcbb4cf97 Improved CSGTermRenderer to a testable point 2010-10-31 02:42:39 +02:00
Marius Kintel c868525c67 cosmetics 2010-10-31 02:42:38 +02:00
Marius Kintel 8cda80e8f3 assert fix (forgot to set root node on the tree) + mix. coding style fixes + a note to remember that this is the visitor refactor version 2010-10-31 02:42:38 +02:00
Marius Kintel 75d18642cc Compile fixes after working in test-code/ 2010-10-31 02:42:38 +02:00
Marius Kintel e46f9dab2f export to stream for stdout/stderr output support 2010-10-31 02:42:37 +02:00
Marius Kintel f36e618a6f bugfix: use case sensitive includes 2010-10-31 02:42:35 +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 184d0e041f Initial implementation of CGALRenderer 2010-10-31 02:42:35 +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
kintel 6a9653b1db Some fixes by Jestin Stoffel
git-svn-id: http://svn.clifford.at/openscad/trunk@566 b57f626f-c46c-0410-a088-ec61d464b74c
2010-07-02 20:59:16 +00:00
kintel dfe808e7d4 fixed check-before-reload, also for the Reload (F3) function
git-svn-id: http://svn.clifford.at/openscad/trunk@556 b57f626f-c46c-0410-a088-ec61d464b74c
2010-06-12 23:30:42 +00:00
clifford 3e8e5fa925 Clifford Wolf:
Added "Design -> Automatic Reload and Compile"
	(for use with external editor)



git-svn-id: http://svn.clifford.at/openscad/trunk@540 b57f626f-c46c-0410-a088-ec61d464b74c
2010-05-09 13:27:05 +00:00
clifford b934cc156f Clifford Wolf:
Ask user when reloading with local midifications



git-svn-id: http://svn.clifford.at/openscad/trunk@536 b57f626f-c46c-0410-a088-ec61d464b74c
2010-05-08 11:38:30 +00:00
clifford a79168164b Clifford Wolf:
Fixed TabStopWidth (at least for QTextEdit)



git-svn-id: http://svn.clifford.at/openscad/trunk@523 b57f626f-c46c-0410-a088-ec61d464b74c
2010-04-18 11:47:19 +00:00
kintel 5f02e63693 MDI fix and Mac environment for qcodeedit
git-svn-id: http://svn.clifford.at/openscad/trunk@506 b57f626f-c46c-0410-a088-ec61d464b74c
2010-04-03 03:05:33 +00:00
kintel 8184de7c13 Syntax highlighting now works.
git-svn-id: http://svn.clifford.at/openscad/trunk@505 b57f626f-c46c-0410-a088-ec61d464b74c
2010-04-03 03:05:28 +00:00
kintel 7496c57586 Fixed modified signal for qcodeedit
git-svn-id: http://svn.clifford.at/openscad/trunk@504 b57f626f-c46c-0410-a088-ec61d464b74c
2010-04-03 03:05:24 +00:00
kintel 9f58225754 Changes that were supposed to be commited in last commit
git-svn-id: http://svn.clifford.at/openscad/trunk@501 b57f626f-c46c-0410-a088-ec61d464b74c
2010-04-03 03:05:14 +00:00
kintel 7095f825eb Removed MainWindow::current_win - made this a tiny bit better, decoupled MainWindow from printutils
git-svn-id: http://svn.clifford.at/openscad/trunk@467 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-28 20:54:55 +00:00
kintel 2cddf760bf Fixed compile error when OpenCSG is disabled
git-svn-id: http://svn.clifford.at/openscad/trunk@464 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-28 18:17:23 +00:00
kintel f3d16e23b9 Multiple non-MDI assumptions were made, setting CWD and assuming it didn't change. Fix required to pass more context to nodes (functions). It's not totally clean, but it's a start. Fixes bugs: opening multiple files simultaneously only loaded the first file, refreshing an scad file referencing an external file failed if another scad file was opened in the meantime.
git-svn-id: http://svn.clifford.at/openscad/trunk@451 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-23 20:47:54 +00:00
clifford 0b0aa7b9b3 Clifford Wolf:
Added Help -> OpenSCAD Homepage
	Another RELEASE_NOTES typo fix



git-svn-id: http://svn.clifford.at/openscad/trunk@445 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-20 10:20:18 +00:00
clifford 05ce9d89b5 Clifford Wolf:
Improved handling of examplesdir on linux
	Updated scripts/release-linux.sh



git-svn-id: http://svn.clifford.at/openscad/trunk@441 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-19 09:51:35 +00:00
kintel 594f22e26e Delay showing the progress bar with one second
git-svn-id: http://svn.clifford.at/openscad/trunk@438 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-12 15:43:56 +00:00