<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Aashish,<br>
    <br>
    I do see errors in the wavelet example, but not in the other cases.
    If ok with you , I'll send the full code (it is not much, ~100K) as
    a zipped tar file by email. There is no other data. <br>
    <br>
    Regards,<br>
    Bertwim<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/13/2014 07:43 PM, Aashish
      Chaudhary wrote:<br>
    </div>
    <blockquote
cite="mid:CAEw35Z_Lt0xJ_bxDfSEonbOC8fXn3Ahda8NAJ+r+D7GM_9hXxA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:16.3636360168457px">Bertwim, </span><br>
        <div><span
            style="font-family:arial,sans-serif;font-size:16.3636360168457px"><br>
          </span></div>
        <div><span
            style="font-family:arial,sans-serif;font-size:16.3636360168457px">If
            you are seeing errors (like you mentioned in other email), I
            am afraid that you won't see any volume. Would it be
            possible for you to upload your data somewhere? </span></div>
        <div><span
            style="font-family:arial,sans-serif;font-size:16.3636360168457px"><br>
          </span></div>
        <div><span
            style="font-family:arial,sans-serif;font-size:16.3636360168457px">-
            Aashish</span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Oct 13, 2014 at 1:35 PM, B.W.H.
          van Beest <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:bwvb@xs4all.nl" target="_blank">bwvb@xs4all.nl</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I do
            set a scalar for each cell. I left them out in the example,
            as<br>
            also with a scalar I couldn't get a volume display.<br>
            <br>
            I'm not sure what you mean by "adjusting the transfer
            function".<br>
            <br>
            Regards,<br>
            Bertwim<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                <br>
                On 10/13/2014 07:28 PM, Burlen Loring wrote:<br>
                > do you have any scalars? those are not optional for
                volume rendering.<br>
                > Additionally you may need to adjust the transfer
                function,<br>
                ><br>
                > On 10/13/2014 10:22 AM, B.W.H. van Beest wrote:<br>
                >> No, it doesn't work. The filter creates tets,
                which are visible in the<br>
                >> wireframe representation,<br>
                >> but when I select "Volume"  representation the
                image disappears.<br>
                >><br>
                >> I can't imagine it is so difficult to render a
                volume in Paraview. I<br>
                >> must be doing something wrong....<br>
                >><br>
                >> Regards,<br>
                >> Bertwim<br>
                >><br>
                >> On 10/13/2014 05:36 PM, Cory Quammen wrote:<br>
                >>> Bertwim,<br>
                >>><br>
                >>> I'm not sure that the volume renderer can
                handle VTK_HEXAHEDRON<br>
                >>> elements. Try the "Tetrahedralize" filter
                on your source and see if<br>
                >>> the Volume representation works.<br>
                >>><br>
                >>> Thanks,<br>
                >>> Cory<br>
                >>><br>
                >>> On Mon, Oct 13, 2014 at 10:19 AM, B.W.H.
                van Beest <<a moz-do-not-send="true"
                  href="mailto:bwvb@xs4all.nl">bwvb@xs4all.nl</a>><br>
                >>> wrote:<br>
                >>>> Hi,<br>
                >>>><br>
                >>>> I'm struggling to get a proper 3D view
                of my model system (yes,<br>
                >>>> embarrassing!)<br>
                >>>> but must admit my defeat.<br>
                >>>> After stripping almost everything,
                keeping the minimum to exhibit the<br>
                >>>> issue,<br>
                >>>> I'm left with the following:<br>
                >>>><br>
                >>>> I have created a simple box source. To
                get a 3D representation, I<br>
                >>>> sub-classed<br>
                >>>> the code for this Source from
                vtkUnstructuredGridAlgorithm.<br>
                >>>><br>
                >>>> In the RequestData method, I define the
                8 point of the unit cube. I<br>
                >>>> added the points to the<br>
                >>>> underlying unstructed grid, and I
                specified the cell topology.<br>
                >>>><br>
                >>>> This all seems to work: when
                instantiating this box Source, I *do*<br>
                >>>> get the<br>
                >>>> expected cube in the representations
                (Surface, wireframe, Points).<br>
                >>>><br>
                >>>> However, when I select the "Volume"
                representation, *the image<br>
                >>>> disappears*<br>
                >>>> What am I doing wrong?<br>
                >>>><br>
                >>>> As the code is not too long and very
                simple, I take the freedom to<br>
                >>>> paste<br>
                >>>> it below.<br>
                >>>><br>
                >>>> Kind regards.<br>
                >>>> Bertwim<br>
                >>>><br>
                >>>>
                =========================================<br>
                >>>><br>
                >>>>   int sphBoxSourceC::RequestData(
                vtkInformation *vtkNotUsed(request),<br>
                >>>>                                 
                vtkInformationVector<br>
                >>>> **vtkNotUsed(inputVector),<br>
                >>>>                                 
                vtkInformationVector *outputVector)<br>
                >>>> {<br>
                >>>>     // Get the info object<br>
                >>>>     vtkInformation *outInfo =
                outputVector->GetInformationObject(0);<br>
                >>>>     vtkUnstructuredGrid *umesh =
                vtkUnstructuredGrid::SafeDownCast(<br>
                >>>> outInfo->Get(
                vtkDataObject::DATA_OBJECT() ) );<br>
                >>>><br>
                >>>>     // Pre-allocate some memory<br>
                >>>>     umesh->Allocate( 1024 );<br>
                >>>><br>
                >>>>     // Specify points.<br>
                >>>>     double r0[] = { 0.0, 0.0, 0.0 };<br>
                >>>>     double r1[] = { 1.0, 0.0, 0.0 };<br>
                >>>>     double r2[] = { 0.0, 1.0, 0.0 };<br>
                >>>>     double r3[] = { 1.0, 1.0, 0.0 };<br>
                >>>>     double r4[] = { 0.0, 0.0, 1.0 };<br>
                >>>>     double r5[] = { 1.0, 0.0, 1.0 };<br>
                >>>>     double r6[] = { 0.0, 1.0, 1.0 };<br>
                >>>>     double r7[] = { 1.0, 1.0, 1.0 };<br>
                >>>><br>
                >>>>     // Collect the points in a vtk data
                structures.<br>
                >>>>     {<br>
                >>>>        vtkSmartPointer<vtkPoints>
                points =<br>
                >>>>
                vtkSmartPointer<vtkPoints>::New();<br>
                >>>>        points->SetDataType(
                VTK_DOUBLE );<br>
                >>>><br>
                >>>>        points->InsertNextPoint( r0
                );<br>
                >>>>        points->InsertNextPoint( r1
                );<br>
                >>>>        points->InsertNextPoint( r2
                );<br>
                >>>>        points->InsertNextPoint( r3
                );<br>
                >>>>        points->InsertNextPoint( r4
                );<br>
                >>>>        points->InsertNextPoint( r5
                );<br>
                >>>>        points->InsertNextPoint( r6
                );<br>
                >>>>        points->InsertNextPoint( r7
                );<br>
                >>>><br>
                >>>>        // Transfer points to umesh.<br>
                >>>>        umesh->SetPoints( points );<br>
                >>>>     }<br>
                >>>><br>
                >>>>     // Cell Topology<br>
                >>>>     vtkIdType vtx[8] = { 0, 1, 3, 2, 4,
                5, 7, 6 };<br>
                >>>>     umesh->InsertNextCell(
                VTK_HEXAHEDRON, 8, vtx );<br>
                >>>><br>
                >>>>     return 1;<br>
                >>>> }<br>
                >>>><br>
                >>>><br>
                >>>><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<br>
                >>>> <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:<br>
                >>>> <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://public.kitware.com/mailman/listinfo/paraview"
                  target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><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<br>
                >> <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:<br>
                >> <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://public.kitware.com/mailman/listinfo/paraview"
                  target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
                ><br>
                ><br>
                ><br>
                <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://public.kitware.com/mailman/listinfo/paraview"
                  target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr"><font face="trebuchet ms, sans-serif"><i>|
              Aashish Chaudhary <br>
              | Technical Leader         <br>
              | Kitware Inc.            <br>
            </i></font>
          <div><i><font face="trebuchet ms, sans-serif">| </font><a
                moz-do-not-send="true"
                href="http://www.kitware.com/company/team/chaudhary.html"
                target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>