Display of an SLC file
Lisa Sobierajski Avila
lisa.avila at kitware.com
Wed May 10 14:20:38 EDT 2000
Hello Rik,
It sounds like you don't really have an SLC file (or not what is consider
an SLC file in VTK anyway). I was wondering where you got that type of data
- SLC is a file format from VolVis -a volume rendering application from
SUNY Stony Brook. It is not a common format, but when the main VolVis
developers (myself and Rick Avila) moved over to working on VTK, we wrote a
reader to be able to read all our legacy files.
Lisa
At 12:05 PM 5/10/00, Rik Rose wrote:
>On Wed, 10 May 2000 M.Schrijver at el.utwente.nl wrote:
> > My first suggestion is to have a look at the samples in the several
> > examplesTcl directories, especially the patented/examplesTcl. If you
> > have Tcl installed, I'd say you're best off modifying one of them for
> > your purposes. If not, it should not be too hard to convert them to C++
> > code.
>Unfortunately, the project requirements say "C++". :-(
>
> > Second, since you say you get run-time errors it appears that the
> > program compiled and linked succesfully. And thus your makefile does not
> > really matter anymore.
>The first sign of a hurriedly composed e-mail.
>
> > Third, it would be a great help of you'd mention the specific run-time
> > errors you get .....
>The second sign of a hurriedly composed e-mail. The errors are as follows:
>
>--- cut ---
>
>ERROR: In vtkSLCReader.cxx, line 152
>vtkSLCReader (0x805a208): SLC magic number is not correct
>
>ERROR: In vtkSLCReader.cxx line 225
>vtkSLCReader (0x805x208): SLC magic number is not correct
>
>ERROR: In vtkMarchingCubes.cxx, line 442
>vtkMarchingCubes (0x805af30): Scalars must be defined for contouring
>
>--- end ---
>
>This occurs with either the code I posted, or the code you supplied.
>
> > Fifth, I guess you should do something like "skinExtractor->SetValue 0
> > 128" to generate an iso-surface at level 128 (or whichever value you
> > desire).
>This generates the same errors.
>
> > Sixth, I think that vtkMarchingContourFilter is more appropriate than
> > vtkMarchingCubes; it will dispatch to the correct (read, the fastest)
> > contour algorithm available for your type of data.
>I'll switch to that once I can get something displayed. The project is a
>demonstration of contour algorithms, so I will use that, and others.
>
> > I wish you good luck with your project.
>Many thanks.
>
>rik
>
>
>--------------------------------------------------------------------
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
><majordomo at public.kitware.com>. For help, send message body containing
>"info vtkusers" to the same address.
>--------------------------------------------------------------------
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list