{"id":311,"date":"2008-07-13T10:45:15","date_gmt":"2008-07-13T15:45:15","guid":{"rendered":"http:\/\/www.thegatesofdawn.ca\/wordpress\/posts\/2008\/07\/13\/311\/"},"modified":"2024-08-02T00:27:53","modified_gmt":"2024-08-02T05:27:53","slug":"311","status":"publish","type":"post","link":"https:\/\/www.thegatesofdawn.ca\/wordpress\/posts\/2008\/07\/13\/311\/","title":{"rendered":"Building a deck cabinet in Google Sketchup"},"content":{"rendered":"\n<p>I wanted to get an outdoor cabinet of some kind on my deck, to hold BBQ tools, charcoal, some garden tools, etc. I looked at Home Depot, but all they had was really ugly molded plastic monstrosities. So, I decided to build one myself.<br \/><\/p>\n\n\n\n<!--more-->\n\n\n\n<p><br \/>I wanted to design it using a 3-D CAD package, and I found <a title=\"Google Sketchup\" href=\"http:\/\/sketchup.google.com\/\">Google Sketchup<\/a> was a very cost-effective solution. The cost is &#8220;free&#8221; (as in beer), and it&#8217;s very capable for the money. Constructing the 3-D model is very easy. You can draw with precision in the same sort of way as in real CAD programs. When a line is supposed to intersect a circle at a tangent, or meet the end of another line at right angles, you can be sure it really does.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"\/wordpress\/wp-content\/uploads\/deckcabinet3_overview.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/deckcabinet3_overview.thumbnail.png\" alt=\"Deck Cabinet Overview\" width=\"246\" height=\"315\"\/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><\/p>\n\n\n\n<figure class=\"wp-block-image alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/deckcabinet_rafterdetail.thumbnail.png\" alt=\"\" width=\"280\" height=\"164\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-left\">And you can add &#8220;dimension&#8221; objects to your model and switch to a parallel projection, to get detailed blueprints to build from. By careful use of layers and the &#8220;Scene Manager&#8221;, you can have it generate many different blueprints for different parts, from different viewpoints. Dimensioning has some annoying limitations, but it worked out ok.<\/p>\n\n\n\n<p>But what really surprised me about Google Sketchup was the huge volume of free plug-ins and scripts you can add to it. I used a plug-in to give it an approximate ability to add angle dimensions to my blueprints. But the most amazing plug-in I stumbled across is <a href=\"http:\/\/code.google.com\/p\/sketchyphysics\/\">SketchyPhysics<\/a>. This one adds a complete physics engine to SketchUp, allowing your model to come to life and start moving.<\/p>\n\n\n\n<p>After viewing some videos of what is possible using SketchyPhysics, I thought it would be interesting and educational to try to make the door hinges in my model functional. After installing SketchyPhysics (very easy), the first thing I did, without having done anything special to my model, was just try hitting &#8220;Play&#8221; on the physics simulation to see what would happen. The result was unexpected, but in retrospect not too surprising:<br \/><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/yF_z-WdQ9dQ&amp;hl=en&amp;fs=1\"\/><param name=\"allowFullScreen\" value=\"true\"\/><embed src=\"http:\/\/www.youtube.com\/v\/yF_z-WdQ9dQ&amp;hl=en&amp;fs=1\" type=\"application\/x-shockwave-flash\" allowfullscreen=\"allowfullscreen\" width=\"425\" height=\"344\"\/><\/object><\/p>\n\n\n\n<p>Conveniently, SketchyPhysics provides a big rectangular block that you can use as a floor for your world. I added one of those for my cabinet to stand on and tried again. This time the result was really interesting:<br \/><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/g7mzrTahBHc&amp;hl=en&amp;fs=1\"\/><param name=\"allowFullScreen\" value=\"true\"\/><embed src=\"http:\/\/www.youtube.com\/v\/g7mzrTahBHc&amp;hl=en&amp;fs=1\" type=\"application\/x-shockwave-flash\" allowfullscreen=\"allowfullscreen\" width=\"425\" height=\"344\"\/><\/object><\/p>\n\n\n\n<p>It was like I had built the entire cabinet, but forgot to use nails!<\/p>\n\n\n\n<p>From what I know about SketchyPhysics now, that result was entirely expected. None of the parts were grouped together. It is entirely not obvious how to make SketchyPhysics do anything useful. I was completely lost, until I discovered <a title=\"Sketchy Physics Tutorial\" href=\"http:\/\/sketchyphysicstutorial.googlepages.com\/\">Sketchy Physics Tutorial<\/a>, the Unofficial Guide for those who are Completely Lost. Grouping objects together in SketchyPhysics makes them behave as a single rigid body. To make my door simulation work, the entire cabinet (excluding the doors) would have to be a single group. Each door would be its own group also. And the hinges (carefully modeled on Stanley 4&#8243; tee hinges), would have to be in two parts: the rectangular plates part of the cabinet body group, and the straps part of the door groups. I also learned about how to add the actual physics components (hinges, motors, servos, springs, etc) to the model in a way that the physics engine understands them and can make them come to life. At that point, finally, I had my doors working:<br \/><object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/AMeE9fLTfqM\"\/><embed src=\"http:\/\/www.youtube.com\/v\/AMeE9fLTfqM\" type=\"application\/x-shockwave-flash\" width=\"425\" height=\"350\"\/><\/object><\/p>\n\n\n\n<p>If anybody is interested in building this, here is the complete Sketchup model, and renderings of all the various scenes and views I defined in it.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet3.skp\">Sketchup model<\/a>.<\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_Overview.png\">Rendered with textures<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/images\/blog\/DeckCabinet\/DeckCabinet_OverviewWithDims.png\">Overview with dimensions<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_FloorDetails.png\">Floor framing<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_FramingOverview.png\">Wall and roof framing overview<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_FrontWall.png\">Front wall framing<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_SideWall.png\">Side wall framing<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_BackWall1.png\">Back wall framing, front view<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/images\/blog\/DeckCabinet\/DeckCabinet_BackWall2.png\">Back wall framing, side view<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_RafterDetails.png\">Rafter details<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_RoofDetails.png\">Roof sheathing, top view<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_RoofProfile.png\">Roof sheathing, side view<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_SidingTemplates.png\">Siding templates<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_SidingProfile.png\">Siding profile<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_EaveDetail2.png\">Eave detail, side view<\/a><\/li>\n\n\n\n<li><a href=\"\/images\/blog\/DeckCabinet\/DeckCabinet_EaveDetail1.png\">Eave detail, front view<\/a><\/li>\n<\/ul>\n\n\n\n<p>Since then, I&#8217;ve started construction on the actual real-world cabinet. Taking a &#8220;money is no object&#8221; approach, I chose cedar for the exterior. I bought a bunch of cedar fence boards, which I laboriously turned into ship lap siding using a stacked dado head in my table saw.<\/p>\n\n\n\n<p>For installing and finishing the cedar siding, I followed the <a href=\"http:\/\/www.wrcea.org\/cedar-products\/cedar_siding\/overview.htm\">guidelines of the Western Red Cedar Export Association<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to get an outdoor cabinet of some kind on my deck, to hold BBQ tools, charcoal, some garden tools, etc. I looked at Home Depot, but all they had was really ugly molded plastic monstrosities. So, I decided to build one myself.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/posts\/311"}],"collection":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":2,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":919,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/posts\/311\/revisions\/919"}],"wp:attachment":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}