Need to export a 3D model

2 次查看(过去 30 天)
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