[vtkusers] Use of vtkCellArray's InsertNextCell method from java
gbiv
gbivins4 at gmail.com
Thu Jun 19 09:05:29 EDT 2008
Hi Phil,
The problem is that cells are implicitly defined in StructuredGrids, ie each
cell's topology is defined only by the x/y/z spacing and the overall bounds
of the dataset. Therefore the InsertNextCell method isn't needed. Only
UnstructuredGrids implement the InsertNextCell method.
(See example for structured grids)
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/DataManipulation
/Cxx/SGrid.cxx?root=VTK&content-type=text/plain
If you are really only wanting to create a cube try using vtkCubeSource or
if you want 8 individual planes try vtkPlaneSource.
biv
Phil Goddard wrote:
>
>
> I'm trying to visualize some planes in 3D space (e.g. 8 such planes
> appropriately oriented would look like a cube) and had been planning on
> using the InsertNextCell method of vtkCellArray in conjunction with
> vtkStructuredGrid.
> However it seems that the java wrappers do no implement this method (which
> requires a vtkTypeId as the input data type).
>
> Can anyone confirm the non implementation of this method for me (or
> perhaps
> I'm just misusing it).
> And if so, recommend another approach?
>
> Much appreciated.
> Phil.
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
View this message in context: http://www.nabble.com/Use-of-vtkCellArray%27s-InsertNextCell-method-from-java-tp17876807p18008588.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list