Abdullah Tahiri
3a656d8597
Sketcher: UI Constraint Creation - PointOnObject + Tangency on edge constraint substitution
...
============================================================================================
On creation of a constraint from the UI (toolbar/menu):
1. if a PointOnObject constraint preexisted the addition of an
edge-to-edge tangency, substitute it with a point-to-edge tangency.
2. if an edge-to-edge tangency preexisted, addition of a PointOnObject
results in a substitution of the edge-to-edge tangency with an edge-to-curve
tangency.
Bonus:
- Refactor of this with preexisting coincident+tangent substitution.
- Activate both substitutions in continuous constraint addition mode.
2021-03-20 18:12:54 +01:00
wmayer
477e0d3982
Gui: [skip ci] avoid using const reference as member for several action classes to avoid memory corruption
2021-03-20 16:13:56 +01:00
Abdullah Tahiri
c08a19626f
Sketcher: Use old NotifyConstraintSubstitution parameter in DlgCheackableMessageBox
2021-03-20 15:59:15 +01:00
Abdullah Tahiri
4bf6b19849
Gui: Extend DlgCheckableMessageBox to use specific preference path and parameter
2021-03-20 15:59:15 +01:00
David Osterberg
d759a8e43d
Sketcher: Change constraint-conversion MessageBox to DlgCheckableMessageBox
2021-03-20 15:59:15 +01:00
wmayer
9c8685c20c
Import: [skip ci] avoid conflicting class names in global namespace
2021-03-19 15:18:25 +01:00
turn211
b1ac7701e6
[Stylesheet] ProDark: major bugfix for add-ons
...
https://forum.freecadweb.org/viewtopic.php?f=34&t=55134&start=100
2021-03-19 06:31:27 -04:00
wmayer
371b089ea0
OpenSCAD: fix test_import_surface by changing currently working directory
2021-03-17 12:35:15 +01:00
Bernd Hahnebach
cf241d0c93
FEM: examples, elmer eigenvalues, add calculix solver for frequencies
2021-03-17 12:25:09 +01:00
wmayer
9a105e3405
OpenSCAD: fix utility_create_scad by changing currently working directory so that test_import_surface doesn't fail any more
2021-03-17 11:59:14 +01:00
wmayer
0581409fbe
OpenSCAD: [skip ci] fix incorrect filename creation in unit tests
2021-03-17 11:56:58 +01:00
UR-0
0f12d6e9ec
[FEM] improve get_gmsh_version
2021-03-17 11:28:23 +01:00
Bernd Hahnebach
5bf22ad4ac
FEM: examples, elmer tut1, eigenvalues, fix some problems
2021-03-17 10:45:37 +01:00
Bernd Hahnebach
71141d0964
FEM: fix unit test because of denisty writing. See 3e1b16b198. This reverts 8ec3766b00
2021-03-17 09:33:21 +01:00
Bernd Hahnebach
3e1b16b198
FEM: elmer writer, only write denisty if really needed, partitially revert 2d73444a66, unit test fix in separate commit
2021-03-17 09:26:48 +01:00
wmayer
4561deb4fa
Part: [skip ci] implement makeShellFromWires
2021-03-16 16:01:43 +01:00
Bernd Hahnebach
bfdeaf6af3
Update task_material_common.py
2021-03-16 11:55:19 +01:00
Bernd Hahnebach
b9f4576dba
FEM: material task panel, small code improvements
2021-03-16 11:22:27 +01:00
Yorik van Havre
4bf8fd2e07
Merge pull request #4621 from marioalexis84/draft-gui_snaps
...
Draft: Fix regression in sync_snap_toolbar_button function
2021-03-15 14:06:05 +01:00
marioalexis
bc60c93266
Draft: Fix regression in sync_snap_toolbar_button function
2021-03-14 17:14:58 -03:00
Chrismettal
1233555826
[Stylesheet] increase behave-dark contrast on input boxes ( #4619 )
...
PR #4619
2021-03-14 14:38:12 -04:00
UR-0
381ce4a830
[FEM] get Gmsh version
2021-03-14 17:22:09 +01:00
Bernd Hahnebach
8ec3766b00
FEM: unit tests, fix denisty writing in existing unit tests
2021-03-13 22:38:56 +01:00
Bernd Hahnebach
69aacc2fc5
FEM: pep8
2021-03-13 21:47:50 +01:00
Bernd Hahnebach
a8c1624b94
FEM: elmer writer, add comment
2021-03-13 21:47:40 +01:00
UR-0
f11945d1c7
getPropertyOfGeometry() used to get BoundBox
2021-03-13 21:23:23 +01:00
UR-0
abf4fee6a4
upgrade getBoundBoxOfAllDocumentShapes to handle more objects
2021-03-13 21:23:23 +01:00
UR-0
65b9f8b43d
[FEM]implement Gmsh mesh property "MeshSizeFromCurvature"
2021-03-13 21:13:30 +01:00
Bernd Hahnebach
9f2d1d76c8
FEM: examples, add elmer nongui tutorial 1, eigenvalue of a beam
2021-03-13 20:59:09 +01:00
Bernd Hahnebach
2d73444a66
FEM: elmer writer, do write density in any case
2021-03-13 20:58:56 +01:00
sliptonic
4092c97bac
Merge pull request #4573 from Russ4262/fix_pocketshape_warning_msg
...
[Path] PocketShape: Remove 'verify final depth' warning
2021-03-13 11:54:05 -06:00
sliptonic
e6801d9c58
Merge pull request #4613 from sliptonic/bug/outputsplit
...
[PATH] Fix bug with spindle not restarting
2021-03-13 09:46:39 -06:00
Chris Hennes
6bf27e0ae1
[OpenSCAD] Reimplement surface() to match OpenSCAD
...
The original implementation of the surface() function used a simple
B-spline representation for the surface, which generated degenerate
surface with several of OpenSCAD's demo input files. This commit
modifies the algorithm to generate a discrete surface identical to the
one generated within OpenSCAD itself. It also adds several units tests
to identify future regressions.
Note that PNG input is not yet supported for the surface() function.
2021-03-13 16:11:16 +01:00
wmayer
f55c46cc86
PD: adjust unit test for mirrored offset that doesn't fail any more
2021-03-13 14:48:16 +01:00
wmayer
ee60ccd044
PD: remove empty try/catch block
2021-03-13 14:48:16 +01:00
David Osterberg
3131b97aa8
PartDesign: Transformed. Fix regression in preview
2021-03-13 14:48:16 +01:00
David Osterberg
8453d41515
PartDesign: Transformed. Fix regression for Mirrored, and multiple features
2021-03-13 14:48:16 +01:00
David Osterberg
fecf9c2e84
PartDesign: Transformed: Allow explict selection of overlap mode
2021-03-13 14:48:16 +01:00
David Osterberg
03da9d3501
PartDesign: Performance improvements in Transformed (pattern)
...
- Use fuzzy fuse/cut method with tolerance Precision::Confusion()
- Use parallel computation feature
- Allow that individual patterned item fail to intersect the baseobject.
Issue warning instead of error. This was done for performance reasons
but it can also be considered a feature.
- Simplify the code a bit
- Distinguish between overlapping mode and non-overlapping mode. In non-overlapping mode
the tool shapes are compounded instead of fused. For huge benefit in performance.
2021-03-13 14:48:16 +01:00
grggnzlz
89b8e81d5c
Sketcher: Constraint svg caching
...
================================
Calls to:
Gui::BitmapFactory().pixmapFromSvg(type.toLatin1().data(),QSizeF(edit->constraintIconSize,edit->constraintIconSize));
are expensive and the scaled pixmap is heavily reused.
Solution is to cache the icon.
2021-03-13 06:43:10 +01:00
Abdullah Tahiri
a8cb3d5dfb
Sketcher: allow icon/color update in STATUS_SKETCH_UseHandler mode
...
==================================================================
Updating color and constraint icons does not seem necessary in other modes:
https://forum.freecadweb.org/viewtopic.php?f=3&t=56064&start=10#p486578
2021-03-13 06:43:10 +01:00
grggnzlz
011e19060a
Sketcher: fix performance issue with drawing svg icons
2021-03-13 06:43:10 +01:00
sliptonic
c1b471588b
[PATH] Fix bug with spindle not restarting
...
if output is split by operation spindle should restart when next file is loaded
2021-03-12 13:12:09 -06:00
sliptonic
db16029c6a
Update 45degree_chamfer.fctb
2021-03-12 10:16:26 -06:00
Chris Hennes
bfce108083
[OpenSCAD] Add scale parameter to linear_extrude
2021-03-11 13:56:26 +01:00
wmayer
b6634e041b
Fem: refactor FemMesh::readNastran95
2021-03-11 01:26:19 +01:00
wmayer
38b54de578
Fem: refactor FemMesh::readNastran
2021-03-10 22:56:08 +01:00
wmayer
d4a37421ff
Fem: [skip ci] support NASTRAN CTRIA3 elements
2021-03-10 19:38:11 +01:00
wmayer
9f937f765d
Mesh: [skip ci] fix regular expression in MeshInput
2021-03-10 17:49:05 +01:00
wmayer
df738615fd
Fem: [skip ci] fix possible crash in Fem::readNastran
...
The crash can occur if node ids are referenced by faces or volumes that do not exist in the mesh.
2021-03-10 16:39:06 +01:00