PolyFEM
Loading...
Searching...
No Matches
polyfem::quadrature::PolygonQuadrature Class Reference

#include <PolygonQuadrature.hpp>

Public Member Functions

 PolygonQuadrature ()
 
void get_quadrature (const Eigen::MatrixXd &poly, const int order, Quadrature &quadr)
 Gets the quadrature points & weights for a polygon.
 

Detailed Description

Definition at line 9 of file PolygonQuadrature.hpp.

Constructor & Destructor Documentation

◆ PolygonQuadrature()

polyfem::quadrature::PolygonQuadrature::PolygonQuadrature ( )

Definition at line 60 of file PolygonQuadrature.cpp.

Member Function Documentation

◆ get_quadrature()

void polyfem::quadrature::PolygonQuadrature::get_quadrature ( const Eigen::MatrixXd &  poly,
const int  order,
Quadrature quadr 
)

Gets the quadrature points & weights for a polygon.

Parameters
[in]polyn x 2 matrix, coordinates of the polyline defining the boundary of the polygon
[in]orderorder of the quadrature (ignored for now)
[out]quadrcomputed quadrature data

Definition at line 64 of file PolygonQuadrature.cpp.

References polyfem::quadrature::TriQuadrature::get_quadrature(), and polyfem::quadrature::Quadrature::weights.

Referenced by polyfem::basis::PolygonalBasis2d::build_bases(), and polyfem::basis::BarycentricBasis2d::build_bases().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: