<div dir="ltr"><div>Dear David</div>
<div> </div>
<div>even with comment this line volumeUnstructedMapper->SetScalarModeToUseCellData(); the same error appear </div>
<div> </div>
<div>what shall I do<br><br></div>
<div class="gmail_quote">On Wed, Oct 7, 2009 at 9:22 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">You are making scalars here, and associating them with the POINTS of<br>the unstructuredgrid.<br><br>> unstructuredReader->GetOutput()<br>
->GetPointData()->AddArray(arr);<br>> unstructuredReader->GetOutput()<br>->GetPointData()->SetActiveScalars("myarray");<br><br>Later, you are telling the volume renderer to use CELL associated scalar data.<br>
> volumeUnstructedMapper->SetScalarModeToUseCellData();<br><br>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<div>
<div></div>
<div class="h5"><br><br><br>On Wed, Oct 7, 2009 at 3:15 PM, Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>> wrote:<br>> Dear All<br>><br>> I know it's for developing just , but I sent 6 times to vtk user forum<br>
> , with no reply helped me , so I am not sure is this bug or not<br>><br>> best regards<br>><br>> ---------- Forwarded message ----------<br>> From: Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>><br>
> Date: Tue, Sep 29, 2009 at 9:47 PM<br>> Subject: vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the<br>> ray cast mapper without scalars!<br>> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
><br>><br>> I wrote a code to make tetrahedral mesh on sphere , but it no give result<br>> except :<br>><br>> ERROR: In<br>> m:\dev\cur\vtkdotnet\branch\50\VolumeRendering\vtkUnstructuredGridVolumeRayCastMapper.cxx,<br>
> line 274<br>> vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the ray cast<br>> mapper without scalars!<br>><br>> every time I run the code<br>><br>> attached is the c++ code , your fast reply is highly appretiated<br>
><br>><br>> best regards<br>><br></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<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>><br>><br></blockquote></div><br></div>