Circle Geometry

Have jReality programming problems or questions? Post them here.
Post Reply
draperg
Posts: 5
Joined: Wed 5. Jul 2006, 19:06
Location: Salt Lake City, Utah, USA
Contact:

Circle Geometry

Post by draperg » Thu 20. Jul 2006, 23:31

Does jReality currently include a Circle or Disk class to facilitate creating 2D circles (either filled or outline), in addition to the existing Sphere and Cylinder classes?

thanks,
Geoff

draperg
Posts: 5
Joined: Wed 5. Jul 2006, 19:06
Location: Salt Lake City, Utah, USA
Contact:

Post by draperg » Fri 21. Jul 2006, 22:35

Never mind... After posting that question, I've since discovered the Primitives.regularPolygon() method, which works just fine for my purposes! :)

--Geoff

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: circle geometry

Post by steffen » Mon 24. Jul 2006, 18:10

Hi Geoff,

if everything would work as is should I would suggest to use a cylinder as a geometry and a matrix that flattens it into the xy plane. But for now jogl renderer ignores the top and bottom ngon of a cylinder and so does picking. So for now keep your ngon... we will fix this.

Bye, Steffen.

Post Reply