john doe <johnny@floorplanner.com> 2006-06-21T21:23:22Z 2006-06-21T21:23:22Z Z_UP 70 0.1 100.0 <% @areas.each do |area_mesh| %> <% end %> <% unless @xrefs; @assets.each_value do |asset| %> <% asset.library_materials.each do |materials| %> <%= materials.to_s %> <% end %> <% end; end %> 0.05 0.05 0.05 1 0.15 0.15 0.15 1 0.9 0.9 0.9 1 0 0 0 1 0.0 1 1 1 1 0.0 1 1 1 1 0.0 0.0 0.0 0.0 1 0.15 0.15 0.15 1 0.9 0.9 1.0 1 0 0 0 1 0.0 1 1 1 1 0.2 1 1 1 1 0.9 <% @areas.each do |area_mesh|; id = area_mesh.data[:id].to_s %> <% if area_mesh.data[:texture] %> <%= area_mesh.data[:color].join(' ') %> <% end %> <% if area_mesh.data[:texture] %> area_<%= id %>-image area_<%= id %>-surface <% end %> 0.05 0.05 0.05 1 0.1 0.1 0.1 1 <% if area_mesh.data[:texture] %> <% else %> <%= area_mesh.data[:color].join(' ') %> 1 <% end %> 0 0 0 1 0.0 1 1 1 1 0.0 1 1 1 1 0.0 <% end %> <% unless @xrefs; @assets.each_value do |asset| %> <% asset.library_effects.each do |effects| %> <%= effects.to_s %> <% end %> <% end; end %> <% @areas.each do |area_mesh|; if area_mesh.data[:texture] %> <%= Floorplanner.config['area_textures_path'] + area_mesh.data[:texture].gsub('textures/2d/','').gsub(/\.swf$/,'.png') %> <% end; end %> <% unless @xrefs; @assets.each_value do |asset| %> <% asset.library_images.each do |image| %> <%= image.to_s %> <% end %> <% end; end %> <%= @walls.vertices.collect {|v| v.to_floats }.join(' ') %>

<%= @walls.faces.collect{|f| f.vertices.collect{|v| @walls.vertices.index(v)}}.flatten.join(' ') %>

<% windows_vertices = @walls.windows.collect {|w| w.vertices}.flatten windows_faces = @walls.windows.collect {|w| w.faces}.flatten %> <%= windows_vertices.collect {|v| v.to_floats }.join(' ') %>

<% offset = 0 @walls.windows.each do |w| %> <%= w.faces.collect{|f| f.vertices.collect{|v| w.vertices.index(v) + offset}}.flatten.join(' ') %> <% offset += w.vertices.length ; end %>

<% @areas.each do |area_mesh|; id = area_mesh.data[:id] %> <%= area_mesh.vertices.collect {|v| v.to_floats }.join(' ') %> <%= area_mesh.texcoord.map{|n| [n.u,n.v]}.flatten.join(' ') %> ">

<%= area_mesh.faces.collect { |f| v = f.vertices.collect { |v| area_mesh.vertices.index(v) } t = f.texcoord.collect { |t| area_mesh.texcoord.index(t) } [v[0],t[0],v[1],t[1],v[2],t[2]] }.flatten.join(' ') %>

<% end %> <% unless @xrefs; @assets.each_value do |asset| %> <% asset.library_geometries.each do |geometries| %> <%= geometries.to_s %> <% end %> <% end; end %>
<% unless @xrefs %> <% @assets.each_value do |asset| %> <% asset.library_nodes.each do |nodes| %> <%= nodes.to_s %> <% end %> <% end %> <% end %> 800 600 0 2 gaussian ipr 4 2 ambocc 1 1 1 0 0 0 64 3.0 0 0 1 1 0 0 0.2 0.4 0.7 1 1 1 9.0 -1.0 1.4 8.0 -2.0 1.4 0.0 0.0 1.0 <% @areas.each do |area_mesh|; id = area_mesh.data[:id] %> <% if area_mesh.data[:type] == 'generated_area' %> 0.0 0.0 <%= @areas.ceiling_z %> <% end %> <% end %> <% @elements.each do |element| %> <%= element[:position].to_floats %> <% if element[:matrix] %> <%= element[:matrix].to_a.join ' ' %> <% end %> <% if element[:rotation].x > 0 %> 1 0 0 <%= element[:rotation].x %> <% end %> <% if element[:rotation].y > 0 %> 0 1 0 <%= element[:rotation].y %> <% end %> <% if element[:rotation].z > 0 %> 0 0 1 <%= element[:rotation].z %> <% end %> <%= element[:scale].to_floats %> <% if @xrefs %> <% else %> <%= element[:asset].visual_scene_node.to_s %> <% end %> <% end %>