フィルターのクリア

Error when importing STL file into Matlab

17 ビュー (過去 30 日間)
Konvictus177
Konvictus177 2022 年 2 月 21 日
回答済み: Sulaymon Eshkabilov 2022 年 2 月 21 日

Hi,
When I try to import my STL file into MATLAB I get en error message. What am I doing wrong?
figure
gm = importGeometry('Torus.stl');
pdegplot(gm)
Error: Check for missing argument or incorrect argument data type in call to function 'importGeometry'.

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 2 月 21 日
If you want to create a geometry using some edge coordinates, then hit this help:
doc geometryFromEdges % Explains via a good simple example: Geometry from Decomposed Solid Geometry

その他の回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 2 月 21 日
You are missing one important part in your command, see e.g.:
pdem = createpde(); % Missing
GM = importGeometry(pdem,'BEAM.stl'); % See how to add the missing piece
pdegplot(gm, 'FaceLabels','on', 'FaceAlpha',0.75)
  1 件のコメント
Konvictus177
Konvictus177 2022 年 2 月 21 日
編集済み: Konvictus177 2022 年 2 月 21 日
How can I use geometryFromEdges now and continue?
So basically I want to import a 3D CAD Object (a simple plate) and then use geometryFromEdges() to perform thermal analysis.
thermalmodel = createpde('thermal','transient');
gm = importGeometry(thermalmodel,'BEAM.stl');
geometryFromEdges(thermalmodel,????); % What am I supposed to add here

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

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by