-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move coordinate_type from geometry.hpp to geometry_int.hpp
This will help prevent accidental usage of integral geometry, which is required by some algorithms but is usually a mistake to use.
- Loading branch information
Showing
9 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef GEOMETRY_INT_H | ||
#define GEOMETRY_INT_H | ||
|
||
#include <vector> | ||
#include <boost/geometry.hpp> | ||
#include <boost/geometry/geometries/point_xy.hpp> | ||
#include <boost/geometry/geometries/geometries.hpp> | ||
#include <boost/geometry/geometries/register/point.hpp> | ||
#include <boost/geometry/geometries/register/ring.hpp> | ||
#include <boost/polygon/polygon.hpp> | ||
|
||
typedef int64_t coordinate_type; | ||
typedef boost::geometry::model::d2::point_xy<coordinate_type> point_type; | ||
typedef boost::geometry::model::ring<point_type> ring_type; | ||
typedef boost::geometry::model::box<point_type> box_type; | ||
typedef boost::geometry::model::linestring<point_type> linestring_type; | ||
typedef boost::geometry::model::multi_linestring<linestring_type> multi_linestring_type; | ||
typedef boost::geometry::model::polygon<point_type> polygon_type; | ||
typedef boost::geometry::model::multi_polygon<polygon_type> multi_polygon_type; | ||
|
||
typedef boost::polygon::point_data<coordinate_type> point_type_p; | ||
typedef boost::polygon::segment_data<coordinate_type> segment_type_p; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters