Commit Graph

181 Commits

Author SHA1 Message Date
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
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
751f48a54f Import: [skip ci] fixes #0004477: Can't import .STEP files with cyrillic symbols 2020-12-07 17:54:17 +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
wmayer
2453a50aba Coverity: Structurally/Logically dead code 2020-07-20 17:34:28 +02:00
wmayer
0a6929a122 Coverity: Dereference after null check 2020-07-20 17:34:25 +02:00
wmayer
c4bb1ff762 Coverity: Copied into fixed size buffer 2020-07-20 17:34:25 +02:00
wmayer
13c2fae81c PVS: V575 The null pointer is passed into 'strcpy' function. Inspect the first argument 2020-07-18 10:59:28 +02:00
wmayer
e005972466 PVS: V519 A variable is assigned values twice successively. 2020-07-18 10:59:27 +02:00
luz.paz
ef37cc3930 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
fed4265cfe Import: handle OCC versions 7.4.1 and earlier 2020-05-30 11:56:14 +02:00
Gabriel Wicke
22acaf4fdf [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
cf5f580f4e Import: [skip ci] degrade output in STEP importer to log messages 2020-05-28 17:52:01 +02:00
donovaly
d3413c2182 [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
7595a2a790 [IMP]Support Horiz/Vert Dims in DXF export 2020-01-23 13:46:51 -05:00
wmayer
486de650ad Import: [skip ci] fix bug when checking if std::map is empty 2020-01-17 23:26:22 +01:00
luz.paz
b785920541 [skip ci] Fix header uniformity for Import, Mesh, Points, Raytracing 2019-12-26 10:10:30 +01:00
wmayer
6300e09dd8 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
wandererfan
218e11df7f [IMP]Fix Dxf handle conflict on export 2019-10-18 09:10:44 -04:00
luz.paz
7af7c10cf1 Fix misc. typos, whitespace, and http:// to https:// issues 2019-09-03 11:11:43 -03:00
Zheng, Lei
cb83886826 Import: fix version header path 2019-08-17 15:32:51 +02:00
Zheng, Lei
a460fdc8b6 Import: add new implementation of STEP importer/exporter
For better supporting Link and groups. The original implementation can
still be used by uncheck the STEP import setting 'Use Link Group'.
2019-08-17 15:15:47 +02:00
wandererfan
626ee0c98d Fix TD Dfx export - spline conversion 2019-03-28 10:44:33 -03:00
wmayer
ba96c0773a PVS: V688 A local variable possesses the same name as one of the class members, which can result in a confusion 2019-03-13 11:58:43 +01:00
wmayer
739de86144 cannot use null pointer as target for strcpy 2019-03-03 15:39:38 +01:00
wmayer
13a68c3675 PVS: V519 The 'keepExplicitPlacement' variable is assigned values twice successively. 2019-03-03 15:24:17 +01:00
wmayer
61eeca41e1 fix -Wmaybe-uninitialized 2019-03-03 15:04:24 +01:00
wmayer
06c513c3f0 fixes 0003860: Debian bug #920971 - C++ exception on DXF import 2019-02-25 23:46:31 +01:00
wmayer
f44672ff09 fixes 0003807: STEP export with BaseFeature does not hide BaseObject 2019-02-23 19:43:35 +01:00
wmayer
e23db2e313 PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
wmayer
fc7efcb4d7 avoid possible errors with null labels 2019-02-13 11:39:25 +01:00
Yorik van Havre
b7f2b7e333 Import: Fixed import of some DXF R12 files 2018-12-28 00:12:28 -02:00
wmayer
58fed273ab fixes 0003729: REGRESSION: FreeCAD 0.17 does not export color information with STEP files 2018-12-24 17:27:56 +01:00
wmayer
c7f881ee43 Replace Base::Exception with appropriate subclass 2018-11-14 17:23:48 +01:00
wmayer
31963f16c1 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
wmayer
b626108195 fix build failure for oCCT 7.2 or later 2018-09-28 15:36:17 +02:00
wmayer
6787d5d28d move class ExportOCAF to own source files 2018-09-28 15:06:46 +02:00
wmayer
f4fbbb0a79 fixes 0003491: Import.export not preserving placement of Part Features in STP file export 2018-09-28 14:58:49 +02:00
wmayer
4a2d7fc312 fixes 0003165: Color information lost in STEP export 2018-09-28 11:49:04 +02:00
wmayer
fc7c802ab5 fix CID 183848 2018-09-19 17:14:46 +02:00
wmayer
b8e8f4a8d1 fixes #0002908: stp file import name mismatch (due to some limitation into UTF-8 support & naming convention) 2018-09-14 18:15:48 +02:00
wmayer
d33dff4225 CMP0050: make Import module aware of cmake policy 2018-08-20 16:16:41 +02:00
wmayer
1c7a41af58 fix -Wignored-qualifiers 2018-08-19 12:38:57 +02:00