[vtkusers] Boolean Operation to create a hollow cylinder
David Doria
daviddoria+vtk at gmail.com
Sat Jan 16 21:35:46 EST 2010
On Sat, Jan 16, 2010 at 7:45 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Sat, Jan 16, 2010 at 6:37 PM, David Morris <dvmorris at gmail.com> wrote:
>> Is there a way to create a hollow cylinder using VTK? I assume there may be
>> a way using a boolean subtraction operation, but I can't really find any
>> examples or documentation about this. I just want to create a hollow
>> cylinder, presumably by subtracting a cylinder from a larger cylinder and
>> ending up with some kind of polyData object. Let me know if that makes
>> sense, and if this is possible using VTK.
>> Thanks for the help,
>>
>> --
>> Dave Morris
>>
>> _______________________________________________
>> 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
>>
>>
>
> If I'm not mistaken, the CylinderSource makes a hollow cylinder, right?
>
> http://www.vtk.org/doc/nightly/html/classvtkCylinderSource.html#_details
>
> There is an example of how to use it here:
> http://www.itk.org/Wiki/VTK/Examples/CylinderSource
>
> Maybe I misunderstood what you're looking for?
>
> Thanks,
>
> David
>
Or maybe by "hollow" you meant you wanted a cylinder with no ends (or "caps")?
If so, check out
vtkCylinderSource::CappingOff()
Thanks,
David
More information about the vtkusers
mailing list