Skip to content

ENH: Texture projection operation, geometry filter input requirements

Andrew Wilson requested to merge andrew.wilson/iMSTK:TextureProject into master

The first commit in this MR fixes attribute issues:

  • Attribute strings should not be set if invalid number of components.
  • When VTK provided an attribute without a name it would go into the attribute list with "". Then when it failed to find an attribute for something it set the active attributes to whatever empty named attribute was there. (We experienced this with some 1 component texture coordinates appearing at times).

The second commit adds a texture projection operation. This can be used to resample texture coordinates onto another mesh via closest point interpolation. This way you can remesh something and then project the attribute onto that newly meshed geometry. It also adds input requirements to the base geometry algorithm.

Merge request reports