Base::Polygon2d Class Reference
#include <Tools2D.h>
Public Member Functions | |
| bool | Add (const Vector2d &rclVct) |
| Vector2d & | At (size_t ulNdx) const |
| BoundBox2d | CalcBoundBox (void) const |
| POLYGON2d. More... | |
| bool | Contains (const Vector2d &rclV) const |
| bool | Delete (size_t ulNdx) |
| void | DeleteAll (void) |
| size_t | GetCtVectors (void) const |
| bool | Intersect (const Polygon2d &rclPolygon) const |
| void | Intersect (const Polygon2d &rclPolygon, std::list< Polygon2d > &rclResultPolygonList) const |
| bool | Intersect (const Vector2d &rclV, double eps) const |
| Polygon2d & | operator= (const Polygon2d &rclP) |
| Vector2d & | operator[] (size_t ulNdx) const |
| Polygon2d (const Polygon2d &rclPoly) | |
| Polygon2d (void) | |
| virtual | ~Polygon2d () |
Detailed Description
2D polygon class.
Constructor & Destructor Documentation
◆ Polygon2d() [1/2]
| Base::Polygon2d::Polygon2d | ( | void | ) |
◆ Polygon2d() [2/2]
| Base::Polygon2d::Polygon2d | ( | const Polygon2d & | rclPoly | ) |
◆ ~Polygon2d()
|
virtual |
Member Function Documentation
◆ Add()
◆ At()
| Vector2d & Base::Polygon2d::At | ( | size_t | ulNdx | ) | const |
References Base::Line2d::clV1, and Base::Line2d::clV2.
Referenced by Intersect().
◆ CalcBoundBox()
| BoundBox2d Polygon2d::CalcBoundBox | ( | void | ) | const |
POLYGON2d.
References Base::BoundBox2d::MaxX, Base::BoundBox2d::MaxY, Base::BoundBox2d::MinX, and Base::BoundBox2d::MinY.
Referenced by MeshCore::MeshTrimming::CheckFacets(), and MeshCore::MeshAlgorithm::CheckFacets().
◆ Contains()
◆ Delete()
| bool Base::Polygon2d::Delete | ( | size_t | ulNdx | ) |
◆ DeleteAll()
| void Base::Polygon2d::DeleteAll | ( | void | ) |
Referenced by Intersect().
◆ GetCtVectors()
| size_t Base::Polygon2d::GetCtVectors | ( | void | ) | const |
Referenced by Contains(), Base::BoundBox2d::Intersect(), and Intersect().
◆ Intersect() [1/3]
References At(), Contains(), GetCtVectors(), and Base::Line2d::IntersectAndContain().
◆ Intersect() [2/3]
| void Polygon2d::Intersect | ( | const Polygon2d & | rclPolygon, |
| std::list< Polygon2d > & | rclResultPolygonList | ||
| ) | const |
References Add(), At(), Contains(), DeleteAll(), Base::Line2d::FromPos(), GetCtVectors(), and Base::Line2d::IntersectAndContain().
◆ Intersect() [3/3]
References GetCtVectors().
◆ operator=()
◆ operator[]()
| Vector2d & Base::Polygon2d::operator[] | ( | size_t | ulNdx | ) | const |
References Base::Line2d::clV1, and Base::Line2d::clV2.
The documentation for this class was generated from the following files:
- src/Base/Tools2D.h
- src/Base/Tools2D.cpp
1.8.17