xlifepp::subdivision – Functions#

barycenter#

Point xlifepp::subdivision::barycenter(const real_t *coef, const std::vector<Point> &VP)#

Computation of the barycenter of the points stored in the vector VP, with associated coefficients stored in coef.

barycenter of n points

Point xlifepp::subdivision::barycenter(const std::vector<real_t> &coef, const std::vector<Point> &VP)#

Computation of the barycenter of the points stored in the vector VP, with associated coefficients stored in coefn as std::vector.

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#

void xlifepp::subdivision::IMP(const vector<vector<number_t>> &comesh, const vector<pair<short, short>> &rkEV, const vector<number_t> &rkUnk, const vector<number_t> &rkData)#

projOnPlane#

Point xlifepp::subdivision::projOnPlane(const Point &P, const Point &A, const Vect &U)#

Projection of the point P onto the plane defined by the point A and the normal unitary vector U.

projection onto the plane defined by the point A and the normal unitary vector U

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#

Matrix<real_t> xlifepp::subdivision::rotationMatrix(real_t theta, dimen_t axis)#

Apply rotations defined in rots and the translation of vector U to each point of Pt.

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