コード: matlab は stl モデルをスライスします (スライスの三角形の 3 つの頂点を表示します)。

ここに画像の説明を挿入します
素材:https://github.com/kangjie2333/PCL_CloudSources.git

clc
clear
close all

%读入stl数据
ptCloud = stlread('rabbit.stl');
%显示stl模型
trimesh(ptCloud);
hold on 
%网格顶点坐标矩阵P
P = ptCloud.Points

おすすめ

転載: blog.csdn.net/kangjielearning/article/details/125191752
おすすめ