A class for generating a box of six walls.
More...
#include <gen_wall_box_plane.hpp>
|
| WallBoxPlane (double len_x, double len_y, double len_z, double center_x, double center_y, double center_z) |
| Generates a box of six walls.
|
|
VecXT< Shape * > | GetShapes () |
| Gets the list of shapes generated by the wall box.
|
|
VecXT< Wall * > | GetWall () |
| Gets the list of walls generated by the wall box.
|
|
void | ImportToScene (Scene *scene) |
| Imports the shapes and walls generated by the wall box into a scene.
|
|
A class for generating a box of six walls.
This class generates a rectangular box of six walls, each of which is represented by a plane. It also provides functions to get the shapes and walls generated and to import them into a scene. generate box walls.
- p_mx, p_px: the planes with normal (-1, 0, 0) and (1, 0, 0), respectively.
- w_mx, w_px: the walls with normal (-1, 0, 0) and (1, 0, 0), respectively.
- Examples
- 00_nut_in_bolt.cpp, 02_energy_test.cpp, 0_geometric_solver.cpp, 0_plane_case.cpp, 1_gjk_solver.cpp, 1_test_triaxial_comp.cpp, 2_sdf_solver.cpp, 3_hybrid_solver.cpp, 81_voronoi_packing.cpp, 90_packing_demo.cpp, 90_random_packing.cpp, 90_random_packing_trimesh.cpp, 91_packing_ellipsoid.cpp, 91_triaixal_comp.cpp, 91_triaixal_comp_trimesh.cpp, 92_angle_of_repose.cpp, 92_angle_repose_trimesh.cpp, 92_nut_in_bolt.cpp, 93_triaixal_comp_trimesh.cpp, 94_angle_repose_trimesh.cpp, 96_random_packing_ellipsoid.cpp, 97_triaixal_comp_sphere_geom.cpp, angle_repose_main.cpp, and odemetric_comp_main.cpp.
◆ WallBoxPlane()
netdem::WallBoxPlane::WallBoxPlane |
( |
double | len_x, |
|
|
double | len_y, |
|
|
double | len_z, |
|
|
double | center_x, |
|
|
double | center_y, |
|
|
double | center_z ) |
|
inline |
Generates a box of six walls.
- Parameters
-
len_x | The length of the box in the x direction. |
len_y | The length of the box in the y direction. |
len_z | The length of the box in the z direction. |
center_x | The centroid of the box in the x direction. |
center_y | The centroid of the box in the y direction. |
center_z | The centroid of the box in the z direction. |
◆ GetShapes()
VecXT< Shape * > netdem::WallBoxPlane::GetShapes |
( |
| ) |
|
|
inline |
Gets the list of shapes generated by the wall box.
- Returns
- A list containing pointers to the six planes that represent the walls of the box.
◆ GetWall()
VecXT< Wall * > netdem::WallBoxPlane::GetWall |
( |
| ) |
|
|
inline |
Gets the list of walls generated by the wall box.
- Returns
- A list containing pointers to the six walls of the box.
◆ ImportToScene()
void netdem::WallBoxPlane::ImportToScene |
( |
Scene * | scene | ) |
|
|
inline |
Imports the shapes and walls generated by the wall box into a scene.
- Parameters
-
scene | A pointer to the scene to import the shapes and walls into. |
- Examples
- 00_nut_in_bolt.cpp, 0_geometric_solver.cpp, 0_plane_case.cpp, 1_gjk_solver.cpp, 1_test_triaxial_comp.cpp, 2_sdf_solver.cpp, 3_hybrid_solver.cpp, 90_packing_demo.cpp, 90_random_packing.cpp, 90_random_packing_trimesh.cpp, 91_packing_ellipsoid.cpp, 91_triaixal_comp.cpp, 91_triaixal_comp_trimesh.cpp, 92_angle_of_repose.cpp, 92_angle_repose_trimesh.cpp, 92_nut_in_bolt.cpp, 93_triaixal_comp_trimesh.cpp, 94_angle_repose_trimesh.cpp, 96_random_packing_ellipsoid.cpp, 97_triaixal_comp_sphere_geom.cpp, angle_repose_main.cpp, and odemetric_comp_main.cpp.
The documentation for this class was generated from the following file: