[vtkusers] Graphing points

Bill Lorensen bill.lorensen at gmail.com
Fri Oct 1 18:07:54 EDT 2010


Barney,

Your experience with VTK will be much more pleasant if you use cmake.

Without cmake, you can use VTK, but, unless you are an expert with Visual
Studio, you will become frustrated and delay your VTK experience.

Please try cmake and ask questions to get started if necessary.

1) Create a directory for your source code, e.g. call it MyVTK. Add your
first example here, perhaps the one I suggested. Also, place the suggested
example source code here. Call it ReadTextFile.cxx.
2) Create a directory for your binaries, e.g. call it MyVTK-build
3) Run cmake (probably the cmake gui). Tell it which generator you want (the
same when you built vtk). Click configure (or something similar). It might
ask you where your vtk binary directory is. Select that. Configure and then
Generate.
4) Go to the MyVTK-build directory and start VS with the solution file.
5) Build all and you should be all set

Bill


On Fri, Oct 1, 2010 at 5:23 PM, Barney Sperlin <bsperlinus at yahoo.com> wrote:

> Hi Bill,
>      No, I made a C++ project in VS 2005 Express.  What am I missing?  I'm
> not comfortable with CMake though I used it to compile the VTK project in
> the first place, just following the instructions on a web page.  Don't VTK
> projects work in VS?
>
>      Barney
>
> --- On *Fri, 10/1/10, Bill Lorensen <bill.lorensen at gmail.com>* wrote:
>
>
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Graphing points
> To: "Barney Sperlin" <bsperlinus at yahoo.com>
> Date: Friday, October 1, 2010, 5:14 PM
>
>
> There is a CMakeLists.txt file on the example page. I assume you configure
> with cmake?
>
> Bill
>
> On Fri, Oct 1, 2010 at 5:10 PM, Barney Sperlin <bsperlinus at yahoo.com<http://mc/compose?to=bsperlinus@yahoo.com>
> > wrote:
>
> Thanks John and Bill,
>       But when I make a VC++ console project out of the code Bill linked to
> I still get linking errors, including the one listed below.  Any thoughts?
>      Barney
>
> --- On *Fri, 10/1/10, Bill Lorensen <bill.lorensen at gmail.com<http://mc/compose?to=bill.lorensen@gmail.com>
> >* wrote:
>
>
> From: Bill Lorensen <bill.lorensen at gmail.com<http://mc/compose?to=bill.lorensen@gmail.com>
> >
> Subject: Re: [vtkusers] Graphing points
> To: "Barney Sperlin" <bsperlinus at yahoo.com<http://mc/compose?to=bsperlinus@yahoo.com>
> >
> Cc: vtkusers at vtk.org <http://mc/compose?to=vtkusers@vtk.org>
> Date: Friday, October 1, 2010, 4:36 PM
>
>
> This example may help you get started...
> http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainText
>
>
> On Fri, Oct 1, 2010 at 4:02 PM, Barney Sperlin <bsperlinus at yahoo.com<http://mc/compose?to=bsperlinus@yahoo.com>
> > wrote:
>
> Hi,
>      I am trying to find an example of plotting a single point.  The goal
> would be to read the coordinates of a set of points from a file and plot
> each point, possibly connecting some with line segments.  Showing a
> coordinate system would be good, too.
>      I have looked at PointClouds and
> StructuredPointsToUnstructuredGrid.cxx but the point-by-point mechanism
> seems to be hidden.  How do I do that?
>
>      Also, in running the code from this last mentioned cxx file by pasting
> it into vtk_minimal (which runs) and commenting out the code for
> vtk_minimal, it compiles but doesn't link.  On of the 11 errors is:
> 1>vtk_minimal.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> vtkSmartPointerBase::~vtkSmartPointerBase(void)"
> (__imp_??1vtkSmartPointerBase@@QAE at XZ) referenced in function "public:
> __thiscall vtkSmartPointer<class
> vtkStructuredPoints>::~vtkSmartPointer<class vtkStructuredPoints>(void)"
> (??1?$vtkSmartPointer at VvtkStructuredPoints@@@@QAE at XZ)
> What lib file is missing?
>
>      Thanks,
>         Barney
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101001/58198572/attachment.htm>


More information about the vtkusers mailing list