pub const GMSH_API_VERSION: &[u8; 7] = b"4.15.2\0";
pub const GMSH_API_VERSION_MAJOR: u32 = 4;
pub const GMSH_API_VERSION_MINOR: u32 = 15;
pub const GMSH_API_VERSION_PATCH: u32 = 2;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: u128,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
["Offset of field: max_align_t::__clang_max_align_nonce1"]
[::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
["Offset of field: max_align_t::__clang_max_align_nonce2"]
[::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
};
unsafe extern "C" {
pub fn gmshFree(p: *mut ::std::os::raw::c_void);
}
unsafe extern "C" {
pub fn gmshMalloc(n: usize) -> *mut ::std::os::raw::c_void;
}
unsafe extern "C" {
pub fn gmshInitialize(
argc: ::std::os::raw::c_int,
argv: *mut *mut ::std::os::raw::c_char,
readConfigFiles: ::std::os::raw::c_int,
run: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshIsInitialized(ierr: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshFinalize(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshOpen(fileName: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshMerge(fileName: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshWrite(fileName: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshClear(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshOptionSetNumber(
name: *const ::std::os::raw::c_char,
value: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionGetNumber(
name: *const ::std::os::raw::c_char,
value: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionSetString(
name: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionGetString(
name: *const ::std::os::raw::c_char,
value: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionSetColor(
name: *const ::std::os::raw::c_char,
r: ::std::os::raw::c_int,
g: ::std::os::raw::c_int,
b: ::std::os::raw::c_int,
a: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionGetColor(
name: *const ::std::os::raw::c_char,
r: *mut ::std::os::raw::c_int,
g: *mut ::std::os::raw::c_int,
b: *mut ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOptionRestoreDefaults(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelAdd(name: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelRemove(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelList(
names: *mut *mut *mut ::std::os::raw::c_char,
names_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetCurrent(
name: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetCurrent(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetFileName(
fileName: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetFileName(
fileName: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntities(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetEntityName(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntityName(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
name: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelRemoveEntityName(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetPhysicalGroups(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetPhysicalGroupsEntities(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
entities: *mut *mut *mut ::std::os::raw::c_int,
entities_n: *mut *mut usize,
entities_nn: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntitiesForPhysicalGroup(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
tags: *mut *mut ::std::os::raw::c_int,
tags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntitiesForPhysicalName(
name: *const ::std::os::raw::c_char,
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetPhysicalGroupsForEntity(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
physicalTags: *mut *mut ::std::os::raw::c_int,
physicalTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelAddPhysicalGroup(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelRemovePhysicalGroups(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetPhysicalName(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetPhysicalName(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
name: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelRemovePhysicalName(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetTag(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
newTag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetBoundary(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
combined: ::std::os::raw::c_int,
oriented: ::std::os::raw::c_int,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetAdjacencies(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
upward: *mut *mut ::std::os::raw::c_int,
upward_n: *mut usize,
downward: *mut *mut ::std::os::raw::c_int,
downward_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelIsEntityOrphan(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGetEntitiesInBoundingBox(
xmin: f64,
ymin: f64,
zmin: f64,
xmax: f64,
ymax: f64,
zmax: f64,
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetBoundingBox(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
xmin: *mut f64,
ymin: *mut f64,
zmin: *mut f64,
xmax: *mut f64,
ymax: *mut f64,
zmax: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetDimension(ierr: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelAddDiscreteEntity(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
boundary: *const ::std::os::raw::c_int,
boundary_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelRemoveEntities(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntityType(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
entityType: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetType(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
entityType: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetEntityProperties(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
integers: *mut *mut ::std::os::raw::c_int,
integers_n: *mut usize,
reals: *mut *mut f64,
reals_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetParent(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parentDim: *mut ::std::os::raw::c_int,
parentTag: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetNumberOfPartitions(
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGetPartitions(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
partitions: *mut *mut ::std::os::raw::c_int,
partitions_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetValue(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
coord: *mut *mut f64,
coord_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetDerivative(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
derivatives: *mut *mut f64,
derivatives_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetSecondDerivative(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
derivatives: *mut *mut f64,
derivatives_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetCurvature(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
curvatures: *mut *mut f64,
curvatures_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetPrincipalCurvatures(
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
curvatureMax: *mut *mut f64,
curvatureMax_n: *mut usize,
curvatureMin: *mut *mut f64,
curvatureMin_n: *mut usize,
directionMax: *mut *mut f64,
directionMax_n: *mut usize,
directionMin: *mut *mut f64,
directionMin_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetNormal(
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
normals: *mut *mut f64,
normals_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetParametrization(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
coord: *const f64,
coord_n: usize,
parametricCoord: *mut *mut f64,
parametricCoord_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetParametrizationBounds(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
min: *mut *mut f64,
min_n: *mut usize,
max: *mut *mut f64,
max_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelIsInside(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
coord: *const f64,
coord_n: usize,
parametric: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGetClosestPoint(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
coord: *const f64,
coord_n: usize,
closestCoord: *mut *mut f64,
closestCoord_n: *mut usize,
parametricCoord: *mut *mut f64,
parametricCoord_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelReparametrizeOnSurface(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
surfaceTag: ::std::os::raw::c_int,
surfaceParametricCoord: *mut *mut f64,
surfaceParametricCoord_n: *mut usize,
which: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetVisibility(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
value: ::std::os::raw::c_int,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetVisibility(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
value: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetVisibilityPerWindow(
value: ::std::os::raw::c_int,
windowIndex: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetColor(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
r: ::std::os::raw::c_int,
g: ::std::os::raw::c_int,
b: ::std::os::raw::c_int,
a: ::std::os::raw::c_int,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetColor(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
r: *mut ::std::os::raw::c_int,
g: *mut ::std::os::raw::c_int,
b: *mut ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetCoordinates(
tag: ::std::os::raw::c_int,
x: f64,
y: f64,
z: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelSetAttribute(
name: *const ::std::os::raw::c_char,
values: *const *const ::std::os::raw::c_char,
values_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetAttribute(
name: *const ::std::os::raw::c_char,
values: *mut *mut *mut ::std::os::raw::c_char,
values_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGetAttributeNames(
names: *mut *mut *mut ::std::os::raw::c_char,
names_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelRemoveAttribute(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGenerate(dim: ::std::os::raw::c_int, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshPartition(
numPart: ::std::os::raw::c_int,
elementTags: *const usize,
elementTags_n: usize,
partitions: *const ::std::os::raw::c_int,
partitions_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshUnpartition(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshOptimize(
method: *const ::std::os::raw::c_char,
force: ::std::os::raw::c_int,
niter: ::std::os::raw::c_int,
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRecombine(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshRefine(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshSetOrder(order: ::std::os::raw::c_int, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshGetLastEntityError(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetLastNodeError(
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshClear(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveElements(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
elementTags: *const usize,
elementTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshReverse(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshReverseElements(
elementTags: *const usize,
elementTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAffineTransform(
affineTransform: *const f64,
affineTransform_n: usize,
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNodes(
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
parametricCoord: *mut *mut f64,
parametricCoord_n: *mut usize,
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
includeBoundary: ::std::os::raw::c_int,
returnParametricCoord: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNodesByElementType(
elementType: ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
parametricCoord: *mut *mut f64,
parametricCoord_n: *mut usize,
tag: ::std::os::raw::c_int,
returnParametricCoord: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNode(
nodeTag: usize,
coord: *mut *mut f64,
coord_n: *mut usize,
parametricCoord: *mut *mut f64,
parametricCoord_n: *mut usize,
dim: *mut ::std::os::raw::c_int,
tag: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetNode(
nodeTag: usize,
coord: *const f64,
coord_n: usize,
parametricCoord: *const f64,
parametricCoord_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRebuildNodeCache(
onlyIfNecessary: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRebuildElementCache(
onlyIfNecessary: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNodesForPhysicalGroup(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetMaxNodeTag(maxTag: *mut usize, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshAddNodes(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
nodeTags: *const usize,
nodeTags_n: usize,
coord: *const f64,
coord_n: usize,
parametricCoord: *const f64,
parametricCoord_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshReclassifyNodes(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshRelocateNodes(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElements(
elementTypes: *mut *mut ::std::os::raw::c_int,
elementTypes_n: *mut usize,
elementTags: *mut *mut *mut usize,
elementTags_n: *mut *mut usize,
elementTags_nn: *mut usize,
nodeTags: *mut *mut *mut usize,
nodeTags_n: *mut *mut usize,
nodeTags_nn: *mut usize,
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElement(
elementTag: usize,
elementType: *mut ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
dim: *mut ::std::os::raw::c_int,
tag: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementByCoordinates(
x: f64,
y: f64,
z: f64,
elementTag: *mut usize,
elementType: *mut ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
u: *mut f64,
v: *mut f64,
w: *mut f64,
dim: ::std::os::raw::c_int,
strict: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementsByCoordinates(
x: f64,
y: f64,
z: f64,
elementTags: *mut *mut usize,
elementTags_n: *mut usize,
dim: ::std::os::raw::c_int,
strict: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetLocalCoordinatesInElement(
elementTag: usize,
x: f64,
y: f64,
z: f64,
u: *mut f64,
v: *mut f64,
w: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementTypes(
elementTypes: *mut *mut ::std::os::raw::c_int,
elementTypes_n: *mut usize,
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementType(
familyName: *const ::std::os::raw::c_char,
order: ::std::os::raw::c_int,
serendip: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementProperties(
elementType: ::std::os::raw::c_int,
elementName: *mut *mut ::std::os::raw::c_char,
dim: *mut ::std::os::raw::c_int,
order: *mut ::std::os::raw::c_int,
numNodes: *mut ::std::os::raw::c_int,
localNodeCoord: *mut *mut f64,
localNodeCoord_n: *mut usize,
numPrimaryNodes: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementsByType(
elementType: ::std::os::raw::c_int,
elementTags: *mut *mut usize,
elementTags_n: *mut usize,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
tag: ::std::os::raw::c_int,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetMaxElementTag(maxTag: *mut usize, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshPreallocateElementsByType(
elementType: ::std::os::raw::c_int,
elementTag: ::std::os::raw::c_int,
nodeTag: ::std::os::raw::c_int,
elementTags: *mut *mut usize,
elementTags_n: *mut usize,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementQualities(
elementTags: *const usize,
elementTags_n: usize,
elementsQuality: *mut *mut f64,
elementsQuality_n: *mut usize,
qualityName: *const ::std::os::raw::c_char,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAddElements(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
elementTypes: *const ::std::os::raw::c_int,
elementTypes_n: usize,
elementTags: *const *const usize,
elementTags_n: *const usize,
elementTags_nn: usize,
nodeTags: *const *const usize,
nodeTags_n: *const usize,
nodeTags_nn: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAddElementsByType(
tag: ::std::os::raw::c_int,
elementType: ::std::os::raw::c_int,
elementTags: *const usize,
elementTags_n: usize,
nodeTags: *const usize,
nodeTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetIntegrationPoints(
elementType: ::std::os::raw::c_int,
integrationType: *const ::std::os::raw::c_char,
localCoord: *mut *mut f64,
localCoord_n: *mut usize,
weights: *mut *mut f64,
weights_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetJacobians(
elementType: ::std::os::raw::c_int,
localCoord: *const f64,
localCoord_n: usize,
jacobians: *mut *mut f64,
jacobians_n: *mut usize,
determinants: *mut *mut f64,
determinants_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
tag: ::std::os::raw::c_int,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshPreallocateJacobians(
elementType: ::std::os::raw::c_int,
numEvaluationPoints: ::std::os::raw::c_int,
allocateJacobians: ::std::os::raw::c_int,
allocateDeterminants: ::std::os::raw::c_int,
allocateCoord: ::std::os::raw::c_int,
jacobians: *mut *mut f64,
jacobians_n: *mut usize,
determinants: *mut *mut f64,
determinants_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetJacobian(
elementTag: usize,
localCoord: *const f64,
localCoord_n: usize,
jacobians: *mut *mut f64,
jacobians_n: *mut usize,
determinants: *mut *mut f64,
determinants_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetBasisFunctions(
elementType: ::std::os::raw::c_int,
localCoord: *const f64,
localCoord_n: usize,
functionSpaceType: *const ::std::os::raw::c_char,
numComponents: *mut ::std::os::raw::c_int,
basisFunctions: *mut *mut f64,
basisFunctions_n: *mut usize,
numOrientations: *mut ::std::os::raw::c_int,
wantedOrientations: *const ::std::os::raw::c_int,
wantedOrientations_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetBasisFunctionsOrientation(
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
basisFunctionsOrientation: *mut *mut ::std::os::raw::c_int,
basisFunctionsOrientation_n: *mut usize,
tag: ::std::os::raw::c_int,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetBasisFunctionsOrientationForElement(
elementTag: usize,
functionSpaceType: *const ::std::os::raw::c_char,
basisFunctionsOrientation: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNumberOfOrientations(
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelMeshPreallocateBasisFunctionsOrientation(
elementType: ::std::os::raw::c_int,
basisFunctionsOrientation: *mut *mut ::std::os::raw::c_int,
basisFunctionsOrientation_n: *mut usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetEdges(
nodeTags: *const usize,
nodeTags_n: usize,
edgeTags: *mut *mut usize,
edgeTags_n: *mut usize,
edgeOrientations: *mut *mut ::std::os::raw::c_int,
edgeOrientations_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetFaces(
faceType: ::std::os::raw::c_int,
nodeTags: *const usize,
nodeTags_n: usize,
faceTags: *mut *mut usize,
faceTags_n: *mut usize,
faceOrientations: *mut *mut ::std::os::raw::c_int,
faceOrientations_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshCreateEdges(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshCreateFaces(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetAllEdges(
edgeTags: *mut *mut usize,
edgeTags_n: *mut usize,
edgeNodes: *mut *mut usize,
edgeNodes_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetAllFaces(
faceType: ::std::os::raw::c_int,
faceTags: *mut *mut usize,
faceTags_n: *mut usize,
faceNodes: *mut *mut usize,
faceNodes_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAddEdges(
edgeTags: *const usize,
edgeTags_n: usize,
edgeNodes: *const usize,
edgeNodes_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAddFaces(
faceType: ::std::os::raw::c_int,
faceTags: *const usize,
faceTags_n: usize,
faceNodes: *const usize,
faceNodes_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetKeys(
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
typeKeys: *mut *mut ::std::os::raw::c_int,
typeKeys_n: *mut usize,
entityKeys: *mut *mut usize,
entityKeys_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
tag: ::std::os::raw::c_int,
returnCoord: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetKeysForElement(
elementTag: usize,
functionSpaceType: *const ::std::os::raw::c_char,
typeKeys: *mut *mut ::std::os::raw::c_int,
typeKeys_n: *mut usize,
entityKeys: *mut *mut usize,
entityKeys_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
returnCoord: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetNumberOfKeys(
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelMeshGetKeysInformation(
typeKeys: *const ::std::os::raw::c_int,
typeKeys_n: usize,
entityKeys: *const usize,
entityKeys_n: usize,
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
infoKeys: *mut *mut ::std::os::raw::c_int,
infoKeys_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetBarycenters(
elementType: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
fast: ::std::os::raw::c_int,
primary: ::std::os::raw::c_int,
barycenters: *mut *mut f64,
barycenters_n: *mut usize,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshPreallocateBarycenters(
elementType: ::std::os::raw::c_int,
barycenters: *mut *mut f64,
barycenters_n: *mut usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementEdgeNodes(
elementType: ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
tag: ::std::os::raw::c_int,
primary: ::std::os::raw::c_int,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetElementFaceNodes(
elementType: ::std::os::raw::c_int,
faceType: ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
tag: ::std::os::raw::c_int,
primary: ::std::os::raw::c_int,
task: usize,
numTasks: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetGhostElements(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
elementTags: *mut *mut usize,
elementTags_n: *mut usize,
partitions: *mut *mut ::std::os::raw::c_int,
partitions_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetSize(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
size: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetSizes(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
sizes: *mut *mut f64,
sizes_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetSizeAtParametricPoints(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
parametricCoord: *const f64,
parametricCoord_n: usize,
sizes: *const f64,
sizes_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetSizeCallback(
callback: ::std::option::Option<
unsafe extern "C" fn(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
x: f64,
y: f64,
z: f64,
lc: f64,
data: *mut ::std::os::raw::c_void,
) -> f64,
>,
callback_data: *mut ::std::os::raw::c_void,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveSizeCallback(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshSetTransfiniteCurve(
tag: ::std::os::raw::c_int,
numNodes: ::std::os::raw::c_int,
meshType: *const ::std::os::raw::c_char,
coef: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetTransfiniteSurface(
tag: ::std::os::raw::c_int,
arrangement: *const ::std::os::raw::c_char,
cornerTags: *const ::std::os::raw::c_int,
cornerTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetTransfiniteVolume(
tag: ::std::os::raw::c_int,
cornerTags: *const ::std::os::raw::c_int,
cornerTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetTransfiniteAutomatic(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
cornerAngle: f64,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetRecombine(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetSmoothing(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetReverse(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetAlgorithm(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetSizeFromBoundary(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetCompound(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetOutwardOrientation(
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveConstraints(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshEmbed(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
inDim: ::std::os::raw::c_int,
inTag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveEmbedded(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetEmbedded(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshReorderElements(
elementType: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ordering: *const usize,
ordering_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshComputeRenumbering(
oldTags: *mut *mut usize,
oldTags_n: *mut usize,
newTags: *mut *mut usize,
newTags_n: *mut usize,
method: *const ::std::os::raw::c_char,
elementTags: *const usize,
elementTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRenumberNodes(
oldTags: *const usize,
oldTags_n: usize,
newTags: *const usize,
newTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRenumberElements(
oldTags: *const usize,
oldTags_n: usize,
newTags: *const usize,
newTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetPeriodic(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
tagsMaster: *const ::std::os::raw::c_int,
tagsMaster_n: usize,
affineTransform: *const f64,
affineTransform_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetPeriodic(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
tagMaster: *mut *mut ::std::os::raw::c_int,
tagMaster_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetPeriodicNodes(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
tagMaster: *mut ::std::os::raw::c_int,
nodeTags: *mut *mut usize,
nodeTags_n: *mut usize,
nodeTagsMaster: *mut *mut usize,
nodeTagsMaster_n: *mut usize,
affineTransform: *mut *mut f64,
affineTransform_n: *mut usize,
includeHighOrderNodes: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetPeriodicKeys(
elementType: ::std::os::raw::c_int,
functionSpaceType: *const ::std::os::raw::c_char,
tag: ::std::os::raw::c_int,
tagMaster: *mut ::std::os::raw::c_int,
typeKeys: *mut *mut ::std::os::raw::c_int,
typeKeys_n: *mut usize,
typeKeysMaster: *mut *mut ::std::os::raw::c_int,
typeKeysMaster_n: *mut usize,
entityKeys: *mut *mut usize,
entityKeys_n: *mut usize,
entityKeysMaster: *mut *mut usize,
entityKeysMaster_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
coordMaster: *mut *mut f64,
coordMaster_n: *mut usize,
returnCoord: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshImportStl(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshGetDuplicateNodes(
tags: *mut *mut usize,
tags_n: *mut usize,
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveDuplicateNodes(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshRemoveDuplicateElements(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSplitQuadrangles(
quality: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshSetVisibility(
elementTags: *const usize,
elementTags_n: usize,
value: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshGetVisibility(
elementTags: *const usize,
elementTags_n: usize,
values: *mut *mut ::std::os::raw::c_int,
values_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshClassifySurfaces(
angle: f64,
boundary: ::std::os::raw::c_int,
forReparametrization: ::std::os::raw::c_int,
curveAngle: f64,
exportDiscrete: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshCreateGeometry(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshCreateTopology(
makeSimplyConnected: ::std::os::raw::c_int,
exportDiscrete: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshAddHomologyRequest(
type_: *const ::std::os::raw::c_char,
domainTags: *const ::std::os::raw::c_int,
domainTags_n: usize,
subdomainTags: *const ::std::os::raw::c_int,
subdomainTags_n: usize,
dims: *const ::std::os::raw::c_int,
dims_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshClearHomologyRequests(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshComputeHomology(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshComputeCrossField(
viewTags: *mut *mut ::std::os::raw::c_int,
viewTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldAdd(
fieldType: *const ::std::os::raw::c_char,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelMeshFieldRemove(tag: ::std::os::raw::c_int, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldList(
tags: *mut *mut ::std::os::raw::c_int,
tags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldGetType(
tag: ::std::os::raw::c_int,
fileType: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldSetNumber(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
value: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldGetNumber(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
value: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldSetString(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldGetString(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
value: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldSetNumbers(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
values: *const f64,
values_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldGetNumbers(
tag: ::std::os::raw::c_int,
option: *const ::std::os::raw::c_char,
values: *mut *mut f64,
values_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldSetAsBackgroundMesh(
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelMeshFieldSetAsBoundaryLayer(
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoAddPoint(
x: f64,
y: f64,
z: f64,
meshSize: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddLine(
startTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddCircleArc(
startTag: ::std::os::raw::c_int,
centerTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
nx: f64,
ny: f64,
nz: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddEllipseArc(
startTag: ::std::os::raw::c_int,
centerTag: ::std::os::raw::c_int,
majorTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
nx: f64,
ny: f64,
nz: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddSpline(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddBSpline(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddBezier(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddPolyline(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddCompoundSpline(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
numIntervals: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddCompoundBSpline(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
numIntervals: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddCurveLoop(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
tag: ::std::os::raw::c_int,
reorient: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddCurveLoops(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
tags: *mut *mut ::std::os::raw::c_int,
tags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoAddPlaneSurface(
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddSurfaceFilling(
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
tag: ::std::os::raw::c_int,
sphereCenterTag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddSurfaceLoop(
surfaceTags: *const ::std::os::raw::c_int,
surfaceTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddVolume(
shellTags: *const ::std::os::raw::c_int,
shellTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddGeometry(
geometry: *const ::std::os::raw::c_char,
numbers: *const f64,
numbers_n: usize,
strings: *const *const ::std::os::raw::c_char,
strings_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoAddPointOnGeometry(
geometryTag: ::std::os::raw::c_int,
x: f64,
y: f64,
z: f64,
meshSize: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoExtrude(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
dx: f64,
dy: f64,
dz: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoRevolve(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
ax: f64,
ay: f64,
az: f64,
angle: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoTwist(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
dz: f64,
ax: f64,
ay: f64,
az: f64,
angle: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoExtrudeBoundaryLayer(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
second: ::std::os::raw::c_int,
viewIndex: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoTranslate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
dx: f64,
dy: f64,
dz: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoRotate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
ax: f64,
ay: f64,
az: f64,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoDilate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
a: f64,
b: f64,
c: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMirror(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
a: f64,
b: f64,
c: f64,
d: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoSymmetrize(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
a: f64,
b: f64,
c: f64,
d: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoCopy(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoRemove(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoRemoveAllDuplicates(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelGeoSplitCurve(
tag: ::std::os::raw::c_int,
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
curveTags: *mut *mut ::std::os::raw::c_int,
curveTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoGetMaxTag(
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoSetMaxTag(
dim: ::std::os::raw::c_int,
maxTag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoAddPhysicalGroup(
dim: ::std::os::raw::c_int,
tags: *const ::std::os::raw::c_int,
tags_n: usize,
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelGeoRemovePhysicalGroups(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoSynchronize(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetSize(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
size: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetTransfiniteCurve(
tag: ::std::os::raw::c_int,
nPoints: ::std::os::raw::c_int,
meshType: *const ::std::os::raw::c_char,
coef: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetTransfiniteSurface(
tag: ::std::os::raw::c_int,
arrangement: *const ::std::os::raw::c_char,
cornerTags: *const ::std::os::raw::c_int,
cornerTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetTransfiniteVolume(
tag: ::std::os::raw::c_int,
cornerTags: *const ::std::os::raw::c_int,
cornerTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetRecombine(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetSmoothing(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetReverse(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetAlgorithm(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelGeoMeshSetSizeFromBoundary(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
val: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccAddPoint(
x: f64,
y: f64,
z: f64,
meshSize: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddLine(
startTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddCircleArc(
startTag: ::std::os::raw::c_int,
middleTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
center: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddCircle(
x: f64,
y: f64,
z: f64,
r: f64,
tag: ::std::os::raw::c_int,
angle1: f64,
angle2: f64,
zAxis: *const f64,
zAxis_n: usize,
xAxis: *const f64,
xAxis_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddEllipseArc(
startTag: ::std::os::raw::c_int,
centerTag: ::std::os::raw::c_int,
majorTag: ::std::os::raw::c_int,
endTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddEllipse(
x: f64,
y: f64,
z: f64,
r1: f64,
r2: f64,
tag: ::std::os::raw::c_int,
angle1: f64,
angle2: f64,
zAxis: *const f64,
zAxis_n: usize,
xAxis: *const f64,
xAxis_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddSpline(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
tangents: *const f64,
tangents_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBSpline(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
degree: ::std::os::raw::c_int,
weights: *const f64,
weights_n: usize,
knots: *const f64,
knots_n: usize,
multiplicities: *const ::std::os::raw::c_int,
multiplicities_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBezier(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddWire(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
tag: ::std::os::raw::c_int,
checkClosed: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddCurveLoop(
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddRectangle(
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
tag: ::std::os::raw::c_int,
roundedRadius: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddDisk(
xc: f64,
yc: f64,
zc: f64,
rx: f64,
ry: f64,
tag: ::std::os::raw::c_int,
zAxis: *const f64,
zAxis_n: usize,
xAxis: *const f64,
xAxis_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddPlaneSurface(
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddSurfaceFilling(
wireTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
degree: ::std::os::raw::c_int,
numPointsOnCurves: ::std::os::raw::c_int,
numIter: ::std::os::raw::c_int,
anisotropic: ::std::os::raw::c_int,
tol2d: f64,
tol3d: f64,
tolAng: f64,
tolCurv: f64,
maxDegree: ::std::os::raw::c_int,
maxSegments: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBSplineFilling(
wireTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
type_: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBezierFilling(
wireTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
type_: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBSplineSurface(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
numPointsU: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
degreeU: ::std::os::raw::c_int,
degreeV: ::std::os::raw::c_int,
weights: *const f64,
weights_n: usize,
knotsU: *const f64,
knotsU_n: usize,
knotsV: *const f64,
knotsV_n: usize,
multiplicitiesU: *const ::std::os::raw::c_int,
multiplicitiesU_n: usize,
multiplicitiesV: *const ::std::os::raw::c_int,
multiplicitiesV_n: usize,
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
wire3D: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBezierSurface(
pointTags: *const ::std::os::raw::c_int,
pointTags_n: usize,
numPointsU: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
wire3D: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddTrimmedSurface(
surfaceTag: ::std::os::raw::c_int,
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
wire3D: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddSurfaceLoop(
surfaceTags: *const ::std::os::raw::c_int,
surfaceTags_n: usize,
tag: ::std::os::raw::c_int,
sewing: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddVolume(
shellTags: *const ::std::os::raw::c_int,
shellTags_n: usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddSphere(
xc: f64,
yc: f64,
zc: f64,
radius: f64,
tag: ::std::os::raw::c_int,
angle1: f64,
angle2: f64,
angle3: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddBox(
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
dz: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddCylinder(
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
dz: f64,
r: f64,
tag: ::std::os::raw::c_int,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddCone(
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
dz: f64,
r1: f64,
r2: f64,
tag: ::std::os::raw::c_int,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddWedge(
x: f64,
y: f64,
z: f64,
dx: f64,
dy: f64,
dz: f64,
tag: ::std::os::raw::c_int,
ltx: f64,
zAxis: *const f64,
zAxis_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddTorus(
x: f64,
y: f64,
z: f64,
r1: f64,
r2: f64,
tag: ::std::os::raw::c_int,
angle: f64,
zAxis: *const f64,
zAxis_n: usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccAddThruSections(
wireTags: *const ::std::os::raw::c_int,
wireTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
tag: ::std::os::raw::c_int,
makeSolid: ::std::os::raw::c_int,
makeRuled: ::std::os::raw::c_int,
maxDegree: ::std::os::raw::c_int,
continuity: *const ::std::os::raw::c_char,
parametrization: *const ::std::os::raw::c_char,
smoothing: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccAddThickSolid(
volumeTag: ::std::os::raw::c_int,
excludeSurfaceTags: *const ::std::os::raw::c_int,
excludeSurfaceTags_n: usize,
offset: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccExtrude(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
dx: f64,
dy: f64,
dz: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccRevolve(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
ax: f64,
ay: f64,
az: f64,
angle: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
numElements: *const ::std::os::raw::c_int,
numElements_n: usize,
heights: *const f64,
heights_n: usize,
recombine: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccAddPipe(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
wireTag: ::std::os::raw::c_int,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
trihedron: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccFillet(
volumeTags: *const ::std::os::raw::c_int,
volumeTags_n: usize,
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
radii: *const f64,
radii_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
removeVolume: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccChamfer(
volumeTags: *const ::std::os::raw::c_int,
volumeTags_n: usize,
curveTags: *const ::std::os::raw::c_int,
curveTags_n: usize,
surfaceTags: *const ::std::os::raw::c_int,
surfaceTags_n: usize,
distances: *const f64,
distances_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
removeVolume: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccDefeature(
volumeTags: *const ::std::os::raw::c_int,
volumeTags_n: usize,
surfaceTags: *const ::std::os::raw::c_int,
surfaceTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
removeVolume: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccFillet2D(
edgeTag1: ::std::os::raw::c_int,
edgeTag2: ::std::os::raw::c_int,
radius: f64,
tag: ::std::os::raw::c_int,
pointTag: ::std::os::raw::c_int,
reverse: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccChamfer2D(
edgeTag1: ::std::os::raw::c_int,
edgeTag2: ::std::os::raw::c_int,
distance1: f64,
distance2: f64,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccOffsetCurve(
curveLoopTag: ::std::os::raw::c_int,
offset: f64,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetDistance(
dim1: ::std::os::raw::c_int,
tag1: ::std::os::raw::c_int,
dim2: ::std::os::raw::c_int,
tag2: ::std::os::raw::c_int,
distance: *mut f64,
x1: *mut f64,
y1: *mut f64,
z1: *mut f64,
x2: *mut f64,
y2: *mut f64,
z2: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetClosestEntities(
x: f64,
y: f64,
z: f64,
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
distances: *mut *mut f64,
distances_n: *mut usize,
coord: *mut *mut f64,
coord_n: *mut usize,
n: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccFuse(
objectDimTags: *const ::std::os::raw::c_int,
objectDimTags_n: usize,
toolDimTags: *const ::std::os::raw::c_int,
toolDimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
outDimTagsMap: *mut *mut *mut ::std::os::raw::c_int,
outDimTagsMap_n: *mut *mut usize,
outDimTagsMap_nn: *mut usize,
tag: ::std::os::raw::c_int,
removeObject: ::std::os::raw::c_int,
removeTool: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccIntersect(
objectDimTags: *const ::std::os::raw::c_int,
objectDimTags_n: usize,
toolDimTags: *const ::std::os::raw::c_int,
toolDimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
outDimTagsMap: *mut *mut *mut ::std::os::raw::c_int,
outDimTagsMap_n: *mut *mut usize,
outDimTagsMap_nn: *mut usize,
tag: ::std::os::raw::c_int,
removeObject: ::std::os::raw::c_int,
removeTool: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccCut(
objectDimTags: *const ::std::os::raw::c_int,
objectDimTags_n: usize,
toolDimTags: *const ::std::os::raw::c_int,
toolDimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
outDimTagsMap: *mut *mut *mut ::std::os::raw::c_int,
outDimTagsMap_n: *mut *mut usize,
outDimTagsMap_nn: *mut usize,
tag: ::std::os::raw::c_int,
removeObject: ::std::os::raw::c_int,
removeTool: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccFragment(
objectDimTags: *const ::std::os::raw::c_int,
objectDimTags_n: usize,
toolDimTags: *const ::std::os::raw::c_int,
toolDimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
outDimTagsMap: *mut *mut *mut ::std::os::raw::c_int,
outDimTagsMap_n: *mut *mut usize,
outDimTagsMap_nn: *mut usize,
tag: ::std::os::raw::c_int,
removeObject: ::std::os::raw::c_int,
removeTool: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccTranslate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
dx: f64,
dy: f64,
dz: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccRotate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
ax: f64,
ay: f64,
az: f64,
angle: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccDilate(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
x: f64,
y: f64,
z: f64,
a: f64,
b: f64,
c: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccMirror(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
a: f64,
b: f64,
c: f64,
d: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccSymmetrize(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
a: f64,
b: f64,
c: f64,
d: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccAffineTransform(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
affineTransform: *const f64,
affineTransform_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccCopy(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccRemove(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
recursive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccRemoveAllDuplicates(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelOccHealShapes(
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
tolerance: f64,
fixDegenerated: ::std::os::raw::c_int,
fixSmallEdges: ::std::os::raw::c_int,
fixSmallFaces: ::std::os::raw::c_int,
sewFaces: ::std::os::raw::c_int,
makeSolids: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccConvertToNURBS(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccImportShapes(
fileName: *const ::std::os::raw::c_char,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
highestDimOnly: ::std::os::raw::c_int,
format: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccImportShapesNativePointer(
shape: *const ::std::os::raw::c_void,
outDimTags: *mut *mut ::std::os::raw::c_int,
outDimTags_n: *mut usize,
highestDimOnly: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetEntities(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetEntitiesInBoundingBox(
xmin: f64,
ymin: f64,
zmin: f64,
xmax: f64,
ymax: f64,
zmax: f64,
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetBoundingBox(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
xmin: *mut f64,
ymin: *mut f64,
zmin: *mut f64,
xmax: *mut f64,
ymax: *mut f64,
zmax: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetCurveLoops(
surfaceTag: ::std::os::raw::c_int,
curveLoopTags: *mut *mut ::std::os::raw::c_int,
curveLoopTags_n: *mut usize,
curveTags: *mut *mut *mut ::std::os::raw::c_int,
curveTags_n: *mut *mut usize,
curveTags_nn: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetSurfaceLoops(
volumeTag: ::std::os::raw::c_int,
surfaceLoopTags: *mut *mut ::std::os::raw::c_int,
surfaceLoopTags_n: *mut usize,
surfaceTags: *mut *mut *mut ::std::os::raw::c_int,
surfaceTags_n: *mut *mut usize,
surfaceTags_nn: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetMass(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
mass: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetCenterOfMass(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
x: *mut f64,
y: *mut f64,
z: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetMatrixOfInertia(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
mat: *mut *mut f64,
mat_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccGetMaxTag(
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshModelOccSetMaxTag(
dim: ::std::os::raw::c_int,
maxTag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshModelOccSynchronize(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshModelOccMeshSetSize(
dimTags: *const ::std::os::raw::c_int,
dimTags_n: usize,
size: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAdd(
name: *const ::std::os::raw::c_char,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshViewRemove(tag: ::std::os::raw::c_int, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshViewGetIndex(
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshViewGetTags(
tags: *mut *mut ::std::os::raw::c_int,
tags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAddModelData(
tag: ::std::os::raw::c_int,
step: ::std::os::raw::c_int,
modelName: *const ::std::os::raw::c_char,
dataType: *const ::std::os::raw::c_char,
tags: *const usize,
tags_n: usize,
data: *const *const f64,
data_n: *const usize,
data_nn: usize,
time: f64,
numComponents: ::std::os::raw::c_int,
partition: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAddHomogeneousModelData(
tag: ::std::os::raw::c_int,
step: ::std::os::raw::c_int,
modelName: *const ::std::os::raw::c_char,
dataType: *const ::std::os::raw::c_char,
tags: *const usize,
tags_n: usize,
data: *const f64,
data_n: usize,
time: f64,
numComponents: ::std::os::raw::c_int,
partition: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewGetModelData(
tag: ::std::os::raw::c_int,
step: ::std::os::raw::c_int,
dataType: *mut *mut ::std::os::raw::c_char,
tags: *mut *mut usize,
tags_n: *mut usize,
data: *mut *mut *mut f64,
data_n: *mut *mut usize,
data_nn: *mut usize,
time: *mut f64,
numComponents: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewGetHomogeneousModelData(
tag: ::std::os::raw::c_int,
step: ::std::os::raw::c_int,
dataType: *mut *mut ::std::os::raw::c_char,
tags: *mut *mut usize,
tags_n: *mut usize,
data: *mut *mut f64,
data_n: *mut usize,
time: *mut f64,
numComponents: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAddListData(
tag: ::std::os::raw::c_int,
dataType: *const ::std::os::raw::c_char,
numEle: ::std::os::raw::c_int,
data: *const f64,
data_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewGetListData(
tag: ::std::os::raw::c_int,
dataType: *mut *mut *mut ::std::os::raw::c_char,
dataType_n: *mut usize,
numElements: *mut *mut ::std::os::raw::c_int,
numElements_n: *mut usize,
data: *mut *mut *mut f64,
data_n: *mut *mut usize,
data_nn: *mut usize,
returnAdaptive: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAddListDataString(
tag: ::std::os::raw::c_int,
coord: *const f64,
coord_n: usize,
data: *const *const ::std::os::raw::c_char,
data_n: usize,
style: *const *const ::std::os::raw::c_char,
style_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewGetListDataStrings(
tag: ::std::os::raw::c_int,
dim: ::std::os::raw::c_int,
coord: *mut *mut f64,
coord_n: *mut usize,
data: *mut *mut *mut ::std::os::raw::c_char,
data_n: *mut usize,
style: *mut *mut *mut ::std::os::raw::c_char,
style_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewSetInterpolationMatrices(
tag: ::std::os::raw::c_int,
type_: *const ::std::os::raw::c_char,
d: ::std::os::raw::c_int,
coef: *const f64,
coef_n: usize,
exp: *const f64,
exp_n: usize,
dGeo: ::std::os::raw::c_int,
coefGeo: *const f64,
coefGeo_n: usize,
expGeo: *const f64,
expGeo_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewAddAlias(
refTag: ::std::os::raw::c_int,
copyOptions: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshViewCombine(
what: *const ::std::os::raw::c_char,
how: *const ::std::os::raw::c_char,
remove: ::std::os::raw::c_int,
copyOptions: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewProbe(
tag: ::std::os::raw::c_int,
x: f64,
y: f64,
z: f64,
values: *mut *mut f64,
values_n: *mut usize,
distance: *mut f64,
step: ::std::os::raw::c_int,
numComp: ::std::os::raw::c_int,
gradient: ::std::os::raw::c_int,
distanceMax: f64,
xElemCoord: *const f64,
xElemCoord_n: usize,
yElemCoord: *const f64,
yElemCoord_n: usize,
zElemCoord: *const f64,
zElemCoord_n: usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewWrite(
tag: ::std::os::raw::c_int,
fileName: *const ::std::os::raw::c_char,
append: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewSetVisibilityPerWindow(
tag: ::std::os::raw::c_int,
value: ::std::os::raw::c_int,
windowIndex: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionSetNumber(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
value: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionGetNumber(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
value: *mut f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionSetString(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionGetString(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
value: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionSetColor(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
r: ::std::os::raw::c_int,
g: ::std::os::raw::c_int,
b: ::std::os::raw::c_int,
a: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionGetColor(
tag: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
r: *mut ::std::os::raw::c_int,
g: *mut ::std::os::raw::c_int,
b: *mut ::std::os::raw::c_int,
a: *mut ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshViewOptionCopy(
refTag: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshAlgorithmTriangulate(
coordinates: *const f64,
coordinates_n: usize,
triangles: *mut *mut usize,
triangles_n: *mut usize,
edges: *const usize,
edges_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshAlgorithmTetrahedralize(
coordinates: *const f64,
coordinates_n: usize,
tetrahedra: *mut *mut usize,
tetrahedra_n: *mut usize,
steiner: *mut *mut f64,
steiner_n: *mut usize,
triangles: *const usize,
triangles_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshPluginSetNumber(
name: *const ::std::os::raw::c_char,
option: *const ::std::os::raw::c_char,
value: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshPluginSetString(
name: *const ::std::os::raw::c_char,
option: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshPluginRun(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshGraphicsDraw(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkInitialize(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkFinalize(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkWait(time: f64, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkUpdate(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkAwake(action: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkLock(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkUnlock(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshFltkRun(
optionFileName: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkIsAvailable(ierr: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshFltkSelectEntities(
dimTags: *mut *mut ::std::os::raw::c_int,
dimTags_n: *mut usize,
dim: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshFltkSelectElements(
elementTags: *mut *mut usize,
elementTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshFltkSelectViews(
viewTags: *mut *mut ::std::os::raw::c_int,
viewTags_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshFltkSplitCurrentWindow(
how: *const ::std::os::raw::c_char,
ratio: f64,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkSetCurrentWindow(
windowIndex: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkSetStatusMessage(
message: *const ::std::os::raw::c_char,
graphics: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkShowContextWindow(
dim: ::std::os::raw::c_int,
tag: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkOpenTreeItem(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshFltkCloseTreeItem(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserGetNames(
names: *mut *mut *mut ::std::os::raw::c_char,
names_n: *mut usize,
search: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserSetNumber(
name: *const ::std::os::raw::c_char,
value: *const f64,
value_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserSetString(
name: *const ::std::os::raw::c_char,
value: *const *const ::std::os::raw::c_char,
value_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserGetNumber(
name: *const ::std::os::raw::c_char,
value: *mut *mut f64,
value_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserGetString(
name: *const ::std::os::raw::c_char,
value: *mut *mut *mut ::std::os::raw::c_char,
value_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshParserClear(name: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshParserParse(
fileName: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabSet(
data: *const ::std::os::raw::c_char,
format: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabGet(
data: *mut *mut ::std::os::raw::c_char,
name: *const ::std::os::raw::c_char,
format: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabGetNames(
names: *mut *mut *mut ::std::os::raw::c_char,
names_n: *mut usize,
search: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabSetNumber(
name: *const ::std::os::raw::c_char,
value: *const f64,
value_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabSetString(
name: *const ::std::os::raw::c_char,
value: *const *const ::std::os::raw::c_char,
value_n: usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabGetNumber(
name: *const ::std::os::raw::c_char,
value: *mut *mut f64,
value_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabGetString(
name: *const ::std::os::raw::c_char,
value: *mut *mut *mut ::std::os::raw::c_char,
value_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabGetChanged(
name: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
pub fn gmshOnelabSetChanged(
name: *const ::std::os::raw::c_char,
value: ::std::os::raw::c_int,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshOnelabClear(name: *const ::std::os::raw::c_char, ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshOnelabRun(
name: *const ::std::os::raw::c_char,
command: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshLoggerWrite(
message: *const ::std::os::raw::c_char,
level: *const ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshLoggerStart(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshLoggerGet(
log: *mut *mut *mut ::std::os::raw::c_char,
log_n: *mut usize,
ierr: *mut ::std::os::raw::c_int,
);
}
unsafe extern "C" {
pub fn gmshLoggerStop(ierr: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
pub fn gmshLoggerGetWallTime(ierr: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn gmshLoggerGetCpuTime(ierr: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn gmshLoggerGetMemory(ierr: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn gmshLoggerGetTotalMemory(ierr: *mut ::std::os::raw::c_int) -> f64;
}
unsafe extern "C" {
pub fn gmshLoggerGetLastError(
error: *mut *mut ::std::os::raw::c_char,
ierr: *mut ::std::os::raw::c_int,
);
}