Commit Graph

179 Commits

Author SHA1 Message Date
wmayer
5df6090150 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
527ce5a0ff CMP0050: make Path module aware of cmake policy 2018-08-20 19:33:12 +02:00
wmayer
5012668a40 move cmake policy CMP0050 to new style 2018-08-19 13:59:42 +02:00
wmayer
1cd894bacc fix -Wcast-function-type 2018-08-19 13:11:08 +02:00
Zheng, Lei
1a6fd6b048 Path.Area: add PocketLastStepover/LastStepover parameter 2018-08-08 13:54:58 +02:00
luz.paz
424cd49398 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
luz.paz
9bd704d320 Misc. code comment typo fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip="*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./.git,./src/zipios++"`
2018-07-27 10:39:43 -03:00
Markus Lampert
c0cfbc2911 Consolidated path tool editor and added customized support for endmill, drill and v-bit. 2018-07-06 22:08:46 -07:00
luz.paz
43244aa762 More misc. typos 2018-05-19 12:17:52 -04:00
luz.paz
69b3b0b7f2 Misc. typos 2018-05-19 12:06:34 -04:00
Markus Lampert
fe357336e0 Maintain center of rotation for compound objects. 2018-05-11 10:18:56 -03:00
Markus Lampert
fd0cdc02a1 Fixed inch scaling 2018-05-11 10:18:56 -03:00
Markus Lampert
cbd5f297f3 Added center property to Path to deal with rendering rotational axis. 2018-05-11 10:18:56 -03:00
Markus Lampert
1f030de9ac Added support for G20/G21 to g-code import. 2018-05-11 10:18:56 -03:00
luz.paz
2d5cc6a1ed Path: misc. source comment typos 2018-04-25 11:03:10 +02:00
wmayer
99ec96acd5 prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
wmayer
adb13f7c59 Fix invalid Python object error
Example below led to a crash:
import Path
v = Path.Tool(name='v', diameter=5.6)
tt = Path.Tooltable()
tt.addTools(v)
attrs = tt.templateAttrs()
uu = Path.Tooltable(tt.templateAttrs())
del attrs
2018-03-30 18:39:55 +02:00
Zheng, Lei
42294442f5 Path.Area: work around for OCCT discretization bug
See code comments for more details.
2018-03-21 12:14:58 +01:00
Zheng, Lei
34ec7c507b Path.Area: fix linux build 2018-03-03 11:19:36 -03:00
Zheng, Lei
ff21f64385 Path.Area: fix self intersect wire issue
Self intersected wire may cause a loop, and BRepBuilderAPI_MakeWire may
mistakenly consider the wire to be closed. And this makes
BrepTools_WireExplorer unhappy and cause it to skip edges.  We now use
ShapeAnalysis_FreeBounds to connect edges to wires.
2018-03-03 11:19:36 -03:00
Zheng, Lei
9c72d78b7b Path.Area: arc fix to work around OCCT bug 2018-02-24 10:44:55 -03:00
wmayer
e510c7540c Fix invalid Python object error
Example below led to a crash:
import Path
t = Path.Tool(name='t', diameter=1.2)
tt = Path.Tooltable()
tt.setTool(3, t)
attrs = tt.templateAttrs()
del attrs
2018-02-11 16:04:17 +01:00
wmayer
91ce7f2749 fix warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 2018-02-10 12:18:33 +01:00
pekkaroi
d2e331146b Path: Consolidate available tool types and material types to one place. Fixes issue #3335 2018-02-01 22:16:46 +01:00
Zheng, Lei
fc7c34ca41 Path.Area: make wire explode respect arc accurarcy 2018-01-26 18:53:09 +01:00
luz.paz
a83dd308bd Path: libarea typos
Source and comment typos
2018-01-24 13:08:57 -05:00
Zheng, Lei
004f82b3e7 Path.Area: respect zero start point when generating path 2018-01-23 19:49:58 +01:00
Yorik van Havre
f60c5203fc Path: Indicate fromShape as deprecated - issue #2786 2018-01-12 17:06:30 -02:00
luz.paz
504f6583dd Typos
The stepcode typos aren't to be found upstream. Recomend we merge nonetheless.
2018-01-08 21:07:00 +01:00
Zheng, Lei
4a7cb47848 Path.Area: fix wire join function
This affects open wire operations
2017-12-23 14:36:20 +01:00
Unknown
f92d63008e PATH: typo fixes 2017-12-23 14:27:25 +01:00
Zheng, Lei
3eba89df13 Path.Area: improve code readability
Fix Coverity CID 169508
2017-12-13 12:40:13 +01:00
Unknown
f5146508bb Misc. typos 2017-12-06 20:59:55 +01:00
Mateusz Skowroński
dee8769d0e Fix some GCC 7 warnings:
* dynamic exception specifications are deprecated [-Wdeprecated]
* this statement may fall through [-Wimplicit-fallthrough=]
2017-12-05 17:22:00 +01:00
Zheng, Lei
dbf27dd575 libarea: disable max arc points parameter
It is soly used to limit excessive arc accuracy used by ClipperLib, and
seems to have some negative effect. We disabled it here, and simply rely
on user to choose a sensible arc 'accuracy' parameter.
2017-11-30 11:59:10 +08:00
Zheng, Lei
7d0e0289bf Path.Area: honour 'from_center' in offset pocket mode 2017-11-28 12:40:19 -02:00
wmayer
b03f3e4554 fixes #0003260: Double Quote in tool name is not escaped in FCStd file 2017-11-26 18:39:13 +01:00
Zheng, Lei
1e44192766 Path.Area: handle empty wires during sorting 2017-11-19 17:18:28 +01:00
Zheng, Lei
1b266448b1 Path.Area: replace push_back with emplace_back
For minor performance improvement
2017-11-19 17:18:28 +01:00
Zheng, Lei
bdf4ee7326 Path.Area: improve coplanar checking performance 2017-11-16 15:20:17 +01:00
Zheng, Lei
c426249253 Path.Area: improve projection algorithm efficiency 2017-11-16 15:20:01 +01:00
Markus Lampert
a278b7c457 Making templateAttrs a const method - so exporting doesn't diry the tool 2017-10-22 11:24:58 -07:00
wmayer
96d01c9200 fix several kind of warnings:
+ fix -Wparentheses/-Wlogical-op-parentheses
+ fix -Wunused-variable
+ disable -Wundefined-var-template due to many false-positives (clang)
+ fix -Winconsistent-missing-override
+ fix -Wmaybe-uninitialized
2017-10-15 19:12:07 +02:00
Zheng, Lei
598fff8b40 Path.Area: add greedy sort mode 2017-10-09 19:57:08 +02:00
Itai Nahshon
e2e0735677 Some fixes related to milling heights and depths.
Fix for large "Step Down".
Correctly handling a part that was moved down the Z axis.
Handle "Finish Depth".
2017-10-08 22:52:10 +02:00
Zheng, Lei
732eab609b Path.Area: add line/grid/triangle tool radius compenstation 2017-10-04 17:47:04 +02:00
wmayer
846195327a harmonize show() function of Part, Mesh, Fem, Path and Points modules 2017-09-29 00:35:48 +02:00
Markus Lampert
f5a2442662 Added version support to all JSON exports. 2017-09-21 10:29:35 +02:00
Markus Lampert
4110fdbb5b Added template attrs and setFrom support to Tooltable. 2017-09-21 10:29:35 +02:00
Markus Lampert
1d1636d1cf Creation of Tool from a templateAttrs dictionary. 2017-09-21 10:29:35 +02:00