bugGNU Octave - Bugs: bug #50370, geometry package: drawPolygon -...

 
 

bug #50370: geometry package: drawPolygon - added info on input fromat to help text

Submitted by:  Nicholas Jankowski <nrjank>
Submitted on:  Tue 21 Feb 2017 04:01:33 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Nick JankowskiOpen/Closed: Closed
Release: 4.2.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 21 Feb 2017 08:53:51 PM UTC, comment #4:

I applied the patch. Thanks.

@devs: please close this bug

Juan Pablo Carbajal <juanpi>
Project Member
Tue 21 Feb 2017 08:48:59 PM UTC, comment #3:

ok,
in dev version of geometry I get

This is consistent with the definition of polygons2d

I will check to integrate the improved docstring

Juan Pablo Carbajal <juanpi>
Project Member
Tue 21 Feb 2017 08:21:48 PM UTC, comment #2:

This sounds like a bug. drawPolygon (x,y) should do the same regardless of inputs being row or columns. Nevertheless Matgeom's polygons are defined as N-by-dim arrays.

I will probably leave the Matgeom ids, for the moment. I am trying to stop diverging from upstream.

Thanks, I will apply changes asap

Juan Pablo Carbajal <juanpi>
Project Member
Tue 21 Feb 2017 04:07:07 PM UTC, comment #1:

cset added

(file #39805)

Nicholas Jankowski <nrjank>
Tue 21 Feb 2017 04:01:33 PM UTC, original submission:

confusion came up on the help list about proper input format for drawPolygon. After poking around a bit myself I took the liberty of expanding the help a bit. Will attach the changeset after generating a bug number.

A few notes: the (PX, PY) format only works for column vector inputs, and produces unexpected results for row vectors (no error or warning). Is this as it should be? help text I added specifies they should be column vectors to match this behavior.

Eg.,

produce very different inputs. Former produces [1 -2; 2 2; 3 -2], latter produces [-1 -2; 0 2; -2 1] as expected.

Also, there are a few places where warning and error messages still say Matgeom. should that now say geometry?

Nicholas Jankowski <nrjank>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #39805:  drawpolygon_doc.diff added by nrjank (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by juanpi (Posted a comment)
  • -unavailable- added by nrjank (Submitted the item)
  • -unavailable- added by nrjank (package maintainer)
  •  

    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
    Tue 21 Feb 2017 09:20:56 PM UTCphilipnienhuisStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 21 Feb 2017 04:07:07 PM UTCnrjankAttached File-=>Added drawpolygon_doc.diff, #39805
    Tue 21 Feb 2017 04:01:33 PM UTCnrjankCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1