[vtkusers] An error in C++ but no error in tcl(why)

fengfenghsy fengfenghsy at 163.com
Wed Mar 16 09:19:01 EST 2005


Hello,everyone
      I have now fix a problem that bother me quite a while!
      I download a example from here:
      http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Graphics/Testing/Tcl/motor.tcl
      
     here is some code  :
     ......
   # create cutting planes
     vtkPlanes planes
     vtkPoints points
     vtkFloatArray norms
     norms SetNumberOfComponents 3

     points InsertPoint 0 0.0 0.0 0.0
     norms InsertTuple3 0 0.0 0.0 1.0;    
     points InsertPoint 1 0.0 0.0 0.0
     norms InsertTuple3 1 -1.0 0.0 0.0;    

     planes SetPoints points
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(here is some problem in C++) 
     planes SetNormals norms 
     ........


     But when I change this code into Visual C++ entironment, 
     ...
     planes->SetPoints(points); /*here will come out an error said that error C2039: 'SetPoints' : is not a member of 'vtkPlane'  */
     ...
     


     Who can tell me why fuction SetPoints has no error in tcl/tk but has error in C++!
     Thanks a lot !

        fengfenghsy
        fengfenghsy at 163.com
          2005-03-16


More information about the vtkusers mailing list