Wykres commitów

21 Commity (e3d86e16d5d78957c83754b129b3ecbe4cb75469)

Autor SHA1 Wiadomość Data
SpectralVectors 7325fb1164
Import and init cleanup
All imports made explicit
All redundant and unused imports removed
All circular import errors resolved

Imports alphabetized and sorted by source, in the following order: 
- Python Standard Library
- pip Packages
- Blender Libraries
- cam Modules (from .)

init split into multiple files:
New:
- cam_operation
- chain
- engine
- machine_settings
- preset_managers

Existing:
- pack
- slice
- ui
- utils

Rewrote get_panels to remove legacy panels and updated to follow Blender's guide: https://docs.blender.org/api/current/bpy.types.RenderEngine.html
2024-04-02 11:07:14 -04:00
SpectralVectors 3a546c2758
Import fix update - bpy.utils, autoformat fix
While rearranging and cleaning up the utils imports in the initial 'Import fix' commit I deleted `utils.` from `bpy.utils.script_paths()` in the ops.py file.
This has been fixed, and I took the opportunity to reverse the autoformat issue (changed line length from 100 to 89 between commits), and restore all the code to its previous state.
I made one exception:
- comments that came at the end of the line that were moved to the line above

All functional code has been restored to its previous format.
2024-03-23 11:14:38 -04:00
SpectralVectors c0febee968
Import Fix, funcs moved, refs updated, ocl rename
Changed all imports from absolute to relative: 
- instead of importing the module 'cam' now imports come from '.' the relative parent folder
- importing the module into itself resulted in a circular import error, relative imports avoid this

Moved Functions, refs updated:
- some functions  (and 2 variables) only existed on the base level of the module, in the init file, and could not otherwise be accessed, they were moved into the utils file with other similar functions
- these were primarily called as update functions for Properties scattered across the addon, these have all been updated to reflect the new location and import convention

opencamlib_version rename:
- in 2 files there was a local variable named 'opencamlib_version' that was defined by a function called 'opencamlib_version' that returned the opencamlib_version
- this seemed to confuse Blender into thinking that it was being called before it was defined, and simply changing the variable name to 'ocl_version' while keeping the function name as 'opencamlib_version' fixed the issue
2024-03-22 17:52:18 -04:00
SpectralVectors 3a6b217abc
Autopep8 format, author & version update
Ran Autopep8 on all files in repo, they are otherwise untouched with one exception:
In the __init__ file, I had to manually rearrange the import statements to avoid triggering a circular import error.
This will be addressed in a future commit.

Updated authors in bl_info to: 'Vilem Novak & Contributors' - this can be changed as required
Updated version to: 1.0.5
2024-03-21 08:29:30 -04:00
palain c66b2024a8 some pep 8 formatting 2022-01-18 11:55:05 -04:00
Alain Pelletier 9786a0b094
modified pack.py
added 2 variables for pack to make it more usable.  
Rotate angle between 11.25 to 180 deg. (was 1 degree)
tolerance (distance between evaluations) used to be 1mm now varable between 1 and 20mm
2021-04-06 10:15:40 -03:00
TurBoss f07848e1ff Fix #126 2020-10-12 18:45:08 +02:00
Adam Goldsmith 0094eae66e Convert line endings to LF and strip trailing whitespace in .py files 2019-11-15 13:13:09 -05:00
TurBoss 7f027919ef fix pack curves on sheet 2019-03-03 21:40:52 +01:00
TurBoss 9b24469cfb 2.80_BETA 2019-01-25 23:48:11 +01:00
Jeff Doyle (nfz) cba5c83b99 Solution for using prepared geometry when packing curves
Left the old code commented until this gets further testing.  Using
prepared geometry is about 30% faster on my machine.
2016-04-04 01:53:59 -03:00
Jeff Doyle (nfz) e1f2d84f48 BugFix: - Pack curves on sheet was crashing
Prepared geometery not setup properly so reverting to using basic
geometry object collision for now.

allpoly would have to be setup as a prepared geometry and not a Polygon
at the begining before entering the collision check loop.  disjoint
method is for Geometry objects and not for prepared geometry.
2016-04-04 01:14:45 -03:00
Jeff Doyle (nfz) 0ea9ae2480 add GPL 2 license block
- fixes #36 issue - license unclear
2016-03-24 16:20:51 -03:00
vilemnovak d662996752 Big Polygon library massacre + memory limit for non exact mode
the memory limit is a new feature, preventing crashes when ppl. e.g.
compute path on the default size obects, and also any other cases with
non-exact mode.

otherwise, big, happy removal of polygon library residues. This library
is NO logner a dependency of blender CAM. Shapely library works far
better in most cases. Sometimes it's slower but this can be compensated
with optimizations almost always quite easily.
2016-01-02 17:37:25 +01:00
vilemnovak 901760a9ab optimized pack
optimized pack algo, works same speed as with polygon or a bit faster.
Did this mainly to learn how to optimize shapely code a bit to get
better faster results...
2015-12-24 12:55:46 +01:00
vilemnovak 7a95086a2b pocketing changes and pack redone for shapely
pocket rest milling is now a bit better, still not good.
2015-12-21 20:07:04 +01:00
vilemnovak 3e3d40c16c hole sorting
hole sorting in cutout operations and generally sorting of "lower
levels" got now improved...
2015-05-09 23:19:46 +02:00
vilda.novak@gmail.com 06dda5a50b cumulative commit:
fixed bug in nc, when exporting more than 1 axis.
tried to generalize 4 axis path generation code
re-allowed more panels hooked to specific renderers in the interface
Changed the way rotations are stored in the path mesh object - now they are stored as shape keys
2014-12-08 00:14:13 +00:00
vilda.novak@gmail.com 1b416ab416 cummulative commit of last months work:
-separate slicing code, it has now separate file slice.py and a panel, similar to pack curves.
-very first experiments towards medial axis algorithm, will probably replace this with openvoronoi if I suceed in compiling it for windows.
- fix error message with use of curves that are not on a visible layer, curves get moved to visible layer temporarily.
-  comments for pack.py
- improve testing script
- splitting of files now lifts the cutter on file end, and writes spindle and feedrate info in the following files
-voronoi diagram library taken from the VoronoiDelaunay add-on from blender. I tested about 4 versions of this library and this one is most stable. to be hopefully replaced with OpenVoronoi.
2014-09-07 09:30:03 +00:00
vilda.novak@gmail.com d2b1721d06 -bug in update function again.
-removed some debugging comments
-fixed a bug with alignment - all cutouts and silhouettes were offest by amout of 2 pixels! This was introduced with another fix
2014-01-18 08:29:56 +00:00
vilda.novak@gmail.com b357861129 -forgot to commit pack module. 2014-01-16 11:51:50 +00:00