Commit 43eddb6978c8a870a2ea25b07f410b156d2ac8f5

Authored by pranathivemuri
1 parent 67860426

changed length's T to double

Showing 1 changed file with 6 additions and 4 deletions   Show diff stats
stim/visualization/fiber.h
... ... @@ -17,8 +17,8 @@ class fiber{
17 17 double **c; //centerline (array of double pointers)
18 18  
19 19 T* r; // array of fiber radii
20   -// // fibers this fiber intersects.
21   - ANNkd_tree* kdt; //kd-tree stores all points in the fiber for fast searching
  20 +// // fibers this fiber intersects.
  21 + ANNkd_tree* kdt; //kd-tree stores all points in the fiber for fast searching
22 22  
23 23 /// Initialize an empty fiber
24 24 void init(){
... ... @@ -189,7 +189,7 @@ public:
189 189 }
190 190  
191 191 /// Calculate the length of the fiber and return it.
192   - T length(){
  192 + double length(){
193 193  
194 194 double* p0;
195 195 double *p1;
... ... @@ -208,7 +208,7 @@ public:
208 208 }
209 209 }
210 210  
211   - return (T)l; //return the length
  211 + return l; //return the length
212 212 }
213 213  
214 214 /// Calculates the length and average radius of the fiber
... ... @@ -403,6 +403,8 @@ public:
403 403  
404 404 return ss.str();
405 405 }
  406 + /// get index of a node on a fiber
  407 + // by matching the node on fiber to already set vertices (both strings)
406 408 int getIndexes(std::string* input, std::string searched, int sizeV) {
407 409 int result = 0;
408 410 for (int i = 0; i < sizeV; i++) {
... ...