Commit Graph

3892 Commits

Author SHA1 Message Date
sliptonic
30b907ec5d Merge pull request #12041 from Ondsel-Development/fixorderbywidget
fixes #12029
2024-01-19 12:12:46 -06:00
sliptonic
ccaa636c72 fixes #12029 2024-01-19 11:31:53 -06:00
sliptonic
893238c2ab Merge pull request #11939 from davidgilkaufman/restMachiningFromGcode
[Path] Rest machining from gcode
2024-01-18 07:49:54 -06:00
Bill Reese
adaa0d171b Fix for missing letters when V-carving a string.
Issue 8064 occurs when FreeCAD passes a Voronoi diagram to
Boost that becomes self-intersecting when Boost truncates the
diagram's coordinates to integers.  This occurs when the discretizer
slightly misses closing the polygon generated for the letter by less
that FreeCAD's epsilon, then the wrapping Python code closes the
polygon by adding the initial polygon point as the final point.
This creates a short segment that, depending on the position of
the letter in the coordinate system, may end up being moved one
Boost coordinate delta away from the intended point, which can
end up self-intersecting.
Since the miss is very small, FreeCAD should treat it as it it
were the initial point.  There's no need for a duplicate copy of
the initial point, so we remove this point close to the initial
point and let insert_many_wires() close the polygon as usual.
2024-01-13 12:41:26 -05:00
David Kaufman
dd5bb66cb9 replace hard coded 1um tolerance with job.GeometryTolerance 2024-01-11 22:49:11 -05:00
bgbsww
8abd09398a Add support for OCCT 7.8.0 (#11909) 2024-01-09 19:47:25 -06:00
David Kaufman
4ceb984f73 cleanup 2024-01-08 20:19:39 -05:00
David Kaufman
b20d702b0d add support for drilling gcode 2024-01-08 20:19:39 -05:00
David Kaufman
4cb991cf47 add bbox check to getClearedArea to filter out irrelevant gcode 2024-01-08 20:19:39 -05:00
David Kaufman
20ce99cfcc Important performance optimization: union Thicken() polygons individually, not en masse 2024-01-08 20:19:39 -05:00
David Kaufman
7b55376d76 rename getClearedAreaFromPath -> getClearedArea 2024-01-08 20:19:39 -05:00
David Kaufman
57313f7b5c remove old/deprecated rest machining code 2024-01-08 20:19:39 -05:00
David Kaufman
9cbf031895 do computations at higher precision to mitigate error stackup 2024-01-08 20:19:39 -05:00
David Kaufman
9fac948ba7 fix precision computation 2024-01-08 20:19:39 -05:00
David Kaufman
2a9ce21c81 expand cleared area by a small buffer to cover numeric errors 2024-01-08 20:19:39 -05:00
David Kaufman
ea1c9e4c57 proof of concept rest machining from prior path gcode 2024-01-08 20:19:39 -05:00
sliptonic
00e3980090 Merge pull request #11927 from bdieterm/fix-path-profile
Path: fix wire midpoint calculation
2024-01-08 14:00:03 -06:00
Kevin Martin
2c0bc89f62 Streamline scaling for DXF import
Eliminate m_measurement_inch to clean up logic for priority of MEASUREMENT and INSUNITS.
Save the actual scaling factor rather than the scaling enum so a switch statement is not executed for each call to mm()
Add to CDxfRead the work to handle dxfScaling option, ImpExpDxfRead just has to set it up now.
Get the scaling factor from a lookup table rather than a switch statement
Display a message explaining what the scaling factor is and where it comes from
Remove large amount of Lint.
2024-01-08 18:01:21 +01:00
bdieterm
0d662251d2 Path: fix wire midpoint calculation 2024-01-07 21:23:13 +01:00
Chris Hennes
1d2186b7d6 Update translations (#11886)
* Update translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 09:27:18 -06:00
Syres916
b20171a656 [Path] Implement document level Units Schema check 2023-12-28 22:03:47 +00:00
Syres916
6821dc290f [Path] Remove System Unit Schema Check...
...to be replaced by document level Unit Schema Check
2023-12-28 22:01:11 +00:00
Yorik van Havre
a679c8b818 merged crowdin translations 2023-12-20 09:27:37 +01:00
sliptonic
249bca2ef4 Merge pull request #11673 from bgbsww/bgbsww-patch-20
Tweak section tolerance to make base layer of paths work again
2023-12-11 11:12:31 -06:00
André Caldas
560898907b Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
bgbsww
b32f089bff Tweak section tolerance to make base layer of paths work again 2023-12-06 19:32:26 -05:00
sliptonic
2214819b86 Merge pull request #11499 from Syres916/Sanity_CycleTime_Fix
[Path] Sanity, change default zero CycleTime from float to string
2023-12-04 12:00:15 -06:00
Yorik van Havre
3ade39ccf1 Translations (#11551)
* Updated ts files

* merged crowdin translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 11:29:38 -06:00
Chris Hennes
fa65438556 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 17:37:29 +01:00
Syres916
49e72d01a1 [Path] Sanity, change default zero CycleTime from float to string 2023-11-22 14:17:49 +00:00
Chris Hennes
90dc4aeb13 Update translations 2023-11-20 13:46:22 -06:00
LarryWoestman
4e80ae6fca Path: Added separator lines to make the tests easier to find (#11423)
Co-authored-by: LarryWoestman <LarryWoestman@users.noreply.github.com>
2023-11-20 10:13:44 -07:00
LarryWoestman
657511e9f3 Path: Rearranged and renumbered some of the tests 2023-11-12 16:45:06 -08:00
Chris Hennes
954c2fa03f Update translations 2023-11-09 12:23:56 -06:00
sliptonic
74a8820dfd Merge pull request #11248 from alromh87/WEDM
Added Path PostProcessor for old WEDM machines
2023-11-06 11:20:55 -06:00
sliptonic
d2be17c29f Merge pull request #11245 from LarryWoestman/staging
Path:  Added typing to the refactored postprocessors.
2023-11-06 11:19:34 -06:00
Chris Hennes
aaa0db3867 Merge pull request #11231 from DeflateAwning/http-cleanup
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
LarryWoestman
2a2ff73c2c Path: Added typing to the refactored postprocessors. 2023-11-04 11:18:12 -07:00
Alejandro Romero
6e23fcbe67 Added Path PostProcessor for old WEDM machines configurable for different machines:
G91 incremental coordinates
        --relative                  (Disabled by default)
    Specific comment character
        --comments-character        (None by default)
    Specific space character, use "" to ommit spaces
        --command-space             (" " by default)
    Add character before newline
        --endline-character         (None by default)
    Multiplier for machines that use not standard dimensions like micrometers (1000)
        --scale                     (1 by default)
    Define decimal points
        --precision                 (3 for mm, for inch by default)
    Add trailing 0s
        --fixed-length              (0 (disabled) by default)
    G0 rapid moves disabled by default, replaced with G1
        --use-rapids                (Set flag to enable G0)
    Disable setting units on output code G20/21
        --omit-units                (Set flag to avoid setting units)
    Force two digit codes G01 insted of G1
        --two-digit-codes           (Set flag to enable)
    Add + sign to positive coordinates
        --force-sign                (Set flag to enable)
    Ignore unsuported operations, use Labels and separate with ','
        --ignore-operations         (Empty by default)
2023-11-01 13:53:08 -06:00
Chris Hennes
b2f069f8b0 Merge branch 'main' into modernize-type-check 2023-10-31 15:46:18 -05:00
DeflateAwning
8de6db3e97 Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
DeflateAwning
c847a3d516 Change http to https in SVGs
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Include: *.svg
2023-10-29 22:32:59 -06:00
Chris Hennes
cbd0ef5975 Merge branch 'main' into modernize-type-check 2023-10-25 16:07:28 -05:00
LarryWoestman
1222e77ee8 Path: Removed some unneeded variables; shortened some long lines. 2023-10-24 14:14:57 -07:00
sliptonic
b70956ba3d Merge pull request #11108 from jffmichi/fix_profile_open_edge_direction
Path: fix Profile open edges not respecting selected cutting direction
2023-10-23 18:25:03 -05:00
Florian Foinant-Willig
939f30420c Path: modernize type checking 2023-10-23 18:07:23 +02:00
Adrian Insaurralde Avalos
7754c44b55 Migrate away from deprecated distutils python package where possible 2023-10-23 10:51:50 -05:00
LarryWoestman
6f41fe09fd Path: Split up TestRefactoredTestPost.py; fixed lint errors. 2023-10-22 14:08:17 -07:00
jffmichi
84f5fe9f7b Path: fix Profile open edges not respecting selected cutting direction 2023-10-20 02:40:51 +02:00
sliptonic
14e0c073c9 Merge pull request #11061 from Ondsel-Development/zcorrectFix
Add F-word to output on zcorrect dressup
2023-10-16 13:40:18 -05:00