<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have a pipeline for displaying structured zones within a GUI.
These zone's have multiple grid refinement levels or sequences. The
beginning of the pipeline is a source which creates a
vtkStructuredGrid.<br>
<br>
When I interactively change the sequence level the source gets a
call to update the pipeline where I need to change the
vtkStructuredGrid to represent a different sequence level (so my
grid grid dimensions will double or halve, for example)<br>
<br>
This process worked (by accident perhaps) in versions of VTK prior
to 6.<br>
<br>
Thanks<br>
Bill<br>
<br>
<br>
<div class="moz-cite-prefix">On 01/04/2016 11:08 AM, Berk Geveci
wrote:<br>
</div>
<blockquote
cite="mid:CAE32kpUP45UP_6_X2W0_UDgqp8ETJYHqC1N9LK_DWRutk2KViA@mail.gmail.com"
type="cite">
<div dir="ltr">Hey Bill,
<div><br>
</div>
<div>The very short (and annoying) answer is that VTK does not
currently support varying WHOLE_EXTENT().</div>
<div><br>
</div>
<div>However, there are ways of getting around this. But before
I get into those, can you describe how/where you change the
whole extent? As part of a time update? By setting some data
member on the reader?</div>
<div><br>
</div>
<div>Best,</div>
<div>-berk</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Dec 30, 2015 at 3:24 PM, Bill
McGrory <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mcgrory@aerosoftinc.com" target="_blank">mcgrory@aerosoftinc.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"> I am
having difficulty porting some code from VTK 5 to 6.<br>
<br>
I have a custom algorithm for creating a vtkStructuredGrid
as the source for my pipeline, so my class inherits
vtkStructuredGridAlgorithm<br>
<br>
my pipeline simply connects the vtkStructuredGridAlgorithm
to a vtkGeometryFilter which is mapped with a
vtkPolyDataMapper<br>
<br>
I want my source to correctly render a structured grid which
changes dimensions dynamically within my application.<br>
<br>
My problem is that if I originally set up the grid with say
extents of 0 --99, 0-->99, 0-->99, and then change
the extents to 0--49, 0-49,0-49 through a call to Update,
then I get a VTK error message from<br>
<br>
<br>
ERROR: In
VTK-6.2.0/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx,
line 860<br>
vtkCompositeDataPipeline (0xb4561f0): The update extent
specified in the information for output port 0 on algorithm
SurfaceSNodeSource(0xb455750) is 0 80 0 32 0 0, which is
outside the whole extent 0 40 0 16 0 0.<br>
(This is in VerifyOutputInformation) called before the
RequestUpdateExtent for my algorithm.<br>
<br>
I don't quite understand the propagation of the
UPDATE_EXTENT information up the pipeline, but if I set the
UPDATE_EXTENT to WHOLE_EXTENT<br>
<br>
in vtkGeometryFilter::RequestUpdateExtent<br>
<br>
then the error goes away.<br>
Also, at the time of calling
vtkGeometryFilter::RequestUpdateExtent, the UPDATE_EXTENT is
still set at the old value, while the WHOLE_EXTENT has been
correctly updated/propagated from upstream.<br>
<br>
Is this a bug, or do I need to change something in my
vtkStructuredGridAlgorithm to cause the UPDATE_EXTENT to be
reset at the origin downstream?<br>
<br>
Thanks<br>
<br>
Bill<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" rel="noreferrer"
target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
<br>
Search the list archives at: <a moz-do-not-send="true"
href="http://markmail.org/search/?q=vtk-developers"
rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/vtk-developers"
rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dr. William D. McGrory AeroSoft, Inc.
<a class="moz-txt-link-abbreviated" href="mailto:mcgrory@aerosoftinc.com">mcgrory@aerosoftinc.com</a> Suite 1400
(540) 557-1904 2000 Kraft Drive
(540) 557-1919 (FAX) Blacksburg, VA 24060
</pre>
</body>
</html>