CheckTools/meshChecker/README.md
2024-10-01 19:48:12 +08:00

36 lines
1.5 KiB
Markdown

# MeshChecker
Mesh/Topology checker for my own
## Check numbers
0. Triangles
1. Ngons
2. Non-manifold edges
3. Lamina faces
4. Bi-valent faces
5. Zero area faces
6. Mesh border edges
7. Crease edges
8. Zero length edges
9. Vertex pnts attributes
10. Empty geometry (geo with 0 vertices)
11. Instance shpaes
12. Channel connections
## Flags
| Longname | Shortname | Argument types | Default | Properties |
|:---------|----------:|:--------------:|:-------:|:----------:|
|check|c|int||C|
|maxFaceaArea|mfa|float|0.00001|C|
|minEdgeLength|mel|float|0.000001|C|
|doFix|fix|bool|false|c|
* 'fix' flag can be used for 'vertex pnts attribute' check
## Example
```python
from maya import cmds
e = cmds.checkMesh("|pSphere1", c=0)
print e
[u'|pSphere1.f[360]', u'|pSphere1.f[361]', u'|pSphere1.f[362]', u'|pSphere1.f[363]', u'|pSphere1.f[364]', u'|pSphere1.f[365]', u'|pSphere1.f[366]', u'|pSphere1.f[367]', u'|pSphere1.f[368]', u'|pSphere1.f[369]', u'|pSphere1.f[370]', u'|pSphere1.f[371]', u'|pSphere1.f[372]', u'|pSphere1.f[373]', u'|pSphere1.f[374]', u'|pSphere1.f[375]', u'|pSphere1.f[376]', u'|pSphere1.f[377]', u'|pSphere1.f[378]', u'|pSphere1.f[379]', u'|pSphere1.f[380]', u'|pSphere1.f[381]', u'|pSphere1.f[382]', u'|pSphere1.f[383]', u'|pSphere1.f[384]', u'|pSphere1.f[385]', u'|pSphere1.f[386]', u'|pSphere1.f[387]', u'|pSphere1.f[388]', u'|pSphere1.f[389]', u'|pSphere1.f[390]', u'|pSphere1.f[391]', u'|pSphere1.f[392]', u'|pSphere1.f[393]', u'|pSphere1.f[394]', u'|pSphere1.f[395]', u'|pSphere1.f[396]', u'|pSphere1.f[397]', u'|pSphere1.f[398]', u'|pSphere1.f[399]']
```