Skip to content

Commit

Permalink
Test program now constructs an octree instance
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jun 10, 2020
1 parent b165420 commit b37d116
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Octree/test/Octree/octree_test.cpp
Expand Up @@ -3,6 +3,25 @@

#include <CGAL/Octree.h>

#include <CGAL/Simple_cartesian.h>
#include <CGAL/Point_set_3.h>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Point_set_3<Point> Point_set;
typedef CGAL::Octree
<Kernel, Point_set, typename Point_set::Point_map, typename Point_set::Vector_map>
Octree;

int main(void) {

Point_set points;
points.insert({0, 0, 1});

auto point_map = points.point_map();
auto normal_map = points.normal_map();

Octree octree(points, point_map, normal_map);

return 0;
}

0 comments on commit b37d116

Please sign in to comment.