Commit Graph

268 Commits

Author SHA1 Message Date
luz paz
b0fcf45513 Fix various superfluous whitespace in *.dox files 2022-01-09 21:01:42 -06:00
wmayer
e743c30f3b Add Global.h headers to modules 2021-12-18 14:06:40 +01:00
wmayer
325c5ec887 Fix issue 0004791: DXF import fails for trivial circle 2021-11-24 18:27:21 +01:00
wmayer
09da245af9 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
fcb5c768ff deleting temp file (result of a previous export) 2021-10-20 10:10:43 +02:00
wmayer
1483cc023f Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
Chris Hennes
834831b6c8 Merge pull request #5098 from realthunder/FixStepColor
Fix STEP import/export color problem
2021-10-10 18:46:43 -05:00
Zheng, Lei
c01878c174 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
74639da997 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
beea1d3644 Import: fix single shape STEP export with per face color 2021-10-09 15:57:50 +08:00
Zheng, Lei
709181d909 Import: avoid using Quantity_ColorRGBA::ColorToHex()
For using older OCCT
2021-10-08 07:51:00 +08:00
Zheng, Lei
329a682a8e Import: fix STEP color and add transparency in legacy importer/exporter 2021-10-07 18:08:00 +08:00
Zheng, Lei
b9a76cc8e4 Import: support transparency for STEP import and export 2021-10-07 17:44:09 +08:00
Zheng, Lei
c19e1398f2 Import: fix STEP color problem caused by OCC 7.5
Fixes #0004744
2021-10-07 17:43:38 +08:00
easyw
ef2df71dbb 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
e01f0d25d5 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
90ed40d605 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
1ac35d2b42 Import: [skip ci] handle utf-8 filepath when writing to dxf 2021-03-22 17:13:56 +01:00
wmayer
9c8685c20c Import: [skip ci] avoid conflicting class names in global namespace 2021-03-19 15:18:25 +01:00
David Osterberg
43bc30da84 Beautify xml step 1: These changes do not affect the uic output 2021-03-02 16:29:11 +01:00
wmayer
cdae5049ed Import: [skip ci] fixes #0003988: the function Import.readDXF doesn't import Bsplines 2021-02-20 16:37:02 +01:00
Chris Hennes
3ef6e1c6d0 [OTHER] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
wmayer
7a83853535 Part: offer all supported STEP schemes by OCC in a combo box 2021-02-02 21:51:11 +01:00
wmayer
78c6cc1362 Import: [skip ci] fixes #0004477: Can't import .STEP files with cyrillic symbols 2020-12-07 17:54:17 +01:00
luz paz
02902c3b07 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
8d73c8f07f Import: [skip ci] do not scale when exporting to glTF format 2020-11-23 22:36:40 +01:00
wmayer
74b866ed30 Import: [skip ci] add support of glTF format (requires OCCT 7.5) 2020-11-22 16:11:24 +01:00
Roy-043
5f63f3ae71 Update dxf.cpp
Fixed wrong Inch scale factor. 1/25.4 was wrongly used.
2020-11-09 12:35:14 +01:00
wmayer
fd9cdb9de9 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
c3d35c65fe dxf: [skip ci] Coverity: Buffer not null terminated 2020-09-14 14:37:20 +02:00
luz paz
5cd408687b 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
44f42a8e2c 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
47d570716c LGTM: [skip ci] fix: Non-virtual destructor in base class 2020-07-24 19:30:12 +02:00
wmayer
1a16cde1f5 Coverity: Structurally/Logically dead code 2020-07-20 17:34:28 +02:00
wmayer
421f6c52cb Coverity: Dereference after null check 2020-07-20 17:34:25 +02:00
wmayer
433ec2d6e4 Coverity: Copied into fixed size buffer 2020-07-20 17:34:25 +02:00
wmayer
e1363e5d0f PVS: V575 The null pointer is passed into 'strcpy' function. Inspect the first argument 2020-07-18 10:59:28 +02:00
wmayer
39fe47b9de PVS: V519 A variable is assigned values twice successively. 2020-07-18 10:59:27 +02:00
luz.paz
1da81df756 Fix typos [skip-ci]
Found via codespell v1.18.0.dev0  
```
codespell -q 3 -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,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,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-06-29 20:52:23 +02:00
wmayer
2cb9b147f1 Import: handle OCC versions 7.4.1 and earlier 2020-05-30 11:56:14 +02:00
Gabriel Wicke
063515f650 [import] Hotfix for build failure from bad debug code
Quick fix for a build failure with latest opencascade. Directly use
std::cout instead of custom streams.
2020-05-30 11:49:48 +02:00
wmayer
2415f1809e Import: [skip ci] degrade output in STEP importer to log messages 2020-05-28 17:52:01 +02:00
wmayer
caee1eb48d [skip ci] make Init scripts working if system locale is set to C 2020-03-26 15:25:40 +01:00
luz.paz
76a77e4f88 [skip ci] Fix typos
Found via 
```
codespell -q 3 -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,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,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-03-24 11:14:24 +01:00
donovaly
af4f4282a4 [Import] improve DXF version creation
- use App/Application.h instead of Build/Version.h to avoid permanent recompilation as discussed: https://forum.freecadweb.org/viewtopic.php?p=377404#p377401
2020-03-16 23:49:00 +01:00
wandererfan
7b9048953f [IMP]Support Horiz/Vert Dims in DXF export 2020-01-23 13:46:51 -05:00
wmayer
120b69c74f App: add methods to change import/export module of a registered filetype 2020-01-18 15:29:44 +01:00
wmayer
d62eda51d6 Import: [skip ci] fix bug when checking if std::map is empty 2020-01-17 23:26:22 +01:00
luz.paz
d923798946 [skip ci] Fix header uniformity for Import, Mesh, Points, Raytracing 2019-12-26 10:10:30 +01:00
luz.paz
a00769bebf LGTM: remove unnecessary 'pass' statements
Issue: A pass statement is only necessary when it is the only statement in a block (the list of statements forming part of a compound statement). This is because the purpose of the pass statement is to allow empty blocks where they would otherwise be syntactically invalid. If the block already contains other statements then the pass statement is unnecessary.

Recommendation: Remove the pass statement.

Relevant links: 
1a82a5e136/files/src/Mod/Import/stepZ.py (x78f479c31a062553):1

1a82a5e136/files/src/Mod/OpenSCAD/OpenSCADCommands.py (xad4868ffcdf82498):1

1a82a5e136/files/src/App/FreeCADInit.py (x9034ec6815c48e38):1
2019-12-17 15:15:53 -03:00