wmayer
5dcaa8e5bf
Part: use ImportExportSettings in client code
2022-10-04 12:32:47 +02:00
wmayer
8db7ee1051
Part: implement wrapper class around Interface_Static
2022-10-03 19:03:32 +02:00
wmayer
f827de4d4d
Import: make API more flexible
2022-10-03 17:26:32 +02:00
marioalexis
816ce9063d
Import: Replace C cast
2022-09-18 11:06:51 -05:00
wmayer
e205daa43d
Mod: modernize C++: replace 'typedef' with 'using'
2022-08-29 16:21:46 +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
berniev
ddafb98813
Mod: Use override etc 2
2022-08-09 12:52:26 +02:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
b796a0d376
Mod: use empty
2022-08-06 19:30:13 +02:00
wmayer
fed9f20f48
Import: use Part::ImportExportSettings to access parameters
2022-07-23 21:58:51 +02:00
Uwe
1f04880da9
[Image] [Inspection] remove superfluous nullptr checks
2022-07-18 01:54:09 +02:00
wmayer
5820618091
Import: do not export the entire class but only its public methods.
...
This fixes the warning C4251 for the template classes std::string or std::vector
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=70317
2022-07-17 13:49:27 +02:00
wmayer
76330db700
Import: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:37:12 +02:00
wmayer
2041eca74c
Import: if PyArg_ParseTuple() returns false PyErr_Clear() must be called first before calling PyArg_ParseTuple() again
2022-07-16 11:19:13 +02:00
wmayer
e1ebcef39e
Import: [skip ci] change path to user config in Import.readDXF()
2022-07-16 10:59:06 +02:00
Benjamin Alterauge
d15da0ef96
PreCompiled fix
...
Preventive action to avoid problems with MSVC.
2022-07-16 10:55:24 +02:00
Benjamin Alterauge
a980b08719
Code Cleaning - pragma
...
#pragma once or define. Not both.
2022-07-16 10:55:24 +02:00
Benjamin Alterauge
83203153cd
Group dxf relevant files in one folder
2022-07-16 10:55:24 +02:00
andrea
93525ff7eb
removed references to OCC<7
2022-06-25 14:29:24 +02:00
marioalexis
ea79771afd
Import: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
Uwe
daf2df6f80
[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
Chris Hennes
35156cdce3
Import: PR6497 move return statement to new line
2022-03-29 12:36:18 -05:00
wmayer
ccaa862389
Import: include header with export macros
2022-03-24 20:44:34 +01:00
wmayer
97330443a2
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
d1459f6d32
Import: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
c9d28b542f
[Import] remove unused includes and Xerces
2022-03-20 22:19:08 +01:00
wmayer
9160f06e1c
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
wmayer
0054cbddaa
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
2dc1a4c412
Mod: add string header to dxf.h
2022-03-01 15:13:34 +01:00
wmayer
831d569f52
Draft, Import, area: include iosfwd instead of iostream if forward declarations are sufficient
2022-03-01 12:37:00 +01:00
Wanderer Fan
2ff5e1aaeb
[Import]Fix #6461 MEASUREMENT/INSUNITS
2022-02-27 18:57:49 -05: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
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
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
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
78c6cc1362
Import: [skip ci] fixes #0004477 : Can't import .STEP files with cyrillic symbols
2020-12-07 17:54:17 +01:00