Commit Graph

2429 Commits

Author SHA1 Message Date
marioalexis
fa6cf56020 Gui: Check Python types using Base::PyTypeCheck 2022-09-24 05:10:34 +02:00
Roy-043
faef448019 Part: Measure preferences: Improve UI texts 2022-09-23 14:41:54 +02:00
marioalexis
34f070cf9b Part: Replace C cast 2022-09-18 11:06:51 -05:00
Uwe
78cc184d50 [Part/PD] few clang formatting fixes 2022-09-18 13:33:41 +02:00
Uwe
2d61e15112 [Part] fix bold italic measurement text
- bold and italic font did not work for measurement text, see https://github.com/FreeCAD/FreeCAD/pull/7148#issuecomment-1247989284
2022-09-16 03:09:24 +02:00
wmayer
48aafc3f8b Inspection: support display of lines, avoid explicit type checks 2022-09-15 11:46:20 +02:00
wmayer
2462f4c7a0 App: move from float to double for accuracy parameter, add a virtual method to determine a default accuracy 2022-09-15 09:52:14 +02:00
wmayer
b605c40449 Part: implement TopoShape::getLines 2022-09-13 23:14:17 +02:00
wmayer
14ee13a0a5 Part: remove duplicated wires from cross-section 2022-09-08 19:19:07 +02:00
wandererfan
3b29cf18be [Part]fix makeWireString for Win & Py > 3.09 2022-09-03 09:23:44 -04:00
wmayer
c6a208bb18 Part: modernize C++: replace 'typedef' with 'using' 2022-08-29 19:31:50 +02:00
wmayer
1e865c6312 Part: [skip ci] remove support of Py < 3.5 2022-08-26 16:37:35 +02:00
wmayer
c38d8479bc Clang: fix clang-diagnostic-error 2022-08-24 17:02:17 +02:00
berniev
6953310116 Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
wmayer
a899f078bd CMake: [skip ci] remove trailing whitespaces 2022-08-24 07:46:07 +02:00
Jonas Bähr
a1776d3e74 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 96ad045b91
- Image: commit dde71a21d5
- Import: commit c9d28b542f
- Inspection: commit d41f55f382
- Mesh: commit 19072b0538
- Part: commit fe213a48f0
- PartDesign: commit b037d8e240
- Path: commit f23fa31f42
- Points: commit bec723ba17
- Raytracing: commit 08d4ac63a3
- ReverseEnginering: commit 5ca787cb0e
- Robot: commit bad4809a1c
- Sketcher: commit 3c96daf105
- Spreadsheet: commit 66e8a2bef3
- Start: commit c9dee5e70a
- Surface: commit 6b04215be6
- TechDraw: commit 5e6699e48d
- Test: commit ea5b45b92c
- Web: commit ee6d631531
2022-08-24 07:40:04 +02:00
luz paz
1a7ddfdc24 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
a783d5bbfc Part: fix test failure and add setBounds for backward compatibility 2022-08-23 14:06:47 +02:00
wmayer
df8e661ddf Part: [skip ci] improve whitespaces 2022-08-23 13:07:10 +02:00
tomate44
c86490eb15 [Part] Change BSplineCurve/Surface setBounds() method name to scaleKnotsToBounds() 2022-08-23 12:41:55 +02:00
tomate44
e3dd67ad9f [Part] Add setBounds method to BSplineCurve
and change BSplineSurface.setBounds() to use dedicated OCCT function
2022-08-23 12:41:55 +02:00
Chris Hennes
f0d5d716a7 Part: Add missing include to PCH 2022-08-21 14:23:26 -05:00
wmayer
0a96f088d1 Part: add Part.makeFilledSurface() that internally uses GeomFill_Generator 2022-08-21 18:21:13 +02:00
wmayer
5014bab534 Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream 2022-08-21 12:46:53 +02:00
wmayer
735eecc42b Part: fix build failures with OCC >= 7.6 2022-08-09 18:42:38 +02:00
wmayer
2062f9ce87 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
ddafb98813 Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
wmayer
91ea39a5c0 Base: extend Placement/Rotation API
* Add Placement::isSame() and expose to Python
* Add Placement::multRight/Placement::multLeft
* Fix PlacementPy::rotate
* Add Rotation::multRight/Rotation::multLeft
* Add a test feature FeatureTestPlacement for uni tests
* Add unit tests
2022-08-09 11:54:05 +02:00
berniev
915369d8a2 Mod: Redundant_string_initialization 2022-08-08 16:52:42 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
wmayer
f2cbd9ebb4 Mod: [skip ci] minor improvements 2022-08-06 20:32:37 +02:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
berniev
2d4c5a4cfb Mod: use emplace_back 2022-08-05 10:36:16 +02:00
Uwe
eabffee3a5 [Part] ViewProvider: 2 to M: remove unused includes 2022-07-31 15:36:20 +02:00
Uwe
4b5062c0d3 [Part] ViewProvider: P to T: remove unused includes 2022-07-31 14:55:19 +02:00
wmayer
bd5ef26536 Base: add Precision class
and move the Python binding from Part to Base module
2022-07-30 17:10:56 +02:00
Uwe
6ea36b25ae [Part] [skip CI] SectionCutting: silence MSVC compiler warning
- also fix a typo
2022-07-30 00:20:30 +02:00
wmayer
e48a3a8cea Mod: [skip ci] fix warning: [-Wreturn-std-move] 2022-07-29 18:55:10 +02:00
wmayer
54076efb64 Part: [skip ci] fix typo 2022-07-29 18:50:35 +02:00
wmayer
97d28d689e Part: if fillet/chamfer object has set transparency then override the values of the input shape 2022-07-27 17:32:39 +02:00
wmayer
62dbfc5290 Part: if boolean/compound object has set transparency then override the values of the input shape 2022-07-27 17:03:47 +02:00
wmayer
054dd44315 Part: [skip ci] add unit test for PR #7258 2022-07-27 14:44:29 +02:00
luz paz
ac6a730076 Trim trailing whitespace for Part/App/BSplineSurfacePyImp.cpp 2022-07-27 14:27:08 +02:00
tomate44
7328f2f302 [Part] BSplineSurface: add setBounds method 2022-07-27 14:27:08 +02:00
wmayer
b330552337 Part: [skip ci] add unit test for PR #7260 2022-07-27 14:18:27 +02:00
tomate44
3ddfa5ce09 [Part] BSplineSurface: fix KnotSequence for periodic BSpline surfaces 2022-07-27 14:14:01 +02:00
wmayer
e0bd6d7e2a Part: move initialization of STEP/IGES reader/writer to ImportExportSettings::initialize() 2022-07-26 22:34:20 +02:00
wmayer
70c18c8017 Part: [skip ci] change some default parameters for STEP export 2022-07-26 19:34:55 +02:00
Uwe
f73321b788 [Part] ReferenceHighlighter: re-add necessary include 2022-07-26 00:15:06 +02:00
Uwe
9a821604e5 [Part] Gui: M to S: remove unused includes
- also sort includes
2022-07-26 00:10:47 +02:00