Author Topic: Voronoi Table Lamp  (Read 30704 times)

Offline mikek

  • Ewok
  • *
  • Posts: 31
    • View Profile
Re: Voronoi Table Lamp
« Reply #15 on: May 26, 2014, 17:51:29 pm »
Here's the source files for my load_polygons project.
I used  Visual Studio 2010 Express C # for this.

Mike

Offline macbob

  • Storm Trooper
  • ***
  • Posts: 189
    • View Profile
    • Bob Mackay
Re: Voronoi Table Lamp
« Reply #16 on: May 26, 2014, 21:21:16 pm »
Hi Mike,

Sorry for the confusion: I was not saying that YOU should use XML; I was saying that a '.cb' file IS in XML and can be viewed in any editor or browser, if it is prepared to recognise a .cb file as something it can read.

My bodge was simply to replace the 'object' tag in an empty .cb project with the lines I wanted, which I put there by reading a file very similar to yours.

My day job involves data presentment in many forms, so I find XML very familiar to work with, whereas C# is a Microsoft thing that I could not begin to comprehend!


Bob

Offline BR52

  • Wookie
  • ****
  • Posts: 368
    • View Profile
Re: Voronoi Table Lamp
« Reply #17 on: May 27, 2014, 01:19:26 am »
Hi Mike

You can put some sample files *.txt

   Armando

Offline mikek

  • Ewok
  • *
  • Posts: 31
    • View Profile
Re: Voronoi Table Lamp
« Reply #18 on: May 27, 2014, 23:15:45 pm »
Hi Armando,

Here are two sample polygons generated from voronoi algorythm.

sample_polys1.txt was created from me manually adding points to a graph paper and transferring coordinates
                         into the perl program for voronoi to make polygons of them.

sample_polys2.txt was produced from Bob's perl looping lines as he provided in a note in this thread.

Note: When you load sample_polys2.txt into cambam it is very ,very large but offset from the x,y zero line.
         You will have to zoom out a long , long way to see it.

You will want to resize either of them before following the README instruction.

Mike