Commit Graph

125 Commits

Author SHA1 Message Date
Priit Laes
961e4d75b1 build: boost: Clean up branches requiring boost-1.55 2020-10-13 12:56:28 +02:00
Eric Trombly
cf9fec5ffd don't generate gcode if op isn't valid. Don't plunge to start height if safe and clearance height are the same. 2020-07-15 19:35:18 -05:00
sliptonic
25445b0cb5 Merge pull request #3584 from gwicke/area_tweaks
Path: Area fixes and robustness tweaks
2020-06-19 12:30:32 -05:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
Gabriel Wicke
2fb60a40b2 Path: Area fixes and robustness tweaks
- Bug fix: Fix crasher in discretize() when the edge to discretize is
  not a 3d curve, and a nullptr is returned when trying to access the
  underlying curve. This change essentially removes an older work-around
  for QuasiUniformDeflection, which is no longer needed since we are
  using UniformDeflection. This change is tested with the original test
  case from https://forum.freecadweb.org/viewtopic.php?f=15&t=42628, as
  well as my own crasher test case.
- WireJoiner robustness: Support passing in a tolerance into
  WireJoiner::findCloseWires(), and initialize this to
  AreaParameter.Tolerance. In testing, this significantly improves the
  ability to join projected areas in complex 3d surface path models.
- Area::project() robustness: Pass the work plane down into the
  projection area instance, so that it does not need to be derived from
  shapes. This avoids crashing out on "shapes are not coplanar" from
  getPlane, when lenient processing was requested via the Coplanar
  parameter.
2020-06-07 20:09:55 -07:00
Eric Trombly
3c046fab71 change intra-operation travels back to clearance height, then rapid to safe height 2020-04-27 20:31:36 -05:00
Eric Trombly
be01153ea7 remove retraction to clearance height for intra-operation travels 2020-04-24 22:32:27 -05:00
Eric Trombly
745945d2cb fix detect of 0,0 start point 2020-04-24 20:05:39 -05:00
Eric Trombly
c10eed7eb0 pass endVectorin PathAreaOp and clean up gcode generation 2020-04-24 20:05:39 -05:00
Zheng, Lei
1becccb152 Path: fix path sort 2020-04-13 14:34:18 +08:00
Zheng, Lei
9c86629a5f Path: handle open edges when sorting path 2020-04-06 09:58:01 +08:00
Zheng, Lei
06f69fd039 Path: add some diagnostic trace in Area 2020-01-24 07:58:57 +08:00
Zheng, Lei
131db0d972 Path: change wire discretization method used in Area 2020-01-24 07:58:41 +08:00
howetuft
f1e3b7a166 Fix -Wredundant-move warnings, 2nd try
std::move is redundant when it is used to return a local object from a function (eg return std::move(local)): indeed, returning a local object from a function implicitly moves it. Moreover using std::move this way
See https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rf-return-move-local
However, in order to avoid -Wreturn-std-move as well, a Base object is move-constructed
from Derived when required.
2019-11-18 13:44:40 +01:00
wmayer
1e9da9b1ae [skip ci] suppress -Wgnu-zero-variadic-macro-arguments 2019-11-17 19:19:02 +01:00
luz.paz
30a717beac Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-21 16:02:23 -03:00
luz.paz
fb32601746 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-03 07:57:13 +02:00
wmayer
e48c52c480 force strict ISO C++ (-Wpedantic)
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00
wmayer
d05ae18340 fix -Wreturn-std-move 2019-09-07 15:19:28 +02: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
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
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
Zheng, Lei
b6c0cf8ce5 Path.Area: minor optimization 2018-11-06 12:02:12 -03:00
Zheng, Lei
1b4ff49d3a Path.Area: fix offset pocket mode 2018-09-26 17:02:36 +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
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
luz.paz
2d5cc6a1ed Path: misc. source comment typos 2018-04-25 11:03:10 +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
91ce7f2749 fix warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 2018-02-10 12:18:33 +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
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
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
7d0e0289bf Path.Area: honour 'from_center' in offset pocket mode 2017-11-28 12:40:19 -02:00
Zheng, Lei
1e44192766 Path.Area: handle empty wires during sorting 2017-11-19 17:18:28 +01:00