#include "petscdmplextransform.h" PetscErrorCode DMPlexTransformExtrudeSetNormalFunction(DMPlexTransform tr, PetscSimplePointFunc normalFunc)Not collective
tr | - The DMPlexTransform | |
normalFunc | - A function determining the extrusion direction |
Note: The calling sequence for the function is normalFunc(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt r, PetscScalar u[], void *ctx)
dim - The coordinate dimension of the original mesh (usually a surface)
time - The current time, or 0.
x - The location of the current normal, in the coordinate space of the original mesh
r - The extrusion replica number (layer number) of this point
u - The user provides the computed normal on output; the sign and magnitude is not significant
ctx - An optional user context