Thanks for the suggestions guys. I can't rely on border edges or not, but I
can't, because you can close a plane (fill hole).
I did find that the nParticle fill mesh, only will generate nParticles if the
mesh is a "solid" mesh with or without holes. After the fill hole command, the
below does work.
def isSolid(mesh):
pymel.core.runtime.ParticleFill(pymel.core.general.select(mesh, r=True))
nucleusNodes = pymel.core.general.ls(type=pymel.core.nodetypes.Nucleus)
nParticles = pymel.core.general.ls(type=pymel.core.nodetypes.NParticle)
if not nParticles:
return 0
else:
pymel.core.general.delete(nucleusNodes)
pymel.core.general.delete(nParticles[0].getParent())
return 1
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.