Skip to content

Commit

Permalink
Add geosop bufferQuadSegs op
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 20, 2024
1 parent 9687512 commit f94b913
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions util/geosop/GeometryOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ std::vector<GeometryOpCreator> opRegistry {
return new Result( geom->buffer( d ) );
});
}},
{"bufferQuadSegs", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute the buffer of geometry by a distance with quadrant segments",
[](const std::unique_ptr<Geometry>& geom, double d, int quadrantSegments) {
return new Result( geom->buffer( d, quadrantSegments ) );
});
}},
{"offsetCurve", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute the offset curve of geometry by a distance",
Expand Down

0 comments on commit f94b913

Please # to comment.