[Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
45 posts
• Page 1 of 2 • 1, 2
[Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Overview
I often get tasks to model terrain and context buildings for project we do. It's dog boring work! Today when I got a new such project with a large plan I thought there had to be a better way to do most of this repetitive work. So I wrote a crude script to lessen some of my burden. The purpose of this script was just to get the bulk work done. Don't expect any magic from it. Note: Result will vary from the quality of the lines you feed it. I've just mocked this up to get a job done - so the UI is crude. I want to get back to this later and provide a better interface. But until them; this is it. Menus: Plugins->Flatten->... Functions Flatten (Only takes a single group or component as input at the moment, sorry.) Creates a new group where all the edges in the selected Group or Component is projected down to the Ground (Elevation 0). Flatten and Extrude (Only takes a single group or component as input at the moment, sorry.) Same as flatten, but it then tries to extrude the faces back up to the lowest/highest point above it. Note that there is a layer filter where the plugin will only use the edges on layers containing that filter. The filter is a series of strings separated by | (pipe character). (Yes, I know. The settings isn't persistent. Will see if I can get around for a quick update for that later. Until then - modify line 120 yourself.) Smart People! Does anyone have any idea of how to generate roofs? Not generic roofs, but ones that fit the roof edges. Please, register (free) to access all the attachments on the forums.
Last edited by thomthom on Tue Nov 10, 2009 9:22 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009For the roofs, perhaps have a look at TIGs roof script. I imagine itd be fairly easy to filter all the horizontal faces that have some z then apply TIGs roof stuff to it with some generic/random values plugged in (depending on what sort of results your after.)
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Making generic roofs is the current work around. But being able to produce roofs from the CAD lines would be really cool. I don't expect perfect roofs, but at least some approximation. One possible alternative would be to get the height of the roof from the CAD lines and make a generic roof from that... Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009No worries!
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009TT
How about using TIG's Height/datum tool to set Z with your new tool. Hmmm? dtr
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Set Z? What you mean? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009My Datum tool sets a 'Z' datum in your model [as an attribute] so when z=0 z_datum=123.456m or whatever. Then you use the tool to add text to refer to a point so that floors or points on an elevation etc are given their corrected height above 'datum', rather than z=0...
TIG
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Ok - but how does that relate to this plugin? (I'm confused...)
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009I surmise he means instead of flattening everything to z-o allow you to set it to flatten to z=123.456m. Easy done as it's in a group - flatten all to z=0 end with an option to enter a new z or pick a point and move the flattened group up/down to suit the desired z ???
TIG
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
That would move the top above the lines it extrudes up to. But it's just as easy to just to flatten down to a given Z level. Anyway - thanks for clearing that up. Will see if I'll be adding that in the future. Btw, does your Z-Level plugin expose the Z Height publicly? Wondering if I can read the value and use that as default if present. Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Someone's been snooping in the code, eh? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Nice idea thomthom. Things are busy now, but I will try the plugin in depth at the weekend.
For architects this is extremely useful! Now I don't have to ask the Rhino guy to do it for me and to import it in SU By the way, I love the CookieWare idea! Whenever you're in Australia, please drop by for a beer...
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009I yield
Just thought that muli-level flat and extrude might be a possible for structural elements and such. tt many thanks in any case dtr
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Some nice boutique breweries over there, kwist...... After you've had a few beers with kwist, Thom fly across the other side of the country and I'll shout you a few also!!! purpose/expression/purpose/....
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Rhino has a function like this?? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Multi-level flat and extrude? Could you care to explain more what you got in mind? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009thomthom
I tride this plugin .The groups in the group can't be faltten Is it a better idea to flatten the group in group,and hold the group of faces? to build a city ,i always use clf_greeble_2.rb
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Currently it doesn't dig into nested groups. It only works on the edges directly inside the selected group/component.
Will change that later. Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
zorro tool is a good EXAMPLE
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Hm. My city has just stopped at 31% (and SU is unresponsive). But I gues there are limitations also (file size and edge count) so maybe I shouldn't be so eager and clean the file up a bit before I try.
Gai...
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Can you send me the model for debugging? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009TT
It seemed useful to be able to flatten selected objects (groups components etc) to adjusted (TIG's)heights above default Z height zero. Then select and extrude +/- as wanted. A multi-Z height selection. Just an idea for consideration. dtr
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009Been trying to find a way to triangulate Roofs from 3d plans. Will never be perfect, but "good enough" to do the bulk work and get a rough idea of the shape. Think the name of this plugin isn't fitting any more. It's doing much more building than flattening. "BuildUp"? Please, register (free) to access all the attachments on the forums. Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
Sure - see your PM (when I finish this post). But in fact, the file is still a mess as everything is connected with everything (street ends for instance are "closed") and also it's a rather large piece of the city (and where I cut it out from the whole city plan, there are a bunch of open ends, too) so no wonder it didn't really work. Wherever I cleaned up a bit and grouped separately, it worked just fine. Gai...
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009And the roofing also looks promising!
Gai...
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009you have a very cool roof maker from flat plan and many more roofs actions in 1001bit
Re: [Plugin] Flatten and Extrude (1.0.1) — 10 November 2009
True, but that's a generic roof. All the existing roof tools make generic roofs. This is to generate accurate-ish roofs from 3D plan data. Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
SketchUcation One-Liner AdvertsArtisan Organic Toolset - a set of powerful organic modeling tools.
Premium Members get 20% discount!
45 posts
• Page 1 of 2 • 1, 2
|