Commit Graph

17 Commits

Author SHA1 Message Date
Chris Hennes
6bf27e0ae1 [OpenSCAD] Reimplement surface() to match OpenSCAD
The original implementation of the surface() function used a simple
B-spline representation for the surface, which generated degenerate
surface with several of OpenSCAD's demo input files. This commit
modifies the algorithm to generate a discrete surface identical to the
one generated within OpenSCAD itself. It also adds several units tests
to identify future regressions.

Note that PNG input is not yet supported for the surface() function.
2021-03-13 16:11:16 +01:00
Chris Hennes
a00c00e4da [OpenSCAD] Add unit tests for resize() and others 2021-03-10 15:33:45 +01:00
Chris Hennes
c1408f130c [OpenSCAD] Add unit test framework to module
The OpenSCAD module did not have any unit tests. This commit adds the
basic framework (and two very simple tests). The framework is modeled
after the unit tests in the FEM module.
2021-03-01 15:21:18 +01:00
Yorik van Havre
d2b943e8b7 OpenSCAD: Fixed cmake file 2020-01-28 12:23:09 +01:00
Yorik van Havre
61daa6e2ba Fixed openscad 2020-01-14 13:14:22 +01:00
wmayer
16295d4121 CMake 2.8.12 and lower allowed the SOURCE signature in add_custom_command
In CMake 3.0 the policy CMP0050 was introduced where it could be set to OLD to keep this behaviour while for NEW an error was raised.
Since CMake 3.5.2 a warning comes up when using the OLD behaviour and that it will be removed in a future version.

In FreeCAD we switched to the new behaviour now and removed the SOURCE signature from add_custom_command which affects the macros
fc_copy_sources, fc_target_copy_resource and fc_target_copy_resource_flat and their usage.
It's not possible any more to add files to a target by using the macros. Now a file must be added to the target before using the macros.

This commit fixes it for Arch, Draft, OpenSCAD, Material, Plot and Ship
2018-08-20 11:47:39 +02:00
triplus
d432c72a15 Add SVG workbench icons 2016-02-26 23:17:43 +01:00
Ian Rees
e242e4643b Add cmake checks for BUILD_GUI to some modules 2016-02-13 13:45:27 +13:00
wmayer
bedd2b15a7 + fix copying Python resource files to destination on Windows 2014-11-08 11:08:58 +01:00
Sebastian Hoogen
9426f5d4cf OpenSCAD rc file is now compiled at build time 2014-11-06 23:31:24 -02:00
Sebastian Hoogen
bce3de5b5d move exportDRAWEXE.py to Sandbox WB 2014-10-15 15:53:52 +02:00
Sebastian Hoogen
2b1656e6b0 renable DRAWEXE exporter
This reverts commit 4c48bdf216.
2014-07-13 11:37:34 +02:00
Sebastian Hoogen
4c48bdf216 remove DRAWEXE exporter form release 2014-05-25 16:07:02 -03:00
Sebastian Hoogen
49de4f6760 add support for Draft.Clone in exportDRAWEXE
use pscale for uniform scaling of clone object
2014-05-01 11:59:41 +02:00
jriegel
0efd86fbea small cleanups 2012-12-29 13:12:35 +01:00
Sebastian Hoogen
1d0a79a5f2 Enhancements to OpenSCAD module
interpolate OpenSCAD surface elements (heightmaps) to BSplineSurface
ignore render statement #21
handle difference object with only one child #46
fix sign of import origin in prototype
fixed syntax of minkowski statement
Added Icon for AddOpenSCADElement #50 and fixed typo in OpenSCAD module
ignore OpenSCAD Modifiers #31
handle fuse with a single child
remove redefinition of python list
make OpenSCAD importCSG avavailable in command line mode
add modifier characters to the label of the top affected object
started translation
remove ColorCodeShapes command from toolbar and menu
Added toolbar with Part tools to OpenSCAD WB
remove OpenSCAD prototype importer from build
2012-10-25 10:23:28 +02:00
Sebastian Hoogen
df017149c5 OpenSCAD module
fixes #3 #7 #25 #26 #28 #30 #35 #36 #41
2012-06-25 15:01:33 +02:00