<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>[vtkusers] Setting up a vtkCamera with a general perspectivetransform</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText37431 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>Hi Everybody,</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Is there a way to get exactly 8 points from vtkCubeSource?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>When i create a vtkCubeSource and check for its number of points,
it returns 24. This is correct if all polygon faces do not meet at the seams.
But shouldn't vtkCubeSource generate a tightly bounded set of polygons that
join at the seams?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>My code:</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>double My_Bounds[6] = { -106.5552, 93.4447, -70.0502, 129.9497,
0.0, 200.0 };</DIV>
<DIV dir=ltr>vtkCubeSource *CS = vtkCubeSource::New()</DIV>
<DIV dir=ltr>CS->SetBounds(My_Bounds); </DIV>
<DIV dir=ltr>CS-Update();</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>vtkPoints *P = CS->GetOutput()->GetPoints();</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>int npoints = P->GetNumberOfPoints(); // returns 24</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>I tried using vtkTriangleFilter -> vtkCleanPolyData... same
results, still get 24 points.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>I checked the points and the repeated points should merge
as they are identical in value. But that doesn't seem to work.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Any ideas?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Many thanks, Theo.</DIV></DIV>
</BODY>
</HTML>