[Insight-developers] Copy input to Output Mesh

Luis Ibanez luis.ibanez at kitware.com
Sun Nov 22 14:58:08 EST 2009


Hi Michael,

Yes, it will make sense to move (at least part) of the Copy method
up to the MeshToMeshFilter class.

Note that he basic methods that copy parts of the mesh were already
there:

  void CopyInputMeshToOutputMeshPoints();
  void CopyInputMeshToOutputMeshPointData();
  void CopyInputMeshToOutputMeshCellLinks();
  void CopyInputMeshToOutputMeshCells();
  void CopyInputMeshToOutputMeshCellData();


The reason why a full CopyInputMeshToOutputMesh() method
can't be added directly up there is that in some cases the types
of the InputMesh and OutputMesh are not compatible.

In the LaplaceBeltrami filter, you may be in a case where
the types are compatible and therefore you can call the
methods listed above as building-blocks of what a
CopyInputMeshToOutputMesh() method could be.


Please give it a try at using the method above
and let us know if you find any problem.


    Thanks


     Luis


-----------------------------------------------
On Fri, Nov 20, 2009 at 1:54 PM, Michael Bowers <mbowers at cis.jhu.edu> wrote:
>
>
> Luis,
>
>
>
> I found CopyInputMeshToOutputMesh in QuadEdgeMeshToQuadEdgeMeshFilter.  The
> Laplace Beltrami filter is MeshToMeshFilter, so I don’t think I have the
> Copy function.  It seems like a useful thing to have in any mesh-to-mesh
> filter.  Is there any possibility for pushing it into the Base Class or do I
> need to implement it for the Laplace Beltrami filter?
>
>
>
> Thanks,
>
>
>
> Mike B.
>
>
>
>


More information about the Insight-developers mailing list