<?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: Can't use circle for tube? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376130#M46</link>
    <description>&lt;P&gt;Example tube ring.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 11:45:24 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2023-04-10T11:45:24Z</dc:date>
    <item>
      <title>Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376068#M37</link>
      <description>&lt;P&gt;&lt;BR /&gt;What command should I use?&lt;BR /&gt;I want the circle to follow a path. What should I do?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 04:07:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376068#M37</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-09T04:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376073#M38</link>
      <description>&lt;P&gt;Yes, you can use a circle to run along a path.&amp;nbsp; TUBE is the correct command to use for this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TUBE 2, NSP/4, 1+2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;! Define the profile (a circle)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;0, 0, 901,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;frameDia/2, 360, 4001,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;! Define the path (in this case defined earlier with PUT)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;GET(NSP)&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 08:24:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376073#M38</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-04-09T08:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376101#M39</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeeJaeYoung_2-1681058389643.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36001iECE3C13C8148538D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeeJaeYoung_2-1681058389643.png" alt="LeeJaeYoung_2-1681058389643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i would like to do this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeeJaeYoung_3-1681058469840.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36002i1198B2A23961A5B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeeJaeYoung_3-1681058469840.png" alt="LeeJaeYoung_3-1681058469840.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the reality is like this. ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TUBE 2,8,1+2+16+32,&lt;BR /&gt;0,0,901,&lt;BR /&gt;0.1,360,4001,&lt;/P&gt;
&lt;P&gt;-1, 0,0,0,&lt;BR /&gt;0,0,0, 1,&lt;BR /&gt;3.230,0,0,1,&lt;BR /&gt;3.757,0.150,0,1001,&lt;BR /&gt;4.330,0.505,0,1,&lt;BR /&gt;4.8757,0.656,0,1001,&lt;BR /&gt;8.888,0.656,0,1,&lt;BR /&gt;8.888+1,0.656,0,0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's wrong?&lt;BR /&gt;I just want to put smooth curves.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 16:42:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376101#M39</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-09T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376106#M40</link>
      <description>&lt;P&gt;center point doesn't allow additional status code. It has to be 900.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last parameter on&amp;nbsp; each line is&amp;nbsp; not&amp;nbsp; status code&amp;nbsp; like other functions.&amp;nbsp; Its the&amp;nbsp; angle of the profile relative to the path.&lt;/P&gt;
&lt;P&gt;It should be 0 everywhere&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TUBE 2,8,1+2+16+32,&lt;BR /&gt;0,0,900,&lt;BR /&gt;0.1,360,4001,&lt;/P&gt;
&lt;P&gt;-1, 0,0,0,&lt;BR /&gt;0,0,0, 0,&lt;BR /&gt;3.230,0,0,0,&lt;BR /&gt;3.757,0.150,0,0,&lt;BR /&gt;4.330,0.505,0,0,&lt;BR /&gt;4.8757,0.656,0,0,&lt;BR /&gt;8.888,0.656,0,0,&lt;BR /&gt;8.888+1,0.656,0,0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tube.jpg" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36004i2F08B2994FD37E29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tube.jpg" alt="tube.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 18:13:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376106#M40</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2023-04-09T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376113#M41</link>
      <description>&lt;P&gt;A TUBE command isn't like a PRISM command.&amp;nbsp; You must define every coordinate along the path.&amp;nbsp; When you do curves, the maximum angle you can 'bend' and still keep a smooth transition is 15° - any sharper than that and you will get lines at the bends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below code will model a rectangular hoop with rounded corners.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;		! Lead-in
		PUT -A, 0, 0, 0,
			0, 0, 0, 0,
			A/2-cornerRadius, 0, 0, 0
	
		cornerCentreX = A/2-cornerRadius
		cornerCentreY = B-cornerRadius
	
		! Corner 1
		FOR j = 0 TO 90 STEP stepA
			PUT cornerCentreX+SIN(j)*cornerRadius, cornerRadius-COS(j)*cornerRadius, 0, 0
		NEXT j
	
		PUT A/2, B-cornerRadius, 0, 0
	
		! Corner 2
		FOR j = 0 TO 90 STEP stepA
			PUT cornerCentreX+COS(j)*cornerRadius, cornerCentreY+SIN(j)*cornerRadius, 0, 0
		NEXT j
	
		! Corner 3
		cornerCentreX = -A/2+cornerRadius
		FOR j = 0 TO 90 STEP stepA
			PUT cornerCentreX-SIN(j)*cornerRadius, cornerCentreY+COS(j)*cornerRadius, 0, 0
		NEXT j
	
		! Corner 4
		FOR j = 0 TO 90 STEP stepA
			PUT cornerCentreX-COS(j)*cornerRadius, cornerRadius-SIN(j)*cornerRadius, 0, 0
		NEXT j
	
		! Lead-out
		PUT 0, 0, 0, 0,
			A, 0, 0, 0
	
	
		! Hoop
		TUBE 2, NSP/4, 1+2,
			0, 0, 901,
			frameDia/2, 360, 4001,
			GET(NSP)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/56319iECE87329479D8627/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2023-04-10_10-28-06.jpg" title="2023-04-10_10-28-06.jpg" /&gt;</description>
      <pubDate>Mon, 10 Apr 2023 00:30:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376113#M41</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-04-10T00:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376115#M42</link>
      <description>&lt;P&gt;Isn't this a straight path?&lt;BR /&gt;Can't you make a smooth pass like a 3D modeler?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeeJaeYoung_0-1681093022164.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/36007i5F7E550AE7EAAE2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeeJaeYoung_0-1681093022164.png" alt="LeeJaeYoung_0-1681093022164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 02:17:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376115#M42</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-10T02:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376116#M43</link>
      <description>&lt;P&gt;1. Below you said you can't use 1 for the radius, but you used it. I'm a beginner so it's hard to understand the difference.&lt;BR /&gt;Can I ask for a little clarification?&lt;/P&gt;
&lt;P&gt;2. May I ask you to explain stepA?&lt;/P&gt;
&lt;P&gt;(What is the value of stepA?)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 09:40:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376116#M43</guid>
      <dc:creator>LeeJaeYoung</dc:creator>
      <dc:date>2023-04-10T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376118#M44</link>
      <description>&lt;P&gt;1.&amp;nbsp; I didn't say you can't use 1 for the radius - that was julienK.&amp;nbsp; You can't use status codes to create curves like you can with a prism command in the path definition.&amp;nbsp; You can use status codes to create curves in the profile definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; stepA is a variable I set up to be 15 (i.e. a step of 15 degrees).&amp;nbsp; If you want a smoother pass through rounded corners, just make this number smaller: but I have found 15 to give a good enough result.&amp;nbsp; The FOR - TO - NEXT flow control statement can also have a STEP component to it, so instead of counting up by 1, it will count by whatever STEP has been defined.&amp;nbsp; Check out the GDL reference guide for more info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 02:58:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376118#M44</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-04-10T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376119#M45</link>
      <description>&lt;P&gt;Yes, this is a straight path from point to point.&amp;nbsp; You can't make a 'smooth' pass like you can in Rhino (for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 02:59:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376119#M45</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-04-10T02:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use circle for tube?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376130#M46</link>
      <description>&lt;P&gt;Example tube ring.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 11:45:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-use-circle-for-tube/m-p/376130#M46</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-04-10T11:45:24Z</dc:date>
    </item>
  </channel>
</rss>

