Skip to content

Class SFCGAL::algorithm::WeightedCentroid#

ClassList > algorithm > WeightedCentroid

More...

  • #include <centroid.h>

Public Attributes#

Type Name
SFCGAL::Kernel::FT area
total area or length
CGAL::Vector_3< SFCGAL::Kernel > centroid
3D centroid
SFCGAL::Kernel::FT m
weighted average of m

Public Functions#

Type Name
WeightedCentroid (SFCGAL::Kernel::FT a=0.0, CGAL::Vector_3< SFCGAL::Kernel > c=CGAL::Vector_3< SFCGAL::Kernel >(), SFCGAL::Kernel::FT mTmp=0.0)

Detailed Description#

Holds weighted data to compute the centroid for a Geometry

Public Attributes Documentation#

variable area#

total area or length

SFCGAL::Kernel::FT SFCGAL::algorithm::WeightedCentroid::area;

variable centroid#

3D centroid

CGAL::Vector_3<SFCGAL::Kernel> SFCGAL::algorithm::WeightedCentroid::centroid;

variable m#

weighted average of m

SFCGAL::Kernel::FT SFCGAL::algorithm::WeightedCentroid::m;

Public Functions Documentation#

function WeightedCentroid#

inline algorithm::WeightedCentroid::WeightedCentroid (
    SFCGAL::Kernel::FT a=0.0,
    CGAL::Vector_3< SFCGAL::Kernel > c=CGAL::Vector_3< SFCGAL::Kernel >(),
    SFCGAL::Kernel::FT mTmp=0.0
) 

Default constructor



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/algorithm/centroid.h