#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cs_mesh.h"
#include "MEDCouplingUMesh.hxx"
Go to the source code of this file.
|  | 
| cs_medcoupling_mesh_t * | cs_medcoupling_mesh_from_base (cs_mesh_t *csmesh, const char *name, const char *selection_criteria, int elt_dim, int use_bbox) | 
|  | create a new cs_medcoupling_mesh_t instance based on cs_mesh_t  More... 
 | 
|  | 
| cs_medcoupling_mesh_t * | cs_medcoupling_mesh_from_ids (cs_mesh_t *csmesh, const char *name, cs_lnum_t n_elts, const cs_lnum_t elt_ids[], int elt_dim, int use_bbox) | 
|  | create a new cs_medcoupling_mesh_t instance based on cs_mesh_t  More... 
 | 
|  | 
| void | cs_medcoupling_mesh_destroy (cs_medcoupling_mesh_t *mesh) | 
|  | Destroy a cs_medcoupling_mesh_t.  More... 
 | 
|  | 
| void | cs_medcoupling_mesh_destroy_all (void) | 
|  | Destroy all cs_medcoupling_mesh_t instances.  More... 
 | 
|  | 
| int | cs_medcoupling_mesh_get_dim (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's spatial dimension.  More... 
 | 
|  | 
| cs_lnum_t | cs_medcoupling_mesh_get_n_elts (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's number of elements.  More... 
 | 
|  | 
| const cs_lnum_t * | cs_medcoupling_mesh_get_elt_list (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's (parent) elements list.  More... 
 | 
|  | 
| cs_lnum_t | cs_medcoupling_mesh_get_n_vertices (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's number of vertices.  More... 
 | 
|  | 
| const cs_lnum_t * | cs_medcoupling_mesh_get_vertex_list (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's (parent) vertices list.  More... 
 | 
|  | 
| const cs_lnum_t * | cs_medcoupling_mesh_get_connectivity (cs_medcoupling_mesh_t *m) | 
|  | Return a cs_medcoupling_mesh_t structure's (parent) elements list.  More... 
 | 
|  | 
| MEDCouplingUMesh * | cs_medcoupling_create_plane_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t length1, const cs_real_t length2) | 
|  | Returns a pointer to a MEDCouplingUMesh of a plane.  More... 
 | 
|  | 
| MEDCouplingUMesh * | cs_medcoupling_create_disc_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius, const int n_sectors) | 
|  | Returns a pointer to a MEDCouplingUMesh of a disc.  More... 
 | 
|  | 
| MEDCouplingUMesh * | cs_medcoupling_create_annulus_mesh (const cs_real_t origin[], const cs_real_t normal[], const cs_real_t radius1, const cs_real_t radius2, const int n_sectors) | 
|  | Returns a pointer to a MEDCouplingUMesh of an annulus.  More... 
 | 
|  | 
◆ cs_medcoupling_create_annulus_mesh()
Returns a pointer to a MEDCouplingUMesh of an annulus. 
- Parameters
- 
  
    | [in] | origin | Annulus origin coordinates |  | [in] | normal | Annulus normal vector |  | [in] | radius1 | Annulus inner radius |  | [in] | radius2 | Annulus outer radius |  | [in] | n_sectors | Number of sectors for discretization. If negative, default value of 36 is taken. |  
 
- Returns
- pointer to the MEDCouplingUMesh structure. 
 
 
◆ cs_medcoupling_create_disc_mesh()
      
        
          | MEDCouplingUMesh* cs_medcoupling_create_disc_mesh | ( | const cs_real_t | origin[], | 
        
          |  |  | const cs_real_t | normal[], | 
        
          |  |  | const cs_real_t | radius, | 
        
          |  |  | const int | n_sectors | 
        
          |  | ) |  |  | 
      
 
Returns a pointer to a MEDCouplingUMesh of a disc. 
- Parameters
- 
  
    | [in] | origin | Disc origin coordinates |  | [in] | normal | Disc normal vector |  | [in] | radius | Disc radius |  | [in] | n_sectors | Number of sectors for discretization. If negative, default value of 36 is taken. |  
 
- Returns
- pointer to the MEDCouplingUMesh structure. 
 
 
◆ cs_medcoupling_create_plane_mesh()
Returns a pointer to a MEDCouplingUMesh of a plane. 
- Parameters
- 
  
    | [in] | origin | Plane origin coordinates |  | [in] | normal | Plane normal vector |  | [in] | length1 | Plane's edge length along first axis |  | [in] | length2 | Plane's edge length along second axis |  
 
- Returns
- pointer to the MEDCouplingUMesh structure. 
 
 
◆ cs_medcoupling_mesh_destroy()
◆ cs_medcoupling_mesh_destroy_all()
      
        
          | void cs_medcoupling_mesh_destroy_all | ( | void |  | ) |  | 
      
 
 
◆ cs_medcoupling_mesh_from_base()
      
        
          | cs_medcoupling_mesh_t* cs_medcoupling_mesh_from_base | ( | cs_mesh_t * | csmesh, | 
        
          |  |  | const char * | name, | 
        
          |  |  | const char * | selection_criteria, | 
        
          |  |  | int | elt_dim, | 
        
          |  |  | int | use_bbox | 
        
          |  | ) |  |  | 
      
 
create a new cs_medcoupling_mesh_t instance based on cs_mesh_t 
- Parameters
- 
  
    | [in] | csmesh | pointer to cs_mesh_t instance |  | [in] | name | name of the mesh |  | [in] | selection_criteria | selection criteria string |  | [in] | elt_dim | dimension of elements (2: faces, 3: cells) |  | [in] | use_bbox | Use a reduced bounding box |  
 
- Returns
- pointer to the newly created cs_medcoupling_mesh_t struct 
 
 
◆ cs_medcoupling_mesh_from_ids()
create a new cs_medcoupling_mesh_t instance based on cs_mesh_t 
- Parameters
- 
  
    | [in] | csmesh | pointer to cs_mesh_t instance |  | [in] | name | name of the mesh |  | [in] | n_elts | local number of elements |  | [in] | elt_ids | list of local elements |  | [in] | elt_dim | dimension of elements (2: faces, 3: cells) |  | [in] | use_bbox | use a reduced bounding box |  
 
- Returns
- pointer to the newly created cs_medcoupling_mesh_t struct 
 
 
◆ cs_medcoupling_mesh_get_connectivity()
Return a cs_medcoupling_mesh_t structure's (parent) elements list. 
- Parameters
- 
  
  
- Returns
- ids of associated elements, or NULL 
 
 
◆ cs_medcoupling_mesh_get_dim()
Return a cs_medcoupling_mesh_t structure's spatial dimension. 
- Parameters
- 
  
  
- Returns
- associated spatial dimension 
 
 
◆ cs_medcoupling_mesh_get_elt_list()
Return a cs_medcoupling_mesh_t structure's (parent) elements list. 
- Parameters
- 
  
  
- Returns
- ids of associated elements, or NULL 
 
 
◆ cs_medcoupling_mesh_get_n_elts()
Return a cs_medcoupling_mesh_t structure's number of elements. 
- Parameters
- 
  
  
- Returns
- associated number of elements 
 
 
◆ cs_medcoupling_mesh_get_n_vertices()
Return a cs_medcoupling_mesh_t structure's number of vertices. 
- Parameters
- 
  
  
- Returns
- associated number of vertices 
 
 
◆ cs_medcoupling_mesh_get_vertex_list()
Return a cs_medcoupling_mesh_t structure's (parent) vertices list. 
- Parameters
- 
  
  
- Returns
- ids of associated vertices, or NULL if all or no local vertices o parent mesh are present.