Skip to main content
Solved

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

  • March 12, 2020
  • 2 replies
  • 74 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • 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
  • 156 replies
  • 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