I need to make some planar tessellation for a small project. I need to make rectangular, rhombic (diagonal), triangular and hexagonal grids. The problem I have is that I want to find a method which doesnt duplicate points/edges. In addition, if I have a point list storing vertices of my grid I have to be able to sort that list and extract collections os sub points comprising basic shape of this tessellation - ie. 4 points identifying a square, or 3 points for triangles and 6 points for hex.

Can anyone suggest a method to build this geometry easily? Eventually I'd like to implement in different shape classes beloging to the same super shape class.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org