Triangulation of hollow objects

2 ビュー (過去 30 日間)
Tero
Tero 2021 年 1 月 8 日
回答済み: Abhinaya Kennedy 2024 年 6 月 5 日
Hi all,
simply, how to make the simple hollow 3D triangle depicted below?
Is there some contraint method I could use instead? I use the following command to get the surface:
tri = triangulation(delaunay(x,y),x,y,z);

回答 (1 件)

Abhinaya Kennedy
Abhinaya Kennedy 2024 年 6 月 5 日
Hi Tero,
Here are two possible approaches to create a hollow 3D triangle in MATLAB:
  1. Using the "patch" function: This function allows you to define a 3D surface using vertices, colors, and transparency. You can create separate surface patches for the outer shell and the inner shell of the triangle, specifying transparency for the inner shell to make it hollow.
  2. Using implicit functions: You can define the geometry of the hollow triangle using implicit functions. An implicit function defines a shape based on a mathematical equation where all points satisfying the equation are considered inside the shape. By combining two implicit functions, one for the outer shell and another for the inner shell, you can create the desired hollow shape.
Here are some resources that you might find helpful: https://www.mathworks.com/help/matlab/ref/patch.html

カテゴリ

Help Center および File ExchangeDelaunay Triangulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by