Example #1
0
 def test_buddha(self):
     obj = import_model("happy_vrip_res4.ply")
     select_object(obj)
     prev_bounds = get_bounds(obj)
     correction(True, False)
     self.assertEqual(prev_bounds, get_bounds(obj))
     
     bpy.ops.object.mode_set(mode='EDIT')
     bpy.context.tool_settings.mesh_select_mode = [False, True, False]
     bpy.ops.mesh.select_all(action='DESELECT')
     bpy.ops.mesh.select_non_manifold()
     self.assertEqual(get_selected_points(), [])
Example #2
0
    def execute(self, context):
        """
        Make the mesh watertight and manifold but might detroy some edges.
        """

        global step

        step = manifold.correction(True, context.scene.FastProcessing)
        self.report({"INFO"}, "The mesh is now correct")
        return {'FINISHED'}
Example #3
0
    def execute(self, context):
        """
        Make the mesh watertight and often manifold but does not destroy it.
        """

        global step

        step = manifold.correction(False, context.scene.FastProcessing)
        self.report({"INFO"}, "The mesh is now correct")
        return {'FINISHED'}