Found 2D Offset library which works great so far...

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
apeltauer
Posts: 379
Joined: Fri Aug 11, 2017 2:19 pm

Found 2D Offset library which works great so far...

Postby apeltauer » Fri Mar 19, 2021 9:03 am

Hi all,

during a search i found a nice and small header only library to calculate an offset contour.
After some tests the library works quite fine.

Maybe someone is interested to bring it to FC. Maybe this also could be used in the path wb.

https://github.com/jbuckmccready/CavalierContours
sliptonic wrote: ping
paullee
Posts: 3609
Joined: Wed May 04, 2016 3:58 pm

Re: Found 2D Offset library which works great so far...

Postby paullee » Fri Mar 19, 2021 10:34 pm

apeltauer wrote: Fri Mar 19, 2021 9:03 am Maybe someone is interested to bring it to FC. Maybe this also could be used in the path wb.

https://github.com/jbuckmccready/CavalierContours
Looks great! Very useful for ArchWall to build (offset) the profile from base polyine :D

Seem more robust than 2d tools available in OCC?
yorik wrote: ping
User avatar
sliptonic
Posts: 2306
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: Found 2D Offset library which works great so far...

Postby sliptonic » Sat Mar 20, 2021 1:51 pm

apeltauer wrote: Fri Mar 19, 2021 9:03 am Hi all,

during a search i found a nice and small header only library to calculate an offset contour.
After some tests the library works quite fine.

Maybe someone is interested to bring it to FC. Maybe this also could be used in the path wb.

https://github.com/jbuckmccready/CavalierContours
sliptonic wrote: ping
This is very nice. MIT license. Appears be considerably faster than clipper. Thanks!