Modifying TSpline-Vertices via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i am trying to write a plugin that can optimize a TSpline-Loft for minimum suface area. This is helpful for fabric design and stuff. I succeeded so far to implement an algorithm that modifies a normal surface loft and creates a minimum-surface mesh from it. But it is mesh based, therefore the output is a real performance killer, since hundreds of faces get created. Having the same functionality for a TSpline-Loft would make the output more long-term usable.
However i am very unsatisfied with the API at this point. TSplines seem really not well cared for. All i can do is to get a TSM string description and can create a TSpline from such description. But this format is not documented - so i really cant so anything useful with it, as i cannot modify the TSM-desc with any purpose.
I have so far found no functions to enumertate the vertices of a TSpline nor create a TSpline from a Vertex and Edge-Description (which i guess a TSM-string is, actually - DOCUMENT IT!!). I have also not found any way to add a TSpine-Body virtually to evaluate its surface area without explicitly going into the form-environment and creating and removing bodies. This is a performance killer for an iterative solver.
Basically all i need to do is to shift vertices around along their normal. Nothing too crazy, but it is impossible.
Can anyone help with this?
I am open to cooperate with Autodesk - a Lofting mode that generates a minimum surface area might be cool after all.