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

#include <ClipperUtils.hpp>

Public Member Functions

 TriangleClipping ()=delete
 

Static Public Member Functions

static std::vector< Eigen::MatrixXd > clip (const Eigen::MatrixXd &subject_triangle, const Eigen::MatrixXd &clipping_triangle)
 Clip a triangle using triangle.
 

Detailed Description

Definition at line 40 of file ClipperUtils.hpp.

Constructor & Destructor Documentation

◆ TriangleClipping()

polyfem::utils::TriangleClipping::TriangleClipping ( )
delete

Member Function Documentation

◆ clip()

std::vector< Eigen::MatrixXd > polyfem::utils::TriangleClipping::clip ( const Eigen::MatrixXd &  subject_triangle,
const Eigen::MatrixXd &  clipping_triangle 
)
static

Clip a triangle using triangle.

Parameters
[in]subject_triangleTriangle to clip.
[in]clipping_triangleTriangle to clip with.
Returns
Clipped polygon(s).
Triangularization of the clipped (convex) polygon. Each entry is a matrix of size 3×2 containing the three vertices of each triangle.

Definition at line 103 of file ClipperUtils.cpp.

References polyfem::utils::PolygonClipping::clip(), polyfem::utils::triangle_fan(), and polyfem::utils::triangle_to_clockwise_order().

Referenced by polyfem::assembler::MassMatrixAssembler::assemble_cross().

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: