<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20120824171700688570 {
        COLOR: #000000
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: å¾®è½¯é›…黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 9.00.8112.16448"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Sorry I didn't state the question clearly enough. These two polydata do not 
have the same geometry construction. So they are not exactly&nbsp;correspondence 
spatially. First I want to resample the polydata to make sure they have same 
number of polydata so I can do the correspondence alignement next. Anyway to do 
that?</DIV>
<DIV>&nbsp;</DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN><SPAN 
style="FONT-FAMILY: å®‹ä½“; COLOR: #000000; FONT-SIZE: 10.5pt">Chester 
Huang</SPAN></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B>&nbsp;<A href="mailto:gonzaloamadio@gmail.com">Gonzalo 
Amadio</A></DIV>
<DIV><B>Date:</B>&nbsp;2012-08-24&nbsp;16:58</DIV>
<DIV><B>To:</B>&nbsp;<A 
href="mailto:huangcheng1987928@gmail.com">huangcheng1987928</A></DIV>
<DIV><B>CC:</B>&nbsp;<A href="mailto:vtkusers@vtk.org">VTK</A></DIV>
<DIV><B>Subject:</B>&nbsp;Re: [vtkusers] How to resample VtkPolyData to make 
sure two VtkPolyData have same number of points?</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20120824171700688570>I don't know if there ir a class that do 
that..<BR>But as firs idea, one could be :<BR><BR>Traverse the one with more 
number of points, and for each point, check if exitsts in the other polydata, if 
not, add it.<BR><BR>
<DIV class=gmail_quote>2012/8/24 <SPAN dir=ltr>&lt;<A 
href="mailto:huangcheng1987928@gmail.com" 
target=_blank>huangcheng1987928@gmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><U></U>
  <DIV style="MARGIN: 10px">
  <DIV>Hi all,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If I get two vtkPolyData but 
  they have different number of points, is there a way to resample one of them 
  to make sure these two polydata have the same number of points?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards,</DIV>
  <DIV>&nbsp;</DIV>
  <HR style="MIN-HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>

  <DIV><SPAN><SPAN>Chester 
  Huang</SPAN></SPAN></DIV></DIV><BR>_______________________________________________<BR>Powered 
  by <A href="http://www.kitware.com" 
  target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source 
  projects at <A href="http://www.kitware.com/opensource/opensource.html" 
  target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please 
  keep messages on-topic and check the VTK FAQ at: <A 
  href="http://www.vtk.org/Wiki/VTK_FAQ" 
  target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><BR>Follow this link to 
  subscribe/unsubscribe:<BR><A 
  href="http://www.vtk.org/mailman/listinfo/vtkusers" 
  target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
clear=all>
<DIV><BR></DIV>-- <BR>--------<BR>Gonzalo 
Amadio<BR><BR></DIV></DIV></BODY></HTML>