# Floorplanner.com # <%= @name %> <% vertices = @walls.vertices + @areas.vertices faces = @walls.faces + @areas.faces %> <% vertices.each do |v| %> v <%= [v.x,v.z,v.y].join(' ') %><% end %> <% faces.each do |f| v = [ vertices.index(f.vertices[0]), vertices.index(f.vertices[1]), vertices.index(f.vertices[2]) ] if v.compact.length == 3 %> f <%= v.collect{|w|w+1}.join(' ') %><% end ; end %>