Deepnest icon indicating copy to clipboard operation
Deepnest copied to clipboard

Compiling Minkowski without Boost

Open samsonsite1 opened this issue 5 years ago • 2 comments

Hello,

I would like to compile minkowski.cc without Boost. I think all I need to do is replaced calculateNFP(), but I need a little guidance on how to do that.

Does the clipper library have the same functions? If so, how would I replace calculateNFP() code with code from clipper library? Please show an example, if possible. Thanks.

samsonsite1 avatar Mar 14 '19 20:03 samsonsite1

I think there is no reason to replace the boost in this project.

PowPodg avatar Apr 04 '19 07:04 PowPodg

the only purpose of minkowski.cc is to integrate Boost, in order to use Boost Geometry. If you would like to remove it you can use the minkowski implementation in Clipper. This is what SVGnest does, so you can just use that code instead.

Boost geometry is a lot more reliable than clipper's minkowski implementation, which seems to produce small spurious paths which need to be filtered out.

Jack000 avatar Apr 05 '19 03:04 Jack000