<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">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:part1.08000705.01090807@ec-nantes.fr" alt=""
        height="342" width="461"><br>
      <br>
      <br>
      Le 18/11/2012 15:48, Sebastien Jourdain a écrit :<br>
    </div>
    <blockquote
cite="mid:CABObKxd=c4Z+e2MpJWjzMh+ktY0GOEkRSpoR3QCg6RnHXYc47A@mail.gmail.com"
      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">&lt;<a moz-do-not-send="true"
              href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>&gt;</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 moz-do-not-send="true"
                  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 class="im">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 class="im">On Fri, Nov 16, 2012 at 1:13
                            PM, Felipe Bordeu <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:felipebordeu@gmail.com"
                                target="_blank">felipebordeu@gmail.com</a>&gt;</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 class="im">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>&lt;bhfgfhca.png&gt;</span><br>
                                <span>&lt;ddgjfefc.png&gt;</span>
                                <div class="im"><br>
                                  <br>
                                  Felipe<br>
                                  <br>
                                  Le 16/11/2012 17:47, Sebastien
                                  Jourdain a écrit :<br>
                                </div>
                              </div>
                              <div>
                                <div>
                                  <blockquote type="cite">
                                    <div class="im">
                                      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 class="im">On Fri, Nov 16,
                                          2012 at 11:42 AM, Sebastien
                                          Jourdain <span dir="ltr">&lt;<a
                                              moz-do-not-send="true"
                                              href="mailto:sebastien.jourdain@kitware.com"
                                              target="_blank">sebastien.jourdain@kitware.com</a>&gt;</span>
                                          wrote:<br>
                                        </div>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div class="im">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 class="im">
                                                <div>
                                                  <div>On Fri, Nov 16,
                                                    2012 at 10:02 AM,
                                                    Felipe Bordeu <span
                                                      dir="ltr">&lt;<a
                                                        moz-do-not-send="true"
href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>&gt;</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 class="im">
                                                        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>&lt;mime-attachment.png&gt;</span>
                                                      <div>
                                                        <div class="h5"><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 moz-do-not-send="true" href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 class="h5">
                                                    _______________________________________________<br>
                                                    Powered by <a
                                                      moz-do-not-send="true"
href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
                                                    <br>
                                                    Please keep messages
                                                    on-topic and check
                                                    the ParaView Wiki
                                                    at: <a
                                                      moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
                                                    <br>
                                                    Follow this link to
subscribe/unsubscribe:<br>
                                                    <a
                                                      moz-do-not-send="true"
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 class="h5">
                                  <pre cols="72"><span><font color="#888888">-- 
Felipe Bordeu Weldt
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : <a moz-do-not-send="true" href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57
Fax. : <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true"
              href="http://www.kitware.com" 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"
              target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
            <br>
            Please keep messages on-topic and check the ParaView Wiki
            at: <a moz-do-not-send="true"
              href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              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 class="moz-signature" cols="72">-- 

Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
  </body>
</html>