haplokuon / netDxf

.net dxf Reader-Writer
MIT License
996 stars 404 forks source link

How to add arc through LwPolyline #255

Closed itcasth closed 3 years ago

itcasth commented 3 years ago

Hello author, how to add arc through lwpolyline?

itcasth commented 3 years ago

I know that I can draw an arc through bulge, but I need to know the angle of the start point and the angle of the end point. How can I draw an arc through the coordinates of the start point, the coordinates of the end point and the center of the circle

haplokuon commented 3 years ago

Take a look at the method Explode of the LwPolyline it will show you how it is done, this method converts a lwpolyline into a set of lines an arcs. Also you can check the method PolygonalVertexes.

itcasth commented 3 years ago

Thank you very much! I found that I can add arcs. Can I add multiple lines and arcs at the same time with one lwpolyline. Not through multiple lwpolylines

itcasth commented 3 years ago

Thanks! I've solved it