PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::PolygonClipping Class Reference

#include <ClipperUtils.hpp>

Public Member Functions

 PolygonClipping ()=delete
 

Static Public Member Functions

static std::vector< Eigen::MatrixXd > clip (const Eigen::MatrixXd &subject_polygon, const Eigen::MatrixXd &clipping_polygon)
 Clip a polygon using convex polygon.
 
static PolyClipper::Vector2d toPolyClipperVector (const Eigen::Vector2d &v)
 
static Eigen::Vector2d fromPolyClipperVector (const PolyClipper::Vector2d &v)
 

Detailed Description

Definition at line 15 of file ClipperUtils.hpp.

Constructor & Destructor Documentation

◆ PolygonClipping()

polyfem::utils::PolygonClipping::PolygonClipping ( )
delete

Member Function Documentation

◆ clip()

std::vector< Eigen::MatrixXd > polyfem::utils::PolygonClipping::clip ( const Eigen::MatrixXd &  subject_polygon,
const Eigen::MatrixXd &  clipping_polygon 
)
static

Clip a polygon using convex polygon.

Parameters
[in]subject_polygonPolygon to clip in clockwise order.
[in]clipping_polygonConvex polygon to clip with in clockwise order.
Returns
Clipped polygon(s).

Definition at line 10 of file ClipperUtils.cpp.

References fromPolyClipperVector(), and toPolyClipperVector().

Referenced by polyfem::utils::TriangleClipping::clip().

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

◆ fromPolyClipperVector()

Eigen::Vector2d polyfem::utils::PolygonClipping::fromPolyClipperVector ( const PolyClipper::Vector2d &  v)
static

Definition at line 221 of file ClipperUtils.cpp.

Referenced by clip().

Here is the caller graph for this function:

◆ toPolyClipperVector()

PolyClipper::Vector2d polyfem::utils::PolygonClipping::toPolyClipperVector ( const Eigen::Vector2d &  v)
static

Definition at line 216 of file ClipperUtils.cpp.

Referenced by clip().

Here is the caller graph for this function:

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