Menu

#65 arcto primitive behvior not as described in manual

open
nobody
None
5
2020-04-16
2020-04-07
Nick
No

The arcto drawing primitive seems to be drawing some sort of elliptical arc - not an arc connecting two vectors as shown in both user manuals available online. The radius feature seems to have no impact to the result.

Related

Bugs: #65

Discussion

  • Vincent P. LaBella

    Can you send a demo script and output as well as version number and OS?

    Thanks

    Vince

    From: Nick nickbevins@users.sourceforge.net
    Sent: Tuesday, April 7, 2020 12:58 PM
    To: Ticket #65: arcto primitive behvior not as described in manual 65@bugs.glx.p.re.sourceforge.net
    Subject: [glx:bugs] #65 arcto primitive behvior not as described in manual


    [bugs:#65]https://sourceforge.net/p/glx/bugs/65/ arcto primitive behvior not as described in manual

    Status: open
    Group:
    Created: Tue Apr 07, 2020 04:58 PM UTC by Nick
    Last Updated: Tue Apr 07, 2020 04:58 PM UTC
    Owner: nobody

    The arcto drawing primitive seems to be drawing some sort of elliptical arc - not an arc connecting two vectors as shown in both user manuals available online. The radius feature seems to have no impact to the result.


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/glx/bugs/65/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #65

    • Nick

      Nick - 2020-04-09

      Hi Vince,

      I'm running Version: 4.2.5 Build date: Aug 17 2015 22:09:00 on Windows 10 Pro (v1903, build 18362.720).

      Here is some demo code:

      size 10 10
      
      amove 1.5 .5
      rline 1 0
      set lwidth .1
      arcto 2 0 -1 1 .5
      set lwidth 0
      rline -1 1
      
      amove 6 .5
      rline 1 0
      set lwidth .1
      arcto 2 0 -1 1 2
      set lwidth 0
      rline -1 1
      
      amove 1.5 6
      rline 1 0
      set lwidth .1
      arcto 2 0 -1 1 10
      set lwidth 0
      rline -1 1
      
      amove 6 6
      rline 1 0
      set lwidth .1
      arcto 2 0 -1 1 0.01
      set lwidth 0
      rline -1 1
      

      I am just copying and slightly modifying the code from the gle-manual.pdf user guide. It seems to be similar between each guide. I've attached the png export of the output (looks the same in the gui).

      Thanks for looking into it. This is a great program and I'm very thankful to those maintaining it.

       
      • Vincent P. LaBella

        Hi Nick:

        I think this is the expected behavior for "arcto" command. It fits an arc into the dimensions you provide. This is in contrast to drawing an arc of a circle with a fixed radius, which is what the "arc" command does. I think the arcto is effectively ignoring the radius since it is fitting a smooth curve from x1,y1 to x2,y2.

        If there is some specific arc you want to draw and are having trouble email the general list for help with an example.

        Best,

        Vince

        From: Nick nickbevins@users.sourceforge.net
        Sent: Thursday, April 9, 2020 1:17 PM
        To: [glx:bugs] 65@bugs.glx.p.re.sourceforge.net
        Subject: [glx:bugs] Re: #65 arcto primitive behvior not as described in manual

        Hi Vince,

        I'm running Version: 4.2.5 Build date: Aug 17 2015 22:09:00 on Windows 10 Pro (v1903, build 18362.720).

        Here is some demo code:

        size 10 10

        amove 1.5 .5

        rline 1 0

        set lwidth .1

        arcto 2 0 -1 1 .5

        set lwidth 0

        rline -1 1

        amove 6 .5

        rline 1 0

        set lwidth .1

        arcto 2 0 -1 1 2

        set lwidth 0

        rline -1 1

        amove 1.5 6

        rline 1 0

        set lwidth .1

        arcto 2 0 -1 1 10

        set lwidth 0

        rline -1 1

        amove 6 6

        rline 1 0

        set lwidth .1

        arcto 2 0 -1 1 0.01

        set lwidth 0

        rline -1 1

        I am just copying and slightly modifying the code from the gle-manual.pdf user guide. It seems to be similar between each guide. I've attached the png export of the output (looks the same in the gui).

        Thanks for looking into it. This is a great program and I'm very thankful to those maintaining it.

        Attachments:


        [bugs:#65]https://sourceforge.net/p/glx/bugs/65/ arcto primitive behvior not as described in manual

        Status: open
        Group:
        Created: Tue Apr 07, 2020 04:58 PM UTC by Nick
        Last Updated: Tue Apr 07, 2020 04:58 PM UTC
        Owner: nobody

        The arcto drawing primitive seems to be drawing some sort of elliptical arc - not an arc connecting two vectors as shown in both user manuals available online. The radius feature seems to have no impact to the result.


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/glx/bugs/65/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #65

  • Nick

    Nick - 2020-04-16

    Hi Vince,

    The description of the arcto in the documentation says:

    Draws a line from the current point to (x1,y1) then to (x2,y2) but fits an arc of radius rad joining
    the two vectors instead of a vertex at the point (x1,y1).

    Based on this, I would expect it to first draw a line to x1,y1 and then an arc of circular (not elliptical) radius rad to x2,y2.

    There is also an accompanying figure on page 9 of the gle-manual.pdf document. That figure clearly shows a bold line first being drawn to the specified x1,y1 before arcing to x2,y2.

    The code I used earlier is the exact code from the manual - though the result is clearly different.

    Thank you again for looking into it.

    Nick

     
    • Vincent P. LaBella

      Nick:

      I see your POV but I could see it the other way too: "it fits an arc to the two vectors from the current point". I am not the original programmer so I don't really know what the intention was. Also it looks like you are getting what is in the manual see below.

      The general list can help with drawing questions.

      [cid:image001.png@01D61409.A1DEC240]

      From: Nick nickbevins@users.sourceforge.net
      Sent: Thursday, April 16, 2020 2:55 PM
      To: [glx:bugs] 65@bugs.glx.p.re.sourceforge.net
      Subject: [glx:bugs] #65 arcto primitive behvior not as described in manual

      Hi Vince,

      The description of the arcto in the documentation says:

      Draws a line from the current point to (x1,y1) then to (x2,y2) but fits an arc of radius rad joining
      the two vectors instead of a vertex at the point (x1,y1).

      Based on this, I would expect it to first draw a line to x1,y1 and then an arc of circular (not elliptical) radius rad to x2,y2.

      There is also an accompanying figure on page 9 of the gle-manual.pdf document. That figure clearly shows a bold line first being drawn to the specified x1,y1 before arcing to x2,y2.

      The code I used earlier is the exact code from the manual - though the result is clearly different.

      Thank you again for looking into it.

      Nick


      [bugs:#65]https://sourceforge.net/p/glx/bugs/65/ arcto primitive behvior not as described in manual

      Status: open
      Group:
      Created: Tue Apr 07, 2020 04:58 PM UTC by Nick
      Last Updated: Thu Apr 09, 2020 05:16 PM UTC
      Owner: nobody

      The arcto drawing primitive seems to be drawing some sort of elliptical arc - not an arc connecting two vectors as shown in both user manuals available online. The radius feature seems to have no impact to the result.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/glx/bugs/65/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #65


Log in to post a comment.

MongoDB Logo MongoDB