Commit Graph

22383 Commits

Author SHA1 Message Date
vocx-fc
3c2b47e458 Draft: replace FreeCAD with App for consistency 2020-09-09 12:53:54 +02:00
vocx-fc
29a52d0dbc Draft: move getSVG to draftfunctions submodule
Small fixes where the `get_svg` function is used, for example,
in the (obsolete) `DrawingView` class and `Arch_SectionPlane`.

Also update the unit tests accordingly.
2020-09-09 12:53:54 +02:00
tomate44
b36db02b41 SurfaceOfExtrusion: use uIso and vIso methods of parent class 2020-09-09 11:06:21 +02:00
wmayer
fe41dab894 Gui: [skip ci] fix bugs in spin box classes:
+ use correct format string when assigning value to an expression
+ do not round value when setting value of a DoubleSpinBox
2020-09-09 09:49:03 +02:00
wmayer
f388ba1048 Inspection: [skip ci] do not use multi-threading when Part objects are used for visual inspection 2020-09-08 16:55:35 +02:00
Roy-043
48e0b570fc Draft: Fix wire placement issue if Copy=False. 2020-09-08 16:16:16 +02:00
John Yani
73d247d245 [Arch] ViewProviderPanelSheet: Too many arguments
setProperties was called incorrectly
2020-09-08 16:14:22 +02:00
Roy-043
a620ddc0bc Update gui_snapper.py 2020-09-08 16:13:02 +02:00
SurajDadral
cc906537a7 Calculate length of rebar derived from Part::Helix 2020-09-08 15:50:23 +02:00
wmayer
ce0e0ca143 Gui/Mesh: [skip ci] make sure object fits into canvas 2020-09-08 15:12:09 +02:00
wmayer
10aba9c616 Gui: [skip ci] set crease angle if possible when exporting to x3d/xhtml 2020-09-08 14:35:29 +02:00
Sudhanshu Dubey
80a73d604c FEM: tests, adding check for file
... to solve the issue reported at https://forum.freecadweb.org/viewtopic.php?p=424935#p424935
2020-09-08 07:49:02 +02:00
Sudhanshu Dubey
959328c6cf FEM: correcting string comparison 2020-09-08 07:48:56 +02:00
wmayer
514a93185b Gui/Mesh: [skip ci] add Iso view position button to Web 3d page 2020-09-07 17:43:04 +02:00
wmayer
eec776584e Gui: [skip ci] add x3d and xhtml format to export dialog 2020-09-07 16:27:21 +02:00
wmayer
49ea7ed8dd Web: [skip ci] allow to directly load local (X)HTML files with file browser 2020-09-07 14:33:04 +02:00
wmayer
208c2f5e6c Gui/Mesh: [skip ci] put view positions at top of Web 3d page 2020-09-07 14:18:01 +02:00
wmayer
a51d2bab99 Base: Py2 related fix 2020-09-04 19:02:29 +02:00
Christopher Coley
8d9d57d60d Gui: automatically activate the DlgExpressionInput dialog; fixes #4384 2020-09-04 18:39:09 +02:00
Zheng, Lei
60e018e666 Gui: improve transaction handling in PropertyEditor 2020-09-04 16:01:21 +02:00
Zheng, Lei
f67d960146 App: record transaction on non DocumentObject
Related #0004265
2020-09-04 16:01:21 +02:00
wmayer
95a0312275 Part: [skip ci] make Tube command behave like all other solid creation commands 2020-09-04 12:21:40 +02:00
wmayer
e9b744b2a6 Gui: make Clipping widget a dockable widget so that it can be used while a task dialog is open 2020-09-04 11:54:52 +02:00
wmayer
c296511816 Mesh: [skip ci] include missing header 2020-09-04 10:40:01 +02:00
wmayer
559d905324 Gui: add SoTimerSensor.h to PCH 2020-09-04 10:36:13 +02:00
luz paz
6f62fd09df Fix typos in various files [skip-ci]
Found via `codespell 2.0.dev0`  
```
codespell -q 2 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-09-04 10:10:31 +02:00
looooo
60303f3153 freecad-python-interface: use absolute-path to install-bin-dir for windows 2020-09-04 10:04:20 +02:00
wmayer
6f7118850b 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
4be88824ae Gui: fix Qt4 build failure 2020-09-03 19:24:09 +02:00
wmayer
904ff6f7e1 Part: [skip ci] set proper icons for Tube feature 2020-09-03 19:18:30 +02:00
wmayer
f1a9a41276 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
513c0e9eb4 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
6431d558cd [AddonManager] fix bug in CheckSingleWorker 2020-09-03 12:23:14 +02:00
SurajDadral
38f74c815f 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
69f43d7bf3 [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
720668a7a5 [check geometry] decrement some pyobject references 2020-09-03 12:09:38 +02:00
mwganson
cf9118d249 [CheckGeometry] fix python2 build 2020-09-03 12:09:38 +02:00
mwganson
179d687f0e [CheckGeometry] fix py2 build failure 2020-09-03 12:09:38 +02:00
mwganson
3c19765c37 [CheckGeometry] update a source code comment 2020-09-03 12:09:38 +02:00
mwganson
ed3ff7db5e [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
8d938785ab Clean up docs 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
e73a89ccc5 Separate the xcrun check into an env specific section 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
689c3c0405 Attempt to auto set conda env 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
b3588f80c7 Setup scripts for developer env using conda 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
1c6f0cb999 Setup for local conda build 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
97a73971e0 Initial build startup works with one-shot conda script 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
88b0277bea Start setting up 1-liner conda build 2020-09-03 12:06:59 +02:00
Jeffrey Zampieron
27f1c89100 Make sure we can find pyside on osx 2020-09-03 12:06:59 +02:00
vocx-fc
17ff22c721 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
9b0f817992 Draft: move format_point out of getSVG function 2020-09-03 11:40:50 +02:00