cut the object in space (separate a 3D object into two distinct parts) using a plane

8 ビュー (過去 30 日間)
Alberto Acri
Alberto Acri 2023 年 10 月 2 日
回答済み: Catalytic 2023 年 10 月 2 日
Hi! Is there any code that allows me to cut the object in space (separate a 3D object into two distinct parts) using a plane?
nodes_ext = importdata("NODES.mat");
faces_ext = importdata("FACES.mat");
load V_plane.mat
P = [24.3377 -21.8635 81.9835];
figure
plot3(P(:,1),P(:,2),P(:,3),'k.','Markersize',20);
hold on
trimesh(faces_ext(:,:),nodes_ext(:,1),nodes_ext(:,2),nodes_ext(:,3),'EdgeColor','k','Linewidth',0.1,'Facecolor','b','FaceAlpha',.4)
patch(V(:,1), V(:,2),V(:,3),'k');
hold off
axis equal
  2 件のコメント
Catalytic
Catalytic 2023 年 10 月 2 日
We cannot run your code, since NODES.mat and FACES.mat are missing.
Alberto Acri
Alberto Acri 2023 年 10 月 2 日
added files!

サインインしてコメントする。

回答 (1 件)

Catalytic
Catalytic 2023 年 10 月 2 日
The IsoCut command here looks like it will do this -

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by