<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jochen,<br>
<br>
You definitely want to use vtkPolyData for your purposes. If your room
is perfectly rectangular, you can use vtkCubeSource and set the X, Y, Z
lengths to the dimensions of your room. If the room is a complex shape,
you'll have to 'make' the walls manually. This is done by:<br>
<ul>
  <li>making a list of 3D points forming the vertices of the walls
(vtkPoints)</li>
  <li>setting the connectivity information (vtkCellArray) that creates
each polygon based on the integer ids of the vertices in the vtkPoints
object. For example, for a 'wall' you may use two triangles, or one
quadrilateral. Let's say you use one quad - just
myCellArray-&gt;InsertNextCell(4, 0, 1, 2, 3) where 0, 1, 2, and 3 are
indices into your vtkPoints. Repeat for all polygons.</li>
  <li>making a vtkPolyData and setting the points to your vtkPoints and
the Polys to your vtkCellArray</li>
  <li>connecting the output of the polyData to a mapper, and setting
the mapper on a vtkActor</li>
</ul>
HTH!<br>
<br>
Marc<br>
<br>
Jochen Giese wrote:
<blockquote cite="mid20070410154723.57AB019DC03@public.kitware.com"
 type="cite">
  <pre wrap="">Hallo,

In my first mail I have forgotten to set a subject, sorry, so I hope now
somebody answers to my questions.

I am a newbie, and search help. I make a visualization of acoustics in a
room, so I must make simple walls and other simple "polygon" objects, too,
which has no scalar value, but a color (maybe later texture).
What is the simplest and best way to make "polygons" with these properties?
(UnstructuredGrid or PolyData, where is the different?) If somebody give me
an example, I will be happy.
 
Thank you for helping me,
Jochen Giese

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
</body>
</html>