<?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 Re: TUBE suddenly mirrors its profile in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656828#M7532</link>
    <description>&lt;P&gt;I use tubes a lot. And ultimately I have just ended up coding the tube a different direction when this happens.&amp;nbsp; I spent some time trying to figure it out but was never able to solve it other than changing the direction the tube is being drawn.&lt;/P&gt;
&lt;P&gt;Hopefully someone else has some better experience as I am also curious.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 18:49:13 GMT</pubDate>
    <dc:creator>SenecaDesignLLC</dc:creator>
    <dc:date>2025-03-24T18:49:13Z</dc:date>
    <item>
      <title>TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656799#M7531</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was creating a door casing essentially made by a TUBE command which can read custom complex profiles from the project, then I faced this weird problem whose reason I still could not figure out.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;So I created this simple object for testing purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Notice the TUBE's profile seems to get inverted – as if the X coordinates of its profile are mirrored – if a subtle change in its path is applied. It happens when 'Y deviation in A/2' goes above a certain value, corresponding to an angle of aproximately 9º-10º with horizon.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I attached a short video showing the phenomenon when changing ' Y deviation' dinamically by an editable hotspot. Also attached an image of the parameters and the object (AC26).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is this happening and how can I avoid it?&lt;BR /&gt;&lt;BR /&gt;This is the 3D script:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;TUBE 5, 7, 1+2+16+32,&lt;BR /&gt;&lt;SPAN&gt; 0, 0, 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; X1, 0, 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; X1, Y2, 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 0, Y1, 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 0, 0, 1,&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 0, 0, -1, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 0, 0, 0, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 0, 0, ZZYZX, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; A/2, ydev, ZZYZX, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; A, 0, ZZYZX, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; A, 0, 0, ang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; A, 0, -1, ang&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And this is the 2D script:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;PROJECT2 3, 270, 1&lt;BR /&gt;&lt;BR /&gt;unID = 0&lt;BR /&gt;HOTSPOT2 A/2, 0, unID, ydev, 1 !--- base&lt;BR /&gt;unID = unID + 1&lt;BR /&gt;HOTSPOT2 A/2, ydev, unID, ydev, 2 !--- move&lt;BR /&gt;unID = unID + 1&lt;BR /&gt;HOTSPOT2 A/2, -1, unID, ydev, 3 !--- ref.&lt;BR /&gt;&lt;BR /&gt;HOTSPOT2 0, 0&lt;BR /&gt;HOTSPOT2 A, 0&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-24 at 13.35.15.png" style="width: 811px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/85037i6142D52E695D8E44/image-dimensions/811x284?v=v2" width="811" height="284" role="button" title="Screenshot 2025-03-24 at 13.35.15.png" alt="Screenshot 2025-03-24 at 13.35.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 17:03:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656799#M7531</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2025-03-24T17:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656828#M7532</link>
      <description>&lt;P&gt;I use tubes a lot. And ultimately I have just ended up coding the tube a different direction when this happens.&amp;nbsp; I spent some time trying to figure it out but was never able to solve it other than changing the direction the tube is being drawn.&lt;/P&gt;
&lt;P&gt;Hopefully someone else has some better experience as I am also curious.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 18:49:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656828#M7532</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2025-03-24T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656845#M7533</link>
      <description>&lt;P&gt;Changing the direction of the tube path doesn't change the issue.&lt;BR /&gt;The 'Y deviation' in my real object has to be parametric, so that the user can set it. So, I need either to avoid this inversion from happening or to understand when it happens, so that I can add a routine to the code that would 'uninvert' it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 20:57:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656845#M7533</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2025-03-24T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656877#M7534</link>
      <description>&lt;P&gt;I resort to writing separate tubes.&lt;/P&gt;
&lt;P&gt;Maybe the angle nets to go negative at some point during the tube?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 01:58:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/656877#M7534</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2025-03-25T01:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657189#M7537</link>
      <description>&lt;P&gt;&lt;EM&gt;Tube is weird.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;One thing You can do is to change coordinates of the path. (z-&amp;gt;y ).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;then rotate the tube back&amp;nbsp; to right position.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 18:35:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657189#M7537</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2025-03-26T18:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657195#M7538</link>
      <description>&lt;P&gt;Yes, that was a good guess, Pertti Paasky. Using Y instead of Z axis (then ROTX to put it back to the intended position) did eliminate the invertion of the polyline. But it added new torsions along the path, that are hard to understand (thus, to avoid).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-26 at 16.10.42.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/85163i4374AA892FFC7874/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-03-26 at 16.10.42.png" alt="Screenshot 2025-03-26 at 16.10.42.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 19:28:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657195#M7538</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2025-03-26T19:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657212#M7539</link>
      <description>&lt;P&gt;I use seperate extrusions instead of a single tube as then it allows you to control the connection at each corner as you may not always want your casing or frame to just fillet.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 01:10:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657212#M7539</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-03-27T01:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657213#M7540</link>
      <description>&lt;P&gt;This ends up being the best method especially with curves in tubes&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 01:14:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657213#M7540</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2025-03-27T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657372#M7541</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JochenSuehlo_0-1743082243445.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/85266iC3D22EFAB488BDA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JochenSuehlo_0-1743082243445.png" alt="JochenSuehlo_0-1743082243445.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I discovered these days, that TUBEa is in some cases much better then TUBE.&lt;BR /&gt;TUBE on top, TUBEa below.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 13:32:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657372#M7541</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2025-03-27T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: TUBE suddenly mirrors its profile</title>
      <link>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657397#M7542</link>
      <description>&lt;P&gt;Tubes are in some ways extremely limited, as we can see.&lt;/P&gt;
&lt;P&gt;There comes an old &lt;A href="https://gdl.graphisoft.com/forums/topic/tube-twisting" target="_blank" rel="noopener"&gt;GDL forum thread&lt;/A&gt; into mind.&lt;/P&gt;
&lt;P&gt;To quote: "As you can read in the documentation, the W axis of a cross-section at each particular node of TUBE is tied to the Z axis."&lt;/P&gt;
&lt;P&gt;Meaning: Tubes whose path does not stay in the XY-plane will deform and have issues to some degree. That's why rotating it later helps – in some cases.&lt;/P&gt;
&lt;P&gt;In others, like here, only splitting the parts up will consistently help.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 15:33:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/TUBE-suddenly-mirrors-its-profile/m-p/657397#M7542</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-03-27T15:33:41Z</dc:date>
    </item>
  </channel>
</rss>

