<div dir="ltr">Hi,<div><br></div><div>Is there a way to sub-divide a given vtkHexahedron (say parent hex) into 8 child hexes? Currently, I'm extracting the parent hex's corner vertices and determining the edge centers, face centers and body center. Next, I use these various vertices to define the vertices of each of the 8 child hexes. This works fine. But it doesn't form a maintainable piece of code as the algorithm relies on a specifiv indexing of vtkHexahedron to identify the pairs and quadraplets that form an edge and a face, respectively. The indexing as mentioned in the vtkHexahedron description is:</div><div><i><br></i></div><div><i>" <span style="color:rgb(0,0,0);font-family:Roboto,sans-serif">The hexahedron is defined by the eight points (0-7) where (0,1,2,3) is the base of the hexahedron which, using the right hand rule, forms a quadrilaterial whose normal points in the direction of the opposite face (4,5,6,7)."</span></i> </div><div><br></div><div>I'm worried that if this indexing changes internally in later releases of vtk then it might lead to a very difficult to find bug. </div><div><br></div><div>Any ideas about making it independent of the underlying indexing and/or making it more maintainable upon linking to a new vtk releases? </div><div><br></div><div>Thanks,</div><div>Bikash </div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div><div><font color="#666666">Bikash S. Kanungo<br></font></div><font color="#666666">PhD Student<br></font></div><font color="#666666">Computational Materials Physics Group<br></font></div><font color="#666666">Mechanical Engineering <br></font></div><font color="#666666">University of Michigan<br><br></font></div></div>
</div></div>