<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
David, thank you very much for your kind answer!<br>I was able to do what I want.<br>Hoping that I'm not bothering you too much, could I ask you another question?<br>I
have a volumetric image (in dicom or in metaimage) made of zero voxels
and some non-zero voxels, representing a 3D geometry (a cube).<br>I would like to subtract from this volume the tube that I have create by vtktubefilter, but I have some problems:<br>1)
I have two different classes: the image is a VtkImageData, the tube is
a VtkPolyData (isn't it?); how can I get the same format, how can I
subtract them?<br>2)the tube is empty inside. I need a volume, not a surface.<br>I
know that these question can seem quite banal, but I couldn't find any
good tutorial about VTK classes on the web. I rely on buying VTK user's
guide as soon as possible!<br>Thanks in advance for you kindness and for your help!<br>Mary<br><br>> Date: Fri, 13 Feb 2009 12:11:40 -0500<br>> Subject: Re: [vtkusers] tubular structure<br>> From: dave.demarle@kitware.com<br>> To: edsb@hotmail.it<br>> CC: vtkusers@vtk.org<br>> <br>> The tube filter takes in a set of points in space and a data array<br>> which contains values for each point (defined as either a scalar or<br>> vector) that determine the radius at each point.<br>> <br>> You define that structure be creating a vtk_polydata, filling in the<br>> points via SetPoints, and filling in the values via<br>> GetPointData->SetScalars() or GetPointData->SetVectors().<br>> <br>> Set that polydata as input to the tubefilter and call the filter's<br>> SetVaryRadius*() method to choose either the scalar array or vector<br>> array.<br>> <br>> If you define your vector array to be orthogonal to the centroidal<br>> axis and have a magnitude corresponding to your radius, your should be<br>> able to do what you want.<br>> <br>> On Tue, Feb 3, 2009 at 5:17 AM, EDSB EDSB <edsb@hotmail.it> wrote:<br>> > Hi there,<br>> > I am very new to VTK and I am using it by its Phyton wrapper. I would like<br>> > to create a tubular structure and I want to put as input<br>> > the radius and the centroidal axis (that is a spline).<br>> > Do I have to use the vtkTubeFilter,isn't it? Where can I inupt my spline?<br>> > Could you help me with an example?<br>> > Thank a lot for your help!<br>> > Mary<br>> ><br>> > ________________________________<br>> > Scopri le novità! La tua vita, i tuoi interessi, tutto insieme su Windows<br>> > Live.<br>> > _______________________________________________<br>> > This is the private VTK discussion list.<br>> > Please keep messages on-topic. Check the FAQ at:<br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>> ><br>> <br>> <br>> <br>> -- <br>> David E DeMarle<br>> Kitware, Inc.<br>> R&D Engineer<br>> 28 Corporate Drive<br>> Clifton Park, NY 12065-8662<br>> Phone: 518-371-3971 x109<br><br /><hr />Scoprilo con Typectionary! <a href='http://typectionary.it.msn.com/' target='_new'>Sei bravo con l'italiano?</a></body>
</html>