<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I have a 3D matrix filled with double values which I want to put into a structured point set and then contour using a vtkContourFilter. I can't work out how to do this. The problem is, all the examples of isosurface extraction using a contour filter use a vtkReader or vtkVolumeReader to read in the data. I already have the data, in the form of a 3D matrix (indexed by i,j,k). I want to create a vtkStructuredPoints, and fill it with this cell data. The problem is, I can't work out how to fill it.<BR><BR>
I want to do something like:<BR><BR><FONT size=2>
vtkStructuredPoints structuredPoints = </FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>new</B></FONT></FONT><FONT size=2> vtkStructuredPoints();</FONT><BR>
<FONT size=2>double value = dataMatrix.get(i,j,k);<BR>structuredPoints.addCell(i,j,k, value);</FONT><BR>
<FONT size=2></FONT>&nbsp;<BR>
<FONT size=2>Any help would be greatly appreciated,<BR>Thanks,<BR>Will Pierce<BR></FONT><br /><hr />Share your photos with Windows Live Photos – Free.  <a href='http://clk.atdmt.com/UKM/go/134665338/direct/01/' target='_new'>Try it Now!</a></body>
</html>