Namespace ae108::meshing::cppgmsh
Namespace List > ae108 > meshing > cppgmsh
Classes
| Type | Name |
|---|---|
| class | Context |
| struct | Node <Dimension> |
Public Functions
| Type | Name |
|---|---|
| std::array< double, 16 > | as_affine_transform (const std::array< double, 3 > & translation) noexcept Returns affine transform (16 entries of a 4x4 matrix, by row) based on translation. |
| std::pair< int, int > | construct_box (const std::array< double, 3 > origin, const std::array< double, 3 > side_lengths) noexcept Constructs a parallelepipedic box using gmsh. Returns the entity. |
| std::vector< std::pair< int, int > > | construct_cylinders (const std::vector< std::array< double, 3 > > & nodes, const std::vector< std::array< std::size_t, 2 > > & connectivity, const std::vector< double > & radii, const bool capped=true) noexcept Constructs cylinders of differing radius from each segment using gmsh. Returns the entity. |
| std::pair< int, int > | construct_polyhedron (const BoundaryRepresentation< SizeType, ValueType, 3 > & brep) noexcept Constructs a solid polyhedron from a BoundaryRepresentation using gmsh. Returns the gmsh entity. |
| std::pair< int, int > | construct_rectangle (const std::array< double, 3 > origin, const std::array< double, 2 > side_lengths, const double rounded_radius=0.) noexcept Constructs a rectangle, with lower left corner at {x, y, z} and upper right corner at {x+dx,y+dy,z}. Returns the gmsh entity. |
| std::vector< std::pair< int, int > > | copy_entities (const std::vector< std::pair< int, int > > & entities) noexcept Copies the given entities and returns the copies. |
| std::tuple< std::vector< std::array< double, coordinate_dimension > >, std::vector< std::vector< std::size_t > >, std::map< std::size_t, std::size_t >, std::map< std::size_t, std::size_t > > | extract_mesh (const std::size_t element_dimension=coordinate_dimension) noexcept Extract mesh from Gmsh. |
| std::vector< std::pair< int, int > > | extrude_entities (const std::vector< std::pair< int, int > > & entities, const std::array< double, 3 > & translation, const bool extrude_mesh=false, const int number_of_layers=1) noexcept Extrudes the given entities along a translation vector. Returns the extruded entities. |
| std::pair< int, int > | extrude_surface (const int surface_tag, const std::array< double, 3 > & from, const std::array< double, 3 > & to, const std::array< double, 3 > & surface_normal={{0, 0, 1}}) noexcept Extrudes the surface entity from origin to target. |
| std::vector< std::pair< int, int > > | fragment_entities (const std::vector< std::pair< int, int > > & entities) noexcept Fuses the given entities, while keeping/creating a separate entity for each boolean fragment. All interfaces among the fragments are made conformal. |
| std::vector< std::pair< int, int > > | fuse_entities (const std::vector< std::pair< int, int > > & entities) noexcept Returns vector of fused entities. |
| void | generate_mesh (const int dimension=3, const int order=1, const int algorithm=6) noexcept Generate mesh. The mesh can be exported with extract_mesh. |
| std::vector< std::pair< int, int > > | get_boundary_of (const std::vector< std::pair< int, int > > & entities, const bool recursive=false) noexcept Returns boundary entities (dim-1) of the specified entities, or optionally the boundary points, if recursive = true. |
| std::array< double, 3 > | get_centroid_of (const std::pair< int, int > & entity) noexcept Returns the centroid coordinates of the entity. |
| std::array< double, 3 > | get_coords_of (const int point_tag) noexcept Returns coordinates of point. |
| std::vector< std::array< double, 3 > > | get_coords_of (const std::vector< int > & point_tags) noexcept Returns coordinates of points. |
| std::vector< std::pair< int, std::size_t > > | get_elements_in (const std::pair< int, int > & entity) noexcept Returns the element types and tags of the elements in the specified entity. |
| std::vector< std::pair< int, int > > | get_entities_in (const BoundingBox< std::array< double, 3 > > & bounding_box, const int dimension, const double tol=1e-6) noexcept Returns all entities of dimension inside of a bounding box. |
| std::vector< std::pair< int, int > > | get_entities_in (const std::pair< int, int > & physical_group) noexcept Returns all entities in the specified physical group. |
| std::vector< std::pair< int, int > > | get_entities_of (const int dim=-1) noexcept Returns all geometric entities of all or just the specified dimension. |
| std::vector< Node< Dimension > > | get_nodes_of (const std::pair< int, int > & entity, const bool remove_duplicates=true) noexcept Get the nodes of one or more entities. Optionally avoids duplicate nodes (e.g. on entity boundaries). Returns a vector of Nodes. |
| std::array< double, 3 > | get_normal_of (const int surface_tag) noexcept Returns the normal of a surface. |
| std::pair< std::vector< std::size_t >, std::vector< std::size_t > > | get_periodic_nodes_of (const std::pair< int, int > & target_entity, std::pair< int, int > * source_entity=nullptr, std::array< double, 16 > * affine_transform=nullptr) noexcept Returns the corresponding node tags of the target entity (out.first) and the source entity (out.second) |
| std::vector< std::pair< int, int > > | get_physical_groups (const int dim=-1) noexcept Returns the physical groups in the model. |
| std::vector< int > | get_points_of (const std::pair< int, int > & entity) noexcept Returns tags of all points of an entity. |
| void | heal_periodic_domains (const BoundingBox< std::array< double, 3 > > & source, const BoundingBox< std::array< double, 3 > > & target, const double tol=1e-9) noexcept Matches points between all periodic surfaces in the source and target domain. If a point on the source surface is missing on the target surface, it will be added to the target surface. Assumption: Source and target domain are translational periodic. |
| void | heal_periodic_surfaces (const int source, const int target, const std::array< double, 3 > & translation, const double tol=1e-9) noexcept Matches points between source and target surface. If a point on the source surface is missing on the target surface, it will be added to the target surface. Source and target surface are translational periodic. |
| std::vector< std::pair< int, int > > | import_shapes (const std::string & fileName, const bool highestDimOnly=true) noexcept Imports shapes from a BREP, STEP or IGES file. |
| std::vector< std::pair< int, int > > | intersect_entities (const std::vector< std::pair< int, int > > & object_entities, const std::vector< std::pair< int, int > > & tool_entities, const bool remove_object=true, const bool remove_tool=true) noexcept Returns vector of intersected entities. |
| void | read_file (const std::string & path) noexcept Reads a file. The export format is determined by the file extension (e.g. *.vtk). |
| void | remove_entities (const std::vector< std::pair< int, int > > & entities, const bool recursive=false) noexcept Removes the given entities. |
| void | rotate_entities (const std::vector< std::pair< int, int > > & entities, const std::array< double, 3 > & center, const std::array< double, 3 > & direction, double angle) noexcept Rotates the given entities. |
| void | set_domain_entities_periodic (const BoundingBox< std::array< double, 3 > > & source, const BoundingBox< std::array< double, 3 > > & target, const int dim, const double tol=1e-9) noexcept Set the meshes of the entities in domain target as periodic copies of the meshes of entities in domain source. |
| void | set_expert_mode (const bool enable=true) noexcept Enables/disables expert mode (to disable all the messages and user input requests meant for inexperienced users) |
| void | set_granularity (const double granularity) noexcept Sets the mesh element length scale. |
| void | set_periodic (const std::vector< std::pair< int, int > > & target_entities, const std::pair< int, int > & source_entity, const std::array< double, 16 > & affine_transform) noexcept Sets the mesh of all target entities as periodic copies of the source entity, using the affine transformation. |
| std::pair< int, int > | set_physical_group_of (const std::vector< std::pair< int, int > > & entities) noexcept Adds entities to a physical group. Returns the tag of the added group. |
| void | synchronize () noexcept Synchronize the built-in CAD representation with the current Gmsh model. |
| std::vector< std::pair< int, int > > | translate_entities (std::vector< std::pair< int, int > > entities, const std::array< double, 3 > & translation, const bool copy=false) noexcept Translates the given entities by a vector or makes a translated copy of the entities. Returns the translated entity. |
| void | write_file (const std::string & path) noexcept Writes a file. |
Public Functions Documentation
function as_affine_transform
Returns affine transform (16 entries of a 4x4 matrix, by row) based on translation.
std::array< double, 16 > ae108::meshing::cppgmsh::as_affine_transform (
const std::array< double, 3 > & translation
) noexcept
Parameters:
translationThe 3D translation vector.
function construct_box
Constructs a parallelepipedic box using gmsh. Returns the entity.
std::pair< int, int > ae108::meshing::cppgmsh::construct_box (
const std::array< double, 3 > origin,
const std::array< double, 3 > side_lengths
) noexcept
Parameters:
originPosition of the box originside_lengthsSide lengths of x-, y-, and z-side.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2398
function construct_cylinders
Constructs cylinders of differing radius from each segment using gmsh. Returns the entity.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::construct_cylinders (
const std::vector< std::array< double, 3 > > & nodes,
const std::vector< std::array< std::size_t, 2 > > & connectivity,
const std::vector< double > & radii,
const bool capped=true
) noexcept
Parameters:
nodesNode positions.connectivityNodal connectivity of each segment.radiiRadii of all segments.cappedOption to add a cap on each cylinder end.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2414
function construct_polyhedron
Constructs a solid polyhedron from a BoundaryRepresentation using gmsh. Returns the gmsh entity.
template<class SizeType, class ValueType>
std::pair< int, int > ae108::meshing::cppgmsh::construct_polyhedron (
const BoundaryRepresentation < SizeType, ValueType, 3 > & brep
) noexcept
Parameters:
brepA boundary representation containing the polyhedron.
function construct_rectangle
Constructs a rectangle, with lower left corner at {x, y, z} and upper right corner at {x+dx,y+dy,z}. Returns the gmsh entity.
std::pair< int, int > ae108::meshing::cppgmsh::construct_rectangle (
const std::array< double, 3 > origin,
const std::array< double, 2 > side_lengths,
const double rounded_radius=0.
) noexcept
Parameters:
originPosition of the rectangle origin {x,y,z}.side_lengthsSide lengths: {dx,dy}, {dy,dz} or {dx,dz}, according to plane.rounded_radiusIf > 0 the corners are rounded.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2229
function copy_entities
Copies the given entities and returns the copies.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::copy_entities (
const std::vector< std::pair< int, int > > & entities
) noexcept
Parameters:
entitiesOriginal entities.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2729
function extract_mesh
Extract mesh from Gmsh.
template<std::size_t coordinate_dimension>
std::tuple< std::vector< std::array< double, coordinate_dimension > >, std::vector< std::vector< std::size_t > >, std::map< std::size_t, std::size_t >, std::map< std::size_t, std::size_t > > ae108::meshing::cppgmsh::extract_mesh (
const std::size_t element_dimension=coordinate_dimension
) noexcept
Parameters:
element_dimensiondimension of the elements of interest.
function extrude_entities
Extrudes the given entities along a translation vector. Returns the extruded entities.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::extrude_entities (
const std::vector< std::pair< int, int > > & entities,
const std::array< double, 3 > & translation,
const bool extrude_mesh=false,
const int number_of_layers=1
) noexcept
Parameters:
entitiesEntities to extrude_entities.translationExtrusion vector.extrude_meshIf true, the mesh of the base area of the extruded bodies will be extruded as well, i.e. the same layer of 3D elements will be repeated several times. Otherwise, The bodies are meshed as general 3D bodies.number_of_layersNumber of element layers (if extrude_mesh is true).
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2514
function extrude_surface
Extrudes the surface entity from origin to target.
std::pair< int, int > ae108::meshing::cppgmsh::extrude_surface (
const int surface_tag,
const std::array< double, 3 > & from,
const std::array< double, 3 > & to,
const std::array< double, 3 > & surface_normal={{0, 0, 1}}
) noexcept
Parameters:
surface_tagTag of the surface defining the cross-section in xy-plane.fromPosition of the origin.toPosition of the target.surface_normalNormal of the surface.
function fragment_entities
Fuses the given entities, while keeping/creating a separate entity for each boolean fragment. All interfaces among the fragments are made conformal.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::fragment_entities (
const std::vector< std::pair< int, int > > & entities
) noexcept
Parameters:
entitiesSeparate entities.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2651
function fuse_entities
Returns vector of fused entities.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::fuse_entities (
const std::vector< std::pair< int, int > > & entities
) noexcept
Parameters:
entitiesSeperate entities.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2600
function generate_mesh
Generate mesh. The mesh can be exported with extract_mesh.
void ae108::meshing::cppgmsh::generate_mesh (
const int dimension=3,
const int order=1,
const int algorithm=6
) noexcept
Parameters:
dimensionThe desired meshing dimension (e.g. volume (3) or surface (2) mesh).orderThe desired element order. See gmsh docs.algorithmThe desired meshing algorithm. See gmsh docs.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L585
function get_boundary_of
Returns boundary entities (dim-1) of the specified entities, or optionally the boundary points, if recursive = true.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::get_boundary_of (
const std::vector< std::pair< int, int > > & entities,
const bool recursive=false
) noexcept
Parameters:
entitiesEntities of interest.recursiveIf true, returns boundary points (dim=0).
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L284
function get_centroid_of
Returns the centroid coordinates of the entity.
std::array< double, 3 > ae108::meshing::cppgmsh::get_centroid_of (
const std::pair< int, int > & entity
) noexcept
Parameters:
entityThe point tag.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2834
function get_coords_of
Returns coordinates of point.
std::array< double, 3 > ae108::meshing::cppgmsh::get_coords_of (
const int point_tag
) noexcept
Parameters:
point_tagThe point tag.
function get_coords_of
Returns coordinates of points.
std::vector< std::array< double, 3 > > ae108::meshing::cppgmsh::get_coords_of (
const std::vector< int > & point_tags
) noexcept
Parameters:
point_tagsThe point tags.
function get_elements_in
Returns the element types and tags of the elements in the specified entity.
std::vector< std::pair< int, std::size_t > > ae108::meshing::cppgmsh::get_elements_in (
const std::pair< int, int > & entity
) noexcept
Parameters:
entityThe entity {dim, tag}.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L771
function get_entities_in
Returns all entities of dimension inside of a bounding box.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::get_entities_in (
const BoundingBox < std::array< double, 3 > > & bounding_box,
const int dimension,
const double tol=1e-6
) noexcept
Parameters:
bounding_boxThe bounding box or search domain.dimensionEntity dimension, i.e 3-volume, 2-surface, 1-line, 0-pointtolSpatial tolerance.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L307
function get_entities_in
Returns all entities in the specified physical group.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::get_entities_in (
const std::pair< int, int > & physical_group
) noexcept
Parameters:
physical_groupThe physical group {dim, tag}.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L230
function get_entities_of
Returns all geometric entities of all or just the specified dimension.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::get_entities_of (
const int dim=-1
) noexcept
Parameters:
dimThe dimension of interest. If < 0, the entities of all dimensions are returned.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2792
function get_nodes_of
Get the nodes of one or more entities. Optionally avoids duplicate nodes (e.g. on entity boundaries). Returns a vector of Nodes.
template<std::size_t Dimension>
std::vector< Node < Dimension > > ae108::meshing::cppgmsh::get_nodes_of (
const std::pair< int, int > & entity,
const bool remove_duplicates=true
) noexcept
Parameters:
dimThe dimension of the model entities of interest. Set to < 0 to get all nodes of the mesh.tagThe tag of the model entity of interest. Set to < 0 to get the nodes of all entities of dimension dim.remove_duplicatesIf true, node duplicates are removed.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L662
function get_normal_of
Returns the normal of a surface.
std::array< double, 3 > ae108::meshing::cppgmsh::get_normal_of (
const int surface_tag
) noexcept
Parameters:
surface_tagThe surface tag.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L462
function get_periodic_nodes_of
Returns the corresponding node tags of the target entity (out.first) and the source entity (out.second)
std::pair< std::vector< std::size_t >, std::vector< std::size_t > > ae108::meshing::cppgmsh::get_periodic_nodes_of (
const std::pair< int, int > & target_entity,
std::pair< int, int > * source_entity=nullptr,
std::array< double, 16 > * affine_transform=nullptr
) noexcept
Parameters:
target_entityTarget entity.source_entityOptional output of the source entity.affine_transformOptional output of the affine transformation.
function get_physical_groups
Returns the physical groups in the model.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::get_physical_groups (
const int dim=-1
) noexcept
Parameters:
dimThe dimension of the physical groups to return, if < 0, the groups of all dimensions are returned.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L223
function get_points_of
Returns tags of all points of an entity.
std::vector< int > ae108::meshing::cppgmsh::get_points_of (
const std::pair< int, int > & entity
) noexcept
Parameters:
entityThe entity.
function heal_periodic_domains
Matches points between all periodic surfaces in the source and target domain. If a point on the source surface is missing on the target surface, it will be added to the target surface. Assumption: Source and target domain are translational periodic.
void ae108::meshing::cppgmsh::heal_periodic_domains (
const BoundingBox < std::array< double, 3 > > & source,
const BoundingBox < std::array< double, 3 > > & target,
const double tol=1e-9
) noexcept
Parameters:
sourceSource domain spanned by a bounding box.targetTarget domain spanned by a bounding box.tolTolerance for point matching.
function heal_periodic_surfaces
Matches points between source and target surface. If a point on the source surface is missing on the target surface, it will be added to the target surface. Source and target surface are translational periodic.
void ae108::meshing::cppgmsh::heal_periodic_surfaces (
const int source,
const int target,
const std::array< double, 3 > & translation,
const double tol=1e-9
) noexcept
Parameters:
sourceSource surface tag.targetTarget surface tag.translationTranslation vector from source to target.tolTolerance for point matching.
function import_shapes
Imports shapes from a BREP, STEP or IGES file.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::import_shapes (
const std::string & fileName,
const bool highestDimOnly=true
) noexcept
Parameters:
fileNameName of the imported file.highestDimOnlyIf true, only the highest dimensional entities are imported.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2770
function intersect_entities
Returns vector of intersected entities.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::intersect_entities (
const std::vector< std::pair< int, int > > & object_entities,
const std::vector< std::pair< int, int > > & tool_entities,
const bool remove_object=true,
const bool remove_tool=true
) noexcept
Parameters:
object_entitiesObject entities.tool_entitiesTool entities.remove_objectIf true, the object entities will be removed after the intersection was performed.remove_toolIf true, the tool entities will be removed after the intersection was performed.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2616
function read_file
Reads a file. The export format is determined by the file extension (e.g. *.vtk).
void ae108::meshing::cppgmsh::read_file (
const std::string & path
) noexcept
Parameters:
pathThe file name.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L77
function remove_entities
Removes the given entities.
void ae108::meshing::cppgmsh::remove_entities (
const std::vector< std::pair< int, int > > & entities,
const bool recursive=false
) noexcept
Parameters:
entitiesEntities to remove.recursiveIf true, all entities on the boundaries of the given entity are removed as well, down to dimension 0 (points).
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2737
function rotate_entities
Rotates the given entities.
void ae108::meshing::cppgmsh::rotate_entities (
const std::vector< std::pair< int, int > > & entities,
const std::array< double, 3 > & center,
const std::array< double, 3 > & direction,
double angle
) noexcept
Parameters:
entitiesEntities to rotate.centerCenter of rotation.directionDirection of the axis of rotation.angleAngle of rotation measured in radians.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2673
function set_domain_entities_periodic
Set the meshes of the entities in domain target as periodic copies of the meshes of entities in domain source.
void ae108::meshing::cppgmsh::set_domain_entities_periodic (
const BoundingBox < std::array< double, 3 > > & source,
const BoundingBox < std::array< double, 3 > > & target,
const int dim,
const double tol=1e-9
) noexcept
Parameters:
sourceSource domain.targetTarget domain.dimDimension of the entities (1 or 2).tolSpatial tolerance for entity matching.
function set_expert_mode
Enables/disables expert mode (to disable all the messages and user input requests meant for inexperienced users)
void ae108::meshing::cppgmsh::set_expert_mode (
const bool enable=true
) noexcept
Parameters:
enableSpecifies if the expert mode should be enabled (true) or disabled (false).
function set_granularity
Sets the mesh element length scale.
void ae108::meshing::cppgmsh::set_granularity (
const double granularity
) noexcept
Parameters:
granularityThe desired maximum mesh size for the volume mesh.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L1225
function set_periodic
Sets the mesh of all target entities as periodic copies of the source entity, using the affine transformation.
void ae108::meshing::cppgmsh::set_periodic (
const std::vector< std::pair< int, int > > & target_entities,
const std::pair< int, int > & source_entity,
const std::array< double, 16 > & affine_transform
) noexcept
The function supportes line (dim=1) and surface (dim=2) entities. Target and surface entity need to have the same dimension.
Parameters:
target_entitiesTarget entities.source_entitySource entity.affine_transformAffine transformation matrix (4x4 matrix, by row)
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L1423
function set_physical_group_of
Adds entities to a physical group. Returns the tag of the added group.
std::pair< int, int > ae108::meshing::cppgmsh::set_physical_group_of (
const std::vector< std::pair< int, int > > & entities
) noexcept
Parameters:
dimThe dimension of the model entities to be grouped.tagsThe tags of the model entities to be grouped.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L247
function synchronize
Synchronize the built-in CAD representation with the current Gmsh model.
void ae108::meshing::cppgmsh::synchronize () noexcept
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L1983
function translate_entities
Translates the given entities by a vector or makes a translated copy of the entities. Returns the translated entity.
std::vector< std::pair< int, int > > ae108::meshing::cppgmsh::translate_entities (
std::vector< std::pair< int, int > > entities,
const std::array< double, 3 > & translation,
const bool copy=false
) noexcept
Parameters:
entitiesEntities to translate.translationtranslation vector.copyIt true, a copy of the entities is translated.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L2663
function write_file
Writes a file.
void ae108::meshing::cppgmsh::write_file (
const std::string & path
) noexcept
Parameters:
pathThe bounding box or search domain.
Note:
https://gitlab.onelab.info/gmsh/gmsh/-/blob/gmsh_4_8_4/api/gmsh.h#L89
The documentation for this class was generated from the following file meshing/src/include/ae108/meshing/cppgmsh/as_affine_transform.h