{"id":13505,"date":"2016-03-28T11:37:27","date_gmt":"2016-03-28T18:37:27","guid":{"rendered":"http:\/\/ainslies.net\/?p=13505"},"modified":"2016-09-13T06:43:42","modified_gmt":"2016-09-13T13:43:42","slug":"scaling-upverter-stl-output-in-freecad","status":"publish","type":"post","link":"https:\/\/ainslies.net\/?p=13505","title":{"rendered":"Scaling Upverter STL Output in FreeCAD"},"content":{"rendered":"<p>Upverter has a nice STL export ( when it works ) of your board so you can do mechanical modelling for your design. Unfortunately when it gets imported into FreeCAD the scale is 10 times too small.<\/p>\n<p>FreeCAD as of 0.15 does not have menu item that allows you to scale mesh imports. Luckily the python console can do the scaling of imported meshes.<\/p>\n<p>First import the mesh ( STL file ) that you want to add to the current design. Select it in the &#8220;Combo view-&gt;Model&#8221; tree on the left of the FreeCAD screen. Then use the python console ( View-&gt;Views-&gt;Python console ) with the code below to scale it up 10 times.<\/p>\n<pre>\r\nimport Mesh,BuildRegularGeoms\r\nmat=FreeCAD.Matrix()\r\nmat.scale(10.0,10.0,10.0)\r\nmesh=App.ActiveDocument.ActiveObject.Mesh.copy()\r\nmesh.transform(mat)\r\nMesh.show(mesh)\r\n<\/pre>\n<p>Now you should have a correctly sized copy of the STL board that you imported.<\/p>\n<p>Here is the original <a href=\"http:\/\/forum.freecadweb.org\/viewtopic.php?t=4774\">post<\/a> on importing and scaling ( I wanted to scale a mesh I had already imported ).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upverter has a nice STL export ( when it works ) of your board so you can do mechanical modelling for your design. Unfortunately when it gets imported into FreeCAD the scale is 10 times too small. FreeCAD as of &hellip; <a href=\"https:\/\/ainslies.net\/?p=13505\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13505","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/13505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13505"}],"version-history":[{"count":5,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/13505\/revisions"}],"predecessor-version":[{"id":13931,"href":"https:\/\/ainslies.net\/index.php?rest_route=\/wp\/v2\/posts\/13505\/revisions\/13931"}],"wp:attachment":[{"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ainslies.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}