[prev in list] [next in list] [prev in thread] [next in thread]
List: vtkusers
Subject: [vtkusers] How to use vtkOBBTree?
From: shiyuan <shiyuan001 () hotmail ! com>
Date: 2007-11-29 14:03:51
Message-ID: BAY139-W3BB76F4D64AF589D8A56F8F700 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,All
I want to compute Oriented Bounding Box of a STL model(a kind of polygonal model) to \
get three lengths of the OBB and I find vtkOBBTree has a member function :
void vtkOBBTree::ComputeOBB( vtkPoints * pts, double corner[3], double \
max[3], double mid[3], double min[3], double size[3] )
I guess this function can help me. From VTK Documentation,I got the following \
description:
Compute an OBB from the list of points given. Return the corner point and the three \
axes defining the orientation of the OBB. Also return a sorted list of relative \
"sizes" of axes for comparison purposes.
After wrote a test program, I found the max[3],mid[3] and min[3] specify three \
vectors which is orthogonal by ones and twos and they can form a coordinate system. \
But I don't know the meaning of arguments "corner[3]" and "size[3]" above exactly.If \
argument "corner[3]" specify the "minimum" point of the OBB,but the "corner[3]" value \
is less than "minimum" point of AABB when I test the same model.
Could someone please give me some help? I want to know:1.what are the arguments mean \
in Function ComputeOBB()?2.Is there any other methods to compute OBB of a polygonal \
model? I just need the three lengths of the OBB. Thanks in advance.
Dest wishes,
SHIYuan
_________________________________________________________________
Windows Live Photo gallery Êý ëÏà»úµÄ³¬¼¶°é £¬ÇáËɹÜÀíºÍ±à¼ÕÕƬ£¬»¹ÄÜÖÆ×÷È«¾°ÃÀͼ£¡
http://get.live.cn/product/photo.html
[Attachment #5 (text/html)]
<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,All<BR>
<BR>I want to compute Oriented Bounding Box of a STL model(a kind of polygonal model) \
to get three lengths of the OBB and I find vtkOBBTree has a member function :<BR> \
<BR> void vtkOBBTree::ComputeOBB( vtkPoints * pts, <BR> \
double corner[3], <BR> double max[3], <BR> \
double mid[3], <BR> double min[3], <BR> \
double size[3] <BR> )<BR> <BR>
I guess this function can help me. From VTK Documentation,I got the following \
description:<BR> <BR>
Compute an OBB from the list of points given. Return the corner point and the three \
axes defining the orientation of the OBB. Also return a sorted list of relative \
"sizes" of axes for comparison purposes. <BR> <BR>
After wrote a test program, I found the max[3],mid[3] and min[3] specify three \
vectors which is orthogonal by ones and twos and they can form a coordinate system. \
But I don't know the meaning of arguments "corner[3]" and "size[3]" above exactly.If \
argument "corner[3]" specify the "minimum" point of the OBB,but the "corner[3]" value \
is less than "minimum" point of AABB when I test the same model.<BR> <BR>
Could someone please give me some help? I want to know:<BR>1.what are the arguments \
mean in Function ComputeOBB()?<BR>2.Is there any other methods to compute OBB of a \
polygonal model? I just need the three lengths of the OBB.<BR> <BR>Thanks in \
advance.<BR> <BR>
<BR>
Dest wishes,<BR>
SHIYuan<BR>
<BR> <BR><BR><BR><br /><hr />ʹÓÃÐ Ò»´ú Windows Live Messenger ÇáËɽ»Á÷ºÍ¹²Ïí£¡ \
<a href='http://messenger.live.cn/' target='_new'>Á¢¼´ÌåÑ飡</a></body> </html>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic