xlifepp::subdivision – Functions#
barycenter#
DECHOL#
-
int xlifepp::subdivision::DECHOL(const vector<vector<real_t>> &A, int n, vector<vector<real_t>> &L, real_t eps)#
DRCHOL#
-
void xlifepp::subdivision::DRCHOL(const vector<vector<real_t>> &L, int n, vector<vector<real_t>> &B, int m)#
fmtTeX#
-
string xlifepp::subdivision::fmtTeX(const string &strorig)#
-
TeX format.
This function returns a copy of strorig where some characters have been replaced by their equivalent in typewriter font (tt) in order to allow compilation by TeX.
geomEndShapeFromShapeType#
-
inline GeomEndShape xlifepp::subdivision::geomEndShapeFromShapeType(const ShapeType &st)#
gsubstitute#
-
void xlifepp::subdivision::gsubstitute(string &str, const char *that, const char *bythat)#
-
Global substitution.
This function substitutes each occurrence of substring that in str by the string bythat.
IMP#
projOnPlane#
projOnSph#
-
Point xlifepp::subdivision::projOnSph(const real_t *coef, const std::vector<Point> &VP, const real_t Radius)#
-
Projection onto the sphere S of the barycenter of the points stored in VP with associated coefficients stored in coef.
projection onto a sphere of radius Radius of the barycenter of n points
The points in VP are assumed to be lying on the sphere S centered at the origin, with the radius Radius.
rotationMatrix#
rotInPlane#
-
Point xlifepp::subdivision::rotInPlane(const Point &P, const real_t ct, const real_t st, const Point &A, const Vect &U)#
-
Rotation of the point P by the angle theta (given by their cosine ct and sine st) around the axis defined by the point A and the unitary vector U in the plane defined by the point P and the normal unitary vector U.
rotation of the current point around the axis defined by the point A and the unitary vector U, in the plane orthogonal to U
rotOnSph#
-
Point xlifepp::subdivision::rotOnSph(const Point &P1, const Point &P2, const int k, const int n)#
-
Rotation of P1 by the angle alpha = k/n * ang(P1,O,P2) in the plane (P1,O,P2).
rotation of P1 by the angle k/n * ang(P1, O, P2)
P1 and P2 are assumed to be lying onto the sphere, centered at the origin 0.
translate#
-
Point xlifepp::subdivision::translate(const Point &P, const real_t lambda, const Vect &U)#
-
Translation of the point P by the vector lambda*U.
translation of the current point by the vector lambda*U