码迷,mamicode.com
首页 > 其他好文 > 详细

翻转错误法线

时间:2014-12-12 18:48:05      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   sp   for   

bubuko.com,布布扣
 1 try
 2 (
 3     fn ApplyOperation ctype oper =
 4     (
 5         If (Modpanel.getcurrentObject() == $.baseobject) then oper $
 6         If Classof (Modpanel.getcurrentObject ()) == ctype then (oper $.modifiers[modPanel.getModifierIndex $ (Modpanel.getcurrentObject ())])    
 7     )
 8     for i in objects do
 9     (
10         select i
11         macros.run "Modifier Stack" "Convert_to_Mesh";
12         max modify mode;
13         subobjectLevel = 4;
14         actionMan.executeAction 0 "40021";
15         ApplyOperation Edit_Mesh meshops.Unifynormal;
16         subobjectLevel = 0;
17         macros.run "Modifier Stack" "Convert_to_Poly";
18         clearSelection();
19     )
20 )
21 catch()
View Code

 

翻转错误法线

标签:style   blog   http   io   ar   color   os   sp   for   

原文地址:http://www.cnblogs.com/CtrlZ/p/4159921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!