Disabled debug mesh creation for the hierarchical dart throwing algorithm.
authorLukas Tönne <lukas.toenne@gmail.com>
Wed, 26 Nov 2014 11:11:54 +0000 (12:11 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Wed, 26 Nov 2014 11:11:54 +0000 (12:11 +0100)
object_physics_meadow/meadow.py

index 6ab9ff15424fe4523af5294f7d94b0c02941c19a..5fe562a926c5f182882275a1fc7343128655fb30 100644 (file)
@@ -40,13 +40,15 @@ def make_samples(context, gridob, groundob):
     zmin = min(p[2] for p in groundob.bound_box)
     zmax = max(p[2] for p in groundob.bound_box)
     
-    debug = MeshDebug(drawsize=0.1)
+    debug = None
+    #debug = MeshDebug(drawsize=0.1)
+    
     # get a sample generator implementation
     #gen = best_candidate_gen(gridob.meadow.patch_radius, xmin, xmax, ymin, ymax)
     gen = hierarchical_dart_throw_gen(gridob.meadow.patch_radius, 4, xmin, xmax, ymin, ymax, debug)
     
     loc2D = [(p[0], p[1]) for p in gen(gridob.meadow.seed, gridob.meadow.max_patches)]
-    debug.to_object(context)
+    #debug.to_object(context)
     
     # project samples onto the ground object
     samples = []