David Kaufman
4ceb984f73
cleanup
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
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
9fac948ba7
fix precision computation
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
wmayer
14683acbdc
Path: fix -Wunused-parameter
...
Several methods declare to support keyword arguments but then don't use them
2023-09-30 22:32:01 +02:00
Chris Hennes
68adfdf98c
Path: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
David Kaufman
1183fc4727
Path: Rest machining feature for Pocket and Pocket3D
2023-07-21 09:03:26 -04:00
Uwe
75dc8f9410
[Path] A-F: remove unused includes
...
- also some sorting
2022-12-04 19:48:46 +01:00
luz paz
7a8a453746
Path: remove trailing whitespace
2022-11-18 00:01:25 +01:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
wmayer
343aadf02b
Path: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 12:44:38 +02:00
marioalexis
d298a7101c
Path: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
7b591da9f5
Path: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
1e5c5f4e7f
Path: [skip ci] fix memory leaks
2021-04-27 13:02:57 +02:00
wmayer
b84dcf9b27
Path: remove some more deprecated Py2 code
2021-04-26 11:11:35 +02:00
luz paz
b75cd3dd52
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
Gabriel Wicke
cc84287515
Path: Opt into automatic git newline normalization
...
Avoid spurious diffs from inadvertent newline changes by letting git
normalize newlines in the path module as well, just as a list of other
modules including Draft already do.
This effectively standardizes all checked-in code to Unix newlines, but
checkouts might use CRLF if that is the user preference.
2020-05-31 08:33:29 -07:00
Zheng, Lei
c120549275
Path: improve AreaPy exception handling
2019-06-11 13:24:00 +08:00
Zheng, Lei
a345669b38
Path.Area: fix default parameter initialization
2018-11-06 12:02:12 -03:00
wmayer
4a717a8a44
Make destructors of all generated Py class protected
...
This is to avoid to create an object on the stack and thus to clutter Python's reference counting mechanism
2018-09-19 18:22:22 +02:00
wmayer
68f6c82eb1
fix -Wcast-function-type
2018-08-19 13:11:08 +02:00
Unknown
c8c9b76f43
Misc. typos
2017-12-06 20:59:55 +01:00
luzpaz
e63387f283
Path: typo fix
...
[skip ci]
2017-07-26 23:12:01 +02:00
Zheng, Lei
561c48acc5
Path.Area: deep copy on makeSection output
2017-06-15 14:43:49 -03:00
Zheng, Lei
fe8d32854a
Path.Area: removed LogLevel from setDefaultParams
...
Use App.setLogLevel('Path.Area', <level>) instead.
2017-05-24 09:16:52 +08:00
looooo
226dd17e5f
py3: path: some fixes to make path py3-compileable
2017-05-06 17:11:52 +02:00
Zheng, Lei
2bda3a3207
Path.Area: return Py_None with ref counting
2017-04-23 19:15:19 -03:00
asiersarasua
ea3d86b735
Fix typos
2017-04-20 09:49:19 +02:00
Zheng, Lei
1d64d1e91c
Path.Area: wire sorting fix and improvement
...
Wire sorting no longer uses libarea. Performance improvement using
boost::geometry::rtree
2017-03-23 22:04:52 +01:00
Zheng, Lei
b0e9d4b213
Path.Area: fixed getShape with index
2017-03-23 22:04:52 +01:00
Zheng, Lei
102998208f
Path.Area: support negative stepdown
...
Negative stepdown means going from bottom up. Some machine may have
reversed Z axis.
2017-03-23 22:04:52 +01:00
Zheng, Lei
c1ab98098e
Path.Area: Changed FeatureArea WorkPlane behavior
...
FeatureArea will return the user defined workplane if there is one, or
else it returns auto selected plane by its internal Area object
2017-03-23 22:04:52 +01:00
Zheng, Lei
14c98d252e
Path.Area: added python static method setDefaultParams()
...
set/getDefaultParams controls the default parameters used when
creating Path.Area object. It also has extra parameter to control
Path.Area log level.
2017-02-01 12:02:01 +08:00
Zheng, Lei
e66f4c5d6f
Path.Area: added python abort() to abort lengthy operation
2017-02-01 02:45:13 +08:00
Zheng, Lei
f834206ba7
Path.Area: added segmentation and 3D wire support
2017-01-31 19:09:33 +08:00
Zheng, Lei
228a0dc905
Path.Area: fixed non-circular curve handling, etc.
...
* Fixed non-circular curve orientation handling
* Section changed to use Part::CrossSection, because it seems
BRepAlgoAPI_Section has trouble with non-circular curves (LastParameter
becomes huge which causes discretization to produce many many points)
* Exposed Area.makeSections() to section with variable heights
* Modified Area.setPlane() to accept non-planar shape
* Exposed Area.getPlane() to obtain current workplane
* Exposed Area.Shapes attribute to return the current holding children
shape.
2017-01-29 18:24:01 +08:00
Zheng, Lei
a3f46a40e9
Path: added Path.fromShapes and Path.sortWires
...
* Path.fromShapes can now convert any number of shapes to Path with
optimzied travel distances. It internally uses Path.sortWires to
minimize travel distances, and also sort wires by its Z height in case
of sectioned wires.
* The above python function is impelmented in Path::Area class.
* Path::FeatureShape is rewrote to take advantage of these two
functions.
* Add Path::FeatureAreaView to partially display a Path::FeatureArea's
sections.
2017-01-27 17:13:16 +08:00
Zheng, Lei
9afefdc05a
Path.Area: fixed error handling in Python constructor
2017-01-25 00:21:45 +08:00
Zheng, Lei
aec39ec6ff
Path.Area: added Sections python attribute
2017-01-24 14:37:52 +08:00
Zheng, Lei
736cd39851
Path.Area: clean up python binding error handling
2017-01-23 17:27:58 +08:00
Zheng, Lei
8fdb235d8f
Path.Area: various fixes for Path.Area python object
2017-01-21 18:21:46 +08:00
Zheng, Lei
c0ba9700aa
Path.Area: added support for solid
...
* Path.Area/FeatureArea can now section solid shapes.
* Added command to select workplane for FeatureArea
* Generalized ParamsHelper
2017-01-20 17:47:28 +08:00
Zheng, Lei
36423f24de
Path: added Path.Area and Path.FeatureArea
2017-01-19 23:08:19 +08:00