<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; ">Usually i use this method to get points from an unstructured grid :</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 14pt; "><br></div><div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">vtkUnstructuredGridReader readerquad</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">readerquad SetFileName "$file"</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size:
 19px;">readerquad Update</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">set nump [[readerquad GetOutput] GetNumberOfPoints]</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">vtkPoints initialpoints</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">puts "nump $nump"</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">for {set i 0} {$i &lt; $nump} {incr i} {</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york',
 times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre">        </span>set x [[readerquad GetOutput] GetPoint $i]</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre">        </span>puts " x $x "</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;"><span class="Apple-tab-span" style="white-space:pre">        </span>initialpoints InsertPoint $i [lindex $x 0] [lindex $x 1] [lindex $x 2]</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;">}</span></font></div><div><font
 class="Apple-style-span" face="'times new roman', 'new york', times, serif" color="#00407F"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px; ">And now i am wondering if there is a more direct method without the loop like</span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="font-size: 19px;">set points&nbsp;</span></font><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">[[readerquad GetOutput] GetPoints]&nbsp;</span></div><div><span class="Apple-style-span"
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">or similar.</span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 19px; ">Thanks</span></div><meta http-equiv="content-type" content="text/html; charset=utf-8"></div></div></body></html>