Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triangulate a surface with vtk from points AND normals

I have a set of points in 3D that lie on a surface and I also have the normals at every point. I would like to generate a surface triangulation with this information. In addition I could tell the algorithm to use what points lie on the boundary if that is needed.

So, I have quite a bit of information: * points * normals * boundary

How do I triangulate a surface with this information using vtk?

A surface reconstruction algorithm is like using a bomb for this problem since I have all this information that I would like to use. This information comes from a simulation so I know the surface exists and that is quite smooth.

I would like the answer to be cast in terms of either what vtk function to use and if available (and that would be great) examples using this function.

Thank you so much in advance.

like image 782
Alejandro Avatar asked Nov 24 '25 11:11

Alejandro


2 Answers

You can use the vtkSurfaceReconstruction filter to create a surface from a set of 3D points.

like image 190
waxeye Avatar answered Nov 28 '25 16:11

waxeye


You could try the point cloud library

Point Cloud Library

like image 26
DannyK Avatar answered Nov 28 '25 15:11

DannyK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!