필터 지우기
필터 지우기

Need to export a 3D model

조회 수: 2 (최근 30일)
Chathu
Chathu 2016년 10월 22일
댓글: Chathu 2016년 10월 24일
I have set of images and i have just considered the boundary of the image. In that boundary, i have obtained points as x and y coordinates, which shown below:
x= sortedx(i);
y=sortedy(i);
then i have the z coordinate as below:
z=2*ones(1,length(line));
(Note that z is the slice thickness which apparently 2mm, here)
My question is i have stacked mat files of above mentioned boundary images. Now, my intention is to export a 3D model to paraview by converting it to VTK format. Unfortunately, out of many mat to vtk conversion functions,i was not able to solve my issue). How can i export my 3D model?
Can someone pls help.

채택된 답변

Walter Roberson
Walter Roberson 2016년 10월 22일
You have boundary lines for each layer, but you do not have any information about the connection between the layers, so you cannot get a 3D geometry out without more work. How does the N'th point of the second layer relate to the N'th point of the first and third layers?
  댓글 수: 5
Walter Roberson
Walter Roberson 2016년 10월 23일
The document indicates that paraview would accept files that contained a bunch of 3D lines, if we arrange to output such a file. I do not, however, know what kind of processing paraview can do with such a file.
What was it you were hoping that you could do with the slices in paraview?
With situations like this, I tend to think in terms of converting the outside surface into a triangular mesh, or into a quad mesh, but it does not appear to me that meshes are one of the input types that paraview accepts.
I wonder if it would make sense to simply create a volume that was NaN (or perhaps 0) everywhere except the boundary positions? That could exported as a "structured 3D grid".
Chathu
Chathu 2016년 10월 24일
Thank you so much for your response Walter. I was hoping to get a 3D model using slices, in the Paraview. Anyway thank you so much for your kind suggestions.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computational Geometry에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by