[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3940] contrib/py/scripts/addons/ mesh_extra_tools: remove bevel round addon
Brendon Murphy
meta.androcto1 at gmail.com
Fri Nov 9 11:09:03 CET 2012
Revision: 3940
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3940
Author: meta-androcto
Date: 2012-11-09 10:09:00 +0000 (Fri, 09 Nov 2012)
Log Message:
-----------
remove bevel round addon
Modified Paths:
--------------
contrib/py/scripts/addons/mesh_extra_tools/__init__.py
Removed Paths:
-------------
contrib/py/scripts/addons/mesh_extra_tools/mesh_bevel_round.py
Modified: contrib/py/scripts/addons/mesh_extra_tools/__init__.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/__init__.py 2012-11-08 23:33:06 UTC (rev 3939)
+++ contrib/py/scripts/addons/mesh_extra_tools/__init__.py 2012-11-09 10:09:00 UTC (rev 3940)
@@ -43,7 +43,6 @@
imp.reload(mesh_polyredux)
imp.reload(mesh_vertex_chamfer)
imp.reload(mesh_mextrude_plus)
- imp.reload(mesh_bevel_round)
else:
from . import mesh_bump
@@ -54,11 +53,9 @@
from . import mesh_polyredux
from . import mesh_vertex_chamfer
from . import mesh_mextrude_plus
- from . import mesh_bevel_round
import bpy
-
class VIEW3D_MT_edit_mesh_extras(bpy.types.Menu):
# Define the "Extras" menu
bl_idname = "VIEW3D_MT_edit_mesh_extras"
@@ -67,24 +64,22 @@
def draw(self, context):
layout = self.layout
layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("mesh.bump",
- text="Inset Extrude Bump")
layout.operator("faceinfillet.op0_id",
text="Face Inset Fillet")
- layout.operator("mesh.mbevel",
- text="Bevel Selected")
layout.operator("fillet.op0_id",
text="Edge Fillet Plus")
- layout.operator("normal.smooth",
- text="Normal Smooth")
layout.operator("object.mextrude",
text="Multi Extrude")
- layout.operator("mesh.polyredux",
- text="Poly Redux")
+ layout.operator("mesh.bump",
+ text="Inset Extrude Bump")
+ layout.operator("mesh.mbevel",
+ text="Bevel Selected")
layout.operator("mesh.vertex_chamfer",
text="Vertex Chamfer")
- layout.operator("mesh.bevel_round",
- text="Bevel Round")
+ layout.operator("mesh.polyredux",
+ text="Poly Redux")
+ layout.operator("normal.smooth",
+ text="Normal Smooth")
class ExtrasPanel(bpy.types.Panel):
@@ -97,32 +92,29 @@
def draw(self, context):
layout = self.layout
row = layout.split(0.80)
- row.operator('mesh.bump', text = 'Inset Bump', icon = 'PLUGIN')
- row.operator('help.bump', text = '', icon = 'INFO')
- row = layout.split(0.80)
row.operator('faceinfillet.op0_id', text = 'Face Inset Fillet', icon = 'PLUGIN')
row.operator('help.face_inset', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.bevel_round', text = 'Bevel Round', icon = 'PLUGIN')
- row.operator('help.bevelround', text = '', icon = 'INFO')
- row = layout.split(0.80)
- row.operator('mesh.mbevel', text = 'Bevel Selected', icon = 'PLUGIN')
- row.operator('help.edge_bevel', text = '', icon = 'INFO')
- row = layout.split(0.80)
row.operator('fillet.op0_id', text = 'Edge Fillet plus', icon = 'PLUGIN')
row.operator('help.edge_fillet', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('normal.smooth', text = 'Normal Smooth', icon = 'PLUGIN')
- row.operator('help.normal_smooth', text = '', icon = 'INFO')
+ row.operator('object.mextrude', text = 'Multi Face Extrude', icon = 'PLUGIN')
+ row.operator('help.mextrude', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('mesh.polyredux', text = 'Poly Redux', icon = 'PLUGIN')
- row.operator('help.polyredux', text = '', icon = 'INFO')
+ row.operator('mesh.bump', text = 'Inset Bump', icon = 'PLUGIN')
+ row.operator('help.bump', text = '', icon = 'INFO')
row = layout.split(0.80)
+ row.operator('mesh.mbevel', text = 'Bevel Selected', icon = 'PLUGIN')
+ row.operator('help.edge_bevel', text = '', icon = 'INFO')
+ row = layout.split(0.80)
row.operator('mesh.vertex_chamfer', text = 'Vertex Chamfer' , icon = 'PLUGIN')
row.operator('help.vertexchamfer', text = '', icon = 'INFO')
row = layout.split(0.80)
- row.operator('object.mextrude', text = 'Multi Face Extrude', icon = 'PLUGIN')
- row.operator('help.mextrude', text = '', icon = 'INFO')
+ row.operator('mesh.polyredux', text = 'Poly Redux', icon = 'PLUGIN')
+ row.operator('help.polyredux', text = '', icon = 'INFO')
+ row = layout.split(0.80)
+ row.operator('normal.smooth', text = 'Normal Smooth', icon = 'PLUGIN')
+ row.operator('help.normal_smooth', text = '', icon = 'INFO')
row = layout.split(0.50)
row.operator('mesh.flip_normals', text = 'Normals Flip')
row.operator('mesh.remove_doubles', text = 'Remove Doubles')
Deleted: contrib/py/scripts/addons/mesh_extra_tools/mesh_bevel_round.py
===================================================================
--- contrib/py/scripts/addons/mesh_extra_tools/mesh_bevel_round.py 2012-11-08 23:33:06 UTC (rev 3939)
+++ contrib/py/scripts/addons/mesh_extra_tools/mesh_bevel_round.py 2012-11-09 10:09:00 UTC (rev 3940)
@@ -1,2974 +0,0 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-# <pep8 compliant>
-
-# Ported from RoundCorner Ruby program for Sketchup by Fredo6
-# Fredo6 gave permission to port and distribute with Blender
-
-bl_info = {
- "name": "Bevel Round",
- "author": "Fredo6, Howard Trickey",
- "version": (0, 1),
- "blender": (2, 6, 3),
- "location": "View3D > Tools",
- "description": "Bevel selected edges, possibly rounded",
- "warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
- "Scripts",
- "tracker_url": "http://projects.blender.org/tracker/index.php?"\
- "func=detail&aid=32582",
- "category": "Mesh"}
-
-import math
-import functools
-import bpy
-import bmesh
-import mathutils
-from bpy.props import (BoolProperty,
- EnumProperty,
- IntProperty,
- FloatProperty,
- )
-from mathutils import Vector
-
-EPSILON = 1e-6
-
-class BevelRound(bpy.types.Operator):
- bl_idname = "mesh.bevel_round"
- bl_label = "Bevel Round"
- bl_description = "Bevel selected edges, possibly rounded"
- bl_options = {'REGISTER', 'UNDO'}
-
- bevel_kind = EnumProperty(name="Bevel Kind",
- description="Style for beveling edges and corners",
- items=[
- ('ROUND', "Round",
- "Round edges and corners"),
- ('SHARP', "Sharp",
- "Round edges, peaked corners"),
- ('BEVEL', "Bevel",
- "Flat edges and corners")
- ],
- default='BEVEL')
-
- offset_amount = FloatProperty(name="Offset",
- description="Amount to offset edges along faces",
- default=0.2,
- min=0.0,
- max=1000.0,
- soft_min=0.0,
- soft_max=10.0,
- unit='LENGTH')
-
- segments = IntProperty(name="Segments",
- description="How many segments on bevel profile",
- min=1,
- max=100,
- default=1)
-
- strict_offset = BoolProperty(name="Strict Offset",
- description="Keep offset the same on all faces",
- default=True)
-
- rounding = BoolProperty(name="Inner Rounding",
- description="Round inside faces at concave corners",
- default=True)
-
- @classmethod
- def poll(cls, context):
- obj = context.active_object
- return (obj and obj.type == 'MESH' and context.mode == 'EDIT_MESH')
-
- def draw(self, context):
- layout = self.layout
- box = layout.box()
- box.label("Bevel Round Options:")
- box.prop(self, "bevel_kind")
- box.prop(self, "offset_amount")
- box.prop(self, "segments")
- box.prop(self, "strict_offset")
- box.prop(self, "rounding")
-
- def invoke(self, context, event):
- self.action(context)
- return {'FINISHED'}
-
- def execute(self, context):
- self.action(context)
- return {'FINISHED'}
-
- def action(self, context):
- obj = bpy.context.active_object
- bm = bmesh.from_edit_mesh(obj.data)
- # make sure vert, edge, face indexes match their positions
- bm.verts.index_update()
- bm.edges.index_update()
- bm.faces.index_update()
- algo = BevelRoundAlgo(bm, self.bevel_kind, self.offset_amount,
- self.segments, self.strict_offset, self.rounding)
- algo.execute()
- # Force mesh data recalculation
- bpy.ops.object.editmode_toggle()
- bpy.ops.object.editmode_toggle()
-
-class rbevel_help(bpy.types.Operator):
- bl_idname = 'help.bevelround'
- bl_label = ''
-
- def draw(self, context):
- layout = self.layout
- layout.label('To use:')
- layout.label('Select edges or faces to bevel with the option of rounded bevels')
- layout.label('best used on flat edges & simple edgeflow')
- layout.label('To Help:')
- layout.label('may error if vert joins multiple edges/complex edge selection')
- layout.label('Round may need Recalc Normals')
-
- def execute(self, context):
- return {'FINISHED'}
-
- def invoke(self, context, event):
- return context.window_manager.invoke_popup(self, width = 400)
-
-class BevelRoundAlgo(object):
- def __init__(self, bm, kind, offset, num_seg, strict, round):
- # The bmesh object
- self.bm = bm
-
- # How much to move offset edges
- # (projected onto 90deg angle planes, unless strict_offset)
- self.offset = offset
-
- # How many segments in the profile of an edge
- self.num_seg = num_seg
-
- # Cache of profiles in standard position, keyed by "kind-numseg"
- # Kind will be one of 'C' or 'P', for now
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list