Closed erelson closed 11 years ago
This has been implemented. See sample_hexahedra()
in mcnp_source/sample_moab.F90
for implemented code.
This is a useful capability but probably not general enough for real hexahedron sampling. In general, for an unstructured mesh, I would assume the opposite - that a hexahedron is not a parallelepiped. The methods for sampling this would derive from finite element discretizations, but may not be well-developed in the literature.
I have been taking the approach of supporting mixed tet/hex meshes (i.e. for #3). After not identifying any methods for sampling general hexahedra, I believe the best approach is therefore to assume any given hexahedron is a parallelepiped (and probably a right angle-only parallelepiped...).
Sampling a parallelepiped is a straightforward algorithm. For points a through h, with MOAB's vertice ordering:
Where a(1)=a_x, a(2)=a_y, etc.