Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Wishlist / Editable poly - Bridge Corner tool
  RSS 2.0 ATOM  

Editable poly - Bridge Corner tool
Rate this thread
 
33035
 
Permlink of this thread  
avatar
  • AndyOaks
  • Posted: 11 August 2009 03:06 AM
  • Location: Horsham
  • Total Posts: 51
  • Joined: 04 October 2006 11:01 AM

Basically, a triangle is ‘webbed’ between two edges that share the same vertex at one end (see attached picture).

I`ve also attached a Maxscript that demonstrates this is action (see below).
To use, select two open edges that are connected, with the same vertex at one end, and then run this Maxscript tool.

Copy and paste the below code to a new .mcr;

macroScript MACRO_BridgeCorner
 category
:"Oakley Tools" 
 
internalcategory:"Oakley Tools"
 
tooltip:"Bridge Corner"
 
buttontext:"Bridge Corner"
(
 on Execute 
do
 

 
try
 
(
 Edgs
=(polyop.GetEdgeSelection $) as array
 if 
Edgs.count==do
 
(
 
 EdgA
=PolyOp.getEdgeVerts Edgs[1]
 EdgB
=PolyOp.getEdgeVerts Edgs[2]

 
if EdgA[2]==EdgB[1] do
 
(
 
$.CreateFace #(EdgA[1], EdgA[2], EdgB[2])
 
)

 
if EdgB[2]==EdgA[1] do
 
(
 
$.CreateFace #(EdgB[1], EdgB[2], EdgA[2])
 

 )
--if Edgs.count...
 
)
 catch()
 )
--on Execute do
)

It would be cool to see this properly implemented into 3dsmax under the bridge tool. Possibly an edge corner angle threshold under the bridge tool’s parameters.



Max 9.0 through 2010, XP-Pro 64 SP2.
ATI Radeon HD 4800 series
Core 2 Quad Q9650 3.0GHz, 8Gb Ram, DX9.0c.

Attachment Attachment
Replies: 0