[vtk-developers] vtkPlane DeepCopy?
David Gobbi
david.gobbi at gmail.com
Sat Dec 5 16:55:09 EST 2009
On Sat, Dec 5, 2009 at 2:38 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> Is there a reason vtkPlane doesn't have a copy function? I.e. if I
> write one can we add it?
I don't think it's a good idea. In general, vtkImplicitFunction
object cannot be copied, and if they could, then a virtual "Copy"
method should be added to the virtual base class first.
For example, would your copy method do a copy of the transform? Or
just of the Normal and Origin?
If you would only copy the Normal and Origin, then it's hardly
worthwhile to add a method that does something so trivial. If you are
also copying the transform, then you should definitely copy the
transform in the base class, and not in vtkPlane.
David
More information about the vtk-developers
mailing list