From 4122cd0c04ce8217d20126a1d328f466bc8b2ead Mon Sep 17 00:00:00 2001 From: Sasha Kovar Date: Mon, 15 May 2017 22:12:43 -0700 Subject: [PATCH] sample-tree -> trace-tree --- src/voxelburst/core.clj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/voxelburst/core.clj b/src/voxelburst/core.clj index e05bc18..1560fc5 100644 --- a/src/voxelburst/core.clj +++ b/src/voxelburst/core.clj @@ -152,16 +152,14 @@ ;;; tie it together ;;; -(defn sample-tree [count] +(defn trace-tree [count] (let [tree (svo/voxeltree 1000 1.0) trace (sample-traces count)] (svo/apply-voxels svo/set-at tree trace))) -;;(def sampletree (sample-tree 10)) - (defn sample-write-ply [count] (time (with-open [o (io/output-stream "sample.ply")] - (let [tree #_sampletree (time (sample-tree count))] + (let [tree (time (trace-tree count))] (mio/write-ply o (g/tessellate (g/scale (iso/surface-mesh tree 5 0.9) 0.01)))))))