Created
July 10, 2019 19:44
-
-
Save juliomarcos/950f6954105389f22c5a03e230a31cd9 to your computer and use it in GitHub Desktop.
Cheap trick to convert tris to quads in a pole circle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
polyExtrudeVertex -constructionHistory 1 -width 0.5 -length 0 -divisions 1; | |
$allEdges = `polyListComponentConversion -fv -te`; | |
$allEdgesList = `ls -fl $allEdges`; | |
select -cl; | |
for($edge in $allEdgesList) { | |
string $tokens[]; | |
tokenize $edge "[]" $tokens; | |
int $id = (int) $tokens[1]; | |
if ($id % 2 == 0) { | |
$edgeName = $tokens[0] + "[" + $tokens[1] + "]"; | |
select -add $edgeName; | |
}; | |
}; | |
doDelete; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment