[vtkusers] octahedral elements

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Nov 29 09:43:44 EST 2004


francesco wrote:
> hello to all
> 
> I'm trying to visualize some pro-mechanica results, but I'm unable to 
> create
> an octahedral cell.
> I've used cells of VTK_CONVEX_POINT_SET type, but this method doesn't work
> right in every cell
> 
> any hints?

Francesco,

	From the documentation:

vtkConvexPointSet is a concrete implementation that represents a *3D* 
cell defined by a convex set of points.


	So for a 2D cell you are better of using:

http://www.vtk.org/doc/nightly/html/classvtkPolygon.html

[vtkPolygon is a concrete implementation of vtkCell to represent a 2D 
n-sided polygon. The polygons cannot have any internal holes, and cannot 
self-intersect. Define the polygon with n-points ordered in the 
clockwise direction; do not repeat the last point.]

HTH
Mathieu
Ps: If you are doing anything heavily based on those cells I suggest you 
create your own 2D cell that handle octahedral cell.





More information about the vtkusers mailing list