- Home /
Is it possible to subdivide mesh with catmull-clark inside Unity?
Hello.
Im doing sort of a model viewer.
Couldn't you help me to implement catmull-clark subdivision for my unity instantiated meshes, like in 3d editors.
Thank you!
Answer by Jesse Anders · Dec 17, 2010 at 02:20 AM
Mesh subdivision is generally non-trivial. However, you can access mesh data directly in Unity via the Mesh class, so you can do just about whatever you want with a given mesh.
How to implement the subdivision scheme isn't really a Unity-specific issue. How to access the mesh data is of course Unity-specific, and for that I'd recommend checking the docs for the Mesh class, and maybe also looking at the procedural mesh examples that are available on the Unity site.
Thank you! I know how $$anonymous$$esh class works, and found algo too: http://rosettacode.org/wiki/Catmull%E2%80%93Clark_subdivision_surface
Just wanted to ask, can anyone else has this already? Because if I do it myself, I'm afraid it will be far from perfect.
Answer by bntr · Aug 09, 2017 at 12:18 PM
Catmull-Clark Mesh Subdivision asset is now available: https://www.assetstore.unity3d.com/en/#!/content/95479