Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Cleaning up meshes imported from Marvelous Designer 8 months 3 weeks ago #518

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 157
  • Thank you received: 20
Marvelous Designer has a habit of leaving zero size triangles in its exported meshes and then when you simulate in Carbon a zero size triangle appears as having infinite mass! Not what you want for simulation.

So its best to clean up the meshes before creating Carbon Cloth nodes.

In Maya we recommend running a Maya mesh cleanup script, such as the one below.
Select all the simulation meshes, then run this Python script:
import maya.cmds as cmds
import maya.mel as mel
meshes = cmds.ls(selection=True, dag=True, shapes=True)
for mesh in meshes:
    cmds.select(mesh)
    mel.eval('polyCleanupArgList 4 { "0","1","1","0","0","0","0","0","1","0.01","0","1e-05","0","1e-05","0","-1","0","0" };')

Afterwards, best to save out the meshes as an FBX and reimport them back into a new scene as the clean-up can leave some nodes that interfere with the Carbon Garment Processor.

Also you may need to run this on the deformer reference and render meshes as well, or the deformer wrapping may fail. But for higher res meshes, like render meshes, you need adjust the zero edge length argument value from "0.01" to something smaller to maintain the closed edges of render panels which tend to have fine splinter triangles.

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.049 seconds