Skip to content

Commit

Permalink
Merge pull request #174 from SpectralVectors/master
Browse files Browse the repository at this point in the history
STL & Outline Fill Fixes
  • Loading branch information
pppalain authored Sep 5, 2024
2 parents 37c498f + 2cc75b7 commit 7b86475
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/addons/cam/basrelief.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def renderScene(width, height, bit_diameter, passes_per_radius, make_nodes, view
nodes.remove(our_renderer)
if our_viewer is not None:
nodes.remove(our_viewer)
bpy.context.scene.render.engine = 'BLENDERCAM_RENDER'
bpy.context.scene.render.engine = 'CNCCAM_RENDER'
print("Done Rendering")


Expand Down Expand Up @@ -1217,7 +1217,7 @@ class BASRELIEF_Panel(bpy.types.Panel):
bl_region_type = "WINDOW"
bl_context = "render"

COMPAT_ENGINES = {'BLENDERCAM_RENDER'}
COMPAT_ENGINES = {'CNCCAM_RENDER'}

# def draw_header(self, context):
# self.layout.menu("CAM_CUTTER_MT_presets", text="CAM Cutter")
Expand Down
4 changes: 2 additions & 2 deletions scripts/addons/cam/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import bpy
try:
import curve_simplify
import bl_ext.blender_org.simplify_curves_plus as curve_simplify
except ImportError:
pass

Expand Down Expand Up @@ -1212,7 +1212,7 @@ def renderSampleImage(o):
print("Failed to Backup Scene Settings")

i = bpy.data.images.load(iname)
bpy.context.scene.render.engine = 'BLENDERCAM_RENDER'
bpy.context.scene.render.engine = 'CNCCAM_RENDER'

a = imagetonumpy(i)
a = 10.0 * a
Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/opencamlib/oclSample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pass

try:
from io_mesh_stl import blender_utils
from bl_ext.blender_org.stl_format_legacy import blender_utils
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def getPathPattern(operation):
# pathchunks=sortChunks(pathchunks,o)not until they get hierarchy parents!
elif o.strategy == 'OUTLINEFILL':

polys = operation.silhouete
polys = o.silhouete.geoms
pathchunks = []
chunks = []
for p in polys:
Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/polygon_utils_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from mathutils import Euler, Vector
try:
import curve_simplify
import bl_ext.blender_org.simplify_curves_plus as curve_simplify
except ImportError:
pass

Expand Down
4 changes: 2 additions & 2 deletions scripts/addons/cam/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async def pocket(o):
checkc = Circle(helix_radius + c_offset, o.optimisation.circle_detail)
checkc = affinity.translate(checkc, p[0], p[1])
covers = False
for poly in o.silhouete:
for poly in o.silhouete.geoms:
if poly.contains(checkc):
covers = True
break
Expand Down Expand Up @@ -512,7 +512,7 @@ async def pocket(o):
rothelix.reverse()

covers = False
for poly in o.silhouete:
for poly in o.silhouete.geoms:
if poly.contains(coutline):
covers = True
break
Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/ui_panels/buttons_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CAMButtonsPanel:
bl_region_type = 'WINDOW'
bl_context = "render"
always_show_panel = False
COMPAT_ENGINES = {'BLENDERCAM_RENDER'}
COMPAT_ENGINES = {'CNCCAM_RENDER'}

# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here

Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/ui_panels/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CAM_PACK_Panel(CAMButtonsPanel, Panel):
bl_idname = "WORLD_PT_CAM_PACK"
panel_interface_level = 2

COMPAT_ENGINES = {'BLENDERCAM_RENDER'}
COMPAT_ENGINES = {'CNCCAM_RENDER'}

def draw(self, context):
layout = self.layout
Expand Down
2 changes: 1 addition & 1 deletion scripts/addons/cam/ui_panels/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CAM_SLICE_Panel(CAMButtonsPanel, Panel):
bl_idname = "WORLD_PT_CAM_SLICE"
panel_interface_level = 2

COMPAT_ENGINES = {'BLENDERCAM_RENDER'}
COMPAT_ENGINES = {'CNCCAM_RENDER'}

def draw(self, context):
layout = self.layout
Expand Down

0 comments on commit 7b86475

Please sign in to comment.