2 Replies - 4785 Views - Last Post: 06 August 2010 - 09:08 PM Rate Topic: -----

#1 Guest_Scopa*


Reputation:

Difference between a Polygon and a Polyline

Posted 06 August 2010 - 04:47 AM

I am working with graphics2D and I wanted to know the difference between the polygon and polyline.

would it be the same if I mad an extra set of points in polyline linking itself to the first point?
Is This A Good Question/Topic? 0

Replies To: Difference between a Polygon and a Polyline

#2 Crunch  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 139
  • View blog
  • Posts: 1,222
  • Joined: 28-July 09

Re: Difference between a Polygon and a Polyline

Posted 06 August 2010 - 05:42 AM

View PostScopa, on 06 August 2010 - 10:47 AM, said:

I am working with graphics2D and I wanted to know the difference between the polygon and polyline.


Poly-line is a line used to approximate a curve.

Quote

would it be the same if I mad an extra set of points in polyline linking itself to the first point?


You will get a polygon.
Was This Post Helpful? 0
  • +
  • -

#3 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8342
  • View blog
  • Posts: 31,880
  • Joined: 06-March 08

Re: Difference between a Polygon and a Polyline

Posted 06 August 2010 - 09:08 PM

PolyLine draws a line between multiple points
PolyGone draws a line between multiple points with the last point going back to the first point
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1