Subject: CGAL users discussion list
List archive
- From: Dominik Szczerba <>
- To:
- Subject: Re: [cgal-discuss] VTK support
- Date: Thu, 9 Sep 2010 11:11:11 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=QLNAVvqw2VmLYDu7MwpUdrgTgReUhG7tO9DbTvyCu83B47eVQYUD0htL/YBHwp6cEB Spt+Pq6LZSG7jhl8nvR9rnXgDvbvd6bXaD19yiFQFhl5Uda7LWNcgALW234t2DHM4tvD 2MTk6HNfk+hvGgYNcy7NAJL+97QV9sm2uBhI0=
Hi,
Thanks for the email. You are right, I do not actually need VTK, just
import memory buffer.
But VTK is already better than the INR format. I saw the code samples
to read VTK objects. My original question was how to enable VTK
support when building. There is no option to control this in the main
CMakeLists.txt.
Many thanks
Dominik
On Thu, Sep 9, 2010 at 11:05 AM, Laurent Rineau (GeometryFactory)
<>
wrote:
> On Wednesday 08 September 2010 21:46:12 Dominik Szczerba wrote:
>> Thank you for the response.
>> I need to load my own image buffer available in memory as an array of
>> unsigned chars and sized NI*NJ*NK. I can not want to use the INR
>> format. I tried to study the image::read function, but it is quite
>> complicated. I would be most grateful if you could point me to a
>> relevant code section.
>
> Hi Dominik,
>
> As far as I understand, you do not really need VTK support.
>
> Anyway, have a look at the implementation of the following function:
>
> bool Image_3::read_vtk_image_data(vtkImageData* vtk_image)
>
> in src/CGALimageIO/Image_3.cpp in CGAL. You will find out how to construct a
> CGAL::Image_3 from an array of char and meta-data. I can give you hints if
> you
> cannot easily reverse-engineer that code.
>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
- [cgal-discuss] VTK support, Dominik Szczerba, 09/08/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/08/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/08/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/09/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/09/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/09/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/10/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/13/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/13/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/10/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/09/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/09/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/09/2010
- Re: [cgal-discuss] VTK support, Dominik Szczerba, 09/08/2010
- Re: [cgal-discuss] VTK support, Laurent Rineau (GeometryFactory), 09/08/2010
Archive powered by MHonArc 2.6.16.