![]() |
Access mesh Ngon faces in script - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html) +--- Thread: Access mesh Ngon faces in script (/thread-3983.html) |
Access mesh Ngon faces in script - wbk - 11-17-2023 It would be great if you could easily access the ngon polygons of a mesh object from the script operator rather than just the triangles! RE: Access mesh Ngon faces in script - wbk - 11-17-2023 There is no precise way I can find to work around this so far. Even using the 3dsmax core interface as there no way to get the INode for a tfObj or even be sure of the face correspondence between a tfMesh and a native 3dsmax mesh. RE: Access mesh Ngon faces in script - tyFlow - 11-17-2023 tyFlow meshes don't store any ngons internally. Ngons are really just tris with hidden, adjacent edges. If you really want to dive into C# you could get the INode from the core interface based on the name of the object...from there you can do your own MNMesh calcs, sure, and extract ngons. RE: Access mesh Ngon faces in script - wbk - 11-18-2023 (11-17-2023, 06:22 PM)tyFlow Wrote: tyFlow meshes don't store any ngons internally. Ngons are really just tris with hidden, adjacent edges. Sure, but then it would be convenient if tfObj had a property which was their INode then, especially if internally you track that and have it available. I assume there is no guarantee that the order of faces/vertices in a tfMesh matches that of the source MNMesh? RE: Access mesh Ngon faces in script - wbk - 11-18-2023 Ah ha... investigating properties via reflection I can see that tfObj does actually have a member called 'node' where I can get the INode and it's name from - it isn't documented in the tyflow script doc is all. |