Commit Graph

203 Commits

Author SHA1 Message Date
Daniel Wood
63d3181f2d Remove unused function definition 2019-08-27 07:15:23 +01:00
Dubstar_04
f9a591b06d Allow multiple Tool Tables
Allow path to hold multiple tool tables
2019-08-26 07:59:09 +01:00
Dubstar_04
3876a5989d Tidy up includes and whitespace 2019-08-26 07:59:09 +01:00
Dubstar_04
8a8d5f0a3f Seperate ToolTable and Tool implementations
Seperate the tooltable and tool implementations.
2019-08-26 07:59:09 +01:00
Zheng, Lei
cfc6c0ee89 Path changes
* Relaxed valid base shape requirement, as long as it can return a
  shape using part.getShape()

* Improve ViewProviderPath performance by sharing the same selection
  observer

* Relocate libarea binary installation
2019-08-17 15:15:48 +02:00
Yorik van Havre
a6334a4bfd Cleanup in doxygen stuff 2019-07-15 23:20:52 -03:00
wmayer
cb53719821 Fix a couple of clang compiler warnings:
-Wunused-variable
-Winconsistent-missing-override
-Wdelete-non-virtual-dtor
-Wunused-private-field
-Wformat
2019-06-23 15:19:12 +02:00
Zheng, Lei
6148d0275e Path: improve AreaPy exception handling 2019-06-11 13:24:00 +08:00
Zheng, Lei
56f42a0a2f Path: fix Area tolerance problem 2019-06-11 13:23:33 +08:00
wmayer
320162a323 revert e7230366 to fix build failure 2019-05-04 12:36:00 +02:00
Abdullah Tahiri
635ce5cd81 Path: Add libarea to PCH 2019-05-03 23:15:09 +02:00
Abdullah Tahiri
c03424c70e PCH: Path App 2019-05-03 23:15:09 +02:00
luz.paz
b7b433e461 Misc. typo and whitespace fixes
Found via `codespell`
2019-04-30 10:15:59 -03:00
luz.paz
06d583b425 Misc typos and whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*`
2019-03-31 11:42:36 +02:00
wmayer
21c1301df1 PVS: V794 The assignment operator should be protected from the case of 'this == ...' 2019-03-13 12:38:46 +01:00
wmayer
f87fe7e12b fix copy-constructor of Path::Area class 2019-03-03 15:51:07 +01:00
sliptonic
21e1883602 fixes #3665
Applying patch from jurij
2019-01-22 20:26:59 +01:00
luz.paz
c5641feba3 Path: Misc. comment typo and whitespace fixes 2019-01-22 20:26:58 +01:00
wmayer
fc27c9986b handle C++ exception in Python interface 2019-01-03 12:19:37 +01:00
wmayer
cda4c96fa8 Replace Base::Exception with appropriate subclass 2018-11-14 17:47:43 +01:00
Zheng, Lei
b6c0cf8ce5 Path.Area: minor optimization 2018-11-06 12:02:12 -03:00
Zheng, Lei
24aa185b3e Path.Area: fix default parameter initialization 2018-11-06 12:02:12 -03:00
luz.paz
7e221ab15d Misc. typos and whitespace fixes
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ../fc-word-whitelist.txt` and `grep`
2018-10-25 11:06:28 -03:00
Zheng, Lei
1b4ff49d3a Path.Area: fix offset pocket mode 2018-09-26 17:02:36 +02:00
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