Commit Graph

22356 Commits

Author SHA1 Message Date
wmayer
1c91c1287e Base: [skip ci] Various fixes in InterpreterSingleton::runStringWithKey:
+ fix memory leak (localDictionary) by replacing C API with PyCXX
+ don't write the whole code as error message if an error occurs. Python raises an exception with all relevant information for debugging
2020-09-04 09:58:21 +02:00
wmayer
cc0e4ee953 Gui: fix Qt4 build failure 2020-09-03 19:24:09 +02:00
wmayer
d91508fece Part: [skip ci] set proper icons for Tube feature 2020-09-03 19:18:30 +02:00
wmayer
06d6cc579f Part: [skip ci] add MapMode support to Tube feature, raise an error if inner > outer radius, set icon to command and tree view (use cylinder icons for the time being) 2020-09-03 17:47:25 +02:00
vocx-fc
e477283ffc Draft: new PathTwistedArray object
It takes a `Shape` and replicates it around a path, while at the
same time adding a rotation to each copy. This can be used to create
a twisted "ribcage" from a frame-like object, which can be used
in a more complicated `Shape`, for example, a tunnel or bridge
object.
2020-09-03 12:34:16 +02:00
mwganson
8ee644bcbc [AddonManager] fix bug in CheckSingleWorker 2020-09-03 12:23:14 +02:00
SurajDadral
1f15f04b17 Initialize mark and add compatibility for rebar.RebarShape
- Initialize rebar mark with rebar label
- Add compatibility for attribute rebar.RebarShape to work with changes
  done in this PR:
  https://github.com/amrit3701/FreeCAD-Reinforcement/pull/65/commits
2020-09-03 12:20:51 +02:00
mwganson
df0204466e [CheckGeometry] fix segfault, reformat output with lower case, use try/except to check for runtime python errors and fall back on OCCT method if script failed. 2020-09-03 12:09:38 +02:00
mwganson
b553ebe48b [check geometry] decrement some pyobject references 2020-09-03 12:09:38 +02:00
mwganson
9bb3b0e046 [CheckGeometry] fix python2 build 2020-09-03 12:09:38 +02:00
mwganson
1b8a410d29 [CheckGeometry] fix py2 build failure 2020-09-03 12:09:38 +02:00
mwganson
dc3befbff3 [CheckGeometry] update a source code comment 2020-09-03 12:09:38 +02:00
mwganson
a4e38baeb3 [CheckGeometry] add new shapecontent builder instead of OCCT's to correct some errors in OCCT's values and to add for some more advanced information, e.g. volume or area, add new method to Base::Interpreter runStringWithKey() -- allows to run a python script and get a string return value 2020-09-03 12:09:38 +02:00
Jeffrey Zampieron
2697ea6588 Clean up docs 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
a80e1f4cc9 Separate the xcrun check into an env specific section 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
e2dc5ab85d Attempt to auto set conda env 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
b827a54f1a Setup scripts for developer env using conda 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
b71e100bc2 Setup for local conda build 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
7d7c0ab99c Initial build startup works with one-shot conda script 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
5cc8ffba41 Start setting up 1-liner conda build 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
29e1117c8a Make sure we can find pyside on osx 2020-09-03 12:06:59 +02:00
vocx-fc
4b8ebccc7d Draft: improve style and indentation of getSVG function
Also rename `getSVG` to `get_svg`.

Instead of testing `obj.isDerivedFrom('Part::Feature')`
we test for a Shape, `hasattr(obj, 'Shape')`.
This is to support the SVG generation of `App::Links`.
2020-09-03 11:40:50 +02:00
vocx-fc
4bf665a6fd Draft: move format_point out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
775c4d0a97 Draft: move getText out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
67c0af7b53 Draft: move getOvershoot out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
f240972ffa Draft: move getArrow out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
6eccf47848 Draft: move getEllipse out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
4c498e132e Draft: move getCircle out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
04afa25f91 Draft: move getPath out of getSVG function 2020-09-03 11:40:50 +02:00
vocx-fc
3e12316977 Draft: rename getPattern to get_pattern 2020-09-03 11:40:50 +02:00
vocx-fc
cfce1a8ad2 Draft: rename getDiscretized to get_discretized 2020-09-03 11:40:50 +02:00
vocx-fc
e61efd9e6d Draft: rename getProj to get_proj 2020-09-03 11:40:50 +02:00
vocx-fc
8b5e922e05 Draft: improve initial code of getSVG
Improve also the docstrings, and minor adjustments in PEP8 style
and spacing.
2020-09-03 11:40:50 +02:00
vocx-fc
ee58279b3e Draft: use draftutils.utils module in getSVG 2020-09-03 11:40:50 +02:00
mwganson
4a0d127dae [Macro Menu] add Recent macros to Macro menu + list size preference. Executes selected macro or if Shift+click opens macro in editor. 2020-09-03 11:29:37 +02:00
wmayer
2ef0017cf6 Gui: add function to export a VRMLGroup into X3D format 2020-09-03 11:07:09 +02:00
wandererfan
3d6390bc93 [TD]Allow single line S/S view 2020-09-02 11:42:10 -04:00
Roy-043
33ef4e0e35 Update CommandView.cpp 2020-09-01 20:22:26 +02:00
sgrogan
41da46a682 fix build on Win 2020-09-01 17:57:36 +02:00
wmayer
b8fedc6030 Gui: use utility tovrmlx3d to convert a VRML 2.0 file into X3D format 2020-09-01 16:11:09 +02:00
wmayer
9beeb53a98 Gui: [skip ci] do not handle left mouse button events when in dragging or zooming mode 2020-08-31 22:23:35 +02:00
Zheng, Lei
6ef1562d1f App/Gui: warn when loading/saving file with identical physical path 2020-08-31 14:05:14 +02:00
Zheng, Lei
18eb018a14 App: fix PropertyXLink handling on symlink file path 2020-08-31 14:05:14 +02:00
wandererfan
ad1b48b73d [TD]fix V2E DistanceX,Y 2020-08-30 18:59:11 -04:00
wmayer
035993c968 typos: [skip ci] 2020-08-30 14:51:55 +02:00
Zheng, Lei
643b2d6aa0 App: report error on copying OriginGroup without dependency 2020-08-30 11:58:54 +02:00
wmayer
a5899f3892 Part: [skip ci] return std::unique_ptr from Part::makeFromSurface() to avoid memory leaks 2020-08-29 23:56:12 +02:00
tomate44
efb403b8f9 Edge.curveOnSurface : add placement to the output tuple 2020-08-29 22:22:43 +02:00
tomate44
7d3ff633b7 Part.EdgePy : get access to stored Pcurves 2020-08-29 22:22:43 +02:00
luz paz
30c07083a1 Draft: Fix typo in variable name 2020-08-29 19:14:13 +02:00