Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solving a pattern. Stuck...
#1
Hi all,

I am currently trying to create geometries from a list of point (0-9) and need to organize the points.
The points look like this:

0
1 2
3 4 5
6 7 8 9

what i need to is create sets of triangles so i need to organize the points like this:
[0,1,2,0]
[1,3,4,1]
[1,2,4,1]
[2,4,5,2]
[3,6,7,3]
[3,4,7,3]
[4,7,8,4]
[4,5,8,4]
[5,8,9,5]

the first and last points always repeat to create a closed triangle.

Any thoughts? I made the first triangle but can't find the pattern for all the rest.
Reply


Messages In This Thread
Solving a pattern. Stuck... - by lzalez - Sep-28-2018, 01:54 AM
RE: Solving a pattern. Stuck... - by Larz60+ - Sep-28-2018, 10:57 AM
RE: Solving a pattern. Stuck... - by ichabod801 - Sep-28-2018, 11:57 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020