Commit Graph

24044 Commits

Author SHA1 Message Date
Paddle
5083efc2cf Sketcher: Constraint widget: Add 'Auto constraints' and 'auto remove redundant' to the setting button. 2022-11-24 01:09:38 +01:00
Paddle
0eef8b50b3 Sketcher: Constraint widget: Improve the filter such that the filter state and checkboxe state is cross-cession. Enabling user to 'save' filter state. 2022-11-24 01:09:38 +01:00
Paddle
6f93989777 Sketcher: Constraint widget: - Fix eye button
- move 'Internal alignment' to Geometric.
    - Fix another bug.
2022-11-24 01:09:38 +01:00
Paddle
ae0554cd5e Sketcher: filter list strings are updated at language change. By @0penBrain 2022-11-24 01:09:38 +01:00
Paddle
398deb2f5b SKETCHER: Constraint widget rework (issue 7518)
see https://forum.freecadweb.org/viewtopic.php?f=34&t=71595&start=20
2022-11-24 01:09:38 +01:00
wmayer
8ba310fd3a MeshPart: [skip ci] fix build failure 2022-11-23 19:44:42 +01:00
Uwe
82ea017a39 [Mesh] remove GTSAlgos
- unused since a while
2022-11-23 17:35:06 +01:00
Uwe
d11e416845 [Measure] remove a unused include
- also some sorting
2022-11-23 03:50:45 +01:00
Uwe
2669383c2a [MeshPart] remove unused includes
- also some sorting
2022-11-23 03:35:31 +01:00
wandererfan
02008c8877 [TD]fix fail on missing base view (#7856) 2022-11-22 20:38:46 -05:00
wmayer
350e3c74ce Sketch: add missing header 2022-11-22 15:53:50 +01:00
Uwe
56965e4244 [Mesh] Core P-end: remove unused includes
- also some sorting
2022-11-22 03:10:47 +01:00
Uwe
48e9c09426 [skip ci] [Part] TopoShapePyImp.cpp: clang formatting fixes 2022-11-22 03:09:43 +01:00
wandererfan
f072315656 [TD]Separate test scripts which require QApplication 2022-11-21 18:24:57 -05:00
wandererfan
894f6408a4 [TD]Add tests for geometry creation
- check that edge geometry count is correct
- handle delay waiting for threads to complete
- add test for DrawViewDetail
2022-11-21 18:24:57 -05:00
Yorik van Havre
5d71ffab03 Merge pull request #7821 from Roy-043/Draft-fix-arcFromSpline
Draft: fix arcFromSpline midpoint bug
2022-11-21 13:30:46 +01:00
Yorik van Havre
fd73fa3c27 Merge pull request #7840 from Roy-043/Draft-add-test_draft_to_techdraw
Draft: replace test_draft_to_drawing with test_draft_to_techdraw
2022-11-21 13:30:14 +01:00
0penBrain
34bfb9bbc2 Sketcher: fix warning about QStringLiteral used without argument 2022-11-21 09:57:54 +01:00
luz paz
4de98bdbb7 Image: remove trailing whitespace 2022-11-21 03:59:51 +01:00
Uwe
c907c2dbf1 [Mesh] Core E-M: remove unused includes
- also some sorting
2022-11-21 03:59:13 +01:00
Uwe
ed6e63084d [Mesh] Core A-D: remove unused includes
- also some sorting
2022-11-21 03:24:27 +01:00
Uwe
dab06a985b [Mesh] Core/IO: remove unused includes
- also some sorting
2022-11-21 02:49:26 +01:00
Roy-043
2a832b96f4 Update test_modification.py
Added check if view is in page.OutList.
2022-11-20 22:09:04 +01:00
0penBrain
283ee6f1a3 Sketcher: filter list strings are updated at language change (include fix commits) 2022-11-20 15:14:19 +01:00
Paddle
1ab352040a Sketcher: Element widget: Improve filter widget. 2022-11-20 15:14:19 +01:00
Aapo
d0d511f940 [TD] DrawViewPart: Fix Dimension attachment for Coarse Views and faceless Views 2022-11-20 08:08:33 -05:00
Roy-043
1f340dacb6 Draft: unit tests: replace test_draft_to_drawing with test_draft_to_techdraw 2022-11-20 11:47:43 +01:00
Uwe
db837c7468 [sketch] Geo.cpp: fix compiler warning
- as reported here: https://forum.freecadweb.org/viewtopic.php?f=10&t=73647
2022-11-20 00:38:21 +01:00
luz paz
94c9430a26 [Sketcher] fix header uniformity
Make uniform all Sketcher headers.
2022-11-19 16:04:55 +01:00
wmayer
cdb953c462 Part: [skip ci] fix some warnings reported by GH actions 2022-11-19 15:57:54 +01:00
marioalexis
6d74cfa383 Part: Fix endless-loop in TopoShapePy::proximity function 2022-11-19 15:31:13 +01:00
luz paz
a0ad4ebebb [Arch] fix header uniformity
Make uniforum all Arch headers
2022-11-18 20:22:24 +01:00
Bernd Hahnebach
c8b2215bed FEM: gmsh binary location on osx, add comment 2022-11-18 12:05:36 +01:00
Bernd Hahnebach
987159dd7f FEM: add standard path for gmsh on osx 2022-11-18 12:02:22 +01:00
wmayer
47cfb7569c Arch: replace tabs with spaces 2022-11-18 11:47:17 +01:00
0penBrain
4b8b93c3b8 Sketcher: disable auto-constraint in Copy/Clone/Move commands 2022-11-18 08:18:58 +01:00
0penBrain
8a574f5a51 Sketcher: Clone: do not apply parallel constraint if angle constraint is applied on arc 2022-11-18 08:18:58 +01:00
Aapo
300ca5b206 [TD] DrawViewPart: Fix Dimension attachment on Cosmetic CenterLines upon document restore 2022-11-17 19:25:43 -05:00
luz paz
f13299a5a6 Path: remove trailing whitespace 2022-11-18 00:01:25 +01:00
luz paz
4c09fe0162 Sketcher: remove trailing whitespace 2022-11-17 23:56:13 +01:00
luz paz
e2a81c8674 Arch: remove trailing whitespace 2022-11-17 23:54:03 +01:00
Roy-043
27da9e8e59 Draft: fix arcFromSpline midpoint bug 2022-11-17 11:04:25 +01:00
sliptonic
9515e169b5 Merge pull request #7759 from LarryWoestman/staging
Path:  Changes for Path refactoring to fix regressions.
2022-11-16 18:09:38 -06:00
Ajinkya Dahale
e1485388d4 [Sketcher][planegcs] Make changes as per comments on #7484
Comments by @abdullahtahiriyo.

Remove default values and smaller constructor for `CenterOfGravity` and
`WeightedLinearCombination` constraints.

Clarify comments.

Improve readability of `CenterOfGravity` and `WeightedLinearCombination`
constraints.
2022-11-16 15:35:37 +01:00
Ajinkya Dahale
473a380b49 [Sketcher][planegcs] Set knot constraint as internal alignment 2022-11-16 15:35:37 +01:00
Ajinkya Dahale
f75bd1eed7 [Sketcher] Do not make knots construction points 2022-11-16 15:35:37 +01:00
Ajinkya Dahale
e1d72a3023 [Sketcher] Stop treating knots as fixed in GUI commands
This stops constraints from becoming non-driving when not set.

Follow 0penbrain's comments

typo
2022-11-16 15:35:37 +01:00
Ajinkya Dahale
ba4f2bf128 [Sketcher] Constrain B-spline knots as linear combination of poles
Also squashes:

[Sketcher] Create center of gravity constraint in planegcs

[Sketcher] typo

[Sketcher] Use accurate "weights" for knots

By weights we mean the linear combination factor B_i(x) such that
spline(x) = sum(pole_i * B_i(x)) for _non-rational_ splines.

[Sketcher] Use more appropriate weights for knots

These are relevant for knots _away_ from any ends (and possibly other high
multiplicity knots).

[Sketcher] Make COG constraint weights user-definable

[Sketcher] Make `flattenedknots` for periodic B-Splines

[Sketcher] Fix incorrect setup of `flattenedknots`

Without ensuring enough space, iterators become invalid. These iterators are
needed because for periodic B-splines we need to pad flattenedknots with offset
values within flattenedknots.

Apparently there is still some iterator issues even after the reserve. Just use
fresh vectors instead.

[Sketcher] Apply knot constraints by parameter

Hopefully this will allow directly applying constraints on knots.

[Sketcher] Disable some knot updating

[Sketcher] Use center of gravity constraint on knots

[Sketcher] Fix knot COG constraint for periodic splines

[Sketcher] Add start/end point of periodic spline to solver

This removes the trouble of transferring constraints to the underlying knot.

[Sketcher] Support knot constraints on rational B-splines

[Sketcher] Remove virtual from overridden methods in planegcs

Follow 0penbrain's comments

[Sketcher][planegcs] Use `unsigned int` in signatures

Also `size_t` at places

Suggestions by @abdullahtahiriyo
2022-11-16 15:35:37 +01:00
Ajinkya Dahale
bad4406387 [Sketcher] Reformat some if-else for readability
Weren't folding right in spacemacs.
This commit can be omitted if undesired.
2022-11-16 15:35:37 +01:00
wandererfan
59e2aa9189 [TD]fix alignment of section line marks on rotated base view 2022-11-16 08:56:00 -05:00