From c4dba76e8580c3f2fa8a8b8a2d951b2ae2fbd8e7 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 28 Jan 2016 17:47:34 -0600 Subject: [PATCH] added code to test network and fiber subdivision --- main.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+), 0 deletions(-) diff --git a/main.cpp b/main.cpp index 7858134..348aab0 100644 --- a/main.cpp +++ b/main.cpp @@ -18,11 +18,51 @@ int main(int argc, char* argv[]) exit(1); } + float sigma = atof(argv[3]); + stim::network GT; GT.load_obj(argv[1]); + + + + + + + + + + std::cout<<"Network:"< f; + f = GT.get_fiber(0); + std::cout< f2; + f2 = f.resample(sigma); + std::cout< resampled_GT; + resampled_GT = GT.resample(sigma); + std::cout< f3; + f3 = resampled_GT.get_fiber(0); + std::cout< f = e.Resample(25.0); + //std::cout<<"resampled fiber length"<