Commit Graph

58 Commits

Author SHA1 Message Date
Zheng, Lei
c8ffaf3321 Path.Area: fixed random wrong section output 2017-06-15 14:43:49 -03:00
Zheng, Lei
f3de4bb9a0 Path.Area: fixed projection tolerance problem 2017-06-12 11:26:39 +02:00
Zheng, Lei
c6e9127863 Path.Area: removed LogLevel from setDefaultParams
Use App.setLogLevel('Path.Area', <level>) instead.
2017-05-24 09:16:52 +08:00
Zheng, Lei
364302d32c Path.Area: fix side effect on projection 2017-05-24 09:16:52 +08:00
Zheng, Lei
de2c826f86 Path.Area: use FC tag based logging 2017-05-13 18:52:09 +02:00
Zheng, Lei
17b988890d Path.Area: fix projection code for OCE 2017-05-13 14:36:42 +02:00
Zheng, Lei
16bf2eb737 Path.Area: fix work plane direction 2017-05-13 14:36:42 +02:00
Zheng, Lei
6f3104c6e3 Path.Area: outline now supports solid and non-planar faces 2017-05-13 14:36:42 +02:00
Zheng, Lei
b05bcbb6cb Path.Area: force CW orientation on pocket mode offset 2017-05-13 14:36:42 +02:00
Zheng, Lei
ea3d5b411f Path.Area: add parameter 'Outline' to remove inner holes 2017-05-13 14:36:42 +02:00
Zheng, Lei
fca09c949d Path.Area: fix path orientation setting 2017-05-13 14:36:42 +02:00
Zheng, Lei
67f8d77c4a Path.Area: rename Clearance parameter to ResumeHeight 2017-05-13 14:36:42 +02:00
Zheng, Lei
50d436c5a7 Path.Area: fixed zigzag pocket mode 2017-05-13 14:36:42 +02:00
Zheng, Lei
17648c3c62 Path.Area: add abs_center parameter to Path.fromShapes
Set to true to enable absolute arc center mode (G90.1)
2017-04-25 11:51:54 +08:00
Zheng, Lei
cc70774ed2 Path.Area: added Line, Grid, Triangle pocket mode 2017-04-23 19:15:19 -03:00
Zheng, Lei
6aecc60e83 Path.Area: suppress holes when project
When doing projection, there doesn't seem to have a reliable way of
knowing which edges are for inner holes. So we just suppress holes
altogether, and make it as outline only projection.
2017-04-23 19:15:19 -03:00
Zheng, Lei
92e6edff90 Path.Area: make XY plane selection explicit 2017-04-23 19:15:19 -03:00
Zheng, Lei
87dc72e2ef Path.Area: support open path direction control 2017-04-23 19:15:19 -03:00
Zheng, Lei
9c3b8d2811 Path.Area: change Distance() to SquareDistance() 2017-04-23 19:15:19 -03:00
Zheng, Lei
6d275e1ed6 Path.Area: added outline projection support 2017-04-23 19:15:19 -03:00
Zheng, Lei
94c593f763 Path.Area: replaced sort_Edges with WireJoiner 2017-04-23 19:15:19 -03:00
Zheng, Lei
5613113315 Path.Area: fixed plane finding 2017-04-23 19:15:19 -03:00
Zheng, Lei
e06c34e81b Path.Area: added feedrate to Path.fromShapes
'feedrate' for normal move, and 'feedrate_v' for vertical only move if
not zero. Also added 'verbose' parameter to include complete cooridnate
and feedrate parameter in each motion GCode.
2017-04-23 19:15:19 -03:00
Zheng, Lei
0391e5c70d Path.Area: added orientation param to Path.fromShapes
The 'orientation' parameter allows to enforce loop direction
2017-04-23 19:15:19 -03:00
Zheng, Lei
7211791a2d Path.Area: use normal move for step down 2017-04-23 19:15:19 -03:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
Kunda
5aefa825b1 Typo fixes for doxygen and source comments
issue #0002914
2017-03-31 11:25:57 -03:00
Zheng, Lei
c56b4d6527 Path.Area: fixing boost windows build error
Indirectly caused by the use of boost::geometry on Windows boost 1.55.
See https://svn.boost.org/trac/boost/ticket/9332
2017-03-23 22:04:52 +01:00
Zheng, Lei
54454ce3d2 Path.Area: fixing boost::geometry compilation issue 2017-03-23 22:04:52 +01:00
Zheng, Lei
0bd03b9e8b 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
4f80c30c3c Path.Area: changed section transformation 2017-03-23 22:04:52 +01:00
Zheng, Lei
834f48e461 Path.Area: improved section tolerance
Previously, a small offset in the same direction of section is added to
the section height to avoid tagent plane cut. Now we'll retry by adding
offset in the oppsite direction if the first attemp fails.
2017-03-23 22:04:52 +01:00
Zheng, Lei
52ac02138d Path.Area: support arc plane selection 2017-03-23 22:04:52 +01:00
Zheng, Lei
a0f121410e Path.Area: improved section plane tolerance issue 2017-03-23 22:04:52 +01:00
Zheng, Lei
f94bc81987 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
d1978a075a Path.Area: fixed handling of shape with placement 2017-03-23 22:04:52 +01:00
Zheng, Lei
5dda63ac3e Path.Area: fixed missing brace 2017-03-23 22:04:52 +01:00
Zheng, Lei
73649495e6 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
f028bde0df Path.Area: improved code readablity 2017-03-23 22:04:52 +01:00
Kunda
a7414e5789 source typo fixes pt1 (only on py3 merged code)
issue 0002914
2017-02-27 11:32:47 +01:00
wmayer
81726f7db9 fix warnings: -Wmaybe-uninitialized 2017-02-04 15:16:47 +01:00
Zheng, Lei
b35e41771a 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
ce27104658 Path.Area: added python abort() to abort lengthy operation 2017-02-01 02:45:13 +08:00
Zheng, Lei
84a5162698 Part.Area: fixed sortWires3D 2017-02-01 02:02:07 +08:00
Zheng, Lei
00cb8095a7 Path.Area: added segmentation and 3D wire support 2017-01-31 19:09:33 +08:00
Zheng, Lei
9c61139146 Path.Area: fixed workplane orientation issue 2017-01-30 16:29:36 +08:00
Zheng, Lei
ecc426aa2a Path.Area: fixed compiler warning 2017-01-29 18:59:52 +00:00
Zheng, Lei
43432ea772 Path.Area: fixed auto workplane correction 2017-01-29 20:25:13 +08:00
Zheng, Lei
9150ee24d1 Path.Area: fixed auto workplane finding logic 2017-01-29 20:17:18 +08:00
Zheng, Lei
b19fe515f5 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