hull.h 466 B

123456789101112131415161718192021222324
  1. #include <grass/vector.h>
  2. struct Point
  3. {
  4. double x;
  5. double y;
  6. double z;
  7. };
  8. #define ALLOC_CHUNK 256
  9. int loadSiteCoordinates(struct Map_info *, struct Point **, int,
  10. struct Cell_head *, int);
  11. int convexHull(struct Point *, int, int **);
  12. int outputHull(struct Map_info *, struct Point *, int *,
  13. int);
  14. int make3DHull(double *, double *, double *, int,
  15. struct Map_info *);
  16. void convexHull3d(struct Point *, int, struct Map_info *);