Commit Graph

1798 Commits

Author SHA1 Message Date
Daniel Wood
ccadfd1673 Enable the selection of circles, arcs and faces to set the job origin 2020-05-23 16:30:55 +01:00
Russell Johnson
00c1038ffd Path: Expose property creation process to user access; Code cleanup
Path: EOL syncs with source

PathSurface and PathWaterline modules have incorrect, Windows, line endings and need to be converted to Unix style.
2020-05-21 23:24:17 -05:00
Russell Johnson
3a04e06cfa Path: Update for inter-panel visibility updates
Also, clear`singleStep` and `value` properties for `StepOver` spinBox in UI panel.
2020-05-21 23:24:17 -05:00
Russell Johnson
e8c9483201 Path: Add ProfileEdges and AvoidLastX_Faces inputs to GUI
Path: Set min & max values for `StepOver`
2020-05-21 23:24:17 -05:00
Russell Johnson
691c3900c1 Path: LGTM cleanup and PEP8 2020-05-21 23:24:17 -05:00
Russell Johnson
374df7838a Path: Relocate common 3D Surface and Waterline methods to support module 2020-05-21 23:24:17 -05:00
Russell Johnson
64d1a21b24 Path: Use lazyloader for importing some modules 2020-05-21 23:24:17 -05:00
Russell Johnson
c9782a3b69 Path: Improvements to user messages
Remove some messages.
Implement FreeCAD.Console.Print___() in place of PathLog.___().
Path: fixes
2020-05-21 23:24:17 -05:00
Russell Johnson
52e0b04cbf Path: new FindUnifiedRegions class
Improve `HandleMultipleFeatures` processing when set to `Collectively` by implementing new class to refine the processing area, attempting to remove common edges between connected face regions.
2020-05-21 23:24:17 -05:00
Russell Johnson
edda808c3c Path: Improve open-edges, messaging, Final Depth initial guess and more
Open-edges will now work in simple cases where user selects bottom edge, without requiring adjustment to Final Depth.  This will speed up procedural usage of the operation for open edges by re-enabling the `select-edge_create_OK` work flow.
The guessing procedure for Final Depth based on Base Geometry selected is fixed in `UpdateDepths()` method.
Improvements to user messages.
Remove unnecessary code and comments.
Improve debugging feedback.
2020-05-21 22:44:50 -05:00
sliptonic
cb6c6705ac Merge pull request #3477 from gwicke/pathops_ui_fix
[path] Small fix in PathOpGui
2020-05-18 09:44:21 -05:00
Russell Johnson
4a899d2934 Extend fix to updateVisibility() call
Call originates in PathOpGui module.
2020-05-17 21:20:04 -05:00
Gabriel Wicke
a8398389bb [path] Small fix in PathOpGui
Fix a bad call to page.updateVisibility
2020-05-17 17:11:14 -07:00
Gabriel Wicke
979a32800d Path: LinuxCNC postprocessor scalability
- Do not show editor when gcode size exceeds 100kb. The poor editor
  widget cannot handle that much output, and will hang FreeCAD.
- Avoid quadratic behavior in output accumulator. While Python greater
  than 2.7 avoids quadratic behavior in string accumulators, this optimization
  is defeated when the string is forced to be materialized to contiguous
  memory, as was done by the `.trim()`. As a result, we got quadratic complexity,
  ensuring that large jobs would never successfully be post-processed.
2020-05-17 13:31:44 -07:00
Russell Johnson
494bb6cba6 Path: Fix for .extrude() vector roughly zero 2020-05-13 21:55:06 -05:00
Russell Johnson
75cac30649 Path: Add if edge: test clause
`If edge:` handles 'NoneType' edges returned from `PathGeom.edgeForCmd()`.
Includes some PEP8 formatting.
2020-05-13 21:55:06 -05:00
Russell Johnson
3593de8a9f Path: Fix related to linkStockAndModel checkbox.
The StockEdit class is reused by BoundaryDressup, and this checkbox does not exist in its UI panel.
2020-05-13 16:34:06 -05:00
sliptonic
e7617262d2 Merge pull request #3443 from Russ4262/UnifiedProfile
Path:  Combine Contour, Profile Faces and Profile Edges into unified Profile operation
2020-05-12 12:06:36 -05:00
luz.paz
d0d2096fc8 Fix typos [skip-ci]
Found via codespell v1.17.0.dev0  
``` 
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,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,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
```
2020-05-12 10:04:29 +02:00
Russell Johnson
e835bf45a7 Path: Update selection gates pertaining to unified Profile operation 2020-05-10 23:07:53 -05:00
Russell Johnson
4396789b04 Path: Improve geometry selection and Cancel operation error messages 2020-05-10 23:07:53 -05:00
Russell Johnson
ad03af3e43 Path: PEP8 and LGTM cleanup; Remove extra addProperty() statement
Removed 'EnableRotation' property addition because it is done in PathAreaOp module upon creation and document restore.
2020-05-10 23:07:53 -05:00
Russell Johnson
e5b7a66d92 Path: Additional fixes and improvements to unified Profile operation 2020-05-10 23:07:53 -05:00
Russell Johnson
cf23bc6892 Path: Implement backwards compatibility
Source modules are replaced with pass-through code to send pre-existing profile-based operations to new unified `Profile` operation.
Path: Set line endings to Unix style
2020-05-10 18:19:42 -05:00
Russell Johnson
900059bc99 Path: Integrate unified Profile operation into PathWB
Remove Contour, Profile Faces, and Profile Edges icons from PathWB GUI.  Files are still fully in tact and available.
2020-05-10 18:19:42 -05:00
Russell Johnson
27c4db9a34 Path: Consolidate Contour, ProfileFaces, and ProfileEdges
No geometry selection defaults to Contour operation.
Path: Add new unified `Profile` operation modules
2020-05-10 18:19:42 -05:00
Russell Johnson
52fe25528a Path: Update 'Operation' panel visibility when 'Base Geometry' changes 2020-05-10 18:19:42 -05:00
Russell Johnson
16cf71bb7d Path: Add method, 'updatePanelVisibility()'
New method allows one panel to update visibility on another panel.
2020-05-10 18:19:42 -05:00
Russell Johnson
78735ddc06 Path: Add reference to parent class within child class 2020-05-10 18:19:42 -05:00
Russell Johnson
c5e577be89 Path: Initiate unification of ProfileFaces and ProfileEdges operations
ProfileFaces now accepts and processes faces and edges.
Full functionality is maintained (so far as tested) with respect to original operations.
2020-05-10 18:19:42 -05:00
Daniel Wood
3fc7fd727b Translate user messages 2020-05-09 10:39:48 +01:00
Daniel Wood
d945e3c9fb Use PathLog for user notices 2020-05-09 10:35:55 +01:00
Daniel Wood
3a65a764e3 PathOp PEP8 Formatting Fixes 2020-05-09 09:02:16 +01:00
Daniel Wood
73f3585e57 PathJob PEP8 Formatting Fixes 2020-05-09 08:51:36 +01:00
Daniel Wood
589bd709cb Clean up unused code and comments 2020-05-09 08:41:48 +01:00
Daniel Wood
33ad1a3f5f reword feedrate error when no tool controller is selected 2020-05-09 08:34:55 +01:00
Daniel Wood
14905a17df Change feedrate error to warning. 2020-05-09 08:34:10 +01:00
Daniel Wood
b44e21cc6d remove job level warning for cycle time error 2020-05-09 08:22:26 +01:00
Daniel Wood
09465b64c8 Reword property description to reflect job rather than op 2020-05-09 08:12:17 +01:00
sliptonic
8d03d32504 Merge pull request #3444 from dubstar-04/fixes/simulation-active-ops
[Path] - fixes/simulation
2020-05-08 21:50:00 -05:00
Zibibbo84
ea2b3f9f01 Adding HEIDENHAIN CNC Mill post-processor for PathScript 2020-05-08 21:50:23 +02:00
Daniel Wood
3c53e94100 PEP8 formatting fixes 2020-05-08 07:41:37 +01:00
Daniel Wood
f9624a9bf2 clean up comments and unused code 2020-05-08 07:30:53 +01:00
Daniel Wood
036e26d7da Simulation - only load active operations 2020-05-08 07:16:57 +01:00
sliptonic
348582985f Merge pull request #3433 from dubstar-04/fixes/toolbit-simulation
[Path] - Fixes/toolbit simulation
2020-05-06 13:56:45 -05:00
Daniel Wood
9bdba32f54 check the toolbit shape is valid 2020-05-04 20:53:36 +01:00
Daniel Wood
f3789ebfad Handle Legacy and Toolbits in simulation fixes #4326
pass the tool or toolbit shape into the simulation
2020-05-04 20:52:40 +01:00
Russell Johnson
8b72ea646a Path: Fix extrude() fails with zero vector
Add error message and return empty path for ProfileEdges open-edge case.
2020-05-04 00:28:40 -05:00
sliptonic
22f4f2ba2f Path: remove fstrings to maintain xenial compatibility 2020-05-02 13:42:22 -05:00
markus
d00d402efd Fixed ToolBit template generation and adapted TC unit test to deal with Tool and ToolBit. 2020-04-29 14:27:51 -07:00