![]() Both methods have to read the sign of the bulge to know in which direction the center point has to be set out.Īnother method could be to view the arc as a part of the circumcircle to triangle P1-P2-P3. The other is using the angle γ and the radius to set out the point from P1. One is calculating the apothem as a leg in the triangle P-P2-P4 and setting out the center point from P4. In function getArcInfo are given two methods. The center point is found in the code by calculating angles and distances in order to use POLAR. The picture recaps some geometric details of the circular arc. Below are some useful formulas for dealing with bulges. (princ (strcat "\nSegment " (itoa a) ": ")) Given the two functions getPolySegs and getArcInfo we can now put together a command that inspects all bulges in a polyline. Unit Circle Definition of Sine and Cosine Functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |