Question

Connect point to line perpendicular

  • 13 March 2024
  • 2 replies
  • 32 views

Userlevel 1
Badge +11

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

Userlevel 6
Badge +34

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
Userlevel 5
Badge +26

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)

Reply