Skip to content

Commit

Permalink
Add_Mesh Clean Up. pt1.
Browse files Browse the repository at this point in the history
Re-call function is removed.

[[Split portion of a mixed commit.]]
  • Loading branch information
meta-androcto committed Jun 7, 2010
1 parent f2326c2 commit b65b5a4
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 330 deletions.
36 changes: 0 additions & 36 deletions add_mesh_3d_function_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,6 @@
# op ... The operator that should be used.
# op_args ... A dictionary with valid Blender
# properties (operator arguments/parameters).
def store_recall_properties(ob, op, op_args):
if ob and op and op_args:
recall_properties = {}

# Add the operator identifier and op parameters to the properties.
recall_properties['op'] = op.bl_idname
recall_properties['args'] = op_args

# Store new recall properties.
ob['recall'] = recall_properties


# calculates the matrix for the new object
Expand Down Expand Up @@ -405,16 +395,6 @@ def execute(self, context):

obj = create_mesh_object(context, verts, [], faces, "Z Function", edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"equation": equation,
"div_x": div_x,
"div_y": div_y,
"size_x": size_x,
"size_y": size_y}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -620,22 +600,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces,
"XYZ Function", props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"x_eq": props.x_eq,
"y_eq": props.y_eq,
"z_eq": props.z_eq,
"range_u_min": props.range_u_min,
"range_u_max": props.range_u_max,
"range_u_step": props.range_u_step,
"wrap_u": props.wrap_u,
"range_v_min": props.range_v_min,
"range_v_max": props.range_v_max,
"range_v_step": props.range_v_step,
"wrap_v": props.wrap_v}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down
61 changes: 0 additions & 61 deletions add_mesh_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,6 @@
'func=detail&aid=22457&group_id=153&atid=469',
'category': 'Add Mesh'}

# Stores the values of a list of properties and the
# operator id in a property group ('recall_op') inside the object.
# Could (in theory) be used for non-objects.
# Note: Replaces any existing property group with the same name!
# ob ... Object to store the properties in.
# op ... The operator that should be used.
# op_args ... A dictionary with valid Blender
# properties (operator arguments/parameters).
def store_recall_properties(ob, op, op_args):
if ob and op and op_args:
recall_properties = {}

# Add the operator identifier and op parameters to the properties.
recall_properties['op'] = op.bl_idname
recall_properties['args'] = op_args

# Store new recall properties.
ob['recall'] = recall_properties


# calculates the matrix for the new object
# depending on user pref
def align_matrix(context):
Expand Down Expand Up @@ -562,13 +542,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Sqorus",
props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"hole_size": props.hole_size,
"subdivide": props.subdivide}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -615,14 +588,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Wedge",
props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"size_x": props.size_x,
"size_y": props.size_y,
"size_z": props.size_z}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -676,15 +641,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Spindle",
props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"segments": props.segments,
"radius": props.radius,
"height": props.height,
"cap_height": props.cap_height}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -737,15 +693,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Star",
props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"points": props.points,
"outer_radius": props.outer_radius,
"innter_radius": props.innter_radius,
"height": props.height}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -783,14 +730,6 @@ def execute(self,context):

obj = create_mesh_object(context, verts, [], faces, "Trapazohedron",
props.edit, self.align_matrix)

# store recall properties in object
recall_args_list = {
"edit": True,
"segments" : props.segments,
"radius" : props.radius,
"height": props.height}
store_recall_properties(obj,self,recall_args_list)

return {'FINISHED'}

Expand Down
49 changes: 0 additions & 49 deletions add_mesh_gears.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,6 @@ def align_matrix(context):
align_matrix = loc * rot
return align_matrix

# Stores the values of a list of properties and the
# operator id in a property group ('recall_op') inside the object.
# Could (in theory) be used for non-objects.
# Note: Replaces any existing property group with the same name!
# ob ... Object to store the properties in.
# op ... The operator that should be used.
# op_args ... A dictionary with valid Blender
# properties (operator arguments/parameters).
def store_recall_properties(ob, op, op_args):
if ob and op and op_args:
recall_properties = {}

# Add the operator identifier and op parameters to the properties.
recall_properties['op'] = op.bl_idname
recall_properties['args'] = op_args

# Store new recall properties.
ob['recall'] = recall_properties


# Create a new mesh (object) from verts/edges/faces.
# verts/edges/faces ... List of vertices/edges/faces for the
# new mesh (as used in from_pydata).
Expand Down Expand Up @@ -805,21 +785,6 @@ def execute(self, context):
# Actually create the mesh object from this geometry data.
obj = create_mesh_object(context, verts, [], faces, "Gear", props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"number_of_teeth": props.number_of_teeth,
"radius": props.radius,
"addendum": props.addendum,
"dedendum": props.dedendum,
"angle": props.angle,
"base": props.base,
"width": props.width,
"skew": props.skew,
"conangle": props.conangle,
"crown": props.crown}
store_recall_properties(obj, self, recall_args_list)

# Create vertex groups from stored vertices.
tipGroup = obj.add_vertex_group('Tips')
for vert in verts_tip:
Expand Down Expand Up @@ -928,20 +893,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces, "Worm Gear",
props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"number_of_teeth": props.number_of_teeth,
"number_of_rows": props.number_of_rows,
"radius": props.radius,
"addendum": props.addendum,
"dedendum": props.dedendum,
"angle": props.angle,
"row_height": props.row_height,
"skew": props.skew,
"crown": props.crown}
store_recall_properties(obj, self, recall_args_list)

# Create vertex groups from stored vertices.
tipGroup = obj.add_vertex_group('Tips')
for vert in verts_tip:
Expand Down
41 changes: 0 additions & 41 deletions add_mesh_gemstones.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,6 @@
'func=detail&aid=21432&group_id=153&atid=469',
'category': 'Add Mesh'}


# Stores the values of a list of properties and the
# operator id in a property group ('recall_op') inside the object.
# Could (in theory) be used for non-objects.
# Note: Replaces any existing property group with the same name!
# ob ... Object to store the properties in.
# op ... The operator that should be used.
# op_args ... A dictionary with valid Blender
# properties (operator arguments/parameters).
def store_recall_properties(ob, op, op_args):
if ob and op and op_args:
recall_properties = {}

# Add the operator identifier and op parameters to the properties.
recall_properties['op'] = op.bl_idname
recall_properties['args'] = op_args

# Store new recall properties.
ob['recall'] = recall_properties


# calculates the matrix for the new object
# depending on user pref
def align_matrix(context):
Expand Down Expand Up @@ -389,16 +368,6 @@ def execute(self, context):
obj = create_mesh_object(context, verts, [], faces,
"Diamond", props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"segments": props.segments,
"girdle_radius": props.girdle_radius,
"table_radius": props.table_radius,
"crown_height": props.crown_height,
"pavilion_height": props.pavilion_height}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down Expand Up @@ -458,16 +427,6 @@ def execute(self, context):

obj = create_mesh_object(context, verts, [], faces, "Gem", props.edit, self.align_matrix)

# Store 'recall' properties in the object.
recall_args_list = {
"edit": True,
"segments": props.segments,
"pavilion_radius": props.pavilion_radius,
"crown_radius": props.crown_radius,
"pavilion_height": props.pavilion_height,
"crown_height": props.crown_height}
store_recall_properties(obj, self, recall_args_list)

return {'FINISHED'}

def invoke(self, context, event):
Expand Down
Loading

0 comments on commit b65b5a4

Please sign in to comment.