<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>GetIntersectionPoints method</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/bdn-vba/100168/getintersectionpoints-method</link><description>I am using (LineElement.)getIntersectionPoints method to find the number of intersection points between two specific line elements. In some case, there is no intersection between the lines. But the getintersectionPoints method returns a intersection point</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: GetIntersectionPoints method</title><link>https://communities.bentley.com/thread/296309?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 12:01:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3d14a89b-1ed1-4948-ad83-a6cb504245fa</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Dharmarajan&amp;quot;]Is there any other way to handle this kind of situation?[/quote]&lt;/p&gt;
&lt;p&gt;That depends on your &amp;#39;situation&amp;#39;.&amp;nbsp; What exactly do you want to resolve?&lt;/p&gt;
&lt;p&gt;The VBA &lt;span style="font-family:courier new,courier;"&gt;GetIntersectionPoints&lt;/span&gt; Method is probably a wrapper around the MDL &lt;span style="font-family:courier new,courier;"&gt;mdlIntersect_allBetweenElms&lt;/span&gt;, which takes a tolerance value as its last argument.&amp;nbsp; VBA presumably assigns a reasonable default tolerance for you.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the VBA declaration of that function, should you want to venture down that road...&lt;/p&gt;
&lt;pre&gt;&lt;code style="font-family:courier new,courier;"&gt;Declare Function mdlIntersect_allBetweenElms Lib &amp;quot;stdmdlbltin.dll&amp;quot; ( _
  ByRef isPnt1 As Point3d , _
  ByRef isPnt2 As Point3d , _
  ByVal isPntSize As Long , _
  ByVal edP1 As Long , _
  ByVal edP2 As Long , _
  ByRef rotMatrix As Matrix3d , _
  ByVal tolerance As Double ) As Long&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GetIntersectionPoints method</title><link>https://communities.bentley.com/thread/296293?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 09:01:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c73dc7f2-bd38-4f64-89f9-ba10302b8d2e</guid><dc:creator>Dharma Rajan</dc:creator><description>&lt;p&gt;It&amp;#39;s ok. Is there anyother way to handle this kind of situation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GetIntersectionPoints method</title><link>https://communities.bentley.com/thread/296292?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 08:46:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6a00fdfd-c2c3-46d6-9e83-5ed6916af04e</guid><dc:creator>Frank Klein</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Dharmarajan&amp;quot;]No. If you zoom-in closer to that connected point, there is a gap of 0.000033m will be available. i.e. the two lines are not connected/intersected. Refer the attached screenshot for more details.[/quote]&lt;/p&gt;
&lt;p&gt;Sorry I just checked with a &amp;quot;0.0001&amp;quot; accuracy where I have a VBA that do so with this tolerance. Your talking about Meter 0.000033 !&lt;/p&gt;
&lt;p&gt;For the most of our mapping work that tolerance (0.0001m) is&amp;nbsp; what we like to archive.&lt;/p&gt;
&lt;p&gt;Think of the Float/double accuracy when developing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GetIntersectionPoints method</title><link>https://communities.bentley.com/thread/296279?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 06:32:22 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:087c12d9-c527-4798-8e09-7fc5713fe140</guid><dc:creator>Dharma Rajan</dc:creator><description>&lt;p&gt;No. If you zoom-in closer to that connected point, there is a gap of 0.000033m will be available. i.e. the two lines are not connected/intersected. Refer the attached screenshot for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description><enclosure url="https://communities.bentley.com/cfs-file/__key/telligent-evolution-components-attachments/00-53220-01-00-00-29-62-79/GapBetweenLines.png" length="106034" type="image/png" /></item><item><title>RE: GetIntersectionPoints method</title><link>https://communities.bentley.com/thread/296277?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2014 06:06:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a75a72d3-093e-4377-9c91-ed5d2cf17de4</guid><dc:creator>Frank Klein</dc:creator><description>&lt;p&gt;One Start and End-Point of your Line strings are identical so they intersect you have to check yourself&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>