NetDEM v1.0
Loading...
Searching...
No Matches
netdem::WallBoxPlane Class Reference

A class for generating a box of six walls. More...

#include <gen_wall_box_plane.hpp>

Public Member Functions

 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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_xThe length of the box in the x direction.
len_yThe length of the box in the y direction.
len_zThe length of the box in the z direction.
center_xThe centroid of the box in the x direction.
center_yThe centroid of the box in the y direction.
center_zThe centroid of the box in the z direction.

Member Function Documentation

◆ 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()


The documentation for this class was generated from the following file: