Dilating a closed mesh in xy, but not z #7237
Replies: 4 comments 12 replies
-
You mean an homothety? It's an affine transformation. CGAL allows to apply an affine transformation to a mesh, one just has to enter the matrix. |
Beta Was this translation helpful? Give feedback.
-
That does not define a dilation (which is synonym of homothety in geometry). |
Beta Was this translation helpful? Give feedback.
-
I wonder if CGAL::Orthogonal_k_neighbor_search would be suitable for this: https://doc.cgal.org/latest/Spatial_searching/classCGAL_1_1Orthogonal__k__neighbor__search.html |
Beta Was this translation helpful? Give feedback.
-
Just thinking out loud: Say you want to modify the offset meshing function with a different distance function. What you could do, is given a query point, take the plane with normal (0,0,1)that contains the query point and compute the distance of that point to the intersection polygons (you can use |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to dilate a closed mesh in the x and y dimensions, without affecting z.
The implicit distance function approach here looks almost right
https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Offset_meshing_plugin.cpp
But I can't figure out a reasonable way to find the nearest point on the mesh while constraining z.
Any ideas? :)
Beta Was this translation helpful? Give feedback.
All reactions