From: Todd Burch Date: 2008-09-03T18:21:34+09:00 Subject: Re: Sketchup: Constructing Triangle with Ruby Eps Ilon wrote: > G.Durga Prasad wrote: > >> My wild guess: >> The first and last points may differ as they are built out of floating >> point numbers. >> Try integers to represent the points, at least , the first and the last. >> >> Prasad > > Well... I don't think so. The first and last point are exakly the same, > bit by bit, as you can see here: > > pts << pts.first() # adding last point > > But thanks anyway.... If you want a 3 sided shape, pass 3 points (AKA vertices) to entities.add_face, not 4. Todd (Do I get the old post resurrection award today?) -- Posted via http://www.ruby-forum.com/.