Commit Graph

24437 Commits

Author SHA1 Message Date
Markus Lampert
b05c055eee Fixed aligning path model along an axis. 2021-03-14 18:23:49 -07:00
Chrismettal
2bef8dbb40 [Stylesheet] increase behave-dark contrast on input boxes (#4619)
PR #4619
2021-03-14 14:38:12 -04:00
UR-0
192b1726fc [FEM] get Gmsh version 2021-03-14 17:22:09 +01:00
Bernd Hahnebach
4984d0031b FEM: unit tests, fix denisty writing in existing unit tests 2021-03-13 22:38:56 +01:00
Bernd Hahnebach
cd0f3405ee FEM: pep8 2021-03-13 21:47:50 +01:00
Bernd Hahnebach
7c46a54343 FEM: elmer writer, add comment 2021-03-13 21:47:40 +01:00
UR-0
2226db404a getPropertyOfGeometry() used to get BoundBox 2021-03-13 21:23:23 +01:00
UR-0
31ca5bc02e upgrade getBoundBoxOfAllDocumentShapes to handle more objects 2021-03-13 21:23:23 +01:00
UR-0
de9329a6c1 [FEM]implement Gmsh mesh property "MeshSizeFromCurvature" 2021-03-13 21:13:30 +01:00
Bernd Hahnebach
d1ce9c4c9d FEM: examples, add elmer nongui tutorial 1, eigenvalue of a beam 2021-03-13 20:59:09 +01:00
Bernd Hahnebach
0badb7dc2a FEM: elmer writer, do write density in any case 2021-03-13 20:58:56 +01:00
sliptonic
34ace78388 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
e954bf0f2a 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
748e113418 [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
cb41286beb PD: adjust unit test for mirrored offset that doesn't fail any more 2021-03-13 14:48:16 +01:00
wmayer
5e71f945c4 PD: remove empty try/catch block 2021-03-13 14:48:16 +01:00
David Osterberg
482129c5a4 PartDesign: Transformed. Fix regression in preview 2021-03-13 14:48:16 +01:00
David Osterberg
b7ac48aef7 PartDesign: Transformed. Fix regression for Mirrored, and multiple features 2021-03-13 14:48:16 +01:00
David Osterberg
79facc579e PartDesign: Transformed: Allow explict selection of overlap mode 2021-03-13 14:48:16 +01:00
David Osterberg
34fbe57485 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
5fe4730cbc 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
b47c7cf368 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
a4b5f436e7 Sketcher: fix performance issue with drawing svg icons 2021-03-13 06:43:10 +01:00
sliptonic
15d23af9f8 [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
5141e28535 Update 45degree_chamfer.fctb 2021-03-12 10:16:26 -06:00
Chris Hennes
0a0d939522 [OpenSCAD] Add scale parameter to linear_extrude 2021-03-11 13:56:26 +01:00
wmayer
cc36033de6 Fem: refactor FemMesh::readNastran95 2021-03-11 01:26:19 +01:00
wmayer
e0d13ce3dc Fem: refactor FemMesh::readNastran 2021-03-10 22:56:08 +01:00
wmayer
eeba01e8fb Fem: [skip ci] support NASTRAN CTRIA3 elements 2021-03-10 19:38:11 +01:00
wmayer
0fcbe04dcf Mesh: [skip ci] fix regular expression in MeshInput 2021-03-10 17:49:05 +01:00
wmayer
125e4f5979 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
Yorik van Havre
5c30dc8ce2 Merge pull request #4544 from chennes/draftSnapSyncRefactor
[DRAFT] Refactor sync_snap_toolbar_button
2021-03-10 16:24:16 +01:00
David Osterberg
f824603614 PartDesign: New input mode, and allow spirals to be created 2021-03-10 15:36:40 +01:00
Chris Hennes
5dbeb210e0 [OpenSCAD] Add unit tests for resize() and others 2021-03-10 15:33:45 +01:00
Chris Hennes
8b8f2373d1 [OpenSCAD] Implement resize()
The existing implementation of resize() did not work, and used incorrect
scale factors. This commit implements a version that matches the results
obtained from within OpenSCAD.
2021-03-10 15:33:45 +01:00
donovaly
0d43fd4d0f [Gui] fix HiDPI rounding bug
As reported in https://forum.freecadweb.org/viewtopic.php?f=10&t=56425&start=20#p485809
this PR fixes the problem reported here: https://forum.freecadweb.org/viewtopic.php?f=10&t=56425&start=20#p485759
2021-03-10 15:25:04 +01:00
Chris Hennes
a27115410b [Start] Add missing files to translation script 2021-03-10 15:21:40 +01:00
marioalexis
7e9a9f887a CMake: Fix find Matplotlib 2021-03-10 15:04:29 +01:00
tomate44
f5de466ae5 Part: fixes and check input values for spiral and helix primitives 2021-03-10 14:24:01 +01:00
tomate44
8334a59c4b Part primitives: add SegmentLength property to helix and spiral 2021-03-10 14:23:16 +01:00
tomate44
1ad246bdad Part primitives: use makeSpiralHelix in spiral and helix primitives 2021-03-10 14:22:04 +01:00
tomate44
8a7a5b583f TopoShape: add a common function to build spirals and helixes 2021-03-10 14:18:12 +01:00
Benjamin Nauck
fd6d471a24 Gui: Auto update NaviCube when changing preferences 2021-03-09 17:27:48 +01:00
Benjamin Nauck
79e72a87e1 Gui: Add setting for changing size of navigation cube
It's already possible to change size of the navigation cube through the
parameters. This just adds a GUI option in the preferences window.
2021-03-09 17:14:04 +01:00
Chris Hennes
9213565b3f [OpenSCAD] Minor fixes from LGTM analysis 2021-03-09 15:58:07 +01:00
wmayer
fd9959ce41 Gui: [skip ci] show or hide splash image depending on screen size 2021-03-08 19:03:59 +01:00
David Osterberg
b185dacdde PartDesign: Hole performance: Compound holes and cut once
- Remove unused code
- BooleanOperation trick

For some reason doing the cut in a boolean operation is
20% faster than doing it directly. Unclear why.
2021-03-08 15:30:24 +01:00
guskog
2c80b64453 Gui: Sketcher Color Preferences UI rearrangement. 2021-03-08 15:11:42 +01:00
Gustav Skog
a76a304cb1 Reworked Prefereces Sketcher Colors User interface, adding groupings. 2021-03-08 15:06:51 +01:00
UR-0
ce264f1571 [FEM] improve error message if gmsh.exe not found 2021-03-08 14:26:08 +01:00