petsc-master 2021-01-23
Report Typos and Errors


Given a cell and a face, as a set of vertices, return the oriented face, as a set of vertices, in faceVertices. The orientation is such that the face normal points out of the cell


#include "petscdmplex.h"    
#include "petscdmlabel.h"   
PetscErrorCode DMPlexGetOrientedFace(DM dm, PetscInt cell, PetscInt faceSize, const PetscInt face[], PetscInt numCorners, PetscInt indices[], PetscInt origVertices[], PetscInt faceVertices[], PetscBool *posOriented)
Not collective

Input Parameters

dm - The original mesh
cell - The cell mesh point
faceSize - The number of vertices on the face
face - The face vertices
numCorners - The number of vertices on the cell
indices - Local numbering of face vertices in cell cone
origVertices - Original face vertices

Output Parameter

faceVertices - The face vertices properly oriented
posOriented - PETSC_TRUE if the face was oriented with outward normal

See Also





Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages