How to create a surface with "faces" and "vertices" to use surface interface ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i am trying a simple code:
clc;
clear all;
close all;
%Below are 3D points I would like to generate mesh
x1=[0 0 1 1 1 1 0 0 0 0];
y1=[0 0 0 0 1 1 1 1 0 0];
z1=[0 1 0 1 0 1 0 1 0 1];
% Below are expanded to 2D version;
x=[0 0 1 1 2 2 3 3 4 4];
y=[0 1 0 1 0 1 0 1 0 1];
z=[0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5];
% generate mesh for 2D version,
DT = delaunaydelaunay(x,y);
%Plot the results for 3D version
Surface1=trimesh(DT,x1,y1, z1)
hold on;
Surface2=trimesh(DT,x,y, z)
[~, Surf12] = SurfaceIntersection(Surface1, Surface2);
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Delaunay Triangulation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!