Commit Graph

503 Commits

Author SHA1 Message Date
Chris Hennes
2f7be9e782 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
wmayer
c7b427e697 Mesh: use PropertyMaterial in view provider 2022-10-23 23:31:04 +02:00
wmayer
e90005572b Mesh: implement PropertyMaterial 2022-10-23 19:49:46 +02:00
Kuzemko Alexsandr
63174d487f [App] Fix of untranslated first document's name (#7156)
* Change no need function newDocument("Unnamed") call to variant without parameter. "Unnamed" set in App newDocument function instead.
* Refactor New Document command to run without parameter.
* Translate new document's userName. Internal name = "Unnamed".
* Crowdin Add to updatets.py App.ts. Create new file App.ts
* Fix error where document name is set with one function parameter. In this situation set internal and user name to string variable. For default function call (without parameter) set internal name to Unnamed, userName = translate ("Unnamed")
2022-10-20 21:35:09 -05:00
wmayer
50bd4d8428 Mesh: move Extension3MFFactory outside Exporter3MF 2022-09-26 11:05:01 +02:00
Chris Hennes
8ce0e325cd Mesh: Add boost/regex.hpp to Mesh's PreCompiled.h 2022-09-20 16:47:27 -05:00
wmayer
6cb454354b Mesh: split OBJ reader and writer from MeshIO 2022-09-20 20:22:30 +02:00
marioalexis
9eadb9fbc5 Mesh: Replace C cast 2022-09-18 11:06:51 -05: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
b5e8a2c28d Mesh: implemment mechanism to load MeshGui module when exporting to 3MF file 2022-09-14 12:05:32 +02:00
wmayer
975140614d Mesh: [skip ci] remove xerces2 stuff 2022-09-09 08:25:15 +02:00
wmayer
181b5af6a6 Mesh: use class ZipHeader to directly access the model file of a 3MF file 2022-09-05 18:55:43 +02:00
wmayer
ded6b7234b Mesh: [skip ci] add missing headers to PCH 2022-09-05 12:31:16 +02:00
wmayer
61f14dcf2c Mesh: [skip ci] fix several minor issues 2022-09-03 18:30:49 +02:00
wmayer
324e4ca33f Mesh: [skip ci] remove superfluous function call 2022-09-03 16:47:11 +02:00
wmayer
253ddde069 Mesh: support to read 3MF format 2022-09-03 16:43:56 +02:00
wmayer
01c3f1b636 Mesh: [skip ci] fix minor issues 2022-09-02 13:37:24 +02:00
wmayer
086ce2d34c Mesh: add support of thumbnails of 3MF format 2022-09-01 16:49:00 +02:00
wmayer
ea8cf94991 Mesh: [skip ci] include header in source file 2022-08-31 17:37:06 +02:00
wmayer
fcc9d1fc84 Mesh: avoid to create an extra tmp. copy of MeshObject 2022-08-31 17:13:15 +02:00
wmayer
16c73780b9 Mesh: add exporter class for 3MF format 2022-08-31 17:11:15 +02:00
wmayer
580c124b22 Mesh: improve 3MF support 2022-08-31 17:07:44 +02:00
wmayer
61b92666e1 Mesh: refactor mesh exporter classes 2022-08-31 10:07:57 +02:00
wmayer
d371abf6f5 Mesh: move 3MF writer to its own class 2022-08-30 12:00:23 +02:00
wmayer
fd4e2c967b Mesh: modernize C++: replace 'typedef' with 'using' 2022-08-29 18:30:53 +02:00
wmayer
89ad254b7c Base: support of SoFaceSet in InventorLoader 2022-08-26 14:51:43 +02:00
wmayer
6fa3a50149 Mesh: use Base::InventorLoader to load mesh files in .iv format 2022-08-26 12:39:52 +02:00
berniev
6953310116 Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +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
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
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
wmayer
a00faca147 Mesh: implement smoothing based on median filter 2022-08-06 16:08:20 +02:00
wmayer
869ab8d26c Mesh: consider placement in MeshPy::foraminate 2022-08-05 00:46:48 +02:00
wmayer
828c64a4c9 Mesh: consider placement in MeshPy::nearestFacetOnRay 2022-08-04 20:47:33 +02:00
wmayer
14451f7ec4 Mesh: consider placement in MeshPy::cut/trim/trimByPlane 2022-08-04 18:49:10 +02:00
wmayer
d542185ba2 Mesh: consider placement in MeshPy::getCurvaturePerVertex 2022-08-04 11:09:47 +02:00
wmayer
9b8cf02aaf Mesh: refactor MeshPy::getSelfIntersections 2022-08-04 10:34:49 +02:00
wmayer
322080d4f1 Mesh: refactor MeshPy::writeInventor 2022-08-03 17:56:24 +02:00
wmayer
88e32eba9b App: changes in ComplexGeoData:
* rename some methods
* distinguish between Point and Vector
* support of arrays of Point or Vector
2022-08-03 16:18:14 +02:00
luz paz
786741c0c0 Fix various 'testing inequality to None' syntax issues
Substitute `is not None` for `!= None`
2022-07-31 14:11:48 +02:00
Uwe
88a06f8f10 Mod: remove some unnecessary nullptr checks 2022-07-18 12:58:12 +02:00
Uwe
2d2ad11e14 [Mesh] remove superfluous nullptr checks 2022-07-18 02:37:33 +02:00
wmayer
aea58ace37 Mesh: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 13:33:18 +02:00
wmayer
42b519a90a Mesh: [skip ci] unit test for Mesh.foraminate() 2022-07-15 18:53:56 +02:00
wmayer
e2e58f7bff Mesh: [skip ci] allow to set third parameter in Python wrapper 2022-07-15 17:39:33 +02:00
mosfet80
d162d9371c Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. (#7036)
* remove msc<1800
2022-06-28 00:42:33 +02:00
wmayer
c955372ecf cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
 Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
marioalexis
a91e32a6f4 Mesh: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00