<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
{font-family:SimSun}
@font-face
{font-family:SimSun}
@font-face
{font-family:Calibri}
@font-face
{}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.E-MailFormatvorlage17
{font-family:"Arial","sans-serif";
color:windowtext}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">Dear VTK Community,
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">I have a question about vtkMulitBlockDataSet and setting blocks!</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">I have created, for example, the following empty structure:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">+ vtkMultiBlockDataSet (root)</span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">++ vtkMultiBlockDataSet (L1)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">+++ vtkMultiBlockDataSet (A)
</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (1)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (2)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">++ vtkMultiBlockDataSet (L2)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">+++ vtkMultiBlockDataSet (B)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (3)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (4)</span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">++ vtkMultiBlockDataSet (L3)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> +++ vtkMultiBlockDataSet (C)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (5)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">+++ vtkMultiBlockDataSet (D)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (6)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (7)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> ++++ vtkUnstructuredGrid (8)</span></p>
<p class="MsoNormal" style="margin-left:35.4pt; text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">I have numbered the blocks for easier understanding. Blocks 1-8 are empty UnstruturedGrid inserted for example with:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">A->SetBlock ( 0,</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() ) ,
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">A->SetBlock ( 1,</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() ) ,
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">and for (D):</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">D-> SetBlock (0,</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() )</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">D-> SetBlock (1,</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() )</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">D-> SetBlock (2,</span><span lang="EN-US">
</span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() ) and so on.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">The File I am reading has this structure and it won’t change , and the idea behind my reasoning is a partial/incremental reading, i.e., I signal Paraview
I want to read blocks (1) and (2) –first pass-- , then I want to read blocks (3) and (4) –second past-- , but keeping (1) and (2). Since I have read blocks(1) and (2) in the first pass, I want to skip these 2 steps (reading 1 and 2). </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">In the third pass, I signalize Paraview that I want to keep blocks (2), (3) and (4) dropping block (1). Dropping means to me inserting an empty grid with:
“ A->SetBlock ( 0,</span><span lang="EN-US"> </span><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">vtkSmartPointer<vtkUnstructuredGrid>::New() ) “
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">I tried using
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">root->GetBlock(0)->GetBlock(0) to get (A) and then insert the grid using A->SetBlock(0, grid_1 );
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">with an error 'class vtkDataObject' has no member named 'GetBlock' for root->GetBlock(0) . I have read in the documentation that GetBlock returns a pointer
to vtkObjectData . How can I convert this vtkObjectData in the proper type, or in general how could I implement my algorithm with the given description ?
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">Any Help would be highly appreciated. Thanks in Advance !!</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">Regards
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif"">Orlando
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt; font-family:"Arial","sans-serif""> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">--</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver"><strong>MTU Aero Engines AG</strong></span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer Martens, Michael Schreyögg, Dr. Stefan Weingartner</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Sitz der Gesellschaft/Registered Office: Muenchen</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Handelsregister/Commercial Register: Muenchen HRB 157206</span><br>
<br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen.</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet.</span><br>
<br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">This e-mail and any attached documents are proprietary to MTU, confidential or protected by law.</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">If you are not the intended recipient, please advise the sender and delete this message and its attachments.</span><br>
<span style="font-size:8.0pt; font-family:"Arial"; color:silver">Any unauthorised storing, copying or distribution is prohibited.</span><br>
</body>
</html>