mesh contains a large number of facets Maya warning ?

13 views
Skip to first unread message

Virbhadra Gupta

unread,
Jul 7, 2018, 8:02:38 AM7/7/18
to Python Programming for Autodesk Maya
Hello,

I have create one script where i changing display mode to smooth mesh preview.

cmds.displaySmoothness(object, divisionsU=3, divisionsV=3, pointsWire=16, pointsShaded=4, polygonObject=3)

But some time maya give warning window "mesh contains a large number of facets..."
and maya stuck until that window is open.

so i am looking to avoid this warning.

> there is not flags of displaySmoothness or command that i can find to avoid it.

> i tried to find out face count of mesh and trying to know what is threshold (face count) when maya giving this warning.
   but with each object this count is totally change

ex:  i create polyPlane with 1 face. 
      cmds.polySmooth("polyPlane ", dv=7)
      print cmds.polyEvaluate("polyPlane ", f=True)
      result: 4096
      cmds.displaySmoothness("polyPlane ", divisionsU=3, divisionsV=3, pointsWire=16, pointsShaded=4, polygonObject=3)

     and

     one single model it hase more then 50,000 face and still smooth mesh preview works fine no warning.

Please can anyone know how can i avoid this ?
Reply all
Reply to author
Forward
0 new messages