[vtkusers] Adopt an example

David Doria daviddoria+vtk at gmail.com
Wed Aug 18 17:02:53 EDT 2010


On Wed, Aug 18, 2010 at 4:42 PM, Darshan Pai <darshanpai at gmail.com> wrote:
> VectorDot example .
>
> I don't think the output is wrong . The Values should be -1 . This is
> because the vtkVectorDot initial scalar range is from -1 to 1 . And the
> class does not generate the dot product values but rather generate scalar
> values based off dot product . Since the example generates only one value
> that is 1, it is mapped to the lower range of scalar .
>
> If you set the scalar range of vtkVectorDot to say (3,6) , the output is 3,
> which should be correct right ?
>
> Darshan

Ah I see what you're saying. Fixed and moved!
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Math/VectorDot

David



More information about the vtkusers mailing list