ESyS-Particle
4.0.1
|
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file). More...
#include <Sphere3d.h>
Static Public Member Functions | |
static bool | FillIn (const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, double, double, double, double, Vec3 &, double &) |
static bool | FillInWP (const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, double, double, double, Vec3 &, double &) |
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file).
bool Sphere3D::FillIn | ( | const Vec3 & | P1, |
const Vec3 & | P2, | ||
const Vec3 & | P3, | ||
const Vec3 & | P4, | ||
double | r1, | ||
double | r2, | ||
double | r3, | ||
double | r4, | ||
Vec3 & | M, | ||
double & | r | ||
) | [static] |
find the sphere that touches 4 spheres
P1 | position of 1st Sphere |
P2 | position of 2nd Sphere |
P3 | position of 3rd Sphere |
P4 | position of 4th Sphere |
r1 | radius of 1st Sphere |
r2 | radius of 2st Sphere |
r3 | radius of 3st Sphere |
r4 | radius of 4st Sphere |
M | return position of found sphere |
r | return radius of found sphere |
Referenced by ARandomAssembly3D::findAFit(), esys::lsm::SphereBlockGenerator::findAFit(), and esys::lsm::SphereBlockGenerator::findAFitWithSphere().
bool Sphere3D::FillInWP | ( | const Vec3 & | iP1, |
const Vec3 & | iP2, | ||
const Vec3 & | iP3, | ||
const Vec3 & | O, | ||
const Vec3 & | iD, | ||
double | r1, | ||
double | r2, | ||
double | r3, | ||
Vec3 & | M, | ||
double & | r | ||
) | [static] |
find the sphere that touch 3 spheres and one wall
P1 | position of 1st Sphere |
P2 | position of 2nd Sphere |
P3 | position of 3rd Sphere |
O | origin of the plane |
iD | normal of the plane |
r1 | radius of 1st Sphere |
r2 | radius of 2st Sphere |
r3 | radius of 3st Sphere |
M | return position of found sphere |
r | return radius of found sphere |
Referenced by ARandomAssembly3D::findAFit().