<div dir="ltr"><div class="gmail_quote"><br><br><br>
<div dir="ltr">
<div>Am sorry but the erro still appear .</div>
<div> </div>
<div>I just need to create a tetrahedral mesh on 3D volume </div>
<div> </div>
<div>best regards <br><br></div>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Wed, Oct 7, 2009 at 9:29 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">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">Try changing it to SetScalarModeToUsePointData()<br>
<div><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><br><br><br></div>
<div>
<div></div>
<div>On Wed, Oct 7, 2009 at 3:28 PM, Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com" target="_blank">ali.mahmoud.habib@gmail.com</a>> wrote:<br>> Dear David<br>><br>> even with comment this line<br>
> volumeUnstructedMapper->SetScalarModeToUseCellData();  the same error appear<br>><br>> what shall I do<br>><br>> On Wed, Oct 7, 2009 at 9:22 PM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
> wrote:<br>>><br>>> 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<br>
>> 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>>><br>>><br>>><br>>> On Wed, Oct 7, 2009 at 3:15 PM, Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com" target="_blank">ali.mahmoud.habib@gmail.com</a>><br>
>> 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" target="_blank">ali.mahmoud.habib@gmail.com</a>><br>
>> > Date: Tue, Sep 29, 2009 at 9:47 PM<br>>> > Subject: vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use<br>>> > the<br>>> > ray cast mapper without scalars!<br>>> > To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
>> ><br>>> ><br>>> > I wrote a code to make tetrahedral mesh on sphere , but it no give<br>>> > result<br>>> > except :<br>>> ><br>>> > ERROR: In<br>>> ><br>
>> > m:\dev\cur\vtkdotnet\branch\50\VolumeRendering\vtkUnstructuredGridVolumeRayCastMapper.cxx,<br>>> > line 274<br>>> > vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the ray<br>
>> > 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>>> > _______________________________________________<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>><br>><br></div></div></blockquote></div><br></div></div></div></div><br></div>