AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
compute_moments.hpp File Reference

Consists of a set of methods to compute areas/volumes and centroids for Polygon and CurvedPolygon objects composed of nonrational BezierCurve objects. More...

#include "axom/config.hpp"
#include "axom/core.hpp"
#include "axom/primal/geometry/Point.hpp"
#include "axom/primal/geometry/BezierCurve.hpp"
#include "axom/primal/geometry/CurvedPolygon.hpp"
#include "axom/primal/operators/detail/compute_moments_impl.hpp"
#include <vector>
#include <map>

Namespaces

 axom
 
 axom::primal
 

Functions

template<typename T >
axom::primal::sector_area (const primal::BezierCurve< T, 2 > &curve)
 Calculates the signed sector area of a planar, nonrational Bezier curve. More...
 
template<typename T >
primal::Point< T, 2 > axom::primal::sector_centroid (const primal::BezierCurve< T, 2 > &curve)
 Calculates the area-weighted centroid numerator of a planar, nonrational Bezier curve. More...
 
template<typename T >
axom::primal::area (const primal::CurvedPolygon< BezierCurve< T, 2 >> &poly, double tol=1e-8)
 Returns the area enclosed by the CurvedPolygon. More...
 
template<typename T >
primal::Point< T, 2 > axom::primal::centroid (const primal::CurvedPolygon< BezierCurve< T, 2 >> &poly, double tol=1e-8)
 Returns the centroid of the CurvedPolygon. More...
 

Detailed Description

Consists of a set of methods to compute areas/volumes and centroids for Polygon and CurvedPolygon objects composed of nonrational BezierCurve objects.