Commit Graph

30199 Commits

Author SHA1 Message Date
wmayer
c3f76e0cd8 Mesh: use Base::InventorLoader to load mesh files in .iv format 2022-08-26 12:39:52 +02:00
wmayer
9d041d8497 Base: implement loading of OpenInventor files (currently only SoIndexedFaceSet is supported) 2022-08-26 12:39:04 +02:00
Chris Hennes
9fe70c9211 Addon Manager: Fix bug in updater 2022-08-25 15:57:11 -05:00
Chris Hennes
551fe9e332 Addon Manager: Support older git versions 2022-08-25 09:50:12 -05:00
Chris Hennes
9492849f4a Addon Manager: Pylint cleanup of utilities 2022-08-25 09:50:12 -05:00
berniev
705a77673a App use explicit 2022-08-25 15:56:23 +02:00
Chris Hennes
eb54af4429 Addon Manager: Fix bug in dependency resolver 2022-08-24 12:24:38 -05:00
Chris Hennes
0b8f68cd44 AddonManager: Refactoring of installer 2022-08-24 12:24:38 -05:00
wmayer
e56e35cf6a Surface: [skip ci] fix minor issues found by code checkers 2022-08-24 18:47:48 +02:00
wmayer
ced0f46ef5 Clang: fix clang-diagnostic-error 2022-08-24 17:02:17 +02:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
berniev
3877fc62c3 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
luz paz
c429473a4a stepZ.py: remove remaining mention of gzip_utf8
Leftover from b01aa8de9  
[skip ci]
2022-08-24 14:40:43 +02:00
wmayer
c7d6f7ab87 Surface: add unit test for blend curve 2022-08-24 14:37:10 +02:00
wmayer
de2ac32a47 Import: [skip ci] whitespace improvements 2022-08-24 11:55:39 +02:00
andrea
9b622048b8 remove unused gzip_utf8 2022-08-24 11:48:46 +02:00
IFo Hancroft
bf2d428b1b Update org.freecadweb.FreeCAD.xml 2022-08-24 11:41:07 +02:00
IFo Hancroft
fecf309e28 Fixes filetype icon not showing
Fixes the icon of .FCStd files not showing because the xml element was
called icon instead of generic-icon
2022-08-24 11:41:07 +02:00
wmayer
2af16e4804 Base: [skip ci] fix scale factor in unit schemes 2022-08-24 11:24:52 +02:00
wmayer
cd52c344f8 Clang-tidy: [skip ci] set value of parameter readability-implicit-bool-conversion.AllowPointerConditions to true
Forum discussion: https://forum.freecadweb.org/viewtopic.php?f=10&t=71355
2022-08-24 11:15:06 +02:00
wmayer
8328264690 App: [skip ci] whitespace improvements 2022-08-24 10:43:56 +02:00
wmayer
ff38f8b8e8 CMake: [skip ci] remove trailing whitespaces 2022-08-24 07:46:07 +02:00
Jonas Bähr
46cee50bd5 Fix build on MacOS-X 10.14: missing Xerces include dir
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:

In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
 #include <xercesc/util/XercesDefs.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit f4411478d106ba9f4827754a50efa53bd7767a66
- Image: commit e3476815c04c571199779bd1e444b950e6398025
- Import: commit b7b264e52c8fd97e83987c4ce42ce563170c8918
- Inspection: commit 1f64d8b1b8fcabe983c6e5e624d65766b4429ea0
- Mesh: commit 5a8fed0720d681cdbb9fedc840d2532c4f2f6042
- Part: commit 26bb65f11f4b51e5e47b65b2d6049ece10705a83
- PartDesign: commit f4e49f2aecf08f2337e84510ed019b7fa4b685a3
- Path: commit e3d9cc98577d2073297d55ffd8de28dd50f8444c
- Points: commit 09f3e867cdccd31294cced4e3c73015d3add3f4a
- Raytracing: commit 7b92dedc53f09e2ce8365408f3003e5700aebfc8
- ReverseEnginering: commit eeacc51ad0cd82e5f17d63207f78f79eb20bf9a9
- Robot: commit 4d06684cbd0328e4f43c78b5dab7e7fcebab148d
- Sketcher: commit 079125665495a08a7e2e2a4f01da406128dca625
- Spreadsheet: commit 514097954e95c04a7ec9d7e8ec1afc3aac3dd8d
- Start: commit 2ea2bb0dc393d7b8b41e9137c6d4ae40ce29719d
- Surface: commit 272268dd6c0b460ae9aeecdf371495ea26aa044d
- TechDraw: commit c70fdc3e0aa6b409626a6fa6b7266d05f3338c6d
- Test: commit 49a07b121e08e9bf3fef0f414a8da5602533592e
- Web: commit a93a23d7e4da13b2d5c37ac087b2dcf41aae197d
2022-08-24 07:40:04 +02:00
Jonas Bähr
1394c62cdd Fix build on MacOS-X 10.14: missing cmath header
This undoes a small part of commit 5de761eef0cb059c899fd6388dc2a5f88e40f526,
which seems a bit too agressive. Without the cmath header the build fails
using Apple clang version 11.0.0 (clang-1100.0.33.17) on Mojave with the
following error:

