[vtkusers] Filling vtkCutter output
Jothybasu K Selvaraj
jothybasu at gmail.com
Fri Apr 9 04:20:02 EDT 2010
Do you want to do like the Eclipse (varian) planning system does??
(give me sometime to get back to you)
Thanks,
Jothy
On Thu, Apr 8, 2010 at 9:16 PM, Scott Johnson <Scott.Johnson at neuwave.com>wrote:
> Thanks for the attempt Jothy. I think I need a little more guidance.
> I’m not able to decipher everything that vtkLinearExtrusionFilter can do.
>
>
>
> vtkLinearExtrusionFilter seems to extrude in 3 dimensions. I only need to
> extrude in 2D to fill the resulting contour after I cut the sphere with a
> plane. Here are the settings I used:
>
>
>
> extrude = vtkLinearExtrusionFilter::New();
>
> extrude->SetInputConnection(_cutter->GetOutputPort());
>
> extrude->CappingOn();
>
> extrude->SetExtrusionTypeToPointExtrusion();
>
> extrude->SetExtrusionPoint(145.0, 222.0, 35.0);
>
>
>
> The extrusion point I set is the center of the sphere.
>
>
>
> I’ve actually got 2 concentric spheres and when I use this I get some weird
> effects. (I’ll attach a picture.) The red sphere is the outside and it
> seems to be attempting to make some kind of connection to the extrusion
> point. The green sphere comes closer, but extrudes out as well as into the
> center. Finally, the extrusion doesn’t fill the center of either sphere.
>
>
>
> The picture shows an Axial, Sagittal, and Coronal slice as well as a
> rendering.
>
>
>
> I also get a series of errors reading:
>
> ERROR: In ..\..\Graphics\vtkLinearExtrusionFilter.cxx, line 133
> vtkLinearExtrusionFilter[06C80510: No data to extrude!
>
>
>
> That could be the issue as well. I did _cutter->Update() prior to
> connecting it to the linear extrusion filter.
>
>
>
> Thanks
>
>
>
> -- Scott
>
>
>
> *From:* Jothybasu K Selvaraj [mailto:jothybasu at gmail.com]
> *Sent:* Thursday, April 08, 2010 1:38 PM
>
> *To:* Scott Johnson
> *Cc:* vtkusers at vtk.org
> *Subject:* Re: [vtkusers] Filling vtkCutter output
>
>
>
> What about using vtkLinearExtrusionFilter for filling these polygons?
>
>
> Let me know if it works Scott.
>
> Thanks,
>
> Jothy
>
> On Thu, Apr 8, 2010 at 5:27 PM, Scott Johnson <
> Scott.Johnson at neuwave.com> wrote:
>
> Howdy,
>
>
>
> I’ve got a vtkSphereSource cut by a vtkPlane using vtkCutter. This gives
> me the outline of a circle which I’m overlaying on my images. Is there a
> way for me to fill the circle with color?
>
>
>
> Thanks
>
>
>
> -- Scott
>
>
>
>
> _______________________________________________
> 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/20100409/448108db/attachment.htm>
More information about the vtkusers
mailing list