SketchUcation Plugin Store

 

 

[Plugin] Quadrilateralizer v1.1 20110215

[Plugin] Quadrilateralizer v1.1 20110215

Postby TIG » Mon Feb 14, 2011 2:03 pm



TIG (c) 2011
All Rights Reserved.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


Script: Quadrilateralizer.rb


Usage:
Select faces. Note that other entity-types in the selection are ignored.
Run 'Quadrilateralizer' from the 'Plugins' menu.
If there are no faces in the selection there is an error-message, it exits.
If all selected faces are already quads then you are asked if you want to
split them further: 'Yes' to redivide selected quad faces or No' to abort.
If the selected faces are not equivalent to 'all connected faces' then you
are warned: 'Yes' to continue, 'No' to abort. It is recommended that all
connected faces are processed together [treble-click a face to select all]
to ensure that all connected faces become quadrilaterals; otherwise later
processing of these non-quad faces could result in the connected quads
being made into non-quads, or if all connected faces were selected the
non-quads would split but the previously made quads will be split again -
it could get messy - this might be what is required... but usually
processing all connected at once is the best method.
All selected faces are now split into quadrilaterals ['quads'].
Note that any preexisting quads in the selection will also be split
because splitting any adjacent non-quads will force these existing quads
into non-quads anyway.
UV texture mapping etc is kept.
It is one step undo-able.
The vertices of these quad faces can be adjusted with the Move tool...


Donations: By PayPal.com to info @ revitrev.org


Version:
1.0 20110214 First Release.
1.1 20110215 More info and percentage progress reported in Status Bar.

Quadrilateralizer.rb
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Gaieus » Mon Feb 14, 2011 2:09 pm

OK, first to download so first to thank. I know why Pete asked for it...
:thumb:
Will it move vertices slightly to create quads from non co-planar tris for instance (or does it only subdivide)?
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby solo » Mon Feb 14, 2011 2:13 pm

Sweet!! cannot wait to give it a run.

Thanks a bunch.
My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10750
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Gaieus » Mon Feb 14, 2011 2:19 pm

Some quads are created from tris in a way that they have co-linear edges. This may not be an issue in many apps but SDS2's smooth tool cannot handle these, Pete.

TIG: still great tool, thanks!
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby TIG » Mon Feb 14, 2011 2:30 pm

Gaieus wrote:Some quads are created from tris in a way that they have co-linear edges. This may not be an issue in many apps but SDS2's smooth tool cannot handle these, Pete.
TIG: still great tool, thanks!

Most quads will not have co-linear sides [although thin slivers of triangles do approach co-linearity] - but those that do you can manually Move a vertex as desired.
The subdivision can produce unoptimized quads anyway that would benefit from some adjustments to some vertex locations...

This is only v1.0, I only starting thinking about writing it a couple of hours ago :roll:

Any feedback or suggestions on improvements welcomed...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby chloesdad » Mon Feb 14, 2011 2:55 pm

Thank you very much TIG.
chloesdad
 
Posts: 26
Joined: Sat Dec 12, 2009 2:55 pm

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby TIG » Mon Feb 14, 2011 3:01 pm

I can envisage another tool to optimize selected coplanar quads...
It tests a faces for their vertices' 'concave-ness'/co-linearity and adjusts the concave/linear vertex location until it is just convex... I suspect this might involve a lot of tail-chasing as one faces concave vertex could be its neighbor's convex vertex :roll:

Alternatively if any of the Quadrilateralized faces have co-linear or concave vertices select all and Quadrilateralize them a second time - that should fix them - although the mesh will then be much finer :roll: BUT there's no such thing as as a free lunch...
Capture.PNG
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby CAntonis » Mon Feb 14, 2011 3:14 pm

Thanks so much TIG!
One question though: Is this gonna help exporting a model to other modelers with greater detail, is it just because quad faced geometry is better or both?
Downloaded already and I ll be checking for updates!!!!
Again THANKS A BOUNCH!
CAntonis
 
Posts: 67
Joined: Tue Dec 22, 2009 6:46 pm
Name: Antonis

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Didier Bur » Mon Feb 14, 2011 3:53 pm

Hi TIG,

When translating into french, I came across this (line 82):
Code: Select all
return nil if UI.messagebox("Quadrilateralizer:\n\nThe Selected Faces are NOT\nALL of the Connected Faces.\nDo you want to Continue ?",MB_YESNO)==7

Isn't this message confusing or wrong ?
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby TIG » Mon Feb 14, 2011 8:04 pm

