STL file from catia apparently empty?

조회 수: 3 (최근 30일)
Mike AA
Mike AA 2022년 3월 4일
댓글: KSSV 2022년 3월 7일
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
Mike AA
Mike AA 2022년 3월 5일
Ok I attached the zipped file to the original question.
KSSV
KSSV 2022년 3월 5일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2022년 3월 5일
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
Mike AA
Mike AA 2022년 3월 7일
편집: Mike AA 2022년 3월 7일
I wonder why it creates a new variable though if there's no data.
KSSV
KSSV 2022년 3월 7일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by