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

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Mar 16 09:24:51 EST 2005


Looks like in C++ you had "planes" pointing to a vtkPlane object not a
vtkPlanes object

hth

Goodwin


"fengfenghsy" <fengfenghsy at 163.com> wrote in message
news:20050316141713.6EECA33F50 at public.kitware.com...
> 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
>


----------------------------------------------------------------------------
----


> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list