next up previous contents
Next: Global Function DrawTet() Up: Functions Previous: Global Function Draw3DBlock()   Contents


Global Function DrawHex()

This divides a right regular hexahedron into tetrahedra, and loops over them to generate triangles on each one. It calculates edge and whichplane parameters so it can use DrawTetWithPlane directly.

int DrawHex ( PetscScalar* coords, PetscScalar* vals, PetscScalar isoquant, PetscScalar* color )


\begin{cxrefarglist}
\cxrefargitem{int DrawHex} Returns 0 or an error code.
\cxr...
...argitem{PetscScalar* color} R,G,B,A quad for this hexahedron.
\end{cxrefarglist}



root 2002-06-18