[Insight-developers] Copy input to Output Mesh

Michel Audette michel.audette at kitware.com
Mon Nov 23 12:14:21 EST 2009


Hi Michael,

let me know if that works for you. I was aware of prior discussions on how
to copy components of the mesh, and I was not aware of the history as to why
there was no single function, so I was not able to make a useful
contribution.

In general, it's not a bad thing to copy to Insight Developers the way Luis
has. Others, such as ITK contributors with particular expertise on these
meshes, like Alexandre Gouillard and his collaborators, can chime in and
make useful suggestions. I recognize that it's a public exercise in
humility, and believe me, I empathize with this aspect of the learning
curve, since I'm a fairly recent convert to ITK.

Best wishes,

Michel

On Sun, Nov 22, 2009 at 2:58 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

> 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.
> >
> >
> >
> >
>



-- 
Michel Audette, Ph.D.
R & D Engineer,
Kitware Inc.,
Chapel Hill, N.C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20091123/cf2aac5a/attachment.htm>


More information about the Insight-developers mailing list