MATLAB Answers

0

pde 3D POLYGONS

Asked by jahanzaib ahmad on 9 Apr 2019
Latest activity Commented on by jahanzaib ahmad on 9 Apr 2019
i have FIVE 3D polygons in a cube as total 6 models(including cube ) .i want to mesh them as one model .so that the voulme of polygons is not overlapped by the mesh of cube

  1 Comment

for i=1:(length(A))
DT3 = delaunayTriangulation(A{i});
[C3,v3]= convexHull(DT3);
nodes=A{i}';
elements=C3';
model(i)=createpde();
geometryFromMesh(model(i),nodes,elements);
end
for j=1:(length(A))
pdegplot(model(j),'FaceLabels','on','FaceAlpha',0.5)
figure(j)
generateMesh(model(j));
hold on
end

Sign in to comment.

0 Answers