iMSTK
Interactive Medical Simulation Toolkit
imstkSurfaceMeshTextureProject.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkGeometryAlgorithm.h"
10 
11 namespace imstk
12 {
13 class SurfaceMesh;
14 
23 {
24 public:
26  ~SurfaceMeshTextureProject() override = default;
27 
28 public:
32  void setSourceMesh(std::shared_ptr<SurfaceMesh> surfMesh);
33 
37  void setDestMesh(std::shared_ptr<SurfaceMesh> destMesh);
38 
42  std::shared_ptr<SurfaceMesh> getOutputMesh();
43 
44 protected:
45  void requestUpdate() override;
46 };
47 } // namespace imstk
Compound Geometry.
void setDestMesh(std::shared_ptr< SurfaceMesh > destMesh)
The mesh to recieve the attribute.
void requestUpdate() override
Users can implement this for the logic to be run.
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
void setSourceMesh(std::shared_ptr< SurfaceMesh > surfMesh)
The mesh with attribute to put on the other.
std::shared_ptr< SurfaceMesh > getOutputMesh()
destMesh copy with the attribute
This filter projects vertex texture attributes from one SurfaceMesh to another by finding the closest...