<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div>
<div dir="ltr">
<div>>> I am working on a data set that has multiple subdomains, ...<br>
<br>
this is a classic textbook problem.<br>
<br>
I would use a vtkExtractBlock(), and a vtkCompositeDataGeometryFilter() to pull all the pieces together.<br>
<br>
blocks = vtk.vtkExtractBlock()<br>
blocks.SetInputConnection(reader.GetOutputPort())<br>
blocks.AddIndex(2) # first block is index 2 (starting at 0 for the multiblock dataset container)<br>
blocks.AddIndex(3) # second block<br>
<br>
contours.SetInputConnection(blocks.GetOutputPort())<br>
<br>
compGF = vtk.vtkCompositeDataGeometryFilter()<br>
compGF.SetInputConnection(contours.GetOutputPort())<br>
<br>
contMapper.SetInputConnection(compGF.GetOutputPort())<br>
<br>
Jean/CSCS<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>