Jack000 / Deepnest

An open source nesting application for laser cutters, plasma cutters and other CNC machines
866 stars 262 forks source link

Compiling Minkowski without Boost #54

Open samsonsite1 opened 5 years ago

samsonsite1 commented 5 years ago

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.

PowPodg commented 5 years ago

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

Jack000 commented 5 years ago

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.