Wykres commitów

92 Commity (64b13b1b838105108b26746476e2052663dedf4a)

Autor SHA1 Wiadomość Data
SpectralVectors 2cc75b792f
Update image_utils.py 2024-09-04 23:12:22 -04:00
SpectralVectors a10817f234
Update image_utils.py 2024-09-04 22:15:06 -04:00
palain 4db7bbc9f5 fixed import errors for blender 4.2. but may cause problems. still all work on blender 4.1.1 2024-07-26 13:11:51 -03:00
SpectralVectors fb3005c8c5
GPLv2 - GPLv3, format header comments
Per discussion in Matrix Dev channel, GPLv2 license has been updated to GPLv3, and is now included in the base level of the addon, to ensure everyone will receive a copy, regardless of how they download or install.

Formatted header comments for consistency.
Now every file follows this format:

"""BlenderCAM 'filename.py' © 20xx Author Name (if available)

Brief summary of what is in the file (functions, classes) and what they do.
Original developer comments. (if available)
"""
2024-04-15 10:02:58 -04:00
SpectralVectors a56bd33357
Title Case, Mesh Bridges Fix, README Update
Enforced title case and naming consistency across names, labels, print and progress strings.

Fixed Bridge Generation for Mesh-based objects, though path generation does not account for bridges unless they are made into meshes and joined with the main object - will need to be patched separately.

Updated the README to fix an inconsistency with the pipes in the Files Organization diagram, and to change the comment in 'documentation' to reflect the naming used elsewhere - 'How to Use (Wiki)'
2024-04-11 15:06:21 -04:00
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
Joe Marshall 69e12c8c9b fixes to z buffer getting 2024-02-01 12:05:28 +00:00
Joe Marshall b08e7e2348 performance updates 2024-01-31 15:00:20 +00:00
Joe Marshall 631e667c99 optimisation and tests for waterline 2024-01-29 12:33:42 +00:00
Joe Marshall 55041fa263 waterline working 2024-01-28 08:10:02 +00:00
Joe Marshall 9c6723d272 numba improvements 2024-01-26 23:11:20 +00:00
Joe Marshall 0db514277f use cycles on ci 2024-01-26 22:19:33 +00:00
Joe Marshall 898d6a5bb3 use cycles for depth render on CI 2024-01-26 21:57:32 +00:00
Joe Marshall 3e260c626c chunk to numpy 2024-01-25 11:06:14 +00:00
Joe Marshall 2b56fe70e6 fixed tests for progress changes 2024-01-11 10:11:08 +00:00
Alain Pelletier 7c6f4ea254
Merge pull request #127 from joemarshall/np.full
use np.full instead of creating array and resizing
2024-01-09 12:15:39 -04:00
abosafia fd7ab2b10e Waterline area fix 2024-01-07 11:30:42 +02:00
Joe Marshall bf760e8e60 use np.full 2024-01-06 08:35:18 +00:00
Alain Pelletier 71d06d2c51
Merge pull request #126 from joemarshall/waterline_fix2
waterline bugfixes
2024-01-05 12:04:05 -04:00
Joe Marshall 374d8122df waterline fixes:
1) Make waterline work from z-start other than zero
2) Make waterline re-render depth cache if objects are resized / moved etc.
2024-01-05 15:59:56 +00:00
Joe Marshall 2058d61aec fix offsetArea for blender4 2024-01-04 16:47:26 +00:00
Joe Marshall 01259026af blender 4 fixes 2024-01-04 07:32:55 +00:00
Joe Marshall fb99710cab enable z pass on rendering depth images 2023-12-31 09:31:17 +00:00
migo101 83e977a867 Clean up movement Panel 2023-06-12 11:04:32 +02:00
migo101 ff4a39666e Merged diff 2023-04-29 19:06:56 +02:00
migo101 f423a5ce0f Moved all optimisation properties to CAM_OPTIMISATION_Properties 2023-04-29 18:53:51 +02:00
abosafia 0270f2195e remove eye dropper 2023-04-28 13:50:42 +03:00
abosafia ac653a84c3 Edropper for selecting objects source 2023-04-24 09:44:16 +02:00
palain 383ea1555e waterline removed obsolete tile_x tile_y parameters 2022-04-07 10:54:50 -03:00
palain 1048e52778 some pep 8 formatting and obsolete code removal 2022-01-18 12:37:38 -04:00
Alain Pelletier 92aacddc34
correct dependency for getcutterarray
getcutterarray was moved to simulation.py
2021-04-23 13:26:12 -03:00
Alain Pelletier 70201bf738
split simulation code from image utils
simulation code was not all in one place.
2021-04-17 16:31:59 -03:00
Alain Pelletier 5c459b68bd
simulation with custom cutter
fixed raycast
2021-04-15 15:59:32 -03:00
TurBoss 99fa7f0442 fix waterline by @palain 2020-11-16 22:14:42 +01:00
TurBoss ea2c4fac33 Merge remote-tracking branch 'vilemduha/2.80_BETA' 2020-10-14 03:06:27 +02:00
TurBoss f07848e1ff Fix #126 2020-10-12 18:45:08 +02:00
kevancress e20c24baf5 Fix settings in renderSampleImage to work with Blender 2.8+
Prevents an error being thrown when generating paths with OpenCamLib
2020-10-02 10:43:50 -04:00
ksuprynowicz 10ecfeb239 Added collection as operation source, fixed drill operation 2020-01-09 22:53:14 +01: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 832093eeb1 view_align False deprecated new align" WORLD" 2019-06-18 22:05:43 +02:00
TurBoss 50584f3eab fix simulation 2019-01-27 22:38:34 +01:00
TurBoss 9b24469cfb 2.80_BETA 2019-01-25 23:48:11 +01:00
vilemnovak a348a651e0 minor offset algorithm optimization
for image based method, gives me about 8% speedup on my test here.
I did test of several ways to access numpy arrays...
2016-07-28 18:35:30 +02:00
vilemnovak d6f1d64e3f tiny tweak in the scaling of speed graph. should be definitely redone to be tweakable from ui 2016-07-07 10:37:41 +02:00
vilemnovak 940d1386f9 Scale feedrate graph down to be more easy to look at in default scales. 2016-06-11 22:29:00 +02:00
vilemnovak 0fa4f1e334 Visualise milling load via edge creases
This is only visible in edit mode, more violet = higher load...
2016-06-11 20:55:13 +02:00
Jeff Doyle (nfz) 0ea9ae2480 add GPL 2 license block
- fixes #36 issue - license unclear
2016-03-24 16:20:51 -03:00