STL file from catia apparently empty?

I tried opening the file using stlread. It adds some descriptions of the file to the command window and a new variable to workspace, implying the file has been successfully opened (see image). However, when I click on this new variable, it appears to contain no data. The file itself is 37 bytes. How can I fully read this STL file from catia in matlab?
close all; clear all; clc
fv = stlread('Part2.stl');
I'm using R2014a

5 comentarios

Jan
Jan el 4 de Mzo. de 2022
If the file has 37 bytes only, it is very short. Maybe it does not contain any data? Please post the STL file also.
Mike AA
Mike AA el 5 de Mzo. de 2022
Editada: Mike AA el 5 de Mzo. de 2022
I did try attaching the file, but it gave an error saying I could only attach certain formats.
KSSV
KSSV el 5 de Mzo. de 2022
You may zip it and attach the zip file.
Mike AA
Mike AA el 5 de Mzo. de 2022
Ok I attached the zipped file to the original question.
It looks like the file have no data.
I am getting error:
Error using stlread (line 52)
Input file must contain at least 3 unique vertices.

Iniciar sesión para comentar.

 Respuesta aceptada

Jan
Jan el 5 de Mzo. de 2022
As I thought, the file does not contain any data. The contents is really:
solid CATIA STL
endsolid CATIA STL
Of course, this does not allow to import any data.
"How can I fully read this STL file from catia in matlab?" - you are reading it completely already. The actual problem you have to solve is: How can you export the data from the other program. But this is not a Matlab question.

2 comentarios

Mike AA
Mike AA el 7 de Mzo. de 2022
Editada: Mike AA el 7 de Mzo. de 2022
I wonder why it creates a new variable though if there's no data.
KSSV
KSSV el 7 de Mzo. de 2022
The data will have nodal connectivity (fv) of size m*3 and coordinates p*2. It tried to initiate the nodal connectivity ad the data is empty, you got a empty matrix.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2014a

Preguntada:

el 4 de Mzo. de 2022

Comentada:

el 7 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by