Commit Graph

78 Commits

Author SHA1 Message Date
wmayer
85ad88d101 Import: [skip ci] fix some minor Lint issues 2023-02-26 09:04:26 +01:00
wmayer
c3fc619b99 Import: support to export to glTF file in headless mode 2023-02-26 09:04:26 +01:00
wmayer
b44d70f646 Import: [skip ci] fix warning about trailing whitespaces, fix parsing errors 2022-11-25 11:55:51 +01:00
wmayer
88bde4e0f9 Import: fix build failure 2022-11-25 10:28:13 +01:00
Uwe
838d99636b [Import] remove unused includes
- also some sorting
2022-11-25 04:34:44 +01: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
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
berniev
ddafb98813 Mod: Use override etc 2 2022-08-09 12:52:26 +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
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
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
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
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
wmayer
9c8685c20c Import: [skip ci] avoid conflicting class names in global namespace 2021-03-19 15:18:25 +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
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
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
wmayer
d62eda51d6 Import: [skip ci] fix bug when checking if std::map is empty 2020-01-17 23:26:22 +01:00
wmayer
71dae0e639 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
Zheng, Lei
32ad54c9ef 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
wmayer
a604dab0b8 cannot use null pointer as target for strcpy 2019-03-03 15:39:38 +01:00
wmayer
b1909bff4d PVS: V519 The 'keepExplicitPlacement' variable is assigned values twice successively. 2019-03-03 15:24:17 +01:00
wmayer
d3e008e46c fixes 0003860: Debian bug #920971 - C++ exception on DXF import 2019-02-25 23:46:31 +01:00
wmayer
e605d5f4bf fix build failure for oCCT 7.2 or later 2018-09-28 15:36:17 +02:00
wmayer
27a4938d90 move class ExportOCAF to own source files 2018-09-28 15:06:46 +02:00
wmayer
95efad737b fixes 0003491: Import.export not preserving placement of Part Features in STP file export 2018-09-28 14:58:49 +02:00
wmayer
02ab1c9424 fixes 0003165: Color information lost in STEP export 2018-09-28 11:49:04 +02:00
wmayer
557fee3dc6 fix -Wignored-qualifiers 2018-08-19 12:38:57 +02:00
wmayer
03a28be4ca MSVC does not support keyword 'or' 2018-08-19 10:56:00 +02:00
wandererfan
baa960e1de Coverity Fixes
- 183599
- 183595
- 183594
- 175821
- 175820
- 175817
- 175816
- 175815
- 175814
- 175813
- 175812
- 175811
- 175806
- 175805
- 175804
- 175802
2018-08-19 10:47:08 +02:00
wandererfan
0865468918 Add option for Dxf Version and forced Polyline
- allows override of user parameter values.
2018-08-19 10:47:08 +02:00
wandererfan
c28f95d9f5 Export DocObjectPy/TopoShapePy to Dxf (Import module) 2018-07-26 10:02:25 -03:00
wandererfan
fe6c07b24f Add writeDXFObject to Import
- add a function to write DocumentObject(s) to Dxf file.
- all caller to specifiy parameter source to ImpExpDxf
  functions.
2018-05-01 13:22:02 -04:00
wmayer
5a7bc3376d disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wandererfan
ddac40afbd Move Dxf function to Mod/Import Ph1
- move HeeksCAD dxf import/export code from Draft to
  Mod/Import. This first phase moves dxf.cpp and
  DraftDxf.cpp to Mod/Import and adds dxfWrite functionality
  to DraftDxf.cpp.
2018-04-29 10:12:31 +02:00
wmayer
949c86d364 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
wmayer
5a0b0944c0 Port to occ7.2:
+ replace Quantity_Parameter with Standard_Real is it's marked deprecated
+ include NCollection_Vector as it's needed by STEPCAFControl_Writer
+ remove GC_MakeConicalSurface used for cone and distance as this was never implemented in any earlier occ version and has been removed now
2017-09-01 12:01:50 +02:00
wmayer
034520e02f improve whitespaces 2017-08-01 08:30:22 +02:00