Commit Graph

17 Commits

Author SHA1 Message Date
Chris Hennes
748e113418 [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
5dbeb210e0 [OpenSCAD] Add unit tests for resize() and others 2021-03-10 15:33:45 +01:00
Chris Hennes
3e48fef002 [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
5c39f3e035 OpenSCAD: Fixed cmake file 2020-01-28 12:23:09 +01:00
Yorik van Havre
68d6de3c65 Fixed openscad 2020-01-14 13:14:22 +01:00
wmayer
8088aa159f 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
93c7a6bcac Add SVG workbench icons 2016-02-26 23:17:43 +01:00
Ian Rees
0a70ce4eef Add cmake checks for BUILD_GUI to some modules 2016-02-13 13:45:27 +13:00
wmayer
4459b37e45 + fix copying Python resource files to destination on Windows 2014-11-08 11:08:58 +01:00
Sebastian Hoogen
635ab1a6b9 OpenSCAD rc file is now compiled at build time 2014-11-06 23:31:24 -02:00
Sebastian Hoogen
0ef3da1a64 move exportDRAWEXE.py to Sandbox WB 2014-10-15 15:53:52 +02:00
Sebastian Hoogen
691a12b1ea renable DRAWEXE exporter
This reverts commit 4c48bdf216.
2014-07-13 11:37:34 +02:00
Sebastian Hoogen
25e51b5fa7 remove DRAWEXE exporter form release 2014-05-25 16:07:02 -03:00
Sebastian Hoogen
7267014df6 add support for Draft.Clone in exportDRAWEXE
use pscale for uniform scaling of clone object
2014-05-01 11:59:41 +02:00
jriegel
ad8d4d3a5e small cleanups 2012-12-29 13:12:35 +01:00
Sebastian Hoogen
a9d1f4f3fb 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
d984093f1c OpenSCAD module
fixes #3 #7 #25 #26 #28 #30 #35 #36 #41
2012-06-25 15:01:33 +02:00