<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,40 @@
 module KML
   class Model &lt; Geometry
+
+    def initialize(params={})
+      @lng, @lat, @alt = *params[:location]
+      @heading, @tilt, @roll = *params[:orientation] || [0, 0, 0]
+      @x, @y, @z = *params[:scale] || [1, 1, 1]
+      @link = params[:link]
+      @id = params[:id] if params[:id]
+    end
+
+    def id
+      @id || &quot;model_#{@link.href}_#{@x}_#{@y}&quot;
+    end
+
+    def render(xm = Builder::XmlMarkup.new(:indent =&gt; 2))
+      xm.Model :id =&gt; id do
+        xm.altitudeMode(altitude_mode) if altitude_mode_set?
+        xm.Location do
+          xm.longitude @lng
+          xm.latitude  @lat
+          xm.altitude  @alt
+        end
+        xm.Orientation do
+          xm.heading @heading
+          xm.tilt    @tilt
+          xm.roll    @roll
+        end
+        xm.Scale do
+          xm.x @x
+          xm.y @y
+          xm.z @z
+        end
+        @link.render(xm)
+        # ResourceMap needs to be implemented still
+      end
+    end
+
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/kml/model.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8f65048534a23a11f77e39ff2e715c0e67dc819c</id>
    </parent>
  </parents>
  <author>
    <name>andykram</name>
    <email>andrew.kramolisch.07@cnu.edu</email>
  </author>
  <url>http://github.com/schleyfox/ruby_kml/commit/7ab99c4bb3a0569b192c479c5aece6be476b6e7b</url>
  <id>7ab99c4bb3a0569b192c479c5aece6be476b6e7b</id>
  <committed-date>2008-07-23T13:34:56-07:00</committed-date>
  <authored-date>2008-07-23T13:34:56-07:00</authored-date>
  <message>Model class bitches</message>
  <tree>367a4a37b4b1c7e6d4425d17d0e6af405aca6f54</tree>
  <committer>
    <name>andykram</name>
    <email>andrew.kramolisch.07@cnu.edu</email>
  </committer>
</commit>
