How to create a planar surface with voids?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have four 3D points representing the boundaries of a wall shown in red. All I need is to create a surface (by a surface I mean something like the second image not a mesh) of this wall with constraints shown in green points (i.e, I want the plane to be reconstructed without filling these holes). I was thinking of Delaunay Triangulation but I will face the problem of coplanrity. Any better ideas?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1178573/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1178578/image.jpeg)
0 comentarios
Respuestas (1)
Rijuta
el 7 de Sept. de 2023
Hi Youssef,
I understand that you are trying to create a surface of the wall without filling the holes. You can consider using the concept of a "polygonal mesh" instead of Delaunay triangulation.
To create a surface with the given constraints, you can follow these steps:
1. Connect the four 3D points representing the boundaries of the wall with edges, forming a quadrilateral.
2. Determine the position of the green points on the quadrilateral. You can project each green point onto the plane defined by the quadrilateral to ensure they lie on the surface.
3. Triangulate the quadrilateral by dividing it into two triangles. This can be done by connecting one of the corners of the quadrilateral to each of the green points.
4. Repeat steps 2 and 3 for each hole, connecting the hole's boundary points to the corresponding green points.
5. Connect the green points to each other to form additional triangles, ensuring they lie on the surface.
I hope the above steps help you solve your query.
0 comentarios
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!