[Plugin] QuadsFrom2Tris v1.3 20110312

[Plugin] QuadsFrom2Tris v1.3 20110312

Postby TIG » Fri Mar 11, 2011 5:12 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.
Plugin:
QuadsFrom2Tris.rb >> Plugins folder
Usage:
Plugins menu >> "Quads From 2 Triangles..."
Result:
Processes 2 preselected connected triangles into 5 quads, with a central
hub-diamond placed just above/below the common-edge depending on
convex/concave surfaces.
If the 2 triangles are coplanar they are combined into 1 quad.
The Triangle's Materials and Layers are preserved.
or use in other code as
QuadsFrom2Tris.new() or quadsfrom2tris()
Without arguments it needs 2 preselected triangular faces, or use as
QuadsFrom2Tris.new([tri1, tr2]) or quadsfrom2tris([tri1, tr2])
where tr1 and tr2 are the two connected triangular faces.
Donations:
By Paypal.com to info @ revitrev.org
Version:
1.0 20110310 First issue.
1.1 20110310 Reversed faces glitch etc fixed.
1.2 20110311 Off of 'hub' optimized.
1.3 20110312 Occasional glitch with some configurations addressed.
QuadsFrom2Tris.PNG
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.0 20110310

Postby Rich O Brien » Fri Mar 11, 2011 5:21 pm

:thumb:

Amazing no one ever thought of this before?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadsFrom2Tris v1.0 20110310

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

Rich O'Brien wrote:Amazing no one ever thought of this before?

I was nudged into it by some PM nagging ;)
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.0 20110310

Postby Rich O Brien » Fri Mar 11, 2011 5:24 pm

Wish GRANTed! Lucky member who it was?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadsFrom2Tris v1.0 20110310

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

Rich O'Brien wrote:Wish GRANTed! Lucky member who it was?

I don't exactly remember the member... but I think he sounds wealthy ;)
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.0 20110310

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

I've just finished testing it... and in some circumstances I've found that it can reverse some faces and mess up concave surfaces... I'm already working on an update :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.1 20110310

Postby TIG » Fri Mar 11, 2011 10:09 pm

Here's v1.1
The reversed faces glitch etc have been fixed.
viewtopic.php?p=315130#p315130
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.2 20110310

Postby TIG » Fri Mar 11, 2011 11:48 pm

Here's v1.2 viewtopic.php?p=315130#p315130
The offset of the 'hub' has been [re]optimized...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.2 20110310

Postby Rich O Brien » Fri Mar 11, 2011 11:58 pm

TIG,

I first ran it on the opposite side to this and it worked perfect. Did the other side and this is the result...



Nothing in Ruby Console if that helps?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadsFrom2Tris v1.2 20110310

Postby TIG » Sat Mar 12, 2011 12:50 pm

Rich O'Brien wrote:TIG,
I first ran it on the opposite side to this and it worked perfect. Did the other side and this is the result...
Nothing in Ruby Console if that helps?

Strangely when I run it on the SKP you provided before I get perfect results on BOTH sides :?
Can you retry and PM me the problem SKP if it keeps happening. I can't see how this might happen ? :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.2 20110310

Postby Rich O Brien » Sat Mar 12, 2011 5:32 pm

TIG_Error.skp


This actually does it on both sides :?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] QuadsFrom2Tris v1.3 20110312

Postby TIG » Sat Mar 12, 2011 7:06 pm

Here is v1.3 viewtopic.php?p=315130#p315130
This now successfully works even on the configuration supplied by Rich [I still can't see why it was failing... BUT it seems like it intersected with a ghost of part itself - weird - :? - this new version avoids this issue by making sure there are no coplanar edges at a crucial stage in the reforming :roll: ]
It's now a bit like 'Aspirin' - it is efficacious, but no one is sure exactly 'how' ;)
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] QuadsFrom2Tris v1.3 20110312

Postby Rich O Brien » Sat Mar 12, 2011 11:56 pm

Works fine, trying my hardest to break it.. :thumb:
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: AntBM, Debora Macedo, Google Bot, ljus, ngoctung0211, userid7 and 11 guests

Visit our sponsors: