<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>> Date: Tue, 3 Nov 2009 21:55:08 +0000<br>> From: anja.ende@googlemail.com<br>> To: vtkusers@vtk.org<br>> Subject: [vtkusers] generating walls of a room.<br>> <br>> Hello,<br>> <br>> I had made a post about a room design application where I would have<br>> various vtkActors rendering different bit of furniture geometry that I<br>> would import from a CAD application.<br>> <br>> My question was about designing the geometry of the room and how I can<br>> simulate the 6 walls of a 5 x 5 x 5 room and have a vtkCamera so that<br>> I can change the view perspective.<br>> <br>> I realize that I might not have asked the question in more detail, so<br>> I would attempt again. I certainly hope someone can help me with the<br>> vtk side of things.<br>> <br>> So, what I was thinking was that the 6 walls can be represented by 8<br>> corner points. If we assume that:<br>> - x increases from left to right.<br>> - y increases from bottom to top<br>> - z increases from screen to viewer.<br>> <br>> The the 8 corner points would define the wall geometry. Now, I would<br>> also like to attach physical meaning to the dimensions. So, if my wall<br>> is 5 m x 5 m x 5m, I am guessing the vtk data structure can hold this<br>> information and allow me to go seamlessly from screen coordinates to<br>> real world coordinates.<br>> <br>> My question is how do I set all this up in vtk and render it. I would<br>> like to set the walls so that the axes values go from -1 to +1. I<br>> guess I could easily convert from screen (int) coordinates to real<br>> world and vice versa.<br>> <br>> I am guessing I could use a combination of vtkPlane objects to create<br>> this scene but have no idea on how to go about it. What data structure<br>> should I use for holding my wall parameters (vtkDataSet,<br>> vtkRectilinearGrid??).<br>> <br>> Also, if I want to set the origin at a certain arbitrary point in the<br>> room, how do I go about it?<br>> I hope this is a bit more clear. As you can imagine, I am completely<br>> lost on the VTK side of things. I would really appreciate any help<br>> anyone can give me.<br>> <br>> Many thanks,<br>> <br>> Anja<br>> _______________________________________________<br>> Powered by www.kitware.com<br>> <br>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>> <br>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>> <br>> Follow this link to subscribe/unsubscribe:<br>> 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>