<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Modifying TSpline-Vertices via API in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632121#M7941</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Basically all i need to do is to shift vertices around along their normal. Nothing too crazy, but it is impossible.&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;BR /&gt;I am open to cooperate with Autodesk - a Lofting mode that generates a minimum surface area might be cool after all.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Sep 2021 00:26:09 GMT</pubDate>
    <dc:creator>sonstwienix</dc:creator>
    <dc:date>2021-09-19T00:26:09Z</dc:date>
    <item>
      <title>Modifying TSpline-Vertices via API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632121#M7941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Basically all i need to do is to shift vertices around along their normal. Nothing too crazy, but it is impossible.&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;BR /&gt;I am open to cooperate with Autodesk - a Lofting mode that generates a minimum surface area might be cool after all.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 00:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632121#M7941</guid>
      <dc:creator>sonstwienix</dc:creator>
      <dc:date>2021-09-19T00:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying TSpline-Vertices via API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632654#M7942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4616002"&gt;@sonstwienix&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I don't think the API for operating the T-spline Body is open to the public.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the past, there was a discussion in the Japanese forum about using the API to manipulate the vertices of a T-spline body.&lt;/P&gt;
&lt;P&gt;At that time, I searched the web and found this document.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://iranarze.ir/wp-content/uploads/2016/11/E524.pdf" target="_blank" rel="noopener"&gt;https://iranarze.ir/wp-content/uploads/2016/11/E524.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was too difficult for me to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I found this package on github.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/GrapeTec/T-SPLINE" target="_blank" rel="noopener"&gt;https://github.com/GrapeTec/T-SPLINE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a tsm file in the rhino folder.&lt;BR /&gt;I imported it with this add-in that I have published, and it seems to import correctly.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kantoku-code/Fusion360-TSplineBodyDoorway" target="_blank" rel="noopener"&gt;https://github.com/kantoku-code/Fusion360-TSplineBodyDoorway&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the format of the tsm file in Fusion360 is the same as the one in this package, so I think it may be possible to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 13:55:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632654#M7942</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2021-09-19T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying TSpline-Vertices via API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632870#M7943</link>
      <description>&lt;P&gt;Thank you so much for your response.&lt;/P&gt;&lt;P&gt;I am currently considering to change my approach to this endeavor.&lt;/P&gt;&lt;P&gt;I might try to triangulate a surface that just connects edge end points (minimum triangulation of a polygon).&lt;/P&gt;&lt;P&gt;From there i can generate points within the triangles (in a, lets say, 8x8 grid) and join them using a set of splines which can be generated in a sketch.&lt;BR /&gt;Then the length of the splines can be minimized.&lt;BR /&gt;From there a Loft-Feature might work to reconstruct the surface with relatively ease, using 2 triangle edges and parallel splines as as profiles, and perpendicular splines plus the remaining triangle edge as rails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have currently no idea how to implement this, but it is a possible path to success.&lt;/P&gt;&lt;P&gt;The triangulation idea basically falls apart when the surface is defined by anything else than lines. Even in my target case, i use splines as surface edges. Triangulation would work in my case, but it is not generalized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 18:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/modifying-tspline-vertices-via-api/m-p/10632870#M7943</guid>
      <dc:creator>sonstwienix</dc:creator>
      <dc:date>2021-09-19T18:12:33Z</dc:date>
    </item>
  </channel>
</rss>

