[vtkusers] RE: Occupy how much ram size?
Andrew J. P. Maclean
a.maclean at cas.edu.au
Tue Mar 11 17:21:54 EST 2003
Check out the function: GetActualMemorySize()
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.cas.edu.au/
___________________________________________
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com] On Behalf Of
vtkusers-request at public.kitware.com
Sent: Tuesday, 11 March 2003 19:18
To: vtkusers at public.kitware.com
Subject: vtkusers digest, Vol 1 #1645 - 13 msgs
Send vtkusers mailing list submissions to
vtkusers at public.kitware.com
To subscribe or unsubscribe via the World Wide Web, visit
http://public.kitware.com/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
vtkusers-request at public.kitware.com
You can reach the person managing the list at
vtkusers-admin at public.kitware.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."
Today's Topics:
1. Occupy how much ram size? (Wong WJ)
2. Re: vtkusers digest, Vol 1 #1644 - 11 msgs (Phil Cook)
3. Land Topography (mcsalas at chilesat.net)
4. Re: Land Topography (Sebastien MARAUX)
5. Re: vtkScalarBarActor & Disappearing actors. (Charl P. Botha)
6. from 4.0 version to CVS version (=?iso-8859-1?Q?Gwena=EBl?=
Guillard)
7. Re: from 4.0 version to CVS version (Berk Geveci)
8. Re: from 4.0 version to CVS version
(=?ISO-8859-1?Q?Bruno_Traven=E7olo?=)
9. about vtkPointLocator::SetDivisions(int,int,int)
(=?gb2312?q?zhuo=20Chen?=)
10. OS X Python Carbon Valid Pixel Format?? (garsha)
11. about SetNumberOfPointsPerBucket(int) (=?gb2312?q?zhuo=20Chen?=)
12. about SetNumberOfPointsPerBucket(int) (=?gb2312?q?zhuo=20Chen?=)
13. rendering a sphere problem (=?windows-1250?B?UmFkaW0gS29s4fg=?=)
--__--__--
Message: 1
From: "Wong WJ" <wong_wj at hotmail.com>
To: vtkusers at public.kitware.com
Date: Tue, 11 Mar 2003 01:52:26 +0800
Subject: [vtkusers] Occupy how much ram size?
Hi
How much ram space will it occupy to render a simple sphere?
How do we find out how much space the rendered object occupy?
I am trying to render lots of sphere object so I need to know the limit
I
can go.
Tks
WJWong
_________________________________________________________________
Send a fun phone greeting to your friend!
http://www.msn.com.sg/mobile/fungreetings/
--__--__--
Message: 2
Date: Mon, 10 Mar 2003 17:54:01 +0000
From: Phil Cook <p.cook at cs.ucl.ac.uk>
To: vtkusers at public.kitware.com
Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1644 - 11 msgs
On Monday, Mar 10, 2003, at 17:41 Europe/London,
vtkusers-request at public.kitware.com wrote:
> Message: 9
> Subject: Re: [vtkusers] It's impossible to build VTK+Java in MacOS X
> From: Andy Cedilnik <andy.cedilnik at kitware.com>
> To: Carlos =?ISO-8859-1?Q?Mart=EDnez?= Burgos <cmarbur at iti.upv.es>
> Cc: VTK User Mailing List <vtkusers at public.kitware.com>
> Organization: Kitware Inc.
> Date: 10 Mar 2003 12:13:44 -0500
>
> Hi Carlos,
>
> We build VTK/Java on Carbon and Cocoa every night without problems.
The
> X11 will not work because your Java is not build with X11. If you
build
> Java yourself, then it will work.
>
> What VTK are you trying?
> Also, what cache variables do you set?
Would it be possible to post an example CMakeCache for Java / OSX
builds? I've not managed to get it working yet.
Thanks,
Phil
--__--__--
Message: 3
Date: Mon, 10 Mar 2003 14:23:56 -0400
From: mcsalas at chilesat.net
To: vtkusers at public.kitware.com
Subject: [vtkusers] Land Topography
Hi, I new in VTK. My problem is:
I have a txt file with three columns, (x,y,z), this file describe a
topography
land. I try to generate a render model with VTK, but i can't. i reading
the
file, triangulate with vtkDelaunay3D, but only can view the points, i
don't
view a surface. When try to view this topography with a
vtkreconstructionSurface
the view is not representative, is to hard.
Please helpme...
any example code, or suggestions??
Best Regards,
Max from Chile.
56-72-295871
mcsalas at chilesat.net
--__--__--
Message: 4
From: "Sebastien MARAUX" <maraux at ondim.fr>
To: <mcsalas at chilesat.net>, <vtkusers at public.kitware.com>
Subject: Re: [vtkusers] Land Topography
Date: Mon, 10 Mar 2003 19:32:55 +0100
you only need vtkDelaunay2D to construct a triangulated surface.
vtkDelaunay3D output tetrahedrons.
1. Set your points in a vtkPolyData (with a moderated
number, because it takes a while to compute delaunay)
set this vtkPolyData as input of vtkDelaunay2D
Update() it
GetOutput of delaunay and display or export it.
That's it, you won't lose your heights because it is 2D. 2D
is the dimension of output primary elements (triangles =
2D)
(I do it quite often, this works).
Sebastien MARAUX
----- Original Message -----
From: <mcsalas at chilesat.net>
To: <vtkusers at public.kitware.com>
Sent: Monday, March 10, 2003 7:23 PM
Subject: [vtkusers] Land Topography
> Hi, I new in VTK. My problem is:
>
> I have a txt file with three columns, (x,y,z), this file describe a
topography
> land. I try to generate a render model with VTK, but i can't. i
reading
the
> file, triangulate with vtkDelaunay3D, but only can view the points, i
don't
> view a surface. When try to view this topography with a
vtkreconstructionSurface
> the view is not representative, is to hard.
>
> Please helpme...
>
> any example code, or suggestions??
>
> Best Regards,
>
> Max from Chile.
> 56-72-295871
> mcsalas at chilesat.net
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--__--__--
Message: 5
Date: Mon, 10 Mar 2003 20:44:42 +0100
From: "Charl P. Botha" <c.p.botha at its.tudelft.nl>
To: Ron Inbar <ron at mediguide.co.il>
Cc: vtkusers at public.kitware.com
Subject: Re: [vtkusers] vtkScalarBarActor & Disappearing actors.
On Mon, Mar 10, 2003 at 07:42:58PM +0200, Ron Inbar wrote:
> different vtkRenderWindows, you will end up with two display lists,
which,
> most probably, will not have the same identifier. But
> vtkOpenGLPolyDataMapper assumes (incorrectly) that the same identifier
will
> work every time, so sometimes it attempts to render a display list
using an
> identifier from the wrong context. This usually leads to the wrong
object
if ( this->GetMTime() > this->BuildTime ||
input->GetMTime() > this->BuildTime ||
act->GetProperty()->GetMTime() > this->BuildTime ||
ren->GetRenderWindow() != this->LastWindow)
{
The above code is an extract from vtkOpenGLPolyDataMapper.cxx and shows
that
this class DOES check for a changed RenderWindow. In this case, it
re-generates display lists.
If you can point out more specifically where you believe this doesn't
happen, I would be most grateful. Let's try and fix these problems (if
they
exist) first.
> popping up in the window, and in other cases to objects disappearing.
> OpenGL has a ready-made solution to this problem: there is a mechanism
that
> enables all contexts (i.e., windows) to share the same display lists
and to
> identify them using the same numbers. The only trouble is that VTK,
for
> reasons unknown to me, doesn't use this list-sharing mechanism.
>
> I successfully patched VTK 3.1 to fix this bug. As soon as I find
some free
> time I will do the same for VTK 4.x, and then I'll send you the
patched
> sources. I hope they will make it into the next release.
I would be more careful with that word. NOT making use of shared
contexts
is NOT a bug, although I do agree that utilising shared contexts is a
very
useful feature. The problem is that shared contexts is not available on
all
GL implementations, so one would have to do careful checking in the
code.
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
--__--__--
Message: 6
Date: Mon, 10 Mar 2003 22:17:51 +0100
From: =?iso-8859-1?Q?Gwena=EBl?= Guillard
<gwenael.guillard at enst-bretagne.fr>
To: "vtkusers at public.kitware.com" <vtkusers at public.kitware.com>
Subject: [vtkusers] from 4.0 version to CVS version
Hi,
I've used vtk40 till now and I want to use the cvs version but now I've
got two problems. The first one, when I want to get the property of an
actor, I have to do the include of vtkProperty.h. The second one is more
difficult :
error C2664: 'SetInput' : cannot convert parameter 1 from 'class
vtkImageData *' to 'class vtkDataSet *' .
But vtkImageData inherits from vtkDataSet. How can it be possible?
May someone help me?
Gwenael
--__--__--
Message: 7
Subject: Re: [vtkusers] from 4.0 version to CVS version
From: Berk Geveci <berklist at nycap.rr.com>
To: =?ISO-8859-1?Q?Gwena=EBl?= Guillard
<gwenael.guillard at enst-bretagne.fr>
Cc: vtkusers <vtkusers at public.kitware.com>
Date: 10 Mar 2003 16:43:26 -0500
try including vtkImageData.h in that file.
On Mon, 2003-03-10 at 16:17, Gwena=EBl Guillard wrote:
> Hi,
>=20
> I've used vtk40 till now and I want to use the cvs version but now
I've
> got two problems. The first one, when I want to get the property of an
> actor, I have to do the include of vtkProperty.h. The second one is
more
> difficult :
> error C2664: 'SetInput' : cannot convert parameter 1 from 'class
> vtkImageData *' to 'class vtkDataSet *' .
> But vtkImageData inherits from vtkDataSet. How can it be possible?
>=20
> May someone help me?
>=20
> Gwenael
>=20
>=20
> _______________________________________________
> This is the private VTK discussion list.=20
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.c=
om/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--__--__--
Message: 8
Date: Mon, 10 Mar 2003 21:31:07 -0300
From: =?ISO-8859-1?Q?Bruno_Traven=E7olo?= <bant at grad.icmc.usp.br>
To: =?ISO-8859-1?Q?Gwena=EBl_Guillard?=
<gwenael.guillard at enst-bretagne.fr>
Cc: "vtkusers at public.kitware.com" <vtkusers at public.kitware.com>
Subject: Re: [vtkusers] from 4.0 version to CVS version
Hello all!
> error C2664: 'SetInput' : cannot convert parameter 1 from 'class
>vtkImageData *' to 'class vtkDataSet *' .
>But vtkImageData inherits from vtkDataSet. How can it be possible?
>
>
You have to do a type cast to corret this. Ex:.
iso->SetInput((vtkDataSet *) vol);
where vol is an object from StructuredPoint class.
I also would like to know why we have to do that , like you said,
vtkImageData inherits from vtkDataSet
>May someone help me?
>
>Gwenael
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>
--__--__--
Message: 9
Date: Tue, 11 Mar 2003 10:36:21 +0800 (CST)
From: =?gb2312?q?zhuo=20Chen?= <cz_lj at yahoo.com.cn>
To: vtkusers at public.kitware.com
Subject: [vtkusers] about vtkPointLocator::SetDivisions(int,int,int)
I don't know what are the three parameters mean.I got
to know the three parameters are the number of
divisions in x-y-z directions from help document,but I
don't know how to get correlative information from
JPEG images.
_________________________________________________________
Do You Yahoo!?
ÃÀÅ®ÃǵÄÃØÃÜÎäÆ÷£¡
http://yahoo.eachnet.com/fu/co/rd.php?http://pages.eachnet.com/st/page/w
omen/women.htm
--__--__--
Message: 10
Date: Mon, 10 Mar 2003 22:23:37 -0600
From: garsha <garsha at itg.uiuc.edu>
To: vtkusers at public.kitware.com
Subject: [vtkusers] OS X Python Carbon Valid Pixel Format??
Greetings,
I'm still hanging on to the hope that I can get VTK (4.2.1) w/ Python
(2.2.2) to work on OS X 10.2.4 with CMake 1.6. Everything builds fine
and installs smoothly--much easier than it was several months ago. I
can import vtk in the python interpreter, and I can go through a simple
cone example up until the moment of truth when I attempt to initialize
the RenderWindowInteractor: I get an error stating that the
CarbonRenderWindow couldn't find a valid pixel format. When I Google
this predicament, I can see that others have experienced this problem,
but I haven't been able to find the solution.
From what I can tell this may be something related to the OS X
implementation of OpenGL--has anyone else seen this? Is there perhaps
an environment variable I need to set? I'm running an older powerbook
without hardware acceleration for OpenGL but I've seen the cone.py run
on it (long ago when I could run the early OS X binaries posted at
http://www.atamai.com/vtkOnOSX.html). So it seems to be a software
hangup.
It is my aspiration to run VTK and MayaVi on OS X...has anyone out
there had success building and running VTK with Python wrappers on an
updated version of OS X? Carbon or X11?
Any leads on a way to stomp this valid pixel format issue would be
much appreciated-thanks in advance.
Regards,
Karl G.
--__--__--
Message: 11
Date: Tue, 11 Mar 2003 14:17:33 +0800 (CST)
From: =?gb2312?q?zhuo=20Chen?= <cz_lj at yahoo.com.cn>
To: vtkusers at public.kitware.com
Subject: [vtkusers] about SetNumberOfPointsPerBucket(int)
What is means of bucket and
SetNumberOfPointsPerBucket?If I change the value of
parameter,what difference is shown?
_________________________________________________________
Do You Yahoo!?
ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
http://cn.ent.yahoo.com/newsletter/index.html
--__--__--
Message: 12
Date: Tue, 11 Mar 2003 14:17:41 +0800 (CST)
From: =?gb2312?q?zhuo=20Chen?= <cz_lj at yahoo.com.cn>
To: vtkusers at public.kitware.com
Subject: [vtkusers] about SetNumberOfPointsPerBucket(int)
What is means of bucket and
SetNumberOfPointsPerBucket?If I change the value of
parameter,what difference is shown?
_________________________________________________________
Do You Yahoo!?
ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
http://cn.ent.yahoo.com/newsletter/index.html
--__--__--
Message: 13
From: "=?windows-1250?B?UmFkaW0gS29s4fg=?=" <kolarr at feec.vutbr.cz>
To: "VTK" <vtkusers at public.kitware.com>
Date: Tue, 11 Mar 2003 09:16:53 +0100
Subject: [vtkusers] rendering a sphere problem
This is a multi-part message in MIME format.
------=_NextPart_000_001C_01C2E7AE.F46CEC20
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
Hi all,
please could you help me with this simple problem?
I want to render the sphere with the vtkVolumeRayCastMapper. So I create
=
sphere, mapper, volume properties and finally vtkVolume and I render it
=
with vtkRenderWindowInteractor. But the program crash when I call =
iren->Render(). Bellow is the short C++ code. Are there some mistakes?
I'm using VTK 4.0 and Borland C++ 6
Thanks a lot.
Radim
//----------------------------------------------------------------------
-=
----
#include "vtkSphereSource.h"
#include "vtkVolumeRayCastMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderWindow.h"
#include "vtkVolumeRayCastMIPFunction.h"
#include "vtkImageData.h"
#include "vtkVolumeProperty.h"
#include "vtkPiecewiseFunction.h"
#include <vcl.h>
#pragma hdrstop
//----------------------------------------------------------------------
-=
----
#pragma argsused
int main(int argc, char* argv[])
{
vtkSphereSource *sphere; sphere =3D =
vtkSphereSource::New();
vtkVolumeRayCastMIPFunction *RayCastMethod =3D =
vtkVolumeRayCastMIPFunction::New();
vtkVolumeRayCastMapper *mapper =3D =
vtkVolumeRayCastMapper::New();
mapper->SetVolumeRayCastFunction( RayCastMethod );
vtkImageData *vol; vol =3D vtkImageData::New();
vol->SetSource( sphere );
mapper->SetInput( vol );
vtkColorTransferFunction *colorF =3D vtkColorTransferFunction::New();
colorF->AddRGBSegment( 0, 0.0, 0.0, 0.0, 255, 0.5, 0.1, 1.0 );
//-------- Mapping from scalar -> opacity ------------
vtkPiecewiseFunction *opacityF =3D vtkPiecewiseFunction::New();
opacityF->AddPoint( 10, 0.1 );
opacityF->AddPoint( 200, 0.9 );
opacityF->ClampingOff();
vtkVolumeProperty *volumeP =3D vtkVolumeProperty::New();
volumeP->SetColor( colorF );
volumeP->SetScalarOpacity( opacityF );
vtkVolume *volume =3D vtkVolume::New();
volume->SetMapper( mapper );
volume->SetProperty( volumeP );
vtkRenderer *ren1; ren1 =3D vtkRenderer::New();
ren1->AddProp( volume );
vtkRenderWindow *renWin; renWin =3D vtkRenderWindow::New();
renWin->AddRenderer( ren1 );
vtkRenderWindowInteractor *iren; iren =3D =
vtkRenderWindowInteractor::New();
iren->SetRenderWindow( renWin );
iren->Render(); //here it crash
iren->Start();
iren->Delete();
renWin->Delete();
ren1->Delete();
RayCastMethod->Delete();
volume->Delete();
vol->Delete();
mapper->Delete();
sphere->Delete();
return 0;
}
//----------------------------------------------------------------------
-=
----
------=_NextPart_000_001C_01C2E7AE.F46CEC20
Content-Type: text/html;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1250">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>please could you help me with this =
simple=20
problem?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I want to render the sphere with the=20
vtkVolumeRayCastMapper. So I create sphere, mapper, volume properties =
and=20
finally vtkVolume and I render it with vtkRenderWindowInteractor. But =
the=20
program crash when I call iren->Render(). Bellow is the short C++=20
code. Are there some mistakes?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using VTK 4.0 and Borland C++ =
6</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Radim</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>//-------------------------------------------------------------
-=
-------------<BR>#include=20
"vtkSphereSource.h"<BR>#include
"vtkVolumeRayCastMapper.h"<BR>#include=20
"vtkActor.h"<BR>#include "vtkRenderer.h"<BR>#include=20
"vtkRenderWindowInteractor.h"<BR>#include =
"vtkRenderWindow.h"<BR>#include=20
"vtkVolumeRayCastMIPFunction.h"<BR>#include "vtkImageData.h"<BR>#include
=
"vtkVolumeProperty.h"<BR>#include "vtkPiecewiseFunction.h"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#include <vcl.h><BR>#pragma=20
hdrstop</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>//-------------------------------------------------------------
-=
-------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#pragma argsused<BR>int main(int argc,
=
char*=20
argv[])<BR>{<BR> =
vtkSphereSource=20
*sphere; sphere =3D=20
vtkSphereSource::New();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
vtkVolumeRayCastMIPFunction *RayCastMethod =3D=20
vtkVolumeRayCastMIPFunction::New();<BR> &nb
s=
p; =20
vtkVolumeRayCastMapper *mapper =3D =
vtkVolumeRayCastMapper::New();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
mapper->SetVolumeRayCastFunction( RayCastMethod );</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
vtkImageData *vol; vol =3D=20
vtkImageData::New();<BR> =20
vol->SetSource( sphere =
);<BR> =20
mapper->SetInput( vol );</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> vtkColorTransferFunction *colorF
=
=3D=20
vtkColorTransferFunction::New();<BR> =
colorF->AddRGBSegment(=20
0, 0.0, 0.0, 0.0, 255, 0.5, 0.1, 1.0 );</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =
//--------=20
Mapping from scalar -> opacity =
------------<BR> vtkPiecewiseFunction=20
*opacityF =3D
vtkPiecewiseFunction::New();<BR> =20
opacityF->AddPoint( 10, 0.1=20
);<BR> opacityF->AddPoint( 200, 0.9=20
);<BR> opacityF->ClampingOff();</FONT></
D=
IV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>vtkVolumeProperty *volumeP =3D=20
vtkVolumeProperty::New();<BR> volumeP->SetColor( =
colorF=20
);<BR> volumeP->SetScalarOpacity( opacityF=20
);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> vtkVolume *volume =3D=20
vtkVolume::New();<BR> volume->SetMapper( =
mapper=20
);<BR> volume->SetProperty( volumeP =
);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>vtkRenderer *ren1; ren1 =3D=20
vtkRenderer::New();<BR> ren1->AddProp( volume =
);</DIV>
<DIV> </DIV>
<DIV>vtkRenderWindow *renWin; renWin =3D=20
vtkRenderWindow::New();<BR> renWin->AddRenderer( =
ren1=20
);</DIV>
<DIV> </DIV>
<DIV>vtkRenderWindowInteractor *iren; iren =3D=20
vtkRenderWindowInteractor::New();<BR> =20
iren->SetRenderWindow( renWin );</DIV>
<DIV> </DIV>
<DIV> =20
iren->Render(); //here it=20
crash<BR> =
iren->Start();</DIV>
<DIV> </DIV>
<DIV> =20
iren->Delete();<BR> =20
renWin->Delete();<BR> =20
ren1->Delete();<BR> =20
RayCastMethod->Delete();<BR>  
;=
=20
volume->Delete();<BR> =20
vol->Delete();<BR> =20
mapper->Delete();<BR> =20
sphere->Delete();</DIV>
<DIV> </DIV>
<DIV> return=20
0;<BR>}<BR>//-----------------------------------------------------------
-=
---------------<BR></FONT></DIV></BODY></HTML>
------=_NextPart_000_001C_01C2E7AE.F46CEC20--
--__--__--
_______________________________________________
vtkusers mailing list
vtkusers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtkusers
End of vtkusers Digest
More information about the vtkusers
mailing list