Hi,<br><br>at the moment I'm doing my master thesis and I'm fighting with the following problem: I'd like to visualize a set of voxels (coordinates x,y,z and one material property of the voxel, which can be chosen, are given). In the following there's an small example of the data I'd like to import in PV:<br>
<br>x y z material<br>0 0 0 1<br>0 1 0 0<br>0 1 1 2<br>1 0 0 1<br>1 1 1 3<br>1 2 3 0<br><br>For the first try I chose an VTK unstructured grid file; it has been imported in PV as "VTK unstructured grid". In the following I created a glyph with boxes. That works fine, but afterwards I tried to do a clip and the major problem came up: within the clip the boxes are empty - only the walls of the boxes are displayed. It's mandatory that the boxes are filled.<br>
<br>I also tried another solution: import of the VTK-file as a VTK particle file, the glyph function works also fine and the clip function produces filled (I suppose so...hard to say) boxes, but the information / material property is lost. I appended the VTK-file at the end.<br>
<br>It will be perfect if someone might help me and knows a solution to get solid/filled boxes including the scalar material property. Is this an issue of the VTK-file? In case of - where's my mistake or what should I change? The export format of my data is quite flexible...<br>
<br>Thanks a lot in advance for hints, have a nice evening,<br>Karl<br><br><br><br>% ==================== EXAMPLE VTK-File =========================<br><br><VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"><br>
<UnstructuredGrid><br> <Piece NumberOfPoints="10" NumberOfCells="0"><br> <Points><br> <DataArray name="Position" type="Float32" NumberOfComponents="3"<br>
format="ascii"><br> 0 0 0<br> 1 1 1<br> 0 0 1<br> 1 0 1<br> 0 1 1<br> 0 0 1<br> 1 1 2<br> 1 2 1<br> 1 2 2<br> 2 2 2<br> </DataArray><br>
</Points><br> <PointData Vectors="vector"><br> <DataArray type="Float32" Name="Structure" format="ascii"><br> 0<br> 1<br> 2<br>
3<br> 1<br> 2<br> 2<br> 3<br> 0<br> 0<br> </DataArray><br> </PointData><br> <Cells><br> <DataArray type="UInt8" Name="types" format="ascii"><br>
</DataArray><br> </Cells><br> </Piece><br> </UnstructuredGrid><br> </VTKFile><br>%==============================================================<br><br><br><br>