[vtkusers] Normal Direction of point set
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Sun Mar 12 07:50:11 EDT 2017
These variables are set by VTK when running CMake.
For VTK 5.10.0, for example, VTK_MAJOR_VERSION would be 5, and
VTK_MINOR_VERSION would be 10.
In your code you would use them as explained here [1].
HTH,
JON HAITZ
[1] http://www.vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples
--
On 12 March 2017 at 11:46, Abdelkhalek Bakkari <
bakkari.abdelkhalek at hotmail.fr> wrote:
> Dear Jon Haitz Legarreta,
>
>
> Could you please help me to define the VTK_MAJOR_VERSION,
> VTK_MINOR_VERSION.
>
> My own CMakeLists is writting as follow :
>
>
> --------------------------------------
>
> cmake_minimum_required(VERSION 2.6)
> PROJECT(main)
>
> IF(NOT VTK_BINARY_DIR)
> FIND_PACKAGE(VTK)
> IF(NOT VTK_DIR)
> MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
> ENDIF(NOT VTK_DIR)
> INCLUDE(${VTK_USE_FILE})
> ENDIF(NOT VTK_BINARY_DIR)
> FIND_PACKAGE ( ITK)
> IF ( ITK_FOUND)
> INCLUDE( ${ITK_USE_FILE} )
> ENDIF( ITK_FOUND)
> --------------------------------------
>
> The VTK_MINOR_VERSION is 5.10.1
> The VTK_MAJOR_VERSION is 7.1.0.
>
> Thank you in advance.
>
> Best regards,
>
>
>
> Abdelkhalek Bakkari
> Ph.D candidate in Computer Science
> Institute of Applied Computer Science
> Lodz University of Technology, Poland
>
>
>
>
> ------------------------------
> *From:* Jon Haitz Legarreta <jhlegarreta at vicomtech.org>
> *Sent:* 02 March 2017 10:54
> *To:* Abdelkhalek Bakkari
> *Cc:* Bill Lorensen; VTK Users
>
> *Subject:* Re: [vtkusers] Normal Direction of point set
>
> If you mean using parts of a given version (say 5.10.1) and using some
> other parts of another version (say 7.1), chances are that this approach
> results in unexpected behavior to say the at least (if you even try).
> Regardless of whether the toolkit or external library used is VTK or not,
> that approach is not advisable.
>
> The class at issue may depend on other classes or features not present in
> earlier versions, so you'd better use 7.1 if you need the class.
>
> You can perfectly have as many VTK versions as needed installed/built in
> the same machine.
>
> You can use the VTK_MAJOR_VERSION, VTK_MINOR_VERSION, etc. flags in your
> project if you want to use the feature depending on the availability of the
> VTK version your project links against. At least if the feature is not
> critical.
>
> JON HAITZ
>
> --
>
>
> On 2 March 2017 at 07:17, Abdelkhalek Bakkari <
> bakkari.abdelkhalek at hotmail.fr> wrote:
>
>> Mine is 5.10.1. Can I get two different versions of VTK in the same
>> windows and used for the same project? Is there any other way please?
>>
>>
>>
>>
>>
>>
>> ------------------------------
>> *From:* Bill Lorensen <bill.lorensen at gmail.com>
>> *Sent:* 02 March 2017 02:56
>> *To:* Abdelkhalek Bakkari
>> *Cc:* VTK Users
>>
>> *Subject:* Re: [vtkusers] Normal Direction of point set
>>
>> What version of VTK? You need 7.1
>>
>> On Mar 1, 2017 7:49 PM, "Abdelkhalek Bakkari" <
>> bakkari.abdelkhalek at hotmail.fr> wrote:
>>
>>> Dear Mr Bill,
>>>
>>>
>>> Thank you for your prompt answer. I tried to adopt vtkPCANormalEstimation.
>>> But, I could not find the vtkFiltersPointsModule.h.
>>>
>>>
>>>
>>>
>>> Abdelkhalek Bakkari
>>> Ph.D candidate in Computer Science
>>> Institute of Applied Computer Science
>>> Lodz University of Technology, Poland
>>>
>>>
>>>
>>>
>>> ------------------------------
>>> *From:* Bill Lorensen <bill.lorensen at gmail.com>
>>> *Sent:* 01 March 2017 18:34
>>> *To:* Abdelkhalek Bakkari
>>> *Cc:* VTK Mailing List
>>> *Subject:* Re: [vtkusers] Normal Direction of point set
>>>
>>> In vtk7.1 use
>>> vtkPCANormalEstimation
>>>
>>> see the example:
>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Points/NormalEstimation
>>> VTK/Examples/Cxx/Points/NormalEstimation - KitwarePublic
>>> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Points/NormalEstimation>
>>> www.vtk.org
>>> Download and Build NormalEstimation. Click here to download
>>> NormalEstimation. and its CMakeLists.txt file. Once the tarball
>>> NormalEstimation.tar has been downloaded ...
>>>
>>>
>>>
>>>
>>> On Wed, Mar 1, 2017 at 12:11 PM, Abdelkhalek Bakkari
>>> <bakkari.abdelkhalek at hotmail.fr> wrote:
>>> > Dear VTK users,
>>> >
>>> >
>>> > I would like to ask about the way of normal direction computation of
>>> point
>>> > set.
>>> >
>>> >
>>> > Thank you in advance.
>>> >
>>> >
>>> > Best regards,
>>> >
>>> >
>>> > Abdelkhalek Bakkari
>>> > Ph.D candidate in Computer Science
>>> > Institute of Applied Computer Science
>>> > Lodz University of Technology, Poland
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > Powered by www.kitware.com
>>> <http://www.kitware.com/>
>>> Kitware Inc. - leading edge, high-quality software
>>> <http://www.kitware.com/>
>>> www.kitware.com
>>> Kitware's mission is to create state-of-the-art software products and
>>> services in visualization and data processing using advanced quality
>>> software methods and ...
>>>
>>>
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> OPEN SOURCE - Kitware
>>> <http://www.kitware.com/opensource/opensource.html>
>>> www.kitware.com
>>> Kitware develops, maintains and supports a wide array of toolkits and
>>> applications that are used by tens of thousands of software developers,
>>> researchers and ...
>>>
>>>
>>> >
>>> > Please keep messages on-topic and check the VTK FAQ at:
>>> > http://www.vtk.org/Wiki/VTK_FAQ
>>> >
>>> > Search the list archives at: http://markmail.org/search/?q=vtkusers
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://public.kitware.com/mailman/listinfo/vtkusers
>>> >
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170312/73294844/attachment.html>
More information about the vtkusers
mailing list