//****************************************************************************** // // 版权所有: 玉溪时光科技有限公司 // 联系邮箱: q.100@qq.com // 开发日期: 2023/08/08 // //****************************************************************************** //==========DAZ切头工具===========// global proc SGMesheDetach (string $topology){ if($topology == "DAZG8F"){ SGDAZG8FDetach; } else if($topology == "DAZG8M"){ SGDAZG8MDetach; } else if($topology == "DAZG9"){ SGDAZG9Detach; } else if($topology == "CC3"){ SGCC3Detach; } } global proc SGDAZG8FDetach (){ string $sel[]=`ls -sl`; string $shapeA[]=`listRelatives -s $sel[0]`; int $edgesA[] = { 52019,52021,53274,53278,54011,54013,54034,54037,54252,54256, 54289,54291,54600,54602,54624,54626,54648,54650,54674,54676, 54690,54692,54715,54717,54725,54727,57874,57881,58328,58330, 58363,58365,59260,59264,59265,59267,59307,59308,59311,59312, 59332,59344,59348,61354,61355,61385,61387,61395,61396,61397, 63352,63354,64601,64609,65323,65325,65344,65349,65561,65565, 65599,65601,65906,65908,65930,65932,65954,65956,65979,65981, 65995,65997,66024,66026,66033,66035,69124,69127,69540,69542, 69572,69574,70459,70464,70466,70467,70504,70505,70508,70509, 70530,70543,70549,72515,72516,72544,72546,72554,72560,72561}; int $edgesB[] = { 24644,24648,25049,25051,25127,25129,25139,25141,25144,25148, 25663,25665,25671,25673,25677,25683,25695,25697,25701,25705, 25798,25800,25814,25816,25822,25824,25828,25830,25847,25851, 26130,26132,27410,27412,27417,27419,28237,28243,28246,28248, 28250,28251,28304,28306,28604,28611,28996,28998,29066,29068, 29076,29078,29083,29089,29554,29556,29562,29564,29568,29572, 29586,29588,29590,29594,29688,29690,29706,29708,29714,29716, 29723,29725,29734,29738,30012,30014,31292,31294,31298,31300, 32066,32070,32076,32079,32080,32082,32137,32139}; select -cl; for($e in $edgesA){ select -add ($sel[0]+".e["+$e+"]"); } DetachComponent; string $cuuttingA[]=`polySeparate -ch 0 $shapeA[0]`; select -cl; for($i=2;$i