<?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 CurveLoop offset - CurveLoop normal vector? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7789789#M52291</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling with this for a while. I need to offset a CurveLoop always to the "outside" of it. I'm using the&amp;nbsp;CreateViaOffset(CurveLoop, Double, Vector) where the vector is normal to the curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the original CurveLoop, How do I get the normal vector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 19:48:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-19T19:48:50Z</dc:date>
    <item>
      <title>CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7789789#M52291</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling with this for a while. I need to offset a CurveLoop always to the "outside" of it. I'm using the&amp;nbsp;CreateViaOffset(CurveLoop, Double, Vector) where the vector is normal to the curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the original CurveLoop, How do I get the normal vector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:48:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7789789#M52291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T19:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7789949#M52292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;, is this:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/offset-a-face/m-p/3056230/highlight/true#M2049" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/offset-a-face/m-p/3056230/highlight/true#M2049&lt;/A&gt; still the case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 21:01:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7789949#M52292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T21:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7790093#M52293</link>
      <description>&lt;P&gt;Paraphrasing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are walking along the direction of the curve then a normal&amp;nbsp;in the direction&amp;nbsp;from your feet to your head offsets right (for positive offset value), opposite normal from head to feet offsets left. Right hand rule is it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what happens when some of your curves are reversed in the loop, I know for example that the curve loop isn't considered closed if all of the curve segments are not in the same direction. Knowing this could be a valid curveloop configuration leads me to wonder&amp;nbsp;how that would offset i.e. which segment it would pick to define the global orientation of the offset?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 22:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7790093#M52293</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2018-02-19T22:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7790238#M52294</link>
      <description>&lt;P&gt;If you would like to offset the curveloop to the 'outside':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if (curveLoop.IsCounterClockwise(normal))
   CurveLoop.CreateViaOffset(curveLoop, distance, normal));

else 
   CurveLoop.CreateViaOffset(curveLoop, - distance, normal));&lt;/PRE&gt;&lt;P&gt;and what I usually use as normal is the the normal of the same face I retrieve my CurveLoop from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 23:52:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7790238#M52294</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2018-02-19T23:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7796412#M52295</link>
      <description>&lt;P&gt;As far as I know, it's not possible for a line to have a normal in 3 space. It has an infinite number of "normals". If you're referring to the normal of the face you get the curve from, that certainly has a normal, and is probably the reference for which the method would be looking.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:08:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7796412#M52295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: CurveLoop offset - CurveLoop normal vector?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7796423#M52296</link>
      <description>&lt;P&gt;Yes, a line does not have a normal. And the normal of the face used to retrieve the CurveLoop is what needs to be passed to the CreateFromOffset method.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 20:12:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/curveloop-offset-curveloop-normal-vector/m-p/7796423#M52296</guid>
      <dc:creator>BardiaJahan</dc:creator>
      <dc:date>2018-02-21T20:12:00Z</dc:date>
    </item>
  </channel>
</rss>

