-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geometry_Engine: Improve Offset method (includes Fillet() and ExtendToPoint()) #1333
Comments
Besides what is said in the description there are many other ways in which Offest could be improved to be more error-proof. Here are some of my not implemented ideas:
|
@pawelbaran @IsakNaslundBh @FraserGreenroyd here's the issue mentioned in Friday's PR. |
Great, cheers @LMarkowski 😄 Now just need to find someone to resolve it... 🤔 |
#1868 is relevant to this issue when this issue gets addressed. |
#2503 is also relevant for this issue whenever it gets addressed. |
Description:
Following the discussion in PR #1314 following items should be improved in
Offset()
method forPolyline
andPolyCurve
classes:0.05 * Curve.Length()
. Instead should be calculated or exposed as an input parameter. Link to the specific comment in a PR.Reflection.Compute.ClearCurrentEvents()
. Probably there is a better way to cover it. Link to the specific comment in a PR. Refers also to Reflection_Engine: possibility to clear events that occurred in nested methods #1306.Fillet()
now works only on pairs of Lines and Arcs and rather trims/extends them to the intersection point than really fillet. It was inspired by Autocad Fillet method. Could be improved and added as separate public method or maybe renamed.ExtendToPoint()
as above.Extend(curve, double, double)
is implemented for most ofICurve
classes, only Nurbs are missing. Now we could decide if separate method for extending to a given point instead of extending by a given length would be useful. If so, there is a private method working on lines and arcs inOffset.cs
file. It could be used as a draft.The text was updated successfully, but these errors were encountered: