Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-20 00:27:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-20 00:27:30 +0400
commit0fd176e03d0f6b0c6e4211c0a29eafa8309c4b8b (patch)
tree6b8f920d109f75a1e91259a497b05f2f39920805 /release/scripts/startup/bl_operators/mesh.py
parentd8a70df8cc1e82878ff3069d7794367ebf20c6fb (diff)
moved select interior faces into a C function (was python)
Diffstat (limited to 'release/scripts/startup/bl_operators/mesh.py')
-rw-r--r--release/scripts/startup/bl_operators/mesh.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/release/scripts/startup/bl_operators/mesh.py b/release/scripts/startup/bl_operators/mesh.py
index 3e206017238..1904ee5598e 100644
--- a/release/scripts/startup/bl_operators/mesh.py
+++ b/release/scripts/startup/bl_operators/mesh.py
@@ -24,50 +24,6 @@ from bpy.types import Operator
from bpy.props import EnumProperty
-class MeshSelectInteriorFaces(Operator):
- '''Select faces where all edges have more than 2 face users'''
-
- bl_idname = "mesh.faces_select_interior"
- bl_label = "Select Interior Faces"
- bl_options = {'REGISTER', 'UNDO'}
-
- @classmethod
- def poll(cls, context):
- ob = context.active_object
- return (ob and ob.type == 'MESH')
-
- def execute(self, context):
- from bpy_extras import mesh_utils
- ob = context.active_object
- context.tool_settings.mesh_select_mode = False, False, True
- is_editmode = (ob.mode == 'EDIT')
- if is_editmode:
- bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
-
- mesh = ob.data
-
- face_list = mesh.faces[:]
- face_edge_keys = [face.edge_keys for face in face_list]
-
- edge_face_count = mesh_utils.edge_face_count_dict(mesh)
-
- def test_interior(index):
- for key in face_edge_keys[index]:
- if edge_face_count[key] < 3:
- return False
- return True
-
- for index, face in enumerate(face_list):
- if(test_interior(index)):
- face.select = True
- else:
- face.select = False
-
- if is_editmode:
- bpy.ops.object.mode_set(mode='EDIT', toggle=False)
- return {'FINISHED'}
-
-
class MeshMirrorUV(Operator):
'''Copy mirror UV coordinates on the X axis based on a mirrored mesh'''
bl_idname = "mesh.faces_mirror_uv"