Class xlifepp::subdivision::SurfCone#
-
class SurfCone : public xlifepp::subdivision::SurfRevolution#
-
Inheritence diagram for xlifepp::subdivision::SurfCone:
Collaboration diagram for xlifepp::subdivision::SurfCone:
Public Functions
-
inline SurfCone(const Point &P1, const Point &P2, const real_t radius1, const real_t radius2 = 0)#
-
main constructor for a cone or a truncated cone P1 is the center of the circular basis of the cone.
P2 is the vertex of the cone (in which case radius2=0) or the center of the other circular basis of the truncated cone. radius1 is the radius of the circular section of the cone in the plane orthogonal to the axis (P1,P2) containing P1. It should not be null. radius2 is null or is the radius of the other circular section of the truncated cone in the plane orthogonal to the axis (P1,P2) containing P2. R2 -— P2 ^ / | | / | | heigth / | | —–— P1 v R1
-
virtual Point projOnBound(const real_t *coef, const std::vector<Point> &VP) const#
-
projection onto the cone of the barycenter of the points in VP with coefficients in coef
Projection onto the cone of the barycenter of the points in VP with coefficients in coef.
The points in VP are assumed to lie on the cone (this is not checked). The projection is made in the plane orthogonal to the axis containing the point to project.
-
std::vector<real_t> radii() const#
-
return the radii of the cone
-
inline SurfCone(const Point &P1, const Point &P2, const real_t radius1, const real_t radius2 = 0)#