Skip to main content
Solved

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


romanhassas
Forum|alt.badge.img

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)

 

 

 

Best answer by owen

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

View original
Did this help you find an answer to your question?

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • March 12, 2020

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.

owen
Forum|alt.badge.img+1
  • Best Answer
  • March 12, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings