kopia lustrzana https://github.com/vilemduha/blendercam
remove blendercam references for compliance with blender usage
rodzic
f307c062ba
commit
cccb12fb67
|
@ -1,6 +1,6 @@
|
|||
"""BlenderCAM 'autoupdate.py'
|
||||
"""CNC CAM 'autoupdate.py'
|
||||
|
||||
Classes to check for, download and install BlenderCAM updates.
|
||||
Classes to check for, download and install CNC CAM updates.
|
||||
"""
|
||||
|
||||
import calendar
|
||||
|
@ -23,7 +23,7 @@ from .version import __version__ as current_version
|
|||
class UpdateChecker(bpy.types.Operator):
|
||||
"""Check for Updates"""
|
||||
bl_idname = "render.cam_check_updates"
|
||||
bl_label = "Check for Updates in BlenderCAM Plugin"
|
||||
bl_label = "Check for Updates in CNC CAM Plugin"
|
||||
bl_options = {'REGISTER', 'UNDO'}
|
||||
|
||||
def execute(self, context):
|
||||
|
@ -172,7 +172,7 @@ class Updater(bpy.types.Operator):
|
|||
|
||||
class UpdateSourceOperator(bpy.types.Operator):
|
||||
bl_idname = "render.cam_set_update_source"
|
||||
bl_label = "Set BlenderCAM Update Source"
|
||||
bl_label = "Set CNC CAM Update Source"
|
||||
|
||||
new_source: StringProperty(
|
||||
default='',
|
||||
|
|
|
@ -971,7 +971,7 @@ def buildMesh(mesh_z, br):
|
|||
print("Faces:" + str(len(ob.data.polygons)))
|
||||
print("Vertices:" + str(len(ob.data.vertices)))
|
||||
|
||||
# Switches to cycles render to CYCLES to render the sceen then switches it back to BLENDERCAM_RENDER for basRelief
|
||||
# Switches to cycles render to CYCLES to render the sceen then switches it back to CNCCAM_RENDER for basRelief
|
||||
|
||||
|
||||
def renderScene(width, height, bit_diameter, passes_per_radius, make_nodes, view_layer):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'chunk.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'chunk.py' © 2012 Vilem Novak
|
||||
|
||||
Classes and Functions to build, store and optimize CAM path chunks.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'cam_operation.py'
|
||||
"""CNC CAM 'cam_operation.py'
|
||||
|
||||
All properties of a single CAM Operation.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'chain.py'
|
||||
"""CNC CAM 'chain.py'
|
||||
|
||||
All properties of a CAM Chain (a series of Operations), and the Chain's Operation reference.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'collision.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'collision.py' © 2012 Vilem Novak
|
||||
|
||||
Functions for Bullet and Cutter collision checks.
|
||||
"""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""BlenderCAM 'constants.py'
|
||||
"""CNC CAM 'constants.py'
|
||||
|
||||
Package to store all constants of BlenderCAM.
|
||||
Package to store all constants of CNC CAM.
|
||||
"""
|
||||
|
||||
# PRECISION is used in most operations
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'curvecamcreate.py' © 2021, 2022 Alain Pelletier
|
||||
"""CNC CAM 'curvecamcreate.py' © 2021, 2022 Alain Pelletier
|
||||
|
||||
Operators to create a number of predefined curve objects.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'curvecamequation.py' © 2021, 2022 Alain Pelletier
|
||||
"""CNC CAM 'curvecamequation.py' © 2021, 2022 Alain Pelletier
|
||||
|
||||
Operators to create a number of geometric shapes with curves.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'curvecamtools.py' © 2012 Vilem Novak, 2021 Alain Pelletier
|
||||
"""CNC CAM 'curvecamtools.py' © 2012 Vilem Novak, 2021 Alain Pelletier
|
||||
|
||||
Operators that perform various functions on existing curves.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'exception.py'
|
||||
"""CNC CAM 'exception.py'
|
||||
|
||||
Generic CAM Exception class.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'gcodeimportparser.py'
|
||||
"""CNC CAM 'gcodeimportparser.py'
|
||||
|
||||
Code modified from YAGV (Yet Another G-code Viewer) - https://github.com/jonathanwin/yagv
|
||||
No license terms found in YAGV repo, will assume GNU release
|
||||
|
|
|
@ -240,7 +240,7 @@ def exportGcodePath(filename, vertslist, operations):
|
|||
# start program
|
||||
c.program_begin(0, filename)
|
||||
c.flush_nc()
|
||||
c.comment('G-code Generated with BlenderCAM and NC library')
|
||||
c.comment('G-code Generated with CNC CAM and NC library')
|
||||
# absolute coordinates
|
||||
c.absolute()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'involute_gear.py' Ported by Alain Pelletier Jan 2022
|
||||
"""CNC CAM 'involute_gear.py' Ported by Alain Pelletier Jan 2022
|
||||
|
||||
from:
|
||||
Public Domain Parametric Involute Spur Gear (and involute helical gear and involute rack)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'joinery.py' © 2021 Alain Pelletier
|
||||
"""CNC CAM 'joinery.py' © 2021 Alain Pelletier
|
||||
|
||||
Functions to create various woodworking joints - mortise, finger etc.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'machine_settings.py'
|
||||
"""CNC CAM 'machine_settings.py'
|
||||
|
||||
All CAM machine properties.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'numba_wrapper.py'
|
||||
"""CNC CAM 'numba_wrapper.py'
|
||||
|
||||
Patch to ensure functions will run if numba is unavailable.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'ops.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'ops.py' © 2012 Vilem Novak
|
||||
|
||||
Blender Operator definitions are in this file.
|
||||
They mostly call the functions from 'utils.py'
|
||||
|
@ -1015,12 +1015,12 @@ class CamChainOperationRemove(Operator):
|
|||
|
||||
|
||||
def fixUnits():
|
||||
"""Set up units for BlenderCAM.
|
||||
"""Set up units for CNC CAM.
|
||||
|
||||
This function configures the unit settings for the current Blender
|
||||
scene. It sets the rotation system to degrees and the scale length to
|
||||
1.0, ensuring that the units are appropriately configured for use within
|
||||
BlenderCAM.
|
||||
CNC CAM.
|
||||
"""
|
||||
s = bpy.context.scene
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'pack.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'pack.py' © 2012 Vilem Novak
|
||||
|
||||
Takes all selected curves, converts them to polygons, offsets them by the pre-set margin
|
||||
then chooses a starting location possibly inside the already occupied area and moves and rotates the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'parametric.py' © 2019 Devon (Gorialis) R
|
||||
"""CNC CAM 'parametric.py' © 2019 Devon (Gorialis) R
|
||||
|
||||
MIT License
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'pattern.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'pattern.py' © 2012 Vilem Novak
|
||||
|
||||
Functions to read CAM path patterns and return CAM path chunks.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'polygon_utils_cam.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'polygon_utils_cam.py' © 2012 Vilem Novak
|
||||
|
||||
Functions to handle shapely operations and conversions - curve, coords, polygon
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'preferences.py'
|
||||
"""CNC CAM 'preferences.py'
|
||||
|
||||
Class to store all Addon preferences.
|
||||
"""
|
||||
|
@ -80,7 +80,7 @@ class CamAddonPreferences(AddonPreferences):
|
|||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.label(
|
||||
text="Use Experimental Features when you want to help development of BlenderCAM:"
|
||||
text="Use Experimental Features when you want to help development of CNC CAM:"
|
||||
)
|
||||
layout.prop(self, "experimental")
|
||||
layout.prop(self, "update_source")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'preset_managers.py'
|
||||
"""CNC CAM 'preset_managers.py'
|
||||
|
||||
Operators and Menus for CAM Machine, Cutter and Operation Presets.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'puzzle_joinery.py' © 2021 Alain Pelletier
|
||||
"""CNC CAM 'puzzle_joinery.py' © 2021 Alain Pelletier
|
||||
|
||||
Functions to add various puzzle joints as curves.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'simple.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'simple.py' © 2012 Vilem Novak
|
||||
|
||||
Various helper functions, less complex than those found in the 'utils' files.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'simulation.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'simulation.py' © 2012 Vilem Novak
|
||||
|
||||
Functions to generate a mesh simulation from CAM Chain / Operation data.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'slice.py' © 2021 Alain Pelletier
|
||||
"""CNC CAM 'slice.py' © 2021 Alain Pelletier
|
||||
|
||||
Very simple slicing for 3D meshes, useful for plywood cutting.
|
||||
Completely rewritten April 2021.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""BlenderCAM 'strategy.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'strategy.py' © 2012 Vilem Novak
|
||||
|
||||
Strategy functionality of BlenderCAM - e.g. Cutout, Parallel, Spiral, Waterline
|
||||
Strategy functionality of CNC CAM - e.g. Cutout, Parallel, Spiral, Waterline
|
||||
The functions here are called with operators defined in 'ops.py'
|
||||
"""
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'testing.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'testing.py' © 2012 Vilem Novak
|
||||
|
||||
Functions for automated testing.
|
||||
"""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'info.py'
|
||||
"""CNC CAM 'info.py'
|
||||
|
||||
'CAM Info & Warnings' properties and panel in Properties > Render
|
||||
"""
|
||||
|
@ -63,7 +63,7 @@ class CAM_INFO_Panel(CAMButtonsPanel, Panel):
|
|||
always_show_panel = True
|
||||
|
||||
prop_level = {
|
||||
'draw_blendercam_version': 0,
|
||||
'draw_cnccam_version': 0,
|
||||
'draw_opencamlib_version': 1,
|
||||
'draw_op_warnings': 0,
|
||||
'draw_op_time': 0,
|
||||
|
@ -71,13 +71,13 @@ class CAM_INFO_Panel(CAMButtonsPanel, Panel):
|
|||
'draw_op_money_cost': 1,
|
||||
}
|
||||
|
||||
# Draw blendercam version (and whether there are updates available)
|
||||
def draw_blendercam_version(self):
|
||||
# Draw CNC CAM version (and whether there are updates available)
|
||||
def draw_cnccam_version(self):
|
||||
addon_prefs = bpy.context.preferences.addons["bl_ext.user_default.blendercam"].preferences
|
||||
if not self.has_correct_level():
|
||||
return
|
||||
self.layout.label(
|
||||
text=f'BlenderCAM v{".".join([str(x) for x in cam_version])}')
|
||||
text=f'CNC CAM v{".".join([str(x) for x in cam_version])}')
|
||||
if len(addon_prefs.new_version_available) > 0:
|
||||
self.layout.label(text=f"New Version Available:")
|
||||
self.layout.label(
|
||||
|
@ -151,7 +151,7 @@ class CAM_INFO_Panel(CAMButtonsPanel, Panel):
|
|||
# Display the Info Panel
|
||||
def draw(self, context):
|
||||
self.context = context
|
||||
self.draw_blendercam_version()
|
||||
self.draw_cnccam_version()
|
||||
self.draw_opencamlib_version()
|
||||
if self.op:
|
||||
self.draw_op_warnings()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'op_properties.py'
|
||||
"""CMC CAM 'op_properties.py'
|
||||
|
||||
'CAM Operation Setup' panel in Properties > Render
|
||||
"""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""BlenderCAM 'utils.py' © 2012 Vilem Novak
|
||||
"""CNC CAM 'utils.py' © 2012 Vilem Novak
|
||||
|
||||
Main functionality of BlenderCAM.
|
||||
Main functionality of CNC CAM.
|
||||
The functions here are called with operators defined in 'ops.py'
|
||||
"""
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""BlenderCAM 'voronoi.py'
|
||||
"""CNC CAM 'voronoi.py'
|
||||
|
||||
Voronoi diagram calculator/ Delaunay triangulator
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue