summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-02-16allow writing to standard output from command line, update output handler to ↵Jan Huwald
lambda - cmdline can output to a file or cout - output handler uses lambda instead of function pointer - this allows removing Echostream with a one-liner
2014-02-16add --action cmdline, make -o optional, partially implement usage of stdout ↵Jan Huwald
as output_file This patch introduces the --action command line argument. It can override the action determined by the file name suffix and enables writing to stdout (where no suffix exists). -o is now optional and defaults to "<inputfile>.<action>".
2014-02-16refractor command line parsingJan Huwald
- handle optional values with boost::optional<string> instead of char - handle -o/-s/-x without code duplication
2014-02-16openscad.cc: remove unreachable error statements in option parserJan Huwald
2014-02-16write output to temporary file, commit only after completionJan Huwald
cmdline() is modified to write into <output_file>~ and only after succesful completion of the given command rename this file into <output_file>. In case of failure the file is deleted. This prevents dangling errorneous output files and overwriting valid (but old) files with new trash. This patch is required for robust use of OpenSCAD in Makefiles. In case of a crash the output file must not be touched. Otherwise the update file date will trick Makefile into assuming a succesful build.
2014-02-15openscad.cc: rename std::vector and std::string to vector and stringJan Huwald
2014-02-15reduce code redundancy in cmdline()Jan Huwald
- add a map of actions (lambdas) mapped by file suffixes - centralize creation of output file - factor out model checks (# of dims, simplicity) - use output_file instead of <suffix>_output_file
2014-02-14compute application path without resorting to QtJan Huwald
cmdline() determines the application path using either Qt or boost::filesystem, depending on wether Qt is enabled. With this patch we always use boost:filesystem.
2014-02-14Merge branch 'f_improve_help' into f_refractor_openscadJan Huwald
2014-02-13allow reading .scad files from standard inputHEADmasterf_read_stdinJan Huwald
This patch loads the root source code form standard input if "-" is given as file name. In this case handle_dep() is disabled for the root module but still executed for all included files.
2014-02-13Automatize and improve --help outputf_improve_helpJan Huwald
- replace the fixed string in help() with auto-generated strings obtained (via boost:program_options) from the option_descriptions - split visible options into two actions (-o, --info, ...) and options (which only modify actions) - merge and improve the description text of the options_description and the string found in help() - use local lambda help() in main to keep calls to ::help() short
2014-02-13Adapted wil1471's pull request #385 to masterMarius Kintel
2014-02-13Bugfix: GUI stayed locked if CGAL compile failedMarius Kintel
2014-02-11Fixed issue 1 of #598: Auto-compile on subsequent File->OpenMarius Kintel
2014-02-10Move Export menu entries to a sub-menu of the File menu (fixes #474).Torsten Paul
2014-02-10Deprecated child()Marius Kintel
2014-02-10Fixed a bug failing to detect changes in underlying libraries. Should ↵Marius Kintel
improve some of the issues reported in #181
2014-02-09Cleaned up some module cache misbehaviors. Fixes #535Marius Kintel
2014-02-06Backported #638 from unstableMarius Kintel
2014-02-06fix related to 6a1d91dc76ec819e85b180b8cdaf40ddd639a538Marius Kintel
2014-02-06Moved % modifier handling from node to nodedumper. This makes nodes with % ↵Marius Kintel
operators use the existing cache instead of recalculating the object
2014-02-06Remove automatic validity check at end of renderOskar Linde
In more complex cases, the final Nef_Polyhedron is_valid check() took up to 30 % of the total rendering time just to be able to say Valid: YES. In the case of cached geometry, the validity check was totally dominating the execution time when doing a render. This patch removes the automatic validity check, instead adding a menu command "Check Validity". Conflicts: src/mainwin.cc
2014-02-06Editor: Fix bug where replaceAll could enter an infinite loopOskar Linde
2014-02-06Editor: Subtle UI TweakOskar Linde
Return in the find or replace field will animate the triggered button
2014-02-06Editor: Implement Search & ReplaceOskar Linde
Conflicts: src/MainWindow.h
2014-02-06Editor: Reduce find panel bottom marginOskar Linde
2014-02-06Editor: Implemented simple Find functionalityOskar Linde
Conflicts: src/MainWindow.h
2014-02-06Backported 2e3729ab2268f29ee4ff5898f629c4a10c2d6587 to master; redo ↵Marius Kintel
assemblePath for Win. redo openscad.com to handle spaces in filenames
2014-02-05ifdef Qt5 methodMarius Kintel
2014-02-05Scale axis display on high-DPI displaysMarius Kintel
2014-02-05Qt5: Ported Q_WS usage to Q_OSMarius Kintel
2014-02-04Fix issue with boost and Apple namespace pollutionMarius Kintel
2014-02-04Merge branch 'master' of github.com:openscad/openscadMarius Kintel
2014-02-04Added --csglimit parameterMarius Kintel
2014-02-04Increased the default csg limit to 100KMarius Kintel
2014-02-03Fix positional arguments for polyhedron (fixes #634).Torsten Paul
2014-01-29fixup 593 revisedTim V. Shaporev
2014-01-25fixup issue 593Tim V. Shaporev
2014-01-24Handle NaN / +Inf / -Inf in range evaluation (fixes #606).Torsten Paul
2014-01-24compile fix: forgot include for boost::math::isinfMarius Kintel
2014-01-23bugfix: Don't crash if HOME is not setMarius Kintel
2014-01-18killed warningMarius Kintel
2014-01-18killed warningMarius Kintel
2014-01-16Change behavior of intersection: intersecting something with an empty object ↵Marius Kintel
will be empty
2014-01-16Remove isinf from mathc99 since we're using boostMarius Kintel
2014-01-14fix broken build on mingw / mxeDon Bright
2014-01-14Revert "Fixed an issue which caused us to traverse the entire tree for ↵Marius Kintel
OpenCSG rendering traversals, where we didn't actually use the traversal results (for all nodes requiring CGAL)" This reverts commit 448f8b4142acb00efb7e57e575fe6d5aaabec47c. -> We need to traverse the subtrees to be able to pick up debug and highlight modifiers
2014-01-14Testcase and fix for a problem transforming an empty bbox with very small ↵Marius Kintel
numbers in a transformation matrix
2014-01-14bugfix: division by zero can cause malformed primitivesMarius Kintel
2014-01-07Mac fix: We need to use bundled resources when running bundled apps in ↵Marius Kintel
cmd-line node
contact: Jan Huwald // Impressum