<html>
Hi Song-<br>
<br>
<blockquote type=cite class=cite cite>At 12:16 AM 11/14/2001 -0600, Song
Li wrote:<br>
Hi, <br>
&nbsp;&nbsp; Does anybody has experience to derive new cell types ????
any online tutorials , source code ....... I can take a look at ???
Thanks! <br>
<pre>-- </pre></blockquote><br>
To derive a new cell type you'll typically do the following:<br>
<br>
1) derive from vtkCell or vtkCell3D. This means overloading any virtual
functions consistent with your new cell type; as well as implementing all
pure virtual functions. This is the hard part.<br>
<br>
2) If you want to use use the method vtkDataSet::GetCell(id,genericCell),
make sure that you extend vtkGenericCell to know about your new cell
type. Also add a #define to vtkCellType.h to reflect the new type.<br>
<br>
3) If you want to use vtk file formats, etc. you'll have to modify
readers/writers to recognize the new type.<br>
<br>
Will<br>
<x-sigsep><p></x-sigsep>
William J. Schroeder, Ph.D<br>
Kitware, Inc.<br>
469 Clifton Corporate Parkway<br>
Clifton Park, NY 12065<br>
will.schroeder@kitware.com<br>
1-518-371-3971 x102<br>
1-518-371-3971 (fax)<br>
</html>