Commit Graph

672 Commits

Author SHA1 Message Date
wmayer
2295c4b9a3 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
a40d37a980 Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
The FCGlobal.h can be included in a Global.h header file of an extension module.

The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00
Megidd Git
74623847b7 Mesh: fix infinite loop when repairing mesh facet indices 2021-09-12 09:13:57 +04:30
Yorik van Havre
e47ee43a22 Merge pull request #5002 from AjinkyaDahale/fix-4732-self-int
[Mesh] Avoid false negatives during self-intersection checks
2021-09-08 12:31:30 +02:00
Yorik van Havre
a9717a1e17 Merged crowdin translations 2021-09-07 11:26:48 +02:00
Ajinkya Dahale
0fad21daf0 [Mesh] Skip false positive tests for coplanar self-intersections
Fixes issue #4732.

Within the code, a different algorithm is used for intersection checks when
faces are found to be coplanar. That algorithm does not return the "intersection
line", which is used to remove false-positives. This however results in
false-negatives.
2021-08-31 11:11:11 -04:00
Yorik van Havre
199e8a8d6e Merged crowdin translations 2021-08-26 14:51:36 +02:00
Yorik van Havre
834933866e Merged crowdin translations 2021-07-08 16:06:38 +02:00
Yorik van Havre
da508e30b0 Merged crowdin translations 2021-07-01 13:56:25 +02:00
Yorik van Havre
acedf491f3 Merged crowdin translations 2021-06-24 17:22:19 +02:00
Yorik van Havre
ee6a9b8c7d Merged crowdin translations 2021-06-10 12:24:24 +02:00
Yorik van Havre
9f81ca933d merged crowdin translations 2021-06-03 15:43:34 +02:00
Yorik van Havre
dd1220b345 Merged crowdin translations 2021-05-27 14:51:33 +02:00
Yorik van Havre
0be2757e13 Merged crwodin translations 2021-05-12 16:36:31 +02:00
Yorik van Havre
91ea7fbba8 Updated ts files 2021-05-11 13:05:20 +02:00
wmayer
a6e7bdf849 allow to enable PCH for gcc and clang 2021-05-03 17:37:58 +02:00
luz paz
2321c90c76 Mesh: remove py2 code 2021-04-25 11:26:39 +02:00
wmayer
5ee0a355dd Mesh: [skip ci] fixes #0004430: Mesh_BuildRegularSolid: parametric mesh props have no units in Property editor 2021-04-21 14:50:45 +02:00
wmayer
791508eb0d Mesh: properly handle small quantities in mesh primitive dialog 2021-04-20 17:11:17 +02:00
Mateusz Skowroński
9ade68e9bf Fix CMake warning: qt5_make_output_file is not part of the official API, and might be removed in Qt 6. 2021-04-19 15:10:53 +02:00
wmayer
a2ba99452f Mesh: [skip ci] in ViewProviderMesh::highlightSegments change material binding only if colors list is non-empty 2021-03-28 11:27:04 +02:00
wmayer
6159c6da13 Mesh: [skip ci] use enum to define the various 2D meshing algorithms 2021-03-25 17:28:13 +01:00
donovaly
3f3ce8ff90 [Mesh] fix Gmsh mesh algorithms
the numbers written to the geo file were wrong

- also update the list of currently supported algorithms (as of Gmsh 4.6 or newer)
2021-03-25 17:20:15 +01:00
wmayer
2c08e37ec0 Mesh: [skip ci] refactor Mesh open/import functions 2021-03-20 21:54:30 +01:00
wmayer
5479a886df Mesh: [skip ci] do not make lower case read lines of OBJ file as otherwise it may fail to load the MTL file 2021-03-20 19:19:30 +01:00
wmayer
0fcbe04dcf Mesh: [skip ci] fix regular expression in MeshInput 2021-03-10 17:49:05 +01:00
David Osterberg
c1b3fba031 Beautify xml step 1: These changes do not affect the uic output 2021-03-02 16:29:11 +01:00
Yorik van Havre
fa85db61f9 Merged crowdin translations 2021-02-25 13:27:48 +01:00
Yorik van Havre
5c12afb5b5 Merged crowdin translations 2021-02-24 18:07:59 +01:00
luz paz
a7084b49dd Mesh: Crowdin: fix typo in translation [skip ci]
ref: https://crowdin.com/translate/freecad/561/en-en?filter=basic&value=0#6585564
2021-02-22 08:02:22 +01:00
wmayer
4a2d131cb6 Mesh: [skip ci] Fix coverity warning
Coverity warnings fixed:

