Commit Graph

13 Commits

Author SHA1 Message Date
Russell Johnson
6059c8c870 Path: Add missing translate() function 2021-08-13 19:02:40 -05:00
Russell Johnson
d783d184fe Path: Refactor PathBoundary algorithm to independent class
Relocate code for PathBoundary algorithm into an independent class allowing for usage without the Dressup object creation.
2021-08-13 19:02:40 -05:00
luz paz
60c055e62d Path: Fix header uniformity and remove trailing whitespace
This PR fixes header uniformity across all Path files. It also removes all trailing whitespace.
2020-11-05 19:57:21 +01:00
luz paz
ab7e5fb087 Fix typos in source comments
Found via `codespell`
2020-08-29 19:14:13 +02:00
J-Dunn
2b79cb731a prevent added paths creating tool crash #4260 #3028
In this path dressup a bogus machine position is used to get an initial edge, this results in a path element which does reflect the input path data and can lead to a tool crash. This PR checks whether X and Y actually come from the input path data and prevent new path elements being added until true machine position has been set. 
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=15&t=42820
2020-07-28 14:12:11 +01:00
Russell Johnson
75cac30649 Path: Add if edge: test clause
`If edge:` handles 'NoneType' edges returned from `PathGeom.edgeForCmd()`.
Includes some PEP8 formatting.
2020-05-13 21:55:06 -05:00
luz.paz
c8cb520887 [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
J-Dunn
fa2b0e9c3e fix missing HorizFeed in boundaryDressup
fix missing HorizFeed in boundaryDressup  see bug #4260
2020-02-08 21:10:50 +00:00
Markus Lampert
73bd992015 Allow deletion of dressup even if model is not setup correctly. 2020-01-03 19:00:15 -08:00
Markus Lampert
c946320175 Set feed rate on vertical boundary moves. 2019-11-29 22:15:38 -08:00
Markus Lampert
e1c8dfa230 Fixed typo in onDelete 2019-11-05 19:18:39 -08:00
Markus Lampert
9f8c64c6af PathBoundary editor filled with life. 2019-11-05 19:18:39 -08:00
Markus Lampert
d0e16a58ef Added boundary dressup to restrict path to another shape. 2019-11-05 19:18:39 -08:00