ESyS-Particle
4.0.1
|
Public Member Functions | |
RectPatch (double, double, double, double, double, double) | |
double | sep (const Vec3 &) |
double | dist (const Vec3 &) |
bool | intersect (const Vec3 &, const Vec3 &) |
Plane | getPlane (const Vec3 &) |
Vec3 | getBasePoint () const |
RectPatch::RectPatch | ( | double | xmin, |
double | xmax, | ||
double | zmin, | ||
double | zmax, | ||
double | y0, | ||
double | dy | ||
) |
construct a axis aligned rectangular patch in the x-z plane
xmin | min. x-pos |
xmax | max. x-pos |
zmin | min. z-pos |
zmax | max. z-pos |
z0 | z-pos |
dz | "roughness" parameter |
double RectPatch::dist | ( | const Vec3 & | P | ) |
Get distance from given point to closest point of patch.
P | the point |
References sep().
get the plane further away from the given point
Referenced by CRoughPaddedBlock3D::getClosestPlane().
check if line between 2 points intersects patch
P1 | 1st point |
P2 | 2nd point |
double RectPatch::sep | ( | const Vec3 & | P | ) |
Get (perpendicular) distance from given point. If projection of point onto plane is outside patch return -1
P | the point |
Referenced by dist(), CRoughPaddedBlock3D::getClosestPatch(), and CRoughPaddedBlock3D::getClosestPlane().