[vtkusers] IntersectWithLine Arguments

David Gobbi david.gobbi at gmail.com
Fri Aug 8 09:33:04 EDT 2008


Hi Will,

This question comes up a lot.  This method cannot be used from Tcl,
because pass-by-reference and non-const array parameters are not
supported by the Tcl wrappers.  I don't think that VTK has an
equivalent method that is available from Tcl.

   David


On Fri, Aug 8, 2008 at 9:26 AM, Will Boyer <boyer_will at hotmail.com> wrote:
> Hello,
>
> I am trying to use the "IntersectWithLine" function (vtkCellLocator
> class) in Tcl, however I'm not sure how to input the arguments into the
> function. The function definition is as follows;
>
> virtual int vtkCellLocator::IntersectWithLine (  double  a0[3],
> double  a1[3],
> double  tol,
> double &  t,
> double  x[3],
> double  pcoords[3],
> int &  subId,
> vtkIdType &  cellId
> )
>
> [virtual]
>
>
>
> In Tcl, are the double matrices considered lists or vtkDoubleArrays? An
> example of a Tcl code using this function would be great.
>
> Thanks,
> Will
>
> ________________________________
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list