# | Line 185 | Line 185 | branchsample(TRITREE *node, int depth) | |
---|---|---|
185 | ||
186 | /* Sample sphere using triangular geodesic mesh */ | |
187 | TRITREE * | |
188 | < | geosample(int nsamps) |
188 | > | geosample(long nsamps) |
189 | { | |
190 | int depth; | |
191 | TRITREE *tree; | |
# | Line 194 | Line 194 | geosample(int nsamps) | |
194 | /* figure out depth */ | |
195 | if ((nsamps -= 4) < 0) | |
196 | error(USER, "minimum number of samples is 4"); | |
197 | < | nsamps = nsamps*3/NTRUNKBR; /* round up */ |
197 | > | nsamps = nsamps*(NTRUNKBR-1)/NTRUNKBR; /* round up */ |
198 | for (depth = 0; nsamps > 1; depth++) | |
199 | nsamps >>= 2; | |
200 | /* make base tetrahedron */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |