<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Circle orientation other than Z_axis?]]></title><description><![CDATA[<p dir="auto">I'm in need for some code to orient a circle forming a stair railing, which needs to be normal to the riser/tread triangular relationship<br />
see attachment.</p>
<pre><code>    edges = entities.add_edges(@pt1, @pt2)
    circle = entities.add_circle(@pt1, Z_AXIS, 1.inch, 16)
    base = entities.add_face(circle)
    base.back_material = Sketchup;;Color.new (255,200,100) 
    base.followme(edges) 
</code></pre>
<hr />
<p dir="auto"><img src="/uploads/imported_attachments/X1RW_extrusion.png" alt="extrusion.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.sketchucation.com/topic/137125/circle-orientation-other-than-z_axis</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 21:14:29 GMT</lastBuildDate><atom:link href="https://community.sketchucation.com/topic/137125.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Sep 2012 17:06:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Circle orientation other than Z_axis? on Tue, 11 Sep 2012 20:46:01 GMT]]></title><description><![CDATA[<p dir="auto">It took a while for your medication to be absorbed <img src="https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=e3ff0b7518f" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":smile:" alt="😄" /></p>
<pre><code>        vector = $pt2a - $pt1a
        edges1 = entities.add_edges($pt1a, $pt2a)
        circle = entities.add_circle($pt1a, vector, 1.inch, 16)
        base = entities.add_face(circle)
        base.back_material = Sketchup;;Color.new (255,200,100) #use RGB Color numbers
        base.followme(edges1)
</code></pre>
<p dir="auto">using my coded example: subtracting the 2 points creates a 3d vector which is normal to any circle.</p>
]]></description><link>https://community.sketchucation.com/post/1349907</link><guid isPermaLink="true">https://community.sketchucation.com/post/1349907</guid><dc:creator><![CDATA[tomot]]></dc:creator><pubDate>Tue, 11 Sep 2012 20:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Circle orientation other than Z_axis? on Sat, 08 Sep 2012 21:17:27 GMT]]></title><description><![CDATA[<pre><code>circle = entities.add_circle(@pt1, Z_AXIS, 1.inch, 16)
</code></pre>
<p dir="auto">Your '<code> @pt1</code>' can be replaced with <em>any</em> point you specify - like <code> edge.line[0]</code><br />
and the circle's 'normal' is <em>any</em> vector you specify - it doesn't have to be the z-axis [<code> Z_AXIS</code>] so <em>any vector</em>, like <code> edge.line[1]</code>, will do as well...<br />
The radius ['<code> i.inch</code>'] in your code can also be whatever you want it to be...<br />
And the '<code> 16</code>' that sets the umber of segments, can also be what you like...</p>
]]></description><link>https://community.sketchucation.com/post/1349318</link><guid isPermaLink="true">https://community.sketchucation.com/post/1349318</guid><dc:creator><![CDATA[TIG]]></dc:creator><pubDate>Sat, 08 Sep 2012 21:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to Circle orientation other than Z_axis? on Sat, 08 Sep 2012 17:05:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tig" aria-label="Profile: tig">@<bdi>tig</bdi></a> said:</p>
<blockquote>
<p dir="auto">An edge has a 'line'.</p>
<p dir="auto"><code> point=edge.line[0]</code> and <code> vector=edge.line[1]</code></p>
</blockquote>
<pre><code>circle = entities.add_circle(@pt1, Z_AXIS, 1.inch, 16)
</code></pre>
<p dir="auto">do I replace the Z_AXIS code with your code?</p>
]]></description><link>https://community.sketchucation.com/post/1349254</link><guid isPermaLink="true">https://community.sketchucation.com/post/1349254</guid><dc:creator><![CDATA[tomot]]></dc:creator><pubDate>Sat, 08 Sep 2012 17:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Circle orientation other than Z_axis? on Fri, 07 Sep 2012 17:30:11 GMT]]></title><description><![CDATA[<p dir="auto">An edge has a 'line'.<br />
That's a two element array of the start point and its vector.<br />
So <code> point=edge.line[0]</code> and <code> vector=edge.line[1]</code><br />
Use 'vector' instead of an 'axis' and also the 'center' can be 'point'...</p>
]]></description><link>https://community.sketchucation.com/post/1349034</link><guid isPermaLink="true">https://community.sketchucation.com/post/1349034</guid><dc:creator><![CDATA[TIG]]></dc:creator><pubDate>Fri, 07 Sep 2012 17:30:11 GMT</pubDate></item></channel></rss>