Didier Bur wrote:Hi TIG,

When translating into french, I came across this (line 82):
Code: Select all
return nil if UI.messagebox("Quadrilateralizer:\n\nThe Selected Faces are NOT\nALL of the Connected Faces.\nDo you want to Continue ?",MB_YESNO)==7

Isn't this message confusing or wrong ?

The selected-faces are not ALL of the connected-faces.
Do you want to continue?
:?
Les choisir-faces ne sont pas tous les relier-faces.
Voulez-vous continuer ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Didier Bur » Mon Feb 14, 2011 8:46 pm

Les faces choisies ne font PAS TOUTES partie des faces connectées :berserk:
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby TIG » Mon Feb 14, 2011 9:04 pm

Didier Bur wrote:Les faces choisies ne font PAS TOUTES partie des faces connectées :berserk:

I couldn't have put it better myself!
Je n'aurais pas pu mieux dire moi-même! :D
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Krisidious » Mon Feb 14, 2011 10:11 pm

you Rock Tig...
Kristoff Rand
Home Designer
Custom House Plans with a Point of View
User avatar
Krisidious
 
Posts: 3164
Joined: Mon Oct 22, 2007 1:52 pm
Location: Springfield, Missouri. USA
Name: Krisidious
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Ben Ritter » Mon Feb 14, 2011 10:40 pm

TIG, thank you.
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby EarthMover » Mon Feb 14, 2011 11:46 pm

:thumb: :thumb: Thanks bro!
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] Quadrilateralizer v1.0 20110214

Postby Rich O Brien » Tue Feb 15, 2011 10:43 am

Thanks TIG....any chance of a progress bar?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8285
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby TIG » Tue Feb 15, 2011 11:08 am

Here's v1.1 viewtopic.php?p=309120#p309120
More info and percentage progress now reported in the Status Bar.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby Rich O Brien » Tue Feb 15, 2011 11:09 am

That was quick :shock:
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8285
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby TIG » Tue Feb 15, 2011 11:11 am

Sorry it took so long I was at the corner-shop buying some milk when you posted :shock: ;)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby Rich O Brien » Tue Feb 15, 2011 11:15 am

Now that you're around and idle, how about this ;)
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8285
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby Gaieus » Tue Feb 15, 2011 11:24 am

Thanks TIG. The more I think about this plugin, the more I like it. It can have so many areas to use.
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby dedmin » Tue Feb 15, 2011 11:25 am

TIG wrote:Sorry it took so long I was at the corner-shop buying some milk when you posted :shock: ;)

So, if I drink more milk maybe I can start writing wonderful plugins as You do?
:roll: :enlight:
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby Gaieus » Tue Feb 15, 2011 11:27 am

Or eat more cookies (look at ThomThom). :roll:
Maybe both - but if you drink more beer, you will grow a red beard like Rich has (or a belly like me).
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby dedmin » Tue Feb 15, 2011 11:28 am

Gaieus wrote:Or eat more cookies (look at ThomThom). :roll:
Maybe both - but if you drink more beer, you will grow a red beard like Rich has (or a belly like me).

:lol: :lol: :lol:
dedmin
 
Posts: 823
Joined: Thu Oct 02, 2008 10:40 pm

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby troyhome » Thu Mar 10, 2011 1:46 am

thanks for this great plug!
Etch-A-Render
SU Pro 8.0.4810 Mac/ SU Pro 8.0.4811 PC
Thea: (MacOSX 32bit) RV481_v1.0.7 (SU2TH .86)/ (PC 64bit) RV481_v1.0.7 (SU2TH .86)
Vray: VfSU 1.49.01
troyhome
 
Posts: 283
Joined: Sun Mar 09, 2008 1:21 am
Location: Michigan
Name: Troy
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby TIG » Fri Mar 11, 2011 5:15 pm

This new tool QuadsFrom2Tris viewtopic.php?p=315130#p315130 might help fix a few connected triangles into quads... rather than affect every preexisting quad in a surface by re-quadding it...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13958
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby bagou01 » Wed Jun 27, 2012 2:16 pm

i'm sorry i'm a bit of a noob here, but i can't manage to get anything else then SU crashes with quadrilateralizer...
i tried on a simple face as well as on a complicated one, no way to have it done by my side :-/
bagou01
 
Posts: 1
Joined: Wed May 23, 2012 7:47 am
Name: régis c

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: chautruong, Heidi111, toysoldier, unclex and 3 guests