See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: drawing arc

  1. #1
    Member
    Join Date
    2009-09
    Posts
    32
    Login to Give a bone
    0

    Default drawing arc

    This questions is more related to math than autocad. But someone might be able to give some help.

    As we know in Autocad we can define an arc by using 3 points method. Now if I have a set of 3 points how can I check if I feed these points to the arc command arc will be drawn i.e. how to find that the points really define an arc. Certainly we can check it by running the arc command but I want some algorithm for check if the points are valid for drawing an arc.

    Thanks.

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: drawing arc

    Can't an ARC be constructed through ANY 3 points, so long as they do not all lie on the same line?
    R.K. McSwain | CAD Panacea |

  3. #3
    AUGI Director scott.wilcox's Avatar
    Join Date
    2015-11
    Location
    Edmonton, Alberta
    Posts
    990
    Login to Give a bone
    0

    Default Re: drawing arc

    Indeed, as long as the points are not in a line, an arc can be drawn.

  4. #4
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,069
    Login to Give a bone
    1

    Default Re: drawing arc

    well, if the arc radius is infinite, then three points in a straight line would also fall on that arc. The center point would be the endpoint of the RAY drawn perpendiular from the midpoint (not a practical response, but logical. like much of math

  5. #5
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by cadtag View Post
    well, if the arc radius is infinite, then three points in a straight line would also fall on that arc. The center point would be the endpoint of the RAY drawn perpendiular from the midpoint (not a practical response, but logical. like much of math
    Is that even right? seems to me that the bigger the radius gets,.... the bigger... the radius gets. Since an ARC can be considered a piece of a circle and if you simply increase the radius of a circle FOREVER and an infinite amount of times, you'll simply get a bigger circle. If that's the case, wouldn't the ARC just keep growing in size and never reach a point of being straight?... which would be a finite 'thing" and therefore not infinite? To reach the stage of "straight" would suggest you can go past that and now your radius is negative... right? My head hurts.


    Just asking....

  6. #6
    AUGI Addict
    Join Date
    2006-04
    Location
    (getpoint "Anywhere on the Enter Key =>")
    Posts
    1,160
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by mdsalman2003 View Post
    This questions is more related to math than autocad. But someone might be able to give some help.

    As we know in Autocad we can define an arc by using 3 points method. Now if I have a set of 3 points how can I check if I feed these points to the arc command arc will be drawn i.e. how to find that the points really define an arc. Certainly we can check it by running the arc command but I want some algorithm for check if the points are valid for drawing an arc.

    Thanks.
    It would be simple if you are working in WCS (2d).
    In WCS all you have to do is
    1) comparing the Z value for 3 points if they are 0.
    2) check the angle between point1-point2 & point2-point3 if it is not equal to 180deg.

    In a user defined UCS (3d) it would be a little bit different.
    You have to work in that UCS defined by the 3 points first, then repeat the same process above.
    Hope it helps.

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by BoKirra View Post
    It would be simple if you are working in WCS (2d).
    In WCS all you have to do is
    1) comparing the Z value for 3 points if they are 0.
    2) check the angle between point1-point2 & point2-point3 if it is not equal to 180deg.


    In a user defined UCS (3d) it would be a little bit different.
    You have to work in that UCS defined by the 3 points first, then repeat the same process above.
    Hope it helps.
    Very good point. My initial reply assumed that all three points were on the same plane.

    EDIT:
    In WCS - The three points do not have to all be at elevation 0, only at the same elevation.
    Last edited by rkmcswain; 2010-06-14 at 02:59 PM.
    R.K. McSwain | CAD Panacea |

  8. #8
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by BoKirra View Post
    ...2) check the angle between point1-point2 & point2-point3 if it is not equal to 180deg....
    Make that 180deg or 0deg.

    Refer to attached: Geometrically you would be able to find the centre point of the arc by calculating the intersection of 2 lines (in red) drawn perpendicular between each pair of the 3 points (green) at the mid point of that distance (yellow). Then the radius of the circle (cyan) is the distance from that intersection to any of the points (blue).

    As stated before: Of course with the 3d space you'll need some method of adjusting the pane to that of the 3 points as well.

    How to prove this algebraically is beyond me at present ... I last did Calculus at varsity ... and that's a while back
    Attached Images Attached Images

  9. #9
    AUGI Addict
    Join Date
    2006-04
    Location
    (getpoint "Anywhere on the Enter Key =>")
    Posts
    1,160
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by rkmcswain View Post
    Very good point. My initial reply assumed that all three points were on the same plane.

    EDIT:
    In WCS - The three points do not have to all be at elevation 0, only at the same elevation.
    By default, in WCS any points drawn are with Z=0 unless the operator specified.
    When the operator find any points with Z /= 0 in WCS, these points can be identified as not valid - actually these points are in a UCS (user defined) mathematically.
    And this will help mdsalman2003 to find out the points which are "valid", I guess.

    BTW, personally I usually don't talk about plane instead of WCS or UCS in AutoCAD as it is invisible - unlike the one in Inventor.

  10. #10
    AUGI Addict
    Join Date
    2006-04
    Location
    (getpoint "Anywhere on the Enter Key =>")
    Posts
    1,160
    Login to Give a bone
    0

    Default Re: drawing arc

    Quote Originally Posted by irneb View Post
    ...
    How to prove this algebraically is beyond me at present ... I last did Calculus at varsity ... and that's a while back
    Well, you can prove it by a little lisp code - and which is beyond me, really.
    You are a big one making LISP code, rkmcswain is the one as well.

Page 1 of 2 12 LastLast

Similar Threads

  1. converting multi sheet drawing file into single drawing files
    By harryschoenauer in forum AutoCAD General
    Replies: 3
    Last Post: 2013-01-23, 07:36 PM
  2. Bind all Xrefs in a drawing, and perform the task on numerous drawing files
    By JeffThomasIII in forum AutoCAD Customization
    Replies: 3
    Last Post: 2007-06-19, 03:34 PM
  3. Replies: 2
    Last Post: 2007-05-17, 10:50 PM
  4. Replies: 2
    Last Post: 2006-05-10, 06:38 PM
  5. Replies: 2
    Last Post: 2006-05-02, 04:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •