[vtkusers] Setting size of vtkPlaneSource
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Wed Mar 18 15:32:39 EDT 2015
Hi Doug,
I guess you'll need to use the Origin and the Point1 and Point2 attributes
[1] in order to do so.
You may want to have a look at the example [2] or the vtkPlaneSource
implementation itself [3].
HTH,
JON HAITZ
[1] http://www.vtk.org/doc/nightly/html/classvtkPlaneSource.html
[2] http://www.itk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines
[3]
https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/Sources/vtkPlaneSource.cxx
---------- Forwarded message ----------
From: Doug Hoppes <dhoppes at mbfbioscience.com>
Date: 18 March 2015 at 20:18
Subject: [vtkusers] Setting size of vtkPlaneSource
To: "vtkusers at vtk.org" <vtkusers at vtk.org>
Hi all,
Okay, this may be a simple question but I can’t seem to
find the answer. I have a vtkplanesource and I need to set the size of the
plane. How?
My code:
// Create a plane
vtkSmartPointer<vtkPlaneSource> planeSource = vtkSmartPointer<
vtkPlaneSource>::New();
planeSource->SetCenter(pCenterPoint);
planeSource->SetNormal(pLineVector);
Doug
_______________________________________________
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/20150318/c216c927/attachment.html>
More information about the vtkusers
mailing list