Commit Graph

64 Commits

Author SHA1 Message Date
Benjamin Nauck
265b58c034 Mod: Use new addObject<T>(...) using regex 2025-02-10 18:35:38 +01:00
mwganson
2225e7c32f [Mesh Python] Mesh.show() returns python object, update documentation for Mesh.show(), Part.show(), and Points.show() 2025-02-03 18:27:21 +01:00
wmayer
fbd9eac848 Mesh: Fix linter warnings 2024-11-21 18:30:22 +01:00
Chris Hennes
cfd41683a5 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [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-11-27 17:37:29 +01:00
wmayer
a364141c58 Mesh: C++ core guidelines 2023-09-26 11:20:35 +02:00
wmayer
23db389a76 Mesh: Apply clang-format 2023-09-23 14:03:11 +02:00
wmayer
2a65715248 Mesh: fixes issue #10075: 3MF files exported from FreeCAD don't work in PrusaSlicer
Add an option to force to always write a mesh as model type even if it's not a solid
2023-09-06 07:28:07 +02:00
Chris Hennes
79286f30da Mesh: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
wmayer
d11fdf3ba9 Mesh: modernize C++: use equals default 2023-08-21 18:39:59 +02:00
wmayer
ec73caa40e modernize C++: make unique 2023-08-07 19:51:30 -06:00
ieternalleo
f5c2149fe8 Mesh: Update error message to inform of missing mesh file format upon export 2023-02-12 10:29:35 +01:00
luz paz
c174e063f3 Mesh: remove trailing whitespace 2022-11-14 21:37:03 -06:00
Uwe
cf32bc54f1 [Mesh] App-Facet: remove unused includes
- also some sorting
2022-11-10 04:18:59 +01:00
Kuzemko Alexsandr
2eb55d48c7 [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
849305b88a Mesh: move Extension3MFFactory outside Exporter3MF 2022-09-26 11:05:01 +02:00
wmayer
6c790da254 Mesh: add exporter class for 3MF format 2022-08-31 17:11:15 +02:00
wmayer
f557920414 Mesh: refactor mesh exporter classes 2022-08-31 10:07:57 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
wmayer
eaaed0d81c Mesh: [skip ci] use const-reference when iterating over list 2022-05-17 15:52:43 +02:00
wmayer
ec4d8a7500 Mesh: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
505e8564b2 Mesh: Mesh.createBox() now accepts a bounding box as argument 2021-10-23 18:58:43 +02:00
luz paz
2321c90c76 Mesh: remove py2 code 2021-04-25 11:26:39 +02:00
wmayer
2c08e37ec0 Mesh: [skip ci] refactor Mesh open/import functions 2021-03-20 21:54:30 +01:00
Zheng, Lei
a01e2aaf8f Mesh: refactor mesh exporter for better support of Link 2021-02-06 17:13:36 +01:00
wmayer
6ca3a56c47 Mesh: [skip ci] fix bug in Mesh.export when passing a custom tolerance value 2020-08-26 11:06:43 +02:00
wmayer
67149d7500 Mesh: [skip ci] support of loading colored mesh segments 2020-07-06 12:17:15 +02:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
89a624caf1 support to show color per face 2019-09-24 21:37:11 +02:00
wmayer
05550fcdf0 fixes 0003680: Export (Ctrl+E) doesn't check to make sure that object being exported is a model at all 2018-11-10 19:02:50 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
846195327a harmonize show() function of Part, Mesh, Fem, Path and Points modules 2017-09-29 00:35:48 +02:00
wmayer
f55bf254b0 fix doc strings, replace label with check box in export panel 2017-03-02 21:55:04 +01:00
Ian Rees
5133af6ef5 Avoid empty meshes. Improve object type detection. 2017-03-02 17:41:14 +01:00
Ian Rees
76e4605364 Throw Python exception if format is unknown. 2017-03-02 17:41:14 +01:00
Ian Rees
371c3f7278 Tidy up. 2017-03-02 17:41:14 +01:00
Ian Rees
4fd7334f95 Export Part and Group objects. 2017-03-02 17:41:14 +01:00
Ian Rees
dd75896b07 Clean up docstrings to conform to PEP 8, tidy up. 2017-03-02 17:41:14 +01:00
Ian Rees
2673b8726c Add setting to export compressed/uncompressed AMFs 2017-03-02 17:41:14 +01:00
Ian Rees
88f74db845 Added some metadata to exported AMF 2017-03-02 17:41:14 +01:00
Ian Rees
8935db69f4 Renamed AmfExport.(h|cpp) to Exporter.(h|cpp) 2017-03-02 17:41:14 +01:00
Ian Rees
54d5e0e3f9 Refactoring mesh export code 2017-03-02 17:41:14 +01:00
Ian Rees
3a18d76fbd Basic AMF writing support
TODO:
  * Compression
  * Understand translations, constellations
  * Curved surfaces
  * Material parameters
  * Metadata, etc
2017-03-02 17:41:14 +01:00
Ian Rees
ae9be458b0 Add AMF to understood extensions/formats. 2017-03-02 17:41:14 +01:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
013e2f30e5 take care of segments in mesh on export 2016-09-08 13:32:30 +02:00
wmayer
217d4897fe support groups for export to obj format 2016-07-24 16:16:42 +02:00
wmayer
3f83814682 improve groups handling of obj mesh format 2016-07-24 00:23:45 +02:00
wmayer
f5d4cb09c8 compute minimum volume oriented box 2016-07-02 18:10:23 +02:00