3D Transformation using VTK and Paraview

Using Paraview’s python shell and VTK, I’m trying to perform a complex transformation on a series of specific 3D facial landmark points (about 10-15 points). These points have been separately collected and are stored in an excel sheet. Essentially, they can represented as matrices (x-y-z coordinates). I’ve been trying to use VTK’s special classes like AbstractTransform() or HomogenousTransform(), but I’m not sure how to write out the syntax and make sure they apply to the particular points. To provide some more context, I’m taking a 3D face (represented as polydata in Paraview) and trying to make that face look slightly different. Thus, this transformation has to be applied to the specific set of points.

3 questions:

  1. Is there a way to multiple these 3D points by a transformation matrix?
  2. What’s the right way to go about using these VTK classes and have the transformation apply to only a specific set of points, but not all of them?
  3. Is there a smarter way to go about what i’m trying to accomplish?