Skip to content

Commit

Permalink
Add geosop op largestEmptyCircleBdy
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jul 18, 2023
1 parent cf1e312 commit 423dcdc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion util/geosop/GeometryOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,22 @@ std::vector<GeometryOpCreator> opRegistry {
}},
{"largestEmptyCircle", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute radius line of largest empty circle of geometry up to a distance tolerance",
"compute radius line of largest empty circle between obstacles, up to a distance tolerance",
[](const std::unique_ptr<Geometry>& geom, double d) {
geos::algorithm::construct::LargestEmptyCircle lec( geom.get(), d );
std::unique_ptr<Geometry> res = lec.getRadiusLine();
return new Result( std::move(res) );
});
}},
{"largestEmptyCircleBdy", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute radius line of largest empty circle between obstacles with center in a boundary, up to a distance tolerance",
[](const std::unique_ptr<Geometry>& geom, const std::unique_ptr<Geometry>& geom2, double d) {
geos::algorithm::construct::LargestEmptyCircle lec( geom.get(), geom2.get(), d );
std::unique_ptr<Geometry> res = lec.getRadiusLine();
return new Result( std::move(res) );
});
}},
{"maxInscribedCircle", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute maximum inscribed circle radius of Polygon up to a distance tolerance",
Expand Down

0 comments on commit 423dcdc

Please sign in to comment.