slicing 3D stl file to 2D series of image
조회 수: 19 (최근 30일)
이전 댓글 표시
Dear all,
I have a 3D model in the format of .stl and I would like to slice it in z direction into cross sections with format of image(any format), I have searched alot to use different softwares but it is not useful in my case,I appreciate any idea Regards Saréh
댓글 수: 4
Karoline Neumann
2017년 8월 18일
I need a similar thing. Only I'm not interested in the image, but the cross section areas.
MUHAMMAD HUSNAIN
2024년 3월 29일
Hello,
I also have similar problem as Sareh(@sareh), I want to print slices of a 3D model in inkjet printer but to print that I need that sliced files in any Image format (e.g PNG, GPEG etc). Is there any software or any procedure that I can use to get this. Any help pls.
Regards Husnain
답변 (5개)
Sailesh Sidhwani
2019년 10월 19일
편집: Sailesh Sidhwani
2019년 10월 19일
Check out these new viewers that are added to Image Processing Toolbox in R2019b:
댓글 수: 0
Qinkai Yang
2022년 10월 8일
you may need to look at plane-line intersection algorism. The inersection points between each triangle's edge and a slice plane are the data point of your sliced corss-section. Changing the Z-cordinate of your slice plane, repeat the intersection, you would then get a series of slices (2D series of image)
댓글 수: 0
DGM
2025년 4월 9일
If the goal is to produce raster images as output, and your slices are uniformly-distributed, then I suppose that one way would be to convert the model to a volumetric binary image. At that point, you can extract any 2D slice out of the array that you want.
Otherwise, you could find the slice geometry as a 2D polyshape, and then somehow convert that to a 2D binary image (e.g. using poly2mask() or something.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modify Image Colors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!