28 lines
768 B
Plaintext
28 lines
768 B
Plaintext
|
//******************************************************************************
|
|||
|
//
|
|||
|
// <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: <20><>Ϫʱ<CFAA><CAB1><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
// <20><>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD>: q.100@qq.com
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 2024/03/23
|
|||
|
//
|
|||
|
//******************************************************************************
|
|||
|
|
|||
|
global proc SGRepairVertexOrder ()
|
|||
|
{
|
|||
|
for($i=0; $i<54; $i++){
|
|||
|
string $target = `SGGetMeshes -m $i`;
|
|||
|
if(`objExists $target`){
|
|||
|
select -r $target;
|
|||
|
DeleteAllHistory;
|
|||
|
string $source = `SGGetMeshes -cm $i`;
|
|||
|
string $sourceBuffer = $source + "_buffer";
|
|||
|
$sourceBuffer = `substring $sourceBuffer 2 (size($sourceBuffer))`;
|
|||
|
$sourceBuffer = `rename $source $sourceBuffer`;
|
|||
|
SGSetMeshes -tvo $sourceBuffer $target;
|
|||
|
delete $sourceBuffer;
|
|||
|
}
|
|||
|
}
|
|||
|
print "Repair Vertex Order Repair Completed...\n";
|
|||
|
}
|
|||
|
|
|||
|
|