Chris Hennes
fa8e0a6865
Remove various sys.version_info >= 3 checks
2022-11-09 14:08:54 +01:00
Uwe
0c02c28cf4
[SCAD] remove unnecessary Python 3 check
...
we only support Python 3
2022-07-31 05:26:03 +02:00
Chris Hennes
3503cb2abc
OpenSCAD: Warning message tweaks
2022-02-24 09:08:43 -06:00
luz paz
b3ce571ad7
OpenSCAD: pep8-ified + removed superfluous whitespace + uniform headers
2022-01-23 19:52:37 -06:00
Chris Hennes
c842b6a8c1
[OpenSCAD] Add ability to communicate via pipes
...
In 2021.01 OpenSCAD added the ability to read from stdin and write
output to stdout: this allows us to communicate with an OpenSCAD process
that does not have read/write access to the same directories that
FreeCAD does (for example, if one or the other is installed via a Snap
package).
This commit adds an additional preference to the OpenSCAD workbench
allowing the user to choose between communication methods, as well as to
optionally specify their own temporary directory for the data transfer,
for use in cases where their version of OpenSCAD is installed via Snap,
etc., but does not yet support the piped input and output.
2021-09-29 09:36:58 -05:00
Chris Hennes
9213565b3f
[OpenSCAD] Minor fixes from LGTM analysis
2021-03-09 15:58:07 +01:00
hrobeers
7f36e21d4b
[OpenSCAD] consistent FreeCADGui imports, fixes headless CSG import
2020-09-14 13:28:40 +02:00
mwganson
d6530a0628
[OpenSCAD] Add 2 new commands: Scale and Resize, fix bug in Mirror mesh feature
2020-08-06 12:34:16 +02:00
mwganson
e6aee6b5e6
[openscad] mirror mesh feature -- rename OpenSCADUtils.mirror() to OpenSCADUtils.mirrormesh(), and provide some better interactive help information when typing OpenSCADUtils.mirrormesh() into the python console
2020-07-20 14:24:29 +02:00
mwganson
6c85779ec4
[openscad] mirror mesh feature -- separate gui from function
2020-07-20 14:24:29 +02:00
mwganson
f429b568bb
[openscad] add icon for mirror mesh feature
2020-07-20 14:24:29 +02:00
mwganson
c845ece1e3
[openscad] add ulrich's mirror mesh macro, fix error in refine shape
2020-07-20 14:24:29 +02:00
wmayer
f2b7f2805f
improve detection of OpenSCAD executable to print a more appropriate error message in case of failures
2019-11-06 16:09:50 +01:00
luz.paz
893868b539
Swap http:// for https://
2019-10-17 17:37:12 -03:00
luz.paz
5e46b1c597
More code format fixes
2019-10-17 17:37:12 -03:00
Matthew Fallshaw
a2a15c5cd4
fix crash on macOS when opening OpenSCAD Workbench
...
The OpenSCAD Workbench crashes on open on macOS with error
"a bytes-like object is required, not 'str'", due to python 2 to
python 3 incompatibility. This is me implementing the fix described by
oapa at
https://forum.freecadweb.org/viewtopic.php?t=35384#p311908 (with an
untested attempt to make it also still run with python 2).
2019-10-05 16:31:32 +02:00
luz.paz
cb4a0adf71
Misc. typos
...
Found via `codespell`
2019-02-08 11:01:24 -02:00
cclauss
06bca8fd72
Cannot mix bytes and nonbytes literals in OpenSCADUtils.py
...
Fixes Travis test failure: https://travis-ci.org/FreeCAD/FreeCAD/jobs/474743289#L8528
2019-01-03 11:37:00 +01:00
wmayer
6ab931615f
fix bytes vs. str issue on macOS
2019-01-02 16:26:16 +01:00
PoroCYon
653a5ea047
OpenSCAD: fix error in workaroundforissue128needed with date formats (YYYYMMDD vs YYYY.MM.DD)
...
This happens when the git version of OpenSCAD is installed (which uses YYYYMMDD), instead of
the latest released version (from 2015, which uses YYYY.MM.DD).
2018-11-14 00:14:19 +01:00
Clemens Weissbacher
befb3ea8a8
py3: OpenSCAD: use io.open more explicit
2018-10-29 17:17:53 +01:00
Clemens Weissbacher
0d035d3f5b
py3: OpenSCAD: make Mod/OpenSCAD python3 compatible
2018-10-25 11:03:36 -03:00
Martin Kroeker
fc78df5416
py3: cannot take len() of zip() object directly
2018-10-22 15:38:16 -03:00
lo
a79da99cee
py3: <generator>.next -> next(<generator>)
...
reported: https://github.com/FreeCAD/FreeCAD_Conda/issues/16
ref1: https://stackoverflow.com/questions/12274606/theres-no-next-function-in-a-yield-generator-in-python-3
2018-07-11 21:17:57 -03:00
wandererfan
97e1ca5ef6
Fix #3419 Circles as Polygons
...
- by default, OpenScad represents circles from
dxf files as octogons. This fix provides
access to the OpenScad variable "$fn" which
controls the number of polygon sides.
2018-06-10 19:33:33 +02:00
luz.paz
9167064fc1
Misc. typos
...
Found via `codespell`
2018-04-25 09:41:33 -03:00
Pawel Bogut
33a4055390
OpenScad path detection fix for python3 on unix
2018-03-30 11:30:27 +02:00
luzpaz
c4dd42de98
Typos: Various workbenches and misc.
...
[skip ci]
2017-12-25 10:58:10 +01:00
Priit Laes
839e7eed22
python: OpenSCAD: *.py: Fix python3 syntax
2017-02-12 17:40:07 +01:00
wmayer
2a8652161d
move import statement to fix error
2017-01-06 18:04:07 +01:00
wmayer
7b631625c7
if UnicodeUTF8 is not defined use a fallback implementation of translate()
2016-12-27 20:12:39 +01:00
l3iggs
fbb3d43caa
fix for 0002358
...
This strips off any trailing '-' text reported by openscad when asking it for its version.
2015-12-10 14:50:01 +00:00
Sebastian Hoogen
856c66d12d
use exceptions in OpenSCAD module
...
derive OpenSCADError from FreeCADError if possible
2014-09-17 11:59:49 +02:00
Michael Ang
1470aa1b3d
automatically find the OpenSCAD binary on Mac OS X
2014-07-13 11:37:33 +02:00
Sebastian Hoogen
e9f674770e
Raise exception if the OpenSCAD executeable is unavailable
2014-07-01 12:32:05 +02:00
Sebastian Hoogen
fe4dbe5f17
Add default for path to OpenSCAD on Mac OS X
2014-07-01 12:32:04 +02:00
Sebastian Hoogen
a533161fc5
use compounds for unknown shape types
...
in OpenSCADUtils.applyPlacement
2014-06-10 10:36:09 -03:00
Sebastian Hoogen
e623ce3d0e
+ fixes #0001537 : python function to apply a placement to a shape
2014-05-18 21:13:29 -03:00
Sebastian Hoogen
cf538e94b8
OpenSCAD Module: bugfixes and improvements
...
if more than 14 digits are given don round in general,
but test for <eps only.
refine before extrusion
support polyhedron faces which replaces polyhedron faces
importCSG round rotations
don't call Draft.makecircle and makeprism as they trigger a recompute
use group placholder for objects with no children
move removesubtree to OpenSCADUtils
add resize and offset keywords
add OpenSCAD_ExplodeGroup command
add OpenSCAD_IncreaseToleranceFeature
change refine shape logo
2014-03-06 19:41:38 +01:00
Sebastian Hoogen
9bcd781864
OpenSCAD binary gives version info on stderr in never versions
2014-02-20 11:12:51 -03:00
Sebastian Hoogen
0d3dff3681
Use Part::Mirroing in importCSG
2014-02-20 11:12:51 -03:00
Sebastian Hoogen
3db8e7ed54
OpenSCAD use PythonFeatures for hull and minkowski
2014-02-20 11:12:51 -03:00
Sebastian Hoogen
5e7a61bc04
OpenSCAD Module: Adds support for Frustum and fixes minor bugs
2014-02-14 14:43:29 -02:00
Keith Sloan
91f61246f1
Hull and Minkowski operations using OpenSCAD
2013-11-17 13:50:35 +01:00
Sebastian Hoogen
7d37ad6692
bugfix in OpenSCADUtils.callopenscad()
...
it did not return any result if outputfilename was given
reported by Keith Sloan
2013-10-28 06:44:08 +01:00
Yorik van Havre
4005b199e0
0001102: Updated all links to old freecad homepage and wiki to the new ones
2013-09-15 17:04:42 -03:00
Sebastian Hoogen
d2b9e522d2
OpenSCAD: call which to find openscad executable
...
on all platforms except 'win32'
2013-07-10 20:52:23 +02:00
Sebastian Hoogen
e52fb98e39
search for OpenSCAD executable when initalizing WB
2013-07-10 16:19:24 +02:00
Sebastian Hoogen
00661a078f
added function to search for the openscad executeable
...
this function implmented but not called at the moment
2013-07-10 16:11:32 +02:00
Sebastian Hoogen
1ce4327b5f
process OpenSCADs stdout and allow os.unlink to fail
2013-07-10 16:11:31 +02:00