canadaduane/house — pull request #21 by daz260 (2014-06-25 03:40:52+00:00)
Title: the praposale

facet normal -8.101145e-02 2.632299e-02 9.963655e-01
outer loop
vertex -7.639320e-01 3.401240e-01 2.268250e+01
vertex -2.418110e+00 5.139840e-01 2.254340e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
endloop
endfacet
facet normal -8.471396e-02 8.904136e-03 9.963655e-01
outer loop
vertex -2.418110e+00 5.139840e-01 2.254340e+01
vertex -2.472140e+00 0.000000e+00 2.254340e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
endloop
endfacet
facet normal -8.471386e-02 8.903085e-03 9.963655e-01
outer loop
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -2.472140e+00 0.000000e+00 2.254340e+01
vertex -8.362280e-01 0.000000e+00 2.268250e+01
endloop
endfacet
facet normal -8.471386e-02 -8.904126e-03 9.963655e-01
outer loop
vertex -8.362280e-01 0.000000e+00 2.268250e+01
vertex -2.472140e+00 0.000000e+00 2.254340e+01
vertex -2.418110e+00 -5.139840e-01 2.254340e+01
endloop
endfacet
facet normal -8.471415e-02 -8.903125e-03 9.963655e-01
outer loop
vertex -8.362280e-01 0.000000e+00 2.268250e+01
vertex -2.418110e+00 -5.139840e-01 2.254340e+01
vertex -8.179560e-01 -1.738600e-01 2.268250e+01
endloop
endfacet
facet normal -8.101165e-02 -2.632198e-02 9.963655e-01
outer loop
vertex -8.179560e-01 -1.738600e-01 2.268250e+01
vertex -2.418110e+00 -5.139840e-01 2.254340e+01
vertex -2.258410e+00 -1.005510e+00 2.254340e+01
endloop
endfacet
facet normal -8.101116e-02 -2.632289e-02 9.963655e-01
outer loop
vertex -8.179560e-01 -1.738600e-01 2.268250e+01
vertex -2.258410e+00 -1.005510e+00 2.254340e+01
vertex -7.639320e-01 -3.401240e-01 2.268250e+01
endloop
endfacet
facet normal -7.376846e-02 -4.259018e-02 9.963655e-01
outer loop
vertex -7.639320e-01 -3.401240e-01 2.268250e+01
vertex -2.258410e+00 -1.005510e+00 2.254340e+01
vertex -2.000000e+00 -1.453080e+00 2.254340e+01
endloop
endfacet
facet normal -7.376926e-02 -4.258928e-02 9.963655e-01
outer loop
vertex -7.639320e-01 -3.401240e-01 2.268250e+01
vertex -2.000000e+00 -1.453080e+00 2.254340e+01
vertex -6.765240e-01 -4.915240e-01 2.268250e+01
endloop
endfacet
facet normal -6.330147e-02 -5.699697e-02 9.963655e-01
outer loop
vertex -6.765240e-01 -4.915240e-01 2.268250e+01
vertex -2.000000e+00 -1.453080e+00 2.254340e+01
vertex -1.654180e+00 -1.837160e+00 2.254340e+01
endloop
endfacet
facet normal -6.330057e-02 -5.699757e-02 9.963655e-01
outer loop
vertex -6.765240e-01 -4.915240e-01 2.268250e+01
vertex -1.654180e+00 -1.837160e+00 2.254340e+01
vertex -5.595440e-01 -6.214400e-01 2.268250e+01
endloop
endfacet
facet normal -5.006778e-02 -6.891247e-02 9.963655e-01
outer loop
vertex -5.595440e-01 -6.214400e-01 2.268250e+01
vertex -1.654180e+00 -1.837160e+00 2.254340e+01
vertex -1.236070e+00 -2.140930e+00 2.254340e+01
endloop
endfacet
facet normal -5.006768e-02 -6.891257e-02 9.963655e-01
outer loop
vertex -5.595440e-01 -6.214400e-01 2.268250e+01
vertex -1.236070e+00 -2.140930e+00 2.254340e+01
vertex -4.181120e-01 -7.241960e-01 2.268250e+01
endloop
endfacet
facet normal -3.464599e-02 -7.781626e-02 9.963655e-01
outer loop
vertex -4.181120e-01 -7.241960e-01 2.268250e+01
vertex -1.236070e+00 -2.140930e+00 2.254340e+01
vertex -7.639320e-01 -2.351140e+00 2.254340e+01
endloop
endfacet
facet normal -3.464568e-02 -7.781636e-02 9.963655e-01
outer loop
vertex -4.181120e-01 -7.241960e-01 2.268250e+01
vertex -7.639320e-01 -2.351140e+00 2.254340e+01
vertex -2.584080e-01 -7.953000e-01 2.268250e+01
endloop
endfacet
facet normal -1.770999e-02 -8.331916e-02 9.963655e-01
outer loop
vertex -2.584080e-01 -7.953000e-01 2.268250e+01
vertex -7.639320e-01 -2.351140e+00 2.254340e+01
vertex -2.584080e-01 -2.458590e+00 2.254340e+01
endloop
endfacet
facet normal -1.771039e-02 -8.331916e-02 9.963655e-01
outer loop
vertex -2.584080e-01 -7.953000e-01 2.268250e+01
vertex -2.584080e-01 -2.458590e+00 2.254340e+01
vertex -8.740800e-02 -8.316480e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 -8.518056e-02 9.963655e-01
outer loop
vertex -8.740800e-02 -8.316480e-01 2.268250e+01
vertex -2.584080e-01 -2.458590e+00 2.254340e+01
vertex 2.584080e-01 -2.458590e+00 2.254340e+01
endloop
endfacet
facet normal 0.000000e+00 -8.518056e-02 9.963655e-01
outer loop
vertex 8.740800e-02 -8.316480e-01 2.268250e+01
vertex -8.740800e-02 -8.316480e-01 2.268250e+01
vertex 2.584080e-01 -2.458590e+00 2.254340e+01
endloop
endfacet
facet normal 1.770999e-02 -8.331916e-02 9.963655e-01
outer loop
vertex 7.639320e-01 -2.351140e+00 2.254340e+01
vertex 8.740800e-02 -8.316480e-01 2.268250e+01
vertex 2.584080e-01 -2.458590e+00 2.254340e+01
endloop
endfacet
facet normal 1.771039e-02 -8.331896e-02 9.963655e-01
outer loop
vertex 2.584080e-01 -7.953000e-01 2.268250e+01
vertex 8.740800e-02 -8.316480e-01 2.268250e+01
vertex 7.639320e-01 -2.351140e+00 2.254340e+01
endloop
endfacet
facet normal 3.464599e-02 -7.781626e-02 9.963655e-01
outer loop
vertex 1.236070e+00 -2.140930e+00 2.254340e+01
vertex 2.584080e-01 -7.953000e-01 2.268250e+01
vertex 7.639320e-01 -2.351140e+00 2.254340e+01
endloop
endfacet
facet normal 3.464568e-02 -7.781646e-02 9.963655e-01
outer loop
vertex 4.181120e-01 -7.241960e-01 2.268250e+01
vertex 2.584080e-01 -7.953000e-01 2.268250e+01
vertex 1.236070e+00 -2.140930e+00 2.254340e+01
endloop
endfacet
facet normal 5.006778e-02 -6.891247e-02 9.963655e-01
outer loop
vertex 1.654180e+00 -1.837160e+00 2.254340e+01
vertex 4.181120e-01 -7.241960e-01 2.268250e+01
vertex 1.236070e+00 -2.140930e+00 2.254340e+01
endloop
endfacet
facet normal 5.006768e-02 -6.891257e-02 9.963655e-01
outer loop
vertex 5.595440e-01 -6.214400e-01 2.268250e+01
vertex 4.181120e-01 -7.241960e-01 2.268250e+01
vertex 1.654180e+00 -1.837160e+00 2.254340e+01
endloop
endfacet
facet normal 6.330147e-02 -5.699687e-02 9.963655e-01
outer loop
vertex 2.000000e+00 -1.453080e+00 2.254340e+01
vertex 5.595440e-01 -6.214400e-01 2.268250e+01
vertex 1.654180e+00 -1.837160e+00 2.254340e+01
endloop
endfacet
facet normal 6.330086e-02 -5.699787e-02 9.963655e-01
outer loop
vertex 6.765240e-01 -4.915240e-01 2.268250e+01
vertex 5.595440e-01 -6.214400e-01 2.268250e+01
vertex 2.000000e+00 -1.453080e+00 2.254340e+01
endloop
endfacet
facet normal 7.376856e-02 -4.259028e-02 9.963655e-01
outer loop
vertex 2.258410e+00 -1.005510e+00 2.254340e+01
vertex 6.765240e-01 -4.915240e-01 2.268250e+01
vertex 2.000000e+00 -1.453080e+00 2.254340e+01
endloop
endfacet
facet normal 7.376897e-02 -4.258918e-02 9.963655e-01
outer loop
vertex 7.639320e-01 -3.401240e-01 2.268250e+01
vertex 6.765240e-01 -4.915240e-01 2.268250e+01
vertex 2.258410e+00 -1.005510e+00 2.254340e+01
endloop
endfacet
facet normal 8.101156e-02 -2.632199e-02 9.963655e-01
outer loop
vertex 2.418110e+00 -5.139840e-01 2.254340e+01
vertex 7.639320e-01 -3.401240e-01 2.268250e+01
vertex 2.258410e+00 -1.005510e+00 2.254340e+01
endloop
endfacet
facet normal 8.101145e-02 -2.632299e-02 9.963655e-01
outer loop
vertex 8.179560e-01 -1.738600e-01 2.268250e+01
vertex 7.639320e-01 -3.401240e-01 2.268250e+01
vertex 2.418110e+00 -5.139840e-01 2.254340e+01
endloop
endfacet
facet normal 8.471396e-02 -8.904136e-03 9.963655e-01
outer loop
vertex 2.472140e+00 0.000000e+00 2.254340e+01
vertex 8.179560e-01 -1.738600e-01 2.268250e+01
vertex 2.418110e+00 -5.139840e-01 2.254340e+01
endloop
endfacet
facet normal 8.471386e-02 -8.903085e-03 9.963655e-01
outer loop
vertex 8.362280e-01 0.000000e+00 2.268250e+01
vertex 8.179560e-01 -1.738600e-01 2.268250e+01
vertex 2.472140e+00 0.000000e+00 2.254340e+01
endloop
endfacet
facet normal 8.471386e-02 8.904126e-03 9.963655e-01
outer loop
vertex 2.418110e+00 5.139840e-01 2.254340e+01
vertex 8.362280e-01 0.000000e+00 2.268250e+01
vertex 2.472140e+00 0.000000e+00 2.254340e+01
endloop
endfacet
facet normal 8.471415e-02 8.903125e-03 9.963655e-01
outer loop
vertex 2.418110e+00 5.139840e-01 2.254340e+01
vertex 8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.362280e-01 0.000000e+00 2.268250e+01
endloop
endfacet
facet normal 8.101165e-02 2.632198e-02 9.963655e-01
outer loop
vertex 2.258410e+00 1.005510e+00 2.254340e+01
vertex 8.179560e-01 1.738600e-01 2.268250e+01
vertex 2.418110e+00 5.139840e-01 2.254340e+01
endloop
endfacet
facet normal 8.101116e-02 2.632289e-02 9.963655e-01
outer loop
vertex 2.258410e+00 1.005510e+00 2.254340e+01
vertex 7.639320e-01 3.401240e-01 2.268250e+01
vertex 8.179560e-01 1.738600e-01 2.268250e+01
endloop
endfacet
facet normal 7.376846e-02 4.259018e-02 9.963655e-01
outer loop
vertex 2.000000e+00 1.453080e+00 2.254340e+01
vertex 7.639320e-01 3.401240e-01 2.268250e+01
vertex 2.258410e+00 1.005510e+00 2.254340e+01
endloop
endfacet
facet normal 7.376926e-02 4.258928e-02 9.963655e-01
outer loop
vertex 2.000000e+00 1.453080e+00 2.254340e+01
vertex 6.765240e-01 4.915240e-01 2.268250e+01
vertex 7.639320e-01 3.401240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -8.362280e-01 0.000000e+00 2.268250e+01
vertex -8.179560e-01 -1.738600e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -6.765240e-01 -4.915240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -7.639320e-01 -3.401240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -7.639320e-01 -3.401240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -8.179560e-01 -1.738600e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -5.595440e-01 -6.214400e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -6.765240e-01 -4.915240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -4.181120e-01 -7.241960e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -5.595440e-01 -6.214400e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -2.584080e-01 -7.953000e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -4.181120e-01 -7.241960e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -8.740800e-02 -8.316480e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -2.584080e-01 -7.953000e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 8.740800e-02 -8.316480e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -8.740800e-02 -8.316480e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 2.584080e-01 -7.953000e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.740800e-02 -8.316480e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 4.181120e-01 -7.241960e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 2.584080e-01 -7.953000e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 5.595440e-01 -6.214400e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 4.181120e-01 -7.241960e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 6.765240e-01 -4.915240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 5.595440e-01 -6.214400e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 7.639320e-01 -3.401240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 6.765240e-01 -4.915240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 8.179560e-01 -1.738600e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 7.639320e-01 -3.401240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 8.362280e-01 0.000000e+00 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.179560e-01 -1.738600e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 8.179560e-01 1.738600e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.362280e-01 0.000000e+00 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 7.639320e-01 3.401240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.179560e-01 1.738600e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 6.765240e-01 4.915240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 7.639320e-01 3.401240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 5.595440e-01 6.214400e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 6.765240e-01 4.915240e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 4.181120e-01 7.241960e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 5.595440e-01 6.214400e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 2.584080e-01 7.953000e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 4.181120e-01 7.241960e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex 8.740800e-02 8.316480e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 2.584080e-01 7.953000e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -8.740800e-02 8.316480e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex 8.740800e-02 8.316480e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -2.584080e-01 7.953000e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -8.740800e-02 8.316480e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -4.181120e-01 7.241960e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -2.584080e-01 7.953000e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -5.595440e-01 6.214400e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -4.181120e-01 7.241960e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -6.765240e-01 4.915240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -5.595440e-01 6.214400e-01 2.268250e+01
endloop
endfacet
facet normal 0.000000e+00 0.000000e+00 1.000000e+00
outer loop
vertex -7.639320e-01 3.401240e-01 2.268250e+01
vertex -8.179560e-01 1.738600e-01 2.268250e+01
vertex -6.765240e-01 4.915240e-01 2.268250e+01
endloop
endfacet
endsolid Default
@@ -0,0 +1,49 @@
+# Note: This file is read in by active_admin.rb and several of the :symbols are replaced
+# with meaningful Ruby classes and values.
+
+class :controller_class < Base
+ before :set_model_class
+
+ def list(page = 1, per_page = 15)
+ @paginated = @model.paginate(page.to_i, per_page.to_i)
+ @objects = @paginated.all
+ active_admin_render(:list)
+ end
+
+ def show(id)
+ @object = @model[id]
+ raise NotFound, "#{@model} #{id} not found" if @object.nil?
+ active_admin_render(:show)
+ end
+
+ def new
+ active_admin_render(:new)
+ end
+
+ def create(object)
+ @model.create(object)
+ redirect active_admin_url(:list)
+ end
+
+ def edit(id)
+ @object = @model[id]
+ raise NotFound, "#{@model} #{id} not found" if @object.nil?
+ active_admin_render(:edit)
+ end
+
+ def update(id, object)
+ @model[id].update(object)
+ redirect active_admin_url(:list)
+ end
+
+ def destroy(id)
+ @model[id].destroy
+ redirect active_admin_url(:list)
+ end
+
+ private
+
+ def set_model_class
+ @model = :model_class
+ end
+end