Skip to main content
Question

Connect point to line perpendicular

  • March 13, 2024
  • 2 replies
  • 96 views

checcosisani
Contributor
Forum|alt.badge.img+14

Hi

 

how can create a perpendicular line that connect point to line, I mean I need to connect red points to blue line with a perpendicluar line 

 

thx

Francesco

 

 

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

One way to do this:

  • NeighborFinder
    • Points are bases
    • Lines are candidates
    • Number to match = 1
  • VertexCreator
    • Add Point
    • _closest_candidate_x
    • _closest_candidate_y

redgeographics
Celebrity
Forum|alt.badge.img+62

The NeighborFinder will return the coordinates on the candidate (line) that are at the closest to the base (point), so you can then construct the perpendicular line (VertexCreator and the _closest_candidate_x and _closest_candidate_y attributes)