#include "petscdmplex.h" PetscErrorCode DMPlexSnapToGeomModel(DM dm, PetscInt p, PetscInt dE, const PetscScalar mcoords[], PetscScalar gcoords[])Not collective
dm | - The DMPlex object | |
p | - The mesh point | |
dE | - The coordinate dimension | |
mcoords | - A coordinate point lying on the mesh point |
gcoords | - The closest coordinate point on the geometry model associated with 'p' to the given point |
Note: Returns the original coordinates if no geometry model is found. Right now the only supported geometry model is EGADS. The coordinate dimension may be different from the coordinate dimension of the dm, for example if the transformation is extrusion.