.../FreeCAD-git/src/Base/UnitsSchemaInternal.cpp:39:24: error: call to 'abs' is ambiguous
    double UnitValue = std::abs(quant.getValue());
                       ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:132:6: note: candidate function
int      abs(int) __pure2;
         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:111:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long      abs(     long __x) _NOEXCEPT {return  labs(__x);}
                                           ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:113:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
                                           ^
1 error generated.
2022-08-24 07:40:04 +02:00
wmayer
04222d7549 App: [skip ci] improve whitespaces 2022-08-24 07:37:41 +02:00
berniev
d2babf0eb5 App: Single arg ctors must be explicit 2022-08-24 07:20:57 +02:00
luz paz
550908e93b Follow-up typo fixes 2022-08-23 18:49:47 +02:00
luz paz
7b10713d6f Fix typos and whitespace
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,siz,strack,substraction,te,technic,thist,thru,tread,uint,unter,uptodate,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,./src/Base/StackWalker.cpp,./build/doc/SourceDocu`
2022-08-23 18:49:47 +02:00
wmayer
c2b9eceec1 Surface: several improvements
* fix crash because of incomplete inheritance of BlendPoint and BlendCurve -> do not inherit from BaseClass
  as consequebce make destructor non-virtual and remove getPyObject
* pass std::vector by const reference
* remove unneeded includes
* use more suitable Python exception types
* when returning with null from Python handler then set an exception
* harmonize file guards
* several optimizations or simplifications
* use modern C++
* harmonize command name
* fix copyright note
2022-08-23 16:51:55 +02:00
Matteo-Grellier
3b839551da [Surface]: Change to BaseClass 2022-08-23 16:51:16 +02:00
Matteo-Grellier
83ee62bca4 [Surface]: Implementation of BlenCurve. 2022-08-23 16:51:16 +02:00
tomate44
6ec601dade Surface: Various fixes 2022-08-23 16:51:16 +02:00
wmayer
e0034bed61 Part: fix test failure and add setBounds for backward compatibility 2022-08-23 14:06:47 +02:00
wmayer
50484376b6 Part: [skip ci] improve whitespaces 2022-08-23 13:07:10 +02:00
tomate44
bb8f8d4647 [Part] Change BSplineCurve/Surface setBounds() method name to scaleKnotsToBounds() 2022-08-23 12:41:55 +02:00
tomate44
e1ce35de14 [Part] Add setBounds method to BSplineCurve
and change BSplineSurface.setBounds() to use dedicated OCCT function
2022-08-23 12:41:55 +02:00
wmayer
705d15bdf4 Gui: [skip ci] fix readability-identifier-length, whitespace/comma 2022-08-23 11:14:27 +02:00
marioalexis
a6ba92fe5f Gui: Prevent crash when trying to create ExpressionBinding without arguments 2022-08-23 11:01:05 +02:00
Uwe
4f8ceb287e [FEM] pipelines: distinguish stresses (#7246)
- it seems using the same Field name for a vector and a scalar result causes problems with ParaView, see https://forum.freecadweb.org/viewtopic.php?p=601775#p601775
 therefore rename the vectors
2022-08-23 02:22:52 +05:00
wmayer
3f07755a8f Test: add test feature for unit tests 2022-08-22 15:46:40 +02:00
wmayer
9ce0b6f113 App: fix possible dangling pointer in Document::removeObject() 2022-08-22 11:15:14 +02:00
Christian Meusel
1e14a24bef Tools: Use Python 3 as interpreter for fcinfo
Since Python 2 support has been dropped with #6143, let's have Python 3
as default interpreter on the platforms caring for it.
2022-08-22 12:21:55 +05:00
wmayer
70cdbcb9ad TD: [skip ci] fix warnings of checkers about whitespaces 2022-08-22 08:37:08 +02:00
Chris Hennes
1b322aa612 Addon Manager: Fix subproces call on Linux 2022-08-21 20:37:02 -05:00
Wanderer Fan
0a58649409 [TD]use Label in waiting for thread message 2022-08-21 21:18:26 -04:00
Wanderer Fan
81949d0817 [TD]use new style QObject::connect 2022-08-21 21:18:26 -04:00
Chris Hennes
5bc07eddd1 Addon Manager: Update preferences for new git 2022-08-21 15:18:14 -05:00
Chris Hennes
b6e55601b1 AddonManager: pylint cleanup, git 2022-08-21 14:32:15 -05:00
Chris Hennes
2286635e49 Addon Manager: Refactoring and pylint cleanup 2022-08-21 14:32:15 -05:00
Chris Hennes
52b1926d22 Addon Manager: Refactor to test git and eliminate GitPython 2022-08-21 14:32:15 -05:00