<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Might vtkCubeSource be a solution to your problem?<br><br>&gt; Date: Tue, 3 Nov 2009 21:55:08 +0000<br>&gt; From: anja.ende@googlemail.com<br>&gt; To: vtkusers@vtk.org<br>&gt; Subject: [vtkusers] generating walls of a room.<br>&gt; <br>&gt; Hello,<br>&gt; <br>&gt; I had made a post about a room design application where I would have<br>&gt; various vtkActors rendering different bit of furniture geometry that I<br>&gt; would import from a CAD application.<br>&gt; <br>&gt; My question was about designing the geometry of the room and how I can<br>&gt; simulate the 6 walls of a 5 x 5 x 5 room and have a vtkCamera so that<br>&gt; I can change the view perspective.<br>&gt; <br>&gt; I realize that I might not have asked the question in more detail, so<br>&gt; I would attempt again. I certainly hope  someone can help me with the<br>&gt; vtk side of things.<br>&gt; <br>&gt; So, what I was thinking was that the 6 walls can be represented by 8<br>&gt; corner points. If we assume that:<br>&gt; - x increases from left to right.<br>&gt; - y increases from bottom to top<br>&gt; - z increases from screen to viewer.<br>&gt; <br>&gt; The the 8 corner points would define the wall geometry. Now, I would<br>&gt; also like to attach physical meaning to the dimensions. So, if my wall<br>&gt; is 5 m x 5 m x 5m, I am guessing the vtk data structure can hold this<br>&gt; information and allow me to go seamlessly from screen coordinates to<br>&gt; real world coordinates.<br>&gt; <br>&gt; My question is how do I set all this up in vtk and render it. I would<br>&gt; like to set the walls so that the axes values go from -1 to +1. I<br>&gt; guess I could easily convert from screen (int) coordinates to real<br>&gt; world and vice versa.<br>&gt; <br>&gt; I am guessing I could use a combination of vtkPlane objects to create<br>&gt; this scene but have no idea on how to go about it. What data structure<br>&gt; should I use for holding my wall parameters (vtkDataSet,<br>&gt; vtkRectilinearGrid??).<br>&gt; <br>&gt; Also, if I want to set the origin at a certain arbitrary point in the<br>&gt; room, how do I go about it?<br>&gt; I hope this is a bit more clear. As you can imagine, I am completely<br>&gt; lost on the VTK side of things. I would really appreciate any help<br>&gt; anyone can give me.<br>&gt; <br>&gt; Many thanks,<br>&gt; <br>&gt; Anja<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; <br>&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br>                                               <br /><hr />Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! <a href='http://www.portable-windows.com/' target='_new'>En savoir plus</a></body>
</html>