Get Island Polygons 2005-02-09 - By Andrea Padovan XSI Dev
Back Hi guys,
how to get disconnected polygons Inslads in a polygon mesh via scripting or c++ in quick way ? For example... You have a polygon sphere this some three Islands...
CreatePrim "Sphere", "MeshSurface" ApplyTopoOp "DisconnectComponent", "sphere.poly[35-38]", siUnspecified, siPersistentOperation ApplyTopoOp "DisconnectComponent", "sphere.poly[12-14,20-22]", siUnspecified, siPersistentOperation
How is the best way for to get an PolygonIndexArray for each Island ? It could be works in a scripted Operator compiled in C++.
Thanks a lot!
Andrea.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2523" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#aca899> <DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>how to get disconnected polygons Inslads in a polygon mesh via scripting or c++ in quick way ?</FONT></DIV> <DIV><FONT face=Arial size=2>For example... </FONT></DIV> <DIV><FONT face=Arial size=2>You have a polygon sphere this some  ;three Islands...</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT color=#0000ff size=2>CreatePrim "Sphere", "MeshSurface"</FONT></DIV> <DIV><FONT color=#0000ff size=2>ApplyTopoOp "DisconnectComponent", "sphere.poly[35-38]", siUnspecified, siPersistentOperation</FONT></DIV> <DIV><FONT size=2><FONT color=#0000ff>ApplyTopoOp "DisconnectComponent", "sphere.poly[12-14,20-22]", siUnspecified, siPersistentOperation</FONT></DIV></FONT> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>How is the best way for to get an PolygonIndexArray for each Island ?</FONT></DIV> <DIV><FONT face=Arial size=2>It could be works in a scripted Operator compiled in C++.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Thanks a lot!</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Andrea.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
|
|