Importing CAD file into matlab (STEP file)- Aircraft structure
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all,
I would like to import a cut out part of the aircraft shell and overlay with some existing/measured point cloud.
I tried to first import the ideal STEP file of the shell using the following code:
figure
Geometry = 'Shell single body'
gm = fegeometry("Shell single body.stp");
pdegplot(gm,FaceLabels="on",FaceAlpha=0.3)
But i was able to import only a very very small part of the shell within the cut out part .Tried to change the export types in CATIA and make fucntion changes but nothing works and i suppose that it runs and breaks as the meory is full (RAM) while reading such large file (2000KB), is there a way i can import such large Step files without loosing the geometry and would be able to overlay the meaured point clouds on it ?
8 Kommentare
Walter Roberson
am 8 Dez. 2024
I get,
Imported geometry must be a solid geometric shape.
when I try to read in 20241126_Dhinu_test_part_cut-out.stp
Cris LaPierre
am 8 Dez. 2024
This is an error I commonly encounter when working with stl files - the model geometry is not fully closed. With stl's, I have used online repari tools in the past to fix this issue.
Here's a previous post about stl files: https://www.mathworks.com/matlabcentral/answers/688609-cannot-load-simple-stl-file#answer_570469
Antworten (2)
Cris LaPierre
am 8 Dez. 2024
I was able to load your step file into OnShape. Your file has 3 independent geometries in it. That is why you are getting this error. I exported the 3 parts as STL files and then was able to import each one individually.
unzip('20241126_Dhinu_test_part_cut-out.zip','./')
gm1 = importGeometry('20241126_Dhinu_test_part_cut-out - Bauteil2 (1).stl')
gm2 = importGeometry('20241126_Dhinu_test_part_cut-out - Bauteil2 (2).stl')
gm3 = importGeometry('20241126_Dhinu_test_part_cut-out - Bauteil2.stl')
pdegplot(gm1)
hold on
pdegplot(gm2)
hold on
pdegplot(gm3)
hold off
5 Kommentare
Cris LaPierre
am 10 Dez. 2024
The functions for importing a step file are importgeometry and fegeometry. Note that, for importgeometry, you must be using at least R2022b and for fegeometry, you must be using at least R2023a (for step files, at least).
Dhinu
am 12 Dez. 2024
3 Kommentare
Cris LaPierre
am 13 Dez. 2024
I was able to duplicate the issue if I tried to import a file with two unique parts interfacing. As I showed above, I imported your step file into a CAD program and then exported each unique component. I was then able to import each part indificually without error. This suggests there is an error with how the CAD software is creating the file, particularly where two components interface. Error might be too strong of a word, since other CAD systes will load it just fine.
This is an issue I encountered a lot when working with stl files for 3D printing. I was able to use online tools to repair the files. This amounted to orienting the faces correctly, removing interior walls, etc.
Siehe auch
Kategorien
Mehr zu Geometry and Mesh finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!