Sha256: 011039aa7c00781e1473960635dbc8dd0ef6f6ee25ec40ee511963a9da9993cf

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

#!/usr/bin/env ruby
$: << File.join(File.dirname(__FILE__), "/../lib" )
require 'floorplanner'

if ARGV.length < 2
  puts "\n  Usage: fml2dae.rb [-xrefs] path/to/fml out.dae"
  exit
end

conf = {
  :ceiling      => false,
  :window_glass => true
}

if ARGV[0] == "-xrefs"
  ARGV.shift
  conf[:xrefs] = true
end
doc = Floorplanner::XML::Document.from_xml(open(ARGV[0]))
doc.to_dae(ARGV[1], conf)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fml-0.2.5 bin/fml2dae.rb
fml-0.2.4 bin/fml2dae.rb