<DIV>Thanks for the advice Mathieu,</DIV>
<DIV> </DIV>
<DIV>For now I wil just try using vtkConvexPointSet what is the cell type number of this? (if there is one - can it be used like other cell types when writing data to vtk file format?)</DIV>
<DIV> </DIV>
<DIV>Sonam<BR><BR><B><I>Mathieu Malaterre <mathieu.malaterre@kitware.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Sonam,<BR><BR>See my interlaced comments.<BR><BR>s comp wrote:<BR>> Is it possible to use cell types in vtk that are not mentioned in the <BR>> file formats documentation? (without modifying source). <BR><BR>Yes, and no :)<BR>You can use vtkConvexPointSet:<BR>http://www.vtk.org/doc/nightly/html/classvtkConvexPointSet.html<BR><BR>But I don't consider this as long term solution.<BR><BR>> I would like to <BR>> use a cell type that is a cube with one corner cut off, so that the new <BR>> shape has 7 faces: 3 squares, and 4 triangles, and 7 vertices. Also as <BR>> mentioned in a previous post I would also like to use pyramids with more <BR>> than four sided base.<BR><BR>Then in that case I really suggest you copy/paste other vtkCell subclass <BR>and adapt to your changes. I believe that vtkConvexPointSet is really <BR>slow on cut/contour/clip operation. So I'd suggest
you write your own class.<BR><BR><BR>> Any advice on how I could do this would be greatly appreciated.<BR><BR>Adding a new subelement to vtkCell3d is not that hard. Have a look in <BR>the CVS for vtkHexagonalPrism. They used to be much more lighter and <BR>should give you some clue on how to start. BTW I believe that your <BR>pyramid with 5 points on the base is a degenerate case of a pentagonalprism.<BR><BR>HTH<BR>Mathieu<BR><BR><BR></BLOCKQUOTE><p><br><hr size=1>
Find local movie times and trailers on <a href="http://au.rd.yahoo.com/mail/tagline/*http://au.movies.yahoo.com" target=_blank><b>Yahoo! Movies.</b></a><br>