Minecraft field trip Anybody seen a fractal in Minecraft? Landscapes? Yes Mazes? Yes (with cycles) Trees? Yes, not too realistic Worm fractal project again: We made it work! Cool! Can we keep the UI going, and let us see the drawing? Yeah, about that Data structures, and multithreaded changes: Sometimes hard to engineer anything good here As far as I can tell, Blender doesn't support mesh addition from multiple threads Also, our calculation time is really small, and placing the mesh is slow Therefore, we'll have to be prepared to wait But it would be more fun if we could see what's happening! thread_doler approach Keep tasks in a queue Dole them out one at a time with a function If we dump them all in, it seems to freeze the UI tried it... A little gap between tasks will let the UI respond Along with appropriately-sized tasks worm.py on Nimrod, or recreate it in class If I copy the demo over, don't let it not make sense Biggest question here: Why is it so slow? Maybe we should make our own mesh by placing our own vertices Instead of primitive_cylinder_add Let's try! Make a mesh: bpy.data.meshes.new will return it, can set name It'll have a method called from_pydata vertices, edges, faces (can infer edges from faces) bpy_extras.object_utils.object_data_add(context, mesh) This seemed to fix the performance problem for me Might import worm_mesh.py for this, since it might take a while Color on our custom mesh: Pretty much the same way Z-fighting Why's it called that even when it's on multiple planes? Joinery and caps The pyramid lab