bugGNU Octave - Bugs: bug #49851, Plot error when using geometry...

 
 

bug #49851: Plot error when using geometry functions

Submitted by:  Andrew <simulsys>
Submitted on:  Thu 15 Dec 2016 01:21:20 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: AndrewOpen/Closed: Closed
Release: 4.0.3Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 23 Dec 2016 07:22:41 PM UTC, comment #5:

We're only seeing one side of this conversation, I'm guessing because Andrew is replying by email.

Andrew - for future reference replying by email to the bug tracker does nothing, please post comments using the web interface.

Assuming "fixed".

Mike Miller <mtmiller>
Project Administrator
Fri 23 Dec 2016 12:20:15 PM UTC, comment #4:

Good to hear that!

Devs please close this bug

Juan Pablo Carbajal <juanpi>
Project Member
Thu 22 Dec 2016 09:47:14 PM UTC, comment #3:

Dear Andrew,

Yes, please forgive me. The functin is in the dev version of the package.

You can fetch missing functions from here and add them to your local package https://sourceforge.net/p/octave/geometry/ci/default/tree/inst/

The missing function is under polygons2d. I think it doesn't need any other function.

I am making the last adjustments to geometry 3.0.0, it will be release early next year.

Juan Pablo Carbajal <juanpi>
Project Member
Thu 15 Dec 2016 02:19:58 PM UTC, comment #2:

The following code works for me without problems. Output attached
Note the changes I have made to the original code. This is more efficient and it is correct if the intention is to calculate the intersection of the Edges and the circle.

A function intersectEdgeCircle could be added to the package.

(file #39237)

Juan Pablo Carbajal <juanpi>
Project Member
Thu 15 Dec 2016 02:03:50 PM UTC, comment #1:

Thank you.

Would you be able to provide or explain the expected output?

From what I understand it seems you are getting extra intersection points because you calculate the intersection of the lines supporting the edges with the circle and not the edges themselves.

If the edge intersects the circle at one point (not tangent), the line supporting it will intersect the circle at two points.

Juan Pablo Carbajal <juanpi>
Project Member
Thu 15 Dec 2016 01:21:20 PM UTC, original submission:

Hi,

I have a bug which plots the points of intersection incorrectly. Here is the requested code:

I hope you can help, please?

Andrew <simulsys>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #39236:  octavegeometrybug01output.pdf added by simulsys (4KiB - application/pdf - Output from program attached.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by juanpi (Posted a comment)
  • -unavailable- added by simulsys (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Dec 2016 07:22:41 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 15 Dec 2016 02:19:58 PM UTCjuanpiAttached File-=>Added edge_circle_intersect.png, #39237
    Thu 15 Dec 2016 01:21:20 PM UTCsimulsysAttached File-=>Added octavegeometrybug01output.pdf, #39236

    Back to the top


    Powered by Savane 3.1-cleanup1