Chris Hennes
8b8f2373d1
[OpenSCAD] Implement resize()
...
The existing implementation of resize() did not work, and used incorrect
scale factors. This commit implements a version that matches the results
obtained from within OpenSCAD.
2021-03-10 15:33:45 +01:00
Chris Hennes
9213565b3f
[OpenSCAD] Minor fixes from LGTM analysis
2021-03-09 15:58:07 +01:00
Chris Hennes
73dd71dadc
[OpenSCAD] Add unit tests for importing primitives
2021-03-06 13:31:09 +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
helaslo
71fe41988b
[OpenSCAD] Fix colors not working correctly when polygons are extruded
2021-02-25 15:08:19 +01:00
Yorik van Havre
5c12afb5b5
Merged crowdin translations
2021-02-24 18:07:59 +01:00
Yorik van Havre
0de8cceb53
Updated ts files
2021-02-12 14:47:37 +01:00
bitacovir
78bc6e6ad8
[UI] Replacement of 3 SVG icons for OpenSCAD commands
2021-02-11 12:07:09 +01:00
Chris Hennes
6b16e12d7c
[OTHER] Catch only Exception, not BaseException
2021-02-11 11:52:45 +01:00
Yorik van Havre
97379e035a
merged crowdin translations
2021-02-09 16:12:18 +01:00
Chris Hennes
cbceb87d95
Fix DXF import with no layers
...
As discussed in https://forum.freecadweb.org/viewtopic.php?f=3&t=54842 , if OpenSCAD creates a DXF with no layers in it, the code that is supposed to handle that in FreeCAD has a minor type error in it that prevents the import from working.
2021-01-29 17:01:22 -06:00
bitacovir
c455fd9ec0
[UI] Replace of 2 SVG icons for OpenSCAD commands
2021-01-17 22:00:57 -03:00
fxjaeckel
8ba0b22e42
Update tokrules.py
...
[OpenSCAD] fix parser error for numbers with positive exponent >= 6
see forum: https://forum.freecadweb.org/viewtopic.php?f=3&t=54044
2021-01-05 20:26:42 -06:00
Yorik van Havre
22f7d5f3bc
Merged crowdin translations
2020-12-23 15:13:05 +01:00
Yorik van Havre
ae2c707892
Merged crowdin translations
2020-11-10 14:58:06 +01:00
Yorik van Havre
43596a68af
Merged crowdin translations
2020-10-28 12:04:37 +01:00
sgrogan
a8ca6ada87
fix import, OpenSCAD isn't namespace workbench
2020-10-17 23:54:26 +02:00
Yorik van Havre
c2cec2c38a
Merged crowdin translations
2020-09-30 14:37:02 +02:00
Yorik van Havre
545055f65f
Updated ts files
2020-09-30 13:06:53 +02:00
wmayer
6f196dc827
OpenSCAD: [skip ci] Coverity: Bad use of null-like value
2020-09-22 14:22:10 +02:00
hrobeers
7f36e21d4b
[OpenSCAD] consistent FreeCADGui imports, fixes headless CSG import
2020-09-14 13:28:40 +02:00
luz paz
f0d823eb51
Crowdin: Merge new translations [skip-ci]
2020-08-07 17:17:35 +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
wmayer
cca0c2737f
OpenSCAD: [skip ci] set default of 16 for useMaxFN parameter
2020-08-06 09:47:25 +02:00
wmayer
c140ad0bb9
OpenSCAD: [skip ci] set default of 16 for useMaxFN parameter
2020-08-06 08:48:53 +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
ee7b4054ce
[openscad] fix refine shape feature
2020-07-20 14:24:29 +02:00
mwganson
89ff7e16e2
[openscad] add updated icon to qrc file
2020-07-20 14:24:29 +02:00
mwganson
342fc03ce2
[openscad] work on icon for mesh mirror
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
luz paz
e4f6689e0a
Merged crowdin translations
2020-07-13 14:49:45 +02:00
Yorik van Havre
da262c0b45
Updated master ts files
2020-07-13 13:20:21 +02:00
wmayer
312e98d003
OpenSCAD: [skip ci] fix missing treeview icon
2020-06-23 12:34:25 +02:00
Keith Sloan
b6d5830cd6
fix resize
2020-06-05 13:17:34 +02:00
Keith Sloan
59e644c346
resize
2020-06-05 13:17:34 +02:00
Yorik van Havre
141764e64f
Merged crowdin translations
2020-04-29 16:08:23 +02:00
Yorik van Havre
7003b3f747
Updated source ts files
2020-04-29 15:41:26 +02:00
Yorik van Havre
8933e8ed38
Merged latest translations from crowdin
2020-03-05 11:58:03 -03:00
Bernd Hahnebach
76aa788e5f
FEM and OpenSCAD: add some hint and remove not needed line
2020-02-12 23:28:37 +01:00
donovaly
24ec114cb8
remove program-specific SVG namespaces
...
while fixing a SVG export issue for techDraw I noticed that some SVG files have program-dependent (and thus not clean) code in it. These are traces of the programs Sodipodi and Inkscape, like e.g. this line:
inkscape:export-filename="/home/yorik/PartDesign_Groove.png
This is unnecessary and FC should not use program-dependent code in the SVG but use instead plain SVG strictly following the SVG specification.
This PR transforms the few affected SVGs to a plain version.
2020-02-07 07:34:49 -05:00
Yorik van Havre
5c39f3e035
OpenSCAD: Fixed cmake file
2020-01-28 12:23:09 +01:00
Yorik van Havre
f52dfad5fa
OpenSCAD: Add warning if PLY module is not found
2020-01-28 12:22:08 +01:00
KeithSloan
7e9a45d2bb
Remove ply from OpenSCAD directory as installed as part of FreeCAD
2020-01-28 12:15:55 +01:00
Yorik van Havre
68d6de3c65
Fixed openscad
2020-01-14 13:14:22 +01:00
KeithSloan
9815a0f88d
Update Ply to 3.11
2020-01-14 13:01:11 +01:00
Bernd Hahnebach
c2bfd781d1
OpenSCAD: file endings, normalize them and let git manage them
2019-12-19 22:26:24 +01:00
luz.paz
d10ca28c88
LGTM: remove unnecessary 'pass' statements
...
Issue: A pass statement is only necessary when it is the only statement in a block (the list of statements forming part of a compound statement). This is because the purpose of the pass statement is to allow empty blocks where they would otherwise be syntactically invalid. If the block already contains other statements then the pass statement is unnecessary.
Recommendation: Remove the pass statement.
Relevant links:
1a82a5e136/files/src/Mod/Import/stepZ.py (x78f479c31a062553) :1
1a82a5e136/files/src/Mod/OpenSCAD/OpenSCADCommands.py (xad4868ffcdf82498) :1
1a82a5e136/files/src/App/FreeCADInit.py (x9034ec6815c48e38) :1
2019-12-17 15:15:53 -03: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