Commit Graph

21062 Commits

Author SHA1 Message Date
Oleg Belov
161da1d80a Path: Fix simulator bug workaround while milling curves with small radius.
Path Simulator produces out of trace artifacts while milling curves with small radius.
In VolSim.cpp the branch for curve radius smaller then tool radius is not implemented yet.
In this condition the simulator produces artifacts of higher radius while milling path using G2 or G3.
There is an implementation of G2 and G3 in python level.
2022-01-07 21:12:37 +03:00
Chris Hennes
ad2169e5ae Addon manager dependency resolver (#5339)
Squashed:
* Addon Manager: Refactor metadata.txt download
* Addon Manager: Basic dependency walker
* Addon Manager: Add basic support for dependencies
* Addon Manager: Improve network detection messaging
* Addon Manager: Black reformat
* Addon Manager: Display dependency info in dialog
* Addon Manager: Dependency dialog added
* Addon Manager: Improve display of update all results
* Addon Manager: Improve display of package list
* Addon Manager: Fix codespell
* Addon Manager: Clean up unused signal
2022-01-07 10:16:44 -06:00
sliptonic
829d69ae6d Merge pull request #5350 from jimzim111/Path_Post_MachineCommands
Path: PathArray: use python library 're' instead of 'regex'
2022-01-07 09:06:13 -06:00
wmayer
ad30b7dbc8 PD: [skip ci] remove unused variable 2022-01-07 15:50:09 +01:00
wandererfan
8e86c4473e [TD]fix typo in command name 2022-01-07 08:58:10 -05:00
wandererfan
dffa7040b9 [TD]combine @wmayer and edi271 changes re command extensions 2022-01-07 08:58:10 -05:00
edi271
85662489f9 using getCircleCenter from Part WB 2022-01-07 08:58:10 -05:00
edi271
6f60892209 using enums to define line attributes 2022-01-07 08:58:10 -05:00
edi271
9981e27f92 Changes caused by PR5231 2022-01-07 08:58:10 -05:00
edi271
64419b26a0 Cascade spacing added 2022-01-07 08:58:10 -05:00
edi271
6438b0426e Menu seperators added 2022-01-07 08:58:10 -05:00
edi271
747884a5f8 Inserted undo/redo commands 2022-01-07 08:58:10 -05:00
edi271
68612b1cd7 Desired changes in TaskSelectLineAttributes.h 2022-01-07 08:58:10 -05:00
edi271
b791cc7832 Desired changes in Workbench.cpp 2022-01-07 08:58:10 -05:00
edi271
d09d0b6036 Next31TechDrawTools 2022-01-07 08:58:10 -05:00
Abdullah Tahiri
44414e74d3 Sketcher: ViewProvider parameter color subscription
===================================================

Bug:

Subscription/Unsubscription of outside of edit mode parameters was missing.

So changing the edge color from settings required to restart FreeCAD.

Fix:

Subscribe/Unsubscribe from the relevant parameter group
2022-01-07 10:19:22 +01:00
jim
60e36a0a30 use python library 're' instead of 'regex' for portability 2022-01-06 21:06:15 -08:00
Ajinkya Dahale
e92cc10819 [FEM] Use modal add/remove for more constraints (8/??)
Use the previously added superclass `TaskConstraintOnBoundary` for more
constraints where it's usable.

Currently done:
TaskFemConstraintDisplacement
TaskFemConstraintForce
TaskFemConstraintSpring
TaskFemConstraintFluidBoundary
TaskFemConstraintHeatflux
TaskFemConstraintFixed
TaskFemConstraintTemperature
TaskFemConstraintPressure

Too different:
TaskFemConstraintTransform (single selection)
TaskFemConstraintContact (single selection, two fields)
TaskFemConstraintPlaneRotation (single selection)
(Other constraint tasks, which do not use `addToSelection`)
2022-01-07 05:33:42 +01:00
Ajinkya Dahale
744e57a963 [FEM] Add modal add/remove for dispacement constraint
With this, add/remove buttons for displacement constraint will put the user in a
selection mode if pressed when nothing is selected.

Superclass `TaskFemConstraintOnBoundary` Allows code reuse for other
constraints. We do not need this in `TaskFemConstraints` because it is only used
in a subset of constraints, particularly that applies on only some of the
boundary entities.

TODO: Confirm Undo/Redo works appropriately.
TODO: Optimize `onSelectionChanged()`.
2022-01-07 05:33:42 +01:00
Chris Hennes
def357536a Addon Manager: Clean up copied macros on uninstall 2022-01-06 20:34:48 -06:00
Chris Hennes
dfdc6e4f65 Addon Manager: Handle symlinking failure 2022-01-06 19:22:00 -06:00
sliptonic
529aef6e17 Merge pull request #5097 from Russ4262/fix/waterline
[Path] Fix Waterline error due to invalid arguments in `getOffsetArea()` calls
2022-01-06 18:30:06 -06:00
Ajinkya Dahale
bdedb27d49 [FEM] Use OpenMP for FemMesh::{getNodesByEdge, getNodesByVertex} 2022-01-07 01:23:01 +01:00
Ajinkya Dahale
7e0b89a619 [FEM] Possibly fix race conditions
Race conditions introduced after using OpenMP in `FemMesh::getNodesByFace` and
`FemMesh::getNodesBySolid` because of which nodes were randomly added or removed
from sets. Solved by replacing `SMDS_MeshNode::X()` etc., which are not thread
safe, with the thread-safe `SMDS_MeshNode::GetXYZ()`.
2022-01-07 01:23:01 +01:00
Philipp Knechtges
89ece3590e [FEM] OpenMP-parallelize FemMesh::{getNodesBySolid,getNodesByFace}
Projecting nodes onto TopoDS_Shapes is a costly task, which can
potentially take a lot of time, so let's parallelize it.
2022-01-07 01:23:01 +01:00
Philipp Knechtges
2e2f45f1fe [FEM] speed up get_femelement_sets in meshtools.py
The previous implementation was quite slow in filling up the remaining_femelements list.
The new implementation fixes this by using numpy for the heavy work.
2022-01-07 01:23:01 +01:00
sliptonic
2edfc6abf4 Merge pull request #5228 from P-C-R/RRF-PP-for-Path
Path | RRF (RepRapFirmware | Duet Boards) PP
2022-01-06 18:18:02 -06:00
sliptonic
7470ab798b Merge pull request #5290 from Russ4262/fix/3D_Surface_Optimize
[Path] Fix 3D Surface OptimizeStepOverTransitions property error
2022-01-06 18:15:36 -06:00
luz paz
d4f1082eda Plot: remove superfluous whitespace 2022-01-07 00:57:36 +01:00
luz paz
23733e594a Plot: Expose src/Mod/Plot strings to translation
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/60
2022-01-07 00:57:36 +01:00
Uwe
5f59b5e37f [PD] correct copyright
these files were added by Werner in 2020
2022-01-06 21:56:53 +01:00
luz paz
fd3f2b0092 Fix various typos and refinements 2022-01-06 20:22:34 +01:00
Roy-043
31221291a8 Draft: improve get_group_contents function in groups.py
For consistency the get_group_contents function should use is_group to identify groups. The code dedicated to Site objects and Drawing pages was removed.
2022-01-06 17:40:11 +01:00
Roy-043
473c9d2234 Draft: fix scale.py copy_scaled_edge
The `copy_scaled_edge` function should return a wire, not an edge. The `join_wires` function, called in `copy_scaled_edges`, can only handle wires.
2022-01-06 17:38:41 +01:00
Roy-043
6f970b197f Draft: Fix importSVG.py: wrong position for certain ellipses (#5297)
Ellipses and elliptical arcs with a y radius larger than their x radius would end up in the wrong position.
2022-01-06 17:02:41 +01:00
Roy-043
ba3961574b Draft: make Draft_Snap_Angle work in 3D
Draft_Snap_Angle only worked for circular edges on a plane parallel to the XY plane of the global coordinate system.
2022-01-06 16:57:55 +01:00
sliptonic
fc88f8c3c1 Merge pull request #5319 from jimzim111/PathArray_RandomSeed
Path: Path array jitter random seed
2022-01-06 09:56:12 -06:00
Uwe
d660bce346 [PD] Hole: some coding style fixes
all done by MSVC
2022-01-06 16:18:25 +01:00
Uwe
76f5fe6a74 [PD] remove wrong comment
was accidentally introduced by ma previous commit
2022-01-06 16:15:39 +01:00
Uwe
2783563e11 [PD] Hole: don't call onChanged on restoration
fixes the issue reported here: https://forum.freecadweb.org/viewtopic.php?f=10&t=65035
2022-01-06 15:51:03 +01:00
Uwe
55421ce9cb [PD] add missing hole constraint
- add missing constraint for hole diameter
- add missing sets of angle constraints in the task dialog
2022-01-06 15:39:13 +01:00
Uwe
4b6c0a6f2d [PD] Hole: coding style fixes
all by MSVC
2022-01-06 03:51:13 +01:00
Uwe
460d4ad404 [PD] remove unnecessary Unicode characters
they cause problems: https://forum.freecadweb.org/viewtopic.php?p=559077#p559077
2022-01-06 02:57:53 +01:00
wmayer
52fc10a59f Sketcher: avoid attaching to/detaching from the same parameter group twice 2022-01-06 00:35:36 +01:00
jim
56007ef862 merge with formatting and translation changes 2022-01-05 15:01:43 -08:00
sliptonic
0fa6d727f8 Merge pull request #5336 from jimzim111/Path_Post_MachineCommands
Path: Grbl_post: Allow controller-specific/non-standard gcode commands
2022-01-05 11:53:57 -06:00
Mariwan
e63472b10c Draft: change static to non-static declared variables (#5292)
* Draft: change static to non-static declared variables

* Change variable name and add some comment
2022-01-05 16:39:28 +01:00
mwganson
b382d855e0 [Part::CheckGeometry] pass object to buildShapeContent() rather than string as docname.objname 2022-01-05 15:06:49 +01:00
wmayer
922582d036 Sketcher: avoid attaching to/detaching from the same parameter group twice 2022-01-05 14:05:05 +01:00
Uwe
6c2178d082 [PD] get rid of a CI compiler warning (#5335)
* [PD] get rid of a CI compiler warning

The CI compiler outputs this warning:
FeaturePad.cpp:101:20: warning: variable 'obj' set but not used [-Wunused-but-set-variable]

Co-authored-by: 0penBrain <48731257+0penBrain@users.noreply.github.com>
2022-01-05 12:26:48 +01:00