Need to export a 3D model
4 次查看(过去 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.
0 个评论
采纳的回答
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
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".
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!