[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
0
TIG
User avatar
TIG 
Global Moderator
 

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)?
0
User avatar
Gaieus 
 

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.
0
www.solos-art.com

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

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!
0
User avatar
Gaieus 
 

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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Quadrilateralizer v1.0 20110214

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

Thank you very much TIG.
0

chloesdad 
 

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
0
TIG
User avatar
TIG 
Global Moderator
 

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!
0
User avatar
CAntonis 
 

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 ?
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

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 ?
0
TIG
User avatar
TIG 
Global Moderator
 

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:
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

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
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Quadrilateralizer v1.0 20110214

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

you Rock Tig...
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Quadrilateralizer v1.0 20110214

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

TIG, thank you.
0

Ben Ritter 
 

Re: [Plugin] Quadrilateralizer v1.0 20110214

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

:thumb: :thumb: Thanks bro!
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

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?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

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.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Quadrilateralizer v1.1 20110215

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

That was quick :shock:
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

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: ;)
0
TIG
User avatar
TIG 
Global Moderator
 

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 ;)
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

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.
0
User avatar
Gaieus 
 

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:
0

dedmin 
 

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).
0
User avatar
Gaieus 
 

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:
0

dedmin 
 

Re: [Plugin] Quadrilateralizer v1.1 20110215

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

thanks for this great plug!
0
IOviz.com
SU Pro 2017 PC
Thea: latest
vray4SU latest
User avatar
troyhome 
 

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...
0
TIG
User avatar
TIG 
Global Moderator
 

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 :-/
0

bagou01 
 

Re: [Plugin] Quadrilateralizer v1.1 20110215

Postby greenskp » Sun Jun 16, 2013 4:56 pm

I loved it. Now i can use xNormal program.
0
User avatar
greenskp 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: shawb, shreyas and 19 guests

Visit our sponsors: