[vtk-developers] Fwd: Fwd: vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the ray cast mapper without scalars!

Ali Habib ali.mahmoud.habib at gmail.com
Wed Oct 7 15:39:49 EDT 2009


 Am sorry but the erro still appear .

I just need to create a tetrahedral mesh on 3D volume

best regards

  On Wed, Oct 7, 2009 at 9:29 PM, David E DeMarle
<dave.demarle at kitware.com>wrote:

> Try changing it to SetScalarModeToUsePointData()
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
>
>  On Wed, Oct 7, 2009 at 3:28 PM, Ali Habib <ali.mahmoud.habib at gmail.com>
> wrote:
> > Dear David
> >
> > even with comment this line
> > volumeUnstructedMapper->SetScalarModeToUseCellData();  the same error
> appear
> >
> > what shall I do
> >
> > On Wed, Oct 7, 2009 at 9:22 PM, David E DeMarle <
> dave.demarle at kitware.com>
> > wrote:
> >>
> >> You are making scalars here, and associating them with the POINTS of
> >> the unstructuredgrid.
> >>
> >> > unstructuredReader->GetOutput()
> >> ->GetPointData()->AddArray(arr);
> >> > unstructuredReader->GetOutput()
> >> ->GetPointData()->SetActiveScalars("myarray");
> >>
> >> Later, you are telling the volume renderer to use CELL associated scalar
> >> data.
> >> > volumeUnstructedMapper->SetScalarModeToUseCellData();
> >>
> >> David E DeMarle
> >> Kitware, Inc.
> >> R&D Engineer
> >> 28 Corporate Drive
> >> Clifton Park, NY 12065-8662
> >> Phone: 518-371-3971 x109
> >>
> >>
> >>
> >> On Wed, Oct 7, 2009 at 3:15 PM, Ali Habib <ali.mahmoud.habib at gmail.com>
> >> wrote:
> >> > Dear All
> >> >
> >> > I know it's for developing just , but I sent 6 times to vtk user forum
> >> > , with no reply helped me , so I am not sure is this bug or not
> >> >
> >> > best regards
> >> >
> >> > ---------- Forwarded message ----------
> >> > From: Ali Habib <ali.mahmoud.habib at gmail.com>
> >> > Date: Tue, Sep 29, 2009 at 9:47 PM
> >> > Subject: vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use
> >> > the
> >> > ray cast mapper without scalars!
> >> > To: vtkusers at vtk.org
> >> >
> >> >
> >> > I wrote a code to make tetrahedral mesh on sphere , but it no give
> >> > result
> >> > except :
> >> >
> >> > ERROR: In
> >> >
> >> >
> m:\dev\cur\vtkdotnet\branch\50\VolumeRendering\vtkUnstructuredGridVolumeRayCastMapper.cxx,
> >> > line 274
> >> > vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the ray
> >> > cast
> >> > mapper without scalars!
> >> >
> >> > every time I  run the code
> >> >
> >> > attached is the c++ code , your fast reply is highly appretiated
> >> >
> >> >
> >> > best regards
> >> >
> >> > _______________________________________________
> >> > Powered by www.kitware.com
> >> >
> >> > Visit other Kitware open-source projects at
> >> > http://www.kitware.com/opensource/opensource.html
> >> >
> >> > Follow this link to subscribe/unsubscribe:
> >> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >> >
> >> >
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091007/27532b6c/attachment.html>


More information about the vtk-developers mailing list