pre-commit-ci[bot]
91dc7285e1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-11-20 18:25:29 +01:00
Kevin Martin
4e12621954
Use PyObject_CallObject rather than interpreting generated code
...
Rather than generating Python code and interpreting it, which, in C++, is fraught with issues of creating the correct syntax for a str token when the text contains certain special characters like double-quote and backslash, the modified code makes call(s) to PyObject_CallObject which takes the C++ string and makes the appropriate conversion itself. The steps in building the Position passed to make_text are also done using c++ objects until the final Python Placement object is needed.
2023-11-20 18:25:29 +01:00
Florian Foinant-Willig
0193e20b26
Import: modernize type checking
2023-10-23 18:08:53 +02:00
Victor Predko
f76f842302
File formats: Uppercase file types when importing a file. ( #10977 )
...
* Added uppercase extensions for supported formats
In the file App\Application.cpp
* Added file types in upper case
* Adds uppercase file types to the file import filter.
Fixes #10879
* Added filter for *.fcmacro *.fcscript
2023-10-16 14:40:46 -03:00
Yorik van Havre
55292e9041
Import: Support DXF text rotation ( #11001 )
...
* Import: Support DXF text rotation - fixes #10882
- Reads and supports text rotation in builtin DXF import
- Makes the builtin DXF import produce Draft texts instead of App::Annotations
- Extends the arguments of Draft make_text()
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-11 17:05:31 +02:00
wmayer
fe79eed98f
Import: fix -Wunused-private-field
2023-10-11 15:12:42 +02:00
wmayer
057469c225
Import: fixes #10983 : Crash when trying to import a DXF file with Polish letters in the name
2023-10-10 12:58:47 +02:00
wmayer
3fb37a6075
Import: Extend OCAF browser
2023-10-03 15:55:22 +02:00
wmayer
b42b2c85b4
Import: Support of colors of the glTF format
2023-10-03 15:42:30 +02:00
wmayer
826194e0bc
Imoprt: move ExportOCAF2 to own source files
...
and move global functions to Tools class
2023-10-03 08:13:27 +02:00
Chris Hennes
6d37ef6609
Merge pull request #10844 from ppphp/remove_redundant_definition
...
[cmake] some definitions do not matter now
2023-10-02 14:20:49 -05:00
wmayer
74e658c78c
Import: improve new STEP/IGES/glTF export function to support colors per face in headless mode
...
Fixes #10861
2023-10-02 17:10:34 +02:00
wmayer
83921f5f07
Import: fix legacy STEP/IGES/glTF export function to support colors per face
...
See issue #10861
2023-10-02 17:10:34 +02:00
wmayer
f951e7d32b
Import: move OCAFBrowser to its own source files
2023-10-01 22:23:57 +02:00
wmayer
bac2b83537
Import: rename ImportOCAFExt to ImportOCAFGui and move to own source files
2023-10-01 22:23:57 +02:00
wmayer
0e679297c9
Import: move class ExportOCAFGui tp its on source files
2023-10-01 22:23:57 +02:00
wmayer
1cbd96f3cf
Import: code-refactoring and clean-up
...
* Add new method ExportOCAF::exportObjects() to avoid code duplication
* Simplify handling of arguments passed to Python handler
* Fix several lint warnings
* Move ImportOCAFExt to the corresponding source files
2023-10-01 22:23:57 +02:00
liukaiwen
18af697795
Merge remote-tracking branch 'origin/master' into remove_redundant_definition
2023-10-02 01:42:37 +08:00
wmayer
c87860922c
Import: fix lint warnings
...
* Make constructors explicit
* Fix a regression from PR 10783
2023-10-01 08:01:41 +02:00
wmayer
70ca90f46f
Import: move IGES reader & writer to own classes
2023-10-01 00:18:11 +02:00
wmayer
4092677f24
Import: move STEP reader & writer to own classes
2023-10-01 00:18:11 +02:00
liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
wmayer
37e477d3e7
Import: fixes #8666 : Enable support to read glTF files
2023-09-25 13:02:59 +02:00
wmayer
0aa9ea99b4
Import: move glTF writer to its own source files
2023-09-25 13:02:59 +02:00
pre-commit-ci[bot]
222a2520b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
3fa218c7a6
Import: move several .py files that black fails to re-format to a new directory and exclude it
2023-09-11 00:48:18 +02:00
pre-commit-ci[bot]
e887b8a843
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-10 19:23:47 +02:00
wmayer
b5d0950211
Import: Apply clang format
2023-09-10 19:23:47 +02:00
wmayer
ed46125a38
Import: Apply clang format
2023-09-10 19:23:47 +02:00
Chris Hennes
08cf226263
Import: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
andrea
58b5cb16ae
removed unused files
2023-08-25 16:06:42 +02:00
wmayer
a0882fe64a
Import: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
a3057e946b
Mod: modernize C++: use equals default
2023-08-22 11:16:49 +02:00
wmayer
7402ac7a26
Import: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
664a08043e
Import: modernize C++: use range-based for loop
2023-08-15 01:09:53 +02:00
Roy-043
beaf4ccb71
Import: Avoid dictionary.keys() where possible
2023-08-09 10:10:35 +02:00
Benjamin Bræstrup Sayoc
33384cff9c
[Everywhere] FileInfo::hasExtension for multiple values ( #9774 )
...
* [Base] Add hasExtension for multiple values
* [Gui] Use hasExtension for multiple values
* [Drawing] Use hasExtension for multiple values
* [Fem] Use hasExtension for multiple values
* [Import] Use hasExtension for multiple values
* [Mesh] Use hasExtension for multiple values
* [Part] Use hasExtension for multiple values
* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
wmayer
2a88c7c7df
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
wmayer
d244dcf2da
modernize C++: use nullptr
2023-08-05 11:23:12 -06:00
wmayer
39e53e5eb0
Mods: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
andrea
170c2b9957
removed old OCC <7 references
...
removed OCC <7 references
2023-08-04 21:22:40 -06:00
Syres916
15e9b45691
[Import] Dxf Fix regression from https://github.com/FreeCAD/FreeCAD/commit/1f6fd1b
...
See discussion https://forum.freecad.org/viewtopic.php?t=80040&sid=9937b585c8681fe5a2d27f37dcd3f163
2023-08-01 11:04:22 +02:00
Syres916
ca4bc401f7
Merge branch 'master' into patch-80
2023-06-12 14:24:58 +01:00
Kevin Martin
d8e7340c15
Handle long text/mtext on DXF import
...
This had previously been corrected using similar code but merging another
fix lost part of the original change for this issue.
2023-06-11 13:44:08 -04:00
Syres916
5d9273628e
[Import] DXF make codepage case insensitive
...
See discussion https://forum.freecad.org/viewtopic.php?t=78719
I don't believe https://github.com/FreeCAD/FreeCAD/issues/8704 is fixed even after this change, the example file Encoding-error.dxf which can be opened by Varicad Viewer still opens error free but has nothing in the 3D view.
2023-06-02 11:43:16 +01:00
wmayer
1e830a8800
Import: fixes #9438 : Crash when loading DXF file with a text element
2023-04-29 22:57:07 +02:00
luzpaz
129d5882a7
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
Yorik van Havre
5f0b58449d
Merge pull request #9060 from kpemartin/master
...
Fix encoding error for import from older DXF files
2023-04-13 13:03:13 +02:00
easyw
6d56f3a9ab
fixing stepZ for exporting
2023-04-05 18:15:10 +02:00
Kevin Martin
31f3458399
Add GIL locking for Python calls, alter cp mapping
...
Required GIL locking has been added where Python methods are
called.
The code mapping from codepage names like ansi_nnn to cpnnnn has
been altered a bit to shorten it.
2023-03-29 16:09:35 -04:00