<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">It's funny how sometimes you think a method exists, but doesn't (or I'm not looking at the right spot?)</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm not currently registered for pushing submits to the git repo, would someone be kind enough to PR this for me for inclusion?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I currently have this code as a helper function, but it would be nice if it would be in vtk... </p>
<p style="margin-top:0;margin-bottom:0">(I use this as a means to project all points of a bbox against a plane, so I need to iterate over all corners of the box)</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>inline void vtkBoundingBox::GetCorner(int corner, double p[3]) const</div>
<div>{</div>
<div><span style="white-space:pre"></span>if ((corner < 0) || (corner > 7))</div>
<div><span style="white-space:pre"></span>{</div>
<div><span style="white-space:pre"></span>p[0] = VTK_DOUBLE_MAX;</div>
<div><span style="white-space:pre"></span>p[1] = VTK_DOUBLE_MAX;</div>
<div><span style="white-space:pre"></span>p[2] = VTK_DOUBLE_MAX;</div>
<div><span style="white-space:pre"></span>return; // out of bounds</div>
<div><span style="white-space:pre"></span>}</div>
<div><br>
</div>
<div><span style="white-space:pre"></span>int ix = (corner & 1)        ? 1 : 0;  // 0,1,0,1,0,1,0,1</div>
<div><span style="white-space:pre"></span>int iy = ((corner >> 1) & 1) ? 1 : 0;  // 0,0,1,1,0,0,1,1</div>
<div><span style="white-space:pre"></span>int iz = (corner >> 2)       ? 1 : 0;  // 0,0,0,0,1,1,1,1</div>
<div><br>
</div>
<div><span style="white-space:pre"></span>const double* pts[2] = { this->MinPnt, this->MaxPnt };</div>
<div><span style="white-space:pre"></span>p[0] = pts[ix][0];</div>
<div><span style="white-space:pre"></span>p[1] = pts[iy][1];</div>
<div><span style="white-space:pre"></span>p[2] = pts[iz][2];</div>
<div>}</div>
<div><br>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Thank you !</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
</div>
</div>
</div>
</body>
</html>