:orphan: # DMPlexGenerate Generates a mesh. ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexGenerate(DM boundary, const char name[], PetscBool interpolate, DM *mesh) ``` Not Collective ## Input Parameters - ***boundary -*** The `DMPLEX` boundary object - ***name -*** The mesh generation package name - ***interpolate -*** Flag to create intermediate mesh elements ## Output Parameter - ***mesh -*** The `DMPLEX` object ## Options Database Keys - ***-dm_plex_generate -*** package to generate mesh, for example, triangle, ctetgen or tetgen - ***-dm_generator -*** package to generate mesh, for example, triangle, ctetgen or tetgen ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexCreate()`, `DMRefine()` ## Level intermediate ## Location src/dm/impls/plex/plexgenerate.c ## Implementations DMPlexGenerate_CTetgen in src/dm/impls/plex/generators/ctetgen/ctetgenerate.c
DMPlexGenerate_Tetgen in src/dm/impls/plex/generators/tetgen/tetgenerate.cxx
DMPlexGenerate_Triangle in src/dm/impls/plex/generators/triangle/trigenerate.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexgenerate.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)