Solved

Create perpendicular line between 3D-point and 3D-surface

  • 12 March 2020
  • 2 replies
  • 9 views

Badge

Hi,

 

I have two files,

 

 

One coordinate-file (measured rock bolts, X,Y,Z)

One DWG-file containing theoretical rock tunnel.

I would like to create a 3D-model of the rock bolts since i know the lenght of each bolt (3 meters). So, i would like to find the vector of each point the closest way to the surface (perpendicular), and then create a new vertex for each point and draw a line between the points.

 

This would be the result (drawn in paint)

 

 

 

icon

Best answer by owen 12 March 2020, 16:58

View original

2 replies

Badge +22

I would have a look at the SurfaceNormalExtractor/SurfaceNormalCalculator custom transformers and see if they could be adapted for your purpose.

 

 

I would tentatively propose breaking the tunnel into faces, calculate the normal vector for each face, find the closest face to each point, get the line by applying the normal vector at that point.
Badge +1

Hello, please see attached workspace to do this. Its includes some wizardry from @ebygomm to calculate 3d distance using pointclouds. I have created some random points and tunnel geometry which you should be able to replace with your data. I couldn't figure out how to specify the extrusion distance when using a vector, so extended the output then snipped to 3m. Owen

 

 

Tunnel_bolts.fmw

Reply