<div dir="ltr">Thanks Felipe,<div><br></div><div style>I'm not sure I'll be able to try it for a while.</div><div style>On the other hand if at some point you wish to distribute your plugin with the official ParaView release then that will mean providing your code publicly and update ParaView superbuild so when it run on our dashboard, it get build, (eventually test it) and generate the binaries everyday.</div>
<div style><br></div><div style>Thanks,</div><div style><br></div><div style>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 1:10 PM, Felipe Bordeu <span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
A binary version of the "TransformWithAxis" filter is available in
my web page.<br>
<br>
<a href="http://rom.research-centrale-nantes.com/resources/separated-variables-representation-visualisation/" target="_blank">http://rom.research-centrale-nantes.com/resources/separated-variables-representation-visualisation/</a><br>
<br>
The filter is inside a plugin called PXDMFReader. (version 1.5.1)<br>
<br>
To test this filter you can create a Wavelet source and apply the
filter with an arbitrary translation/rotation/scale and then
activate "Show cube axes".<br>
<br>
If you think this is a good improvement, I can send the sources.<br>
<br>
Also 3 filters and a reader are available in the plugin but are
more related to our research.<br>
<br>
Felipe<br>
<br>
<br>
Le 19/11/2012 18:48, Sebastien Jourdain a écrit :<br>
</div><div><div class="h5">
<blockquote type="cite">Hi Felipe,
<div><br>
</div>
<div>if you are willing to contribute your changes to VTK and the
transform filter, I'd be pleased to integrate them.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Seb</div>
<div><br>
</div>
<div>PS: You can send me a formatted patch if you want.</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Nov 19, 2012 at 11:33 AM,
Felipe Bordeu <span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Perfect,<br>
<br>
Thanks very much for all the help, I finally succeeded
to create the filter. I can transform my data (for
example, expand one dimension ) and keep the originals
labels.<br>
<br>
Thanks again,<br>
Felipe<br>
<br>
Here is a screen-shot: <br>
<br>
<img src="cid:part2.04040606.02000305@ec-nantes.fr" alt="" height="342" width="461"><br>
<br>
<br>
Le 18/11/2012 15:48, Sebastien Jourdain a écrit :<br>
</div>
<div>
<div>
<blockquote type="cite">Hi Felipe,
<div><br>
</div>
<div>Lets state what we know.</div>
<div>U,V and W are 3 unit vectors that describe
which axis should be used by the cube axis.</div>
<div>OrientedBounds are 6 values describing the
bounds of the data using the U,V and W vectors.
[minU, maxU, minV, maxV, minW, maxW]<br>
<div><br>
</div>
<div>Then to solve your problem you will have to
do the following: </div>
</div>
<div><br>
</div>
<div>1) Compute Pmin and Pmax as follow</div>
<div><br>
</div>
<div>
<div style="font-family:arial,sans-serif;font-size:13px">
Pmin = U.OrientedBounds[0] + V.OrientedBouds[2]
+ W.OrientedBouds[4]</div>
<div style="font-family:arial,sans-serif;font-size:13px">Pmax
= U.OrientedBounds[1] + V.OrientedBouds[3] +
W.OrientedBouds[5]</div>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">2)
Apply your transform (Rotation, Scale,
Translation) to those 2 points</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
You get P'min and P'max</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">3)
Apply the rotation ONLY to U,V and W (as
translation/scale have no effect on a unit vector)</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">You
get U', V' and W'</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">4)
You resolve the equations</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
P'min = U'.a + V'.b + W'.c</div>
<span style="font-family:arial,sans-serif;font-size:13px">P'max
= U'.d + V'.e + W'.f</span>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">And
then you get OrientedBounds' = [a,d,b,e,c,f]</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">And
you're done... Do you need anything more ?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Seb</span></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 16, 2012 at
6:27 PM, Felipe Bordeu Weldt <span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Ok,
<div><br>
</div>
<div>My idea is simple (<a href="http://www.paraview.org/Bug/view.php?id=13583" target="_blank">http://www.paraview.org/Bug/view.php?id=13583</a>). </div>
<div>We visualizes data with non
convectional axes, so we put that
information (name and units) in the
labels. Also we want to be able to use the
transformation filter to modified the
meshes, and we want the axis and labels to
follow the transformation. So I'm writing
a filter (vtkTransformWithAxis) that apply
the transform to the mesh and to all the
data that is used for the cube axis.</div>
<div><br>
</div>
<div>But I'm not able create correctly
the OrientedBoundingBox and the three
vectors to generate the Non Orthogonal
Bounding Box.</div>
<div><br>
</div>
<div>So if the input does not have all the
data for the axis, it will generate the
data (vector, OriendedBoundigBox... and so
on ) , and then apply the transformation
filter.</div>
<div><br>
</div>
<div>Is that clearer? </div>
<div><br>
</div>
<div>Thanks for you time so far.</div>
<div>Felipe </div>
<div><br>
<div>
<div>
<div>Le 16 nov. 12 à 19:33, Sebastien
Jourdain a écrit :</div>
<br>
<blockquote type="cite">
<div>Hi Felipe,
<div><br>
</div>
<div>could you rephrase your
question, as I'm not sure to
follow you anymore. Specially
what are the piece of
informations that are still
missing to you.</div>
<div><br>
</div>
<div> Thanks,</div>
<div> <br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>On Fri, Nov 16, 2012 at
1:13 PM, Felipe Bordeu <span dir="ltr"><<a href="mailto:felipebordeu@gmail.com" target="_blank">felipebordeu@gmail.com</a>></span>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>
<div>I have no problem
with the use custom
range. <br>
<br>
My problem is than I use
a home made transform
filter to transform my
data, our data is
sometimes degenerated
(one axis is very very
small), so we use the
transform filter to
increase the size of
that dimensions. But the
problems is that the
cube axes does not have
the good units any more
( so we want to keep the
labels of the input by
applying the same
transform) <br>
<br>
Until now I can apply
only translation and
scale, not rotation. <br>
<br>
note: in the images the
little arrow is the
original one. <br>
<br>
</div>
<span><bhfgfhca.png></span><br>
<span><ddgjfefc.png></span>
<div><br>
<br>
Felipe<br>
<br>
Le 16/11/2012 17:47,
Sebastien Jourdain a
écrit :<br>
</div>
</div>
<div>
<div>
<blockquote type="cite">
<div> Oops,
<div><br>
</div>
<div>the "<span style="font-family:arial,sans-serif;font-size:13px">Use
Custom Range"
will use the
text field
property but
this will add
extra
information so
when you use the
QuadView, the
QuadView will be
able to know
what the slices
origin is
regarding those
arbitrary
bounds.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Hope
that makes a
little bit more
sense,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Seb</span></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>On Fri, Nov
16, 2012 at
11:42 AM,
Sebastien
Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi Felipe,
<div><br>
</div>
<div>if you
check "Use
Custom Range"
the cube axis
will use the
oriented
bounds
correctly for
the labels
instead of
using the
world space
coordinate
bounds.</div>
<div>This
happen by
adding new
field data
providing the
min/max for
each axis that
should be used
for the
labels.</div>
<div><br>
</div>
<div>Regarding
you question
the end points
of the cube
axes will be</div>
<div><br>
</div>
<div>
<div>Pmin =
U*OrientedBounds[0]
+
V*OrientedBouds[2]
+
W*OrientedBouds[4]</div>
</div>
<div>...</div>
<div>
<div>Pmax =
U*OrientedBounds[1]
+
V*OrientedBouds[3]
+
W*OrientedBouds[5]</div>
</div>
<div><br>
</div>
<div>Hope that
help,</div>
<div><br>
</div>
<div>Seb</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>
<div>On Fri,
Nov 16, 2012
at 10:02 AM,
Felipe Bordeu
<span dir="ltr"><<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span>
wrote:<br>
</div>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div bgcolor="#FFFFFF" text="#000000">
<div> Hi,<br>
<br>
I am trying
to understand
how the new
annotation for
the cube axis
works.<br>
<br>
I don't
understand how
to define the
OrientedBoundingBox
FieldData
variable. (I
understand the
c++ part,
that’s easy ;)
)<br>
(I'm working
with a c++
reader
plugin).<br>
<br>
What is the
relation
between the
Oriented Bound
and the scale
and the
position of
the axis.<br>
</div>
<span><mime-attachment.png></span>
<div>
<div><br>
<pre cols="72"> Thanks
Felipe
ps: Paraview 3.98.0-RC2 git version, kubuntu 12.04 64.
--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
<span><font color="#888888"><a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</font></span></pre>
</div>
</div>
</div>
<br>
</div>
</div>
<div>
<div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other
Kitware
open-source
projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep
messages
on-topic and
check the
ParaView Wiki
at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this
link to
subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
</div>
</div>
<div>
<div>
<pre cols="72"><span><font color="#888888">--
Felipe Bordeu Weldt
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
</font></span><div><a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------
</div></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the
ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki
at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06
<a href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>