RINGMesh  Version 5.0.0
A programming library for geological model meshes
test-aabb.cpp File Reference
#include <ringmesh/ringmesh_tests_config.h>
#include <vector>
#include <ringmesh/basic/geometry.h>
#include <ringmesh/basic/matrix.h>
#include <ringmesh/mesh/aabb.h>
#include <ringmesh/mesh/geogram_mesh.h>
#include <ringmesh/mesh/mesh.h>
#include <ringmesh/mesh/mesh_builder.h>

Go to the source code of this file.

Functions

template<index_t DIMENSION>
vecn< DIMENSION > create_vertex (double i, double j)
 
template<>
vecn< 2 > create_vertex (double i, double j)
 
template<>
vecn< 3 > create_vertex (double i, double j)
 
template<index_t DIMENSION>
void add_vertices (LineMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void add_vertices (SurfaceMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void add_vertices (VolumeMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void add_edges (LineMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void add_triangles (SurfaceMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void add_hexs (VolumeMeshBuilder< DIMENSION > *builder, index_t size)
 
template<index_t DIMENSION>
void check_tree (const SurfaceAABBTree< DIMENSION > &tree, index_t size)
 
template<index_t DIMENSION>
void create_5_tets_from_hex (VolumeMeshBuilder< DIMENSION > &builder, const GeogramVolumeMesh< DIMENSION > &mesh_hex, index_t hex)
 
template<index_t DIMENSION>
void decompose_in_tet (const GeogramVolumeMesh< DIMENSION > &hex_mesh, GeogramVolumeMesh< DIMENSION > &tet_mesh, index_t size)
 
template<index_t DIMENSION>
void test_SurfaceAABB ()
 
template<index_t DIMENSION>
void test_locate_cell_on_3D_mesh (const GeogramVolumeMesh< DIMENSION > &mesh)
 
template<index_t DIMENSION>
void test_VolumeAABB ()
 
template<index_t DIMENSION>
void test_locate_edge_on_1D_mesh (const GeogramLineMesh< DIMENSION > &mesh)
 
template<index_t DIMENSION>
void test_LineAABB ()
 
int main ()
 

Function Documentation

◆ add_edges()

template<index_t DIMENSION>
void add_edges ( LineMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 110 of file test-aabb.cpp.

◆ add_hexs()

template<index_t DIMENSION>
void add_hexs ( VolumeMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 148 of file test-aabb.cpp.

◆ add_triangles()

template<index_t DIMENSION>
void add_triangles ( SurfaceMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 121 of file test-aabb.cpp.

◆ add_vertices() [1/3]

template<index_t DIMENSION>
void add_vertices ( LineMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 69 of file test-aabb.cpp.

◆ add_vertices() [2/3]

template<index_t DIMENSION>
void add_vertices ( SurfaceMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 79 of file test-aabb.cpp.

◆ add_vertices() [3/3]

template<index_t DIMENSION>
void add_vertices ( VolumeMeshBuilder< DIMENSION > *  builder,
index_t  size 
)

Definition at line 93 of file test-aabb.cpp.

◆ check_tree()

template<index_t DIMENSION>
void check_tree ( const SurfaceAABBTree< DIMENSION > &  tree,
index_t  size 
)

Definition at line 183 of file test-aabb.cpp.

◆ create_5_tets_from_hex()

template<index_t DIMENSION>
void create_5_tets_from_hex ( VolumeMeshBuilder< DIMENSION > &  builder,
const GeogramVolumeMesh< DIMENSION > &  mesh_hex,
index_t  hex 
)

Definition at line 244 of file test-aabb.cpp.

◆ create_vertex() [1/3]

template<index_t DIMENSION>
vecn< DIMENSION > create_vertex ( double  i,
double  j 
)

Definition at line 57 of file test-aabb.cpp.

◆ create_vertex() [2/3]

template<>
vecn< 2 > create_vertex ( double  i,
double  j 
)

Definition at line 57 of file test-aabb.cpp.

◆ create_vertex() [3/3]

template<>
vecn< 3 > create_vertex ( double  i,
double  j 
)

Definition at line 63 of file test-aabb.cpp.

◆ decompose_in_tet()

template<index_t DIMENSION>
void decompose_in_tet ( const GeogramVolumeMesh< DIMENSION > &  hex_mesh,
GeogramVolumeMesh< DIMENSION > &  tet_mesh,
index_t  size 
)

Definition at line 301 of file test-aabb.cpp.

◆ main()

int main ( )

Definition at line 394 of file test-aabb.cpp.

◆ test_LineAABB()

template<index_t DIMENSION>
void test_LineAABB ( )

Definition at line 381 of file test-aabb.cpp.

◆ test_locate_cell_on_3D_mesh()

template<index_t DIMENSION>
void test_locate_cell_on_3D_mesh ( const GeogramVolumeMesh< DIMENSION > &  mesh)

Definition at line 332 of file test-aabb.cpp.

◆ test_locate_edge_on_1D_mesh()

template<index_t DIMENSION>
void test_locate_edge_on_1D_mesh ( const GeogramLineMesh< DIMENSION > &  mesh)

Definition at line 364 of file test-aabb.cpp.

◆ test_SurfaceAABB()

template<index_t DIMENSION>
void test_SurfaceAABB ( )

Definition at line 316 of file test-aabb.cpp.

◆ test_VolumeAABB()

template<index_t DIMENSION>
void test_VolumeAABB ( )

Definition at line 347 of file test-aabb.cpp.