CID 316517 (#1 of 1): Uninitialized scalar variable (UNINIT)
13. uninit_use_in_call: Using uninitialized value t. Field t.err is uninitialized when calling push_back

CID 316519 (#1 of 1): Uninitialized scalar variable (UNINIT)
3. uninit_use_in_call: Using uninitialized value v. Field v.tstart is uninitialized when calling push_back

CID 316547 (#1 of 1): Uninitialized scalar variable (UNINIT)
13. uninit_use_in_call: Using uninitialized value t. Field t.err is uninitialized when calling push_back

CID 316556 (#1 of 1): Uninitialized scalar variable (UNINIT)
3. uninit_use_in_call: Using uninitialized value v. Field v.tstart is uninitialized when calling push_back
2021-02-21 15:51:56 +01:00
bitacovir
ad1c767baa [UI] Add tools to Mesh WB toolbar 2021-02-19 16:28:42 +01:00
wmayer
e83ee7400c Mesh: add unit tests for splitting facets 2021-02-14 12:33:29 +01:00
wmayer
479a1fc9c9 Mesh: [skip ci] expose some mesh evaluation functions to Python 2021-02-14 12:02:45 +01:00
wmayer
8616a5615f Mesh: [skip ci] replace tabs with spaces 2021-02-14 11:26:53 +01:00
wmayer
815333c68e Mesh: [skip ci] implement splitFacet 2021-02-14 00:54:30 +01:00
Chris Hennes
16b8e02969 Correct minimum distance calculation in SplitFacet
Found via LGTM.
2021-02-12 21:59:50 +01:00
Chris Hennes
6b16e12d7c [OTHER] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
bitacovir
cc02ebb57f Fix mesh icon names of 3 SVG files 2021-02-09 20:10:24 +01:00
Chris Hennes
c5c419e55a LGTM: Eliminate float-to-double overflow warning
LGTM complains if this calculation is done from inside the sqrt() call
because it sees the explicit cast to float and assumes that sqrt() is
intended to take a double. By adding an intermediate step it should be
clear to LGTM that the float version of sqrt is intended.
2021-02-09 20:01:13 +01:00
Yorik van Havre
97379e035a merged crowdin translations 2021-02-09 16:12:18 +01:00
wmayer
2a86b5b153 Mesh: [skip ci] use a more appropriate icons for cross sections 2021-02-09 13:29:13 +01:00
bitacovir
5983f5d87b Fix mesh icon names of 9 SVG files 2021-02-09 11:57:41 +01:00
bitacovir
9d343219b0 Fix mesh icons names of SVG files 2021-02-08 16:40:58 +01:00
bitacovir
71f378fd70 [UI] Add SVG icon for Mesh SplitComponents 2021-02-08 10:53:18 +01:00
Chris Hennes
27a5fea60e Remove extra comma in Asymptote surface color definition
Found via LGTM.
2021-02-08 10:50:18 +01:00
Chris Hennes
70ad3cbf83 Silence incorrect LGTM warning. 2021-02-08 10:48:17 +01:00
wmayer
18dc155b3f Mesh: [skip ci] fix MeshPy::trim 2021-02-07 13:12:23 +01:00
Zheng, Lei
97a5a2f2af Mesh: minor change to exporter based on suggestion 2021-02-06 17:13:36 +01:00
Zheng, Lei
a01e2aaf8f Mesh: refactor mesh exporter for better support of Link 2021-02-06 17:13:36 +01:00