See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: INTERSECTING POINT

  1. #1
    Member
    Join Date
    2018-08
    Posts
    11
    Login to Give a bone
    0

    Default INTERSECTING POINT

    I am trying to find the intersecting point between two lines that cross over each other, like a cross. I have tried the .intersectswith method but it seems to only find a point where one line begins or ends on the other line. Below is the code I am using.
    Code:
    Private Function LinesIntersect(line1 As Line, line2 As Line) As Nullable(Of Point3d) 'As Tuple(Of Point3d, String) 'Nullable(Of Point3d)
            'Try
            Dim ls1 As New LineSegment3d(line1.StartPoint, line1.EndPoint)
            Dim ls2 As New LineSegment3d(line2.StartPoint, line2.EndPoint)
            Dim inters As Point3d()
            Dim colI As New Point3dCollection
            Dim x As Boolean = False
    
            inters = ls1.IntersectWith(ls2)
            If IsNothing(inters) = True Then
                MsgBox("****")
    
                inters = ls2.IntersectWith(ls1)
                If IsNothing(inters) = True Then
                    MsgBox("**** 2")
                    Exit Function
                End If
            End If
    end function
    Last edited by BlackBox; 2019-10-17 at 02:49 PM. Reason: Please use [CODE] Tags; moved to .NET forum

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,714
    Login to Give a bone
    1

    Default Re: INTERSECTING POINT

    Code:
    No overload for method for 'IntersectsWith' takes 1 argument
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. CV104-1P: One Point, Two Point, Red Point, Blue Point
    By Autodesk University in forum Civil Infrastructure
    Replies: 0
    Last Post: 2013-05-05, 03:17 AM
  2. CV12-4: One Point, Two Point, Red Point, Blue Point
    By Autodesk University in forum Civil Infrastructure
    Replies: 0
    Last Post: 2013-04-17, 04:50 AM
  3. Endcaps and Intersecting walls
    By dhallett in forum ACA General
    Replies: 2
    Last Post: 2005-02-22, 11:46 PM
  4. Intersecting Walls not cleaning up?
    By Jason in forum Revit Architecture - General
    Replies: 8
    Last Post: 2005-01-21, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •