Commit Graph

285 Commits

Author SHA1 Message Date
Uwe
9cca501eea [CMake] remove traces of assembly module
the assembly module was removed for FC 0.20 but it appears still in CMake as build option.

This PR tries to remove the remaining traces (maybe more needs to be done?)
2022-05-23 19:06:32 +02:00
wmayer
7e7d368bba Import: fixes #5793: DXF export (Autodesk DXF 2D type) doesn't add any UNITS field inside the dxf file 2022-05-17 02:41:02 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Chris Hennes
a9c33d8f58 Import: PR6497 move return statement to new line 2022-03-29 12:36:18 -05:00
wmayer
1048176fc3 Import: include header with export macros 2022-03-24 20:44:34 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
84f5b40789 Import: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
b47abb9bd9 Mod: [skip ci] add needed headers to fix build failure 2022-03-21 12:04:04 +01:00
Uwe
bfb9b66d21 [Import] remove unused includes and Xerces 2022-03-20 22:19:08 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
554635cc7d [Gui] rename the Qt header list 2022-03-07 20:35:38 +01:00
wmayer
5e0cfc64ee App: use forward declarations 2022-03-04 21:09:46 +01:00
wmayer
4b415d1b37 Mod: add string header to dxf.h 2022-03-01 15:13:34 +01:00
wmayer
6ae3feedae Draft, Import, area: include iosfwd instead of iostream if forward declarations are sufficient 2022-03-01 12:37:00 +01:00
Wanderer Fan
c32dd8a792 [Import]Fix #6461 MEASUREMENT/INSUNITS 2022-02-27 18:57:49 -05:00
luz paz
28ab1bb68f Fix various superfluous whitespace in *.dox files 2022-01-09 21:01:42 -06:00
wmayer
ada653e591 Add Global.h headers to modules 2021-12-18 14:06:40 +01:00
wmayer
e77c96ac18 Fix issue 0004791: DXF import fails for trivial circle 2021-11-24 18:27:21 +01:00
wmayer
f36126770c App: harmonize API of App::Application
* make getHomePath() static and return a std::string
* make getExecutableName() static and return a std::string
2021-11-04 10:50:09 +01:00
easyw
971bea1516 deleting temp file (result of a previous export) 2021-10-20 10:10:43 +02:00
wmayer
90c97a3166 Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
Chris Hennes
c3ba3fd30f Merge pull request #5098 from realthunder/FixStepColor
Fix STEP import/export color problem
2021-10-10 18:46:43 -05:00
Zheng, Lei
3335da00ae Import: fix transparency STEP export/import
App::Color::a in FreeCAD is actually interpreted as transparency
instead of alpha.
2021-10-09 20:43:24 +08:00
wmayer
a7f9c2f1b9 OCCT: port FreeCAD sources to version 7.6
SMESH is not yet ported
Although FreeCAD code compiles with OCCT 7.6 it doesn't work at the moment
2021-10-09 13:49:02 +02:00
Zheng, Lei
c7ece90c44 Import: fix single shape STEP export with per face color 2021-10-09 15:57:50 +08:00
Zheng, Lei
ce7270c8a7 Import: avoid using Quantity_ColorRGBA::ColorToHex()
For using older OCCT
2021-10-08 07:51:00 +08:00
Zheng, Lei
eaca6571ee Import: fix STEP color and add transparency in legacy importer/exporter 2021-10-07 18:08:00 +08:00
Zheng, Lei
f403a8ed4d Import: support transparency for STEP import and export 2021-10-07 17:44:09 +08:00
Zheng, Lei
a32b6e4075 Import: fix STEP color problem caused by OCC 7.5
Fixes #0004744
2021-10-07 17:43:38 +08:00
easyw
7036706945 allowing to export stZ files on different drivers
os.rename() doesn't move its actual data on the disk
shutil.move() method allows to transfer files between two different drives
2021-04-13 15:56:31 +02:00
wmayer
8c4b2506bd Import: [skip ci] for glTF export set scale factor of 0.001 because lengths are measured in meters 2021-04-10 18:37:56 +02:00
wmayer
136a402b7e Import: if in a dxf file control points and fit points are given then use the former to create the B-Spline 2021-04-01 13:27:03 +02:00
wmayer
2c2b60323f Import: [skip ci] handle utf-8 filepath when writing to dxf 2021-03-22 17:13:56 +01:00
wmayer
292afa2a2e Import: [skip ci] avoid conflicting class names in global namespace 2021-03-19 15:18:25 +01:00
David Osterberg
c1b3fba031 Beautify xml step 1: These changes do not affect the uic output 2021-03-02 16:29:11 +01:00
wmayer
0adfa17d0d Import: [skip ci] fixes #0003988: the function Import.readDXF doesn't import Bsplines 2021-02-20 16:37:02 +01:00
Chris Hennes
6b16e12d7c [OTHER] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
wmayer
d3e4da9f51 Part: offer all supported STEP schemes by OCC in a combo box 2021-02-02 21:51:11 +01:00
wmayer
751f48a54f Import: [skip ci] fixes #0004477: Can't import .STEP files with cyrillic symbols 2020-12-07 17:54:17 +01:00
luz paz
cc97a3a757 Import: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Import Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
wmayer
3f117b4ac3 Import: [skip ci] do not scale when exporting to glTF format 2020-11-23 22:36:40 +01:00
wmayer
3c18a73b94 Import: [skip ci] add support of glTF format (requires OCCT 7.5) 2020-11-22 16:11:24 +01:00
Roy-043
340403f35d Update dxf.cpp
Fixed wrong Inch scale factor. 1/25.4 was wrongly used.
2020-11-09 12:35:14 +01:00
wmayer
c35dba8e34 Part/Import: [skip ci] disable use of Message_ProgressIndicator for OCC >= 7.5 due to major API changes 2020-10-08 14:48:35 +02:00
wmayer
1c9573e8d2 dxf: [skip ci] Coverity: Buffer not null terminated 2020-09-14 14:37:20 +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
wmayer
45e0673645 LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
e079e7a7bb LGTM: [skip ci] fix: Non-virtual destructor in base class 2020-07-24 19:30:12 +02:00