jbuckmccready / CavalierContours

2D polyline library for offsetting, combining, etc.
MIT License
427 stars 79 forks source link

generate offset contour of a line segment #60

Closed kalluwa closed 1 year ago

kalluwa commented 1 year ago

i tested a line segment in rust web demo, it works fine: image

but this cpp demo failed: image

after adding a another point,it can produce right result: image

could this be normal behavior?

jbuckmccready commented 1 year ago

This is likely a bug in the C++ code (since there are many that have been fixed in Rust and not back ported), I am not maintaining the C++ code, see this pinned issue: https://github.com/jbuckmccready/CavalierContours/issues/41

kalluwa commented 1 year ago

thanks for your reply. it should not be a difficult problem(i guess), i'll debug it later