[vtkusers] Problem using SetNumberOfCloudPoints in vtkLODActo r

Shaw, Richard M. Richard.Shaw at bakerhughes.com
Thu Aug 31 15:39:31 EDT 2000


Thanks I had a vtkActor *ugridActor instead of vtkLODActor.

-----Original Message-----
From: David D. Marshall [mailto:gte552m at prism.gatech.edu]
Sent: Thursday, August 31, 2000 12:50 PM
To: Shaw, Richard M.
Cc: Vtkusers (E-mail)
Subject: Re: [vtkusers] Problem using SetNumberOfCloudPoints in vtkLODActor


My guess would be that you defined ugridActor as vtkActor * and not
vtkLODActor *.  Since vtkLODActor inherits from vtkActor, the New()
assignment works fine, but not the SetNumberOfCloudPoints.  Try upcasting,
storing temp vtkLODActor ptr, or change how ugridActor is defined. 

Hope this helped. 


"Shaw, Richard M." wrote: 


I have been trying to use SetNumberOfCloudPoints in vtkLODActor in cxx with 
MS VC6 I get the following error 

error C2039: 'SetNumberOfCloudPoints' : is not a member of 'vtkActor' 
vtkactor.h(69) : see declaration of 'vtkActor' 


Which is true neither vtkActor or vtkLODActor have a member 
SetNumberOfCloudPoints, this works in all the TCL examples but it's missing 
in the cxx code. 


My code looks like 


        this->ugridActor = vtkLODActor::New(); 
                this->ugridActor->SetMapper(ugridMapper); 
                this->ugridActor->AddPosition(0.0,0.0,0.0); 
                this->ugridActor->SetNumberOfCloudPoints(icorners); 


Am I going about this wrong or is there a bug in the cxx code, any clues 
would be appreciated. The default 150 points is way to low, I'm dealing with

30,000 corner points for my cells and 150 does not give enough shape. 


> Richard M. Shaw 
> Baker Hughes Inc. 
> Baker Atlas Division 
> (Incorporating Scientific Software - Intercomp) 
> Phone: (303) 573-2738 
> Fax:   (303) 571-0973 
> e-mail:Richard.Shaw at BakerHughes.com 
> web:   www.BakerHughes.com/westerngeo/reservoir/Workbench 
> 
> 
 <<Richard M  Shaw.vcf>>

-- 

David D. Marshall

ARTLab System Administrator/GRA

Georgia Institute of Technology, Atlanta Georgia, 30332

http://www.ae.gatech.edu/research/artlab/artl/artlab.html
<http://www.ae.gatech.edu/research/artlab/artl/artlab.html> 

mailto:gte552m at prism.gatech.edu <mailto:gte552m at prism.gatech.edu> 

think: Why anonymity is good

http://www.cato.org/pubs/briefs/bp-054es.html
<http://www.cato.org/pubs/briefs/bp-054es.html> 
  





More information about the vtkusers mailing list