#include <Tools2D.h>
Public Member Functions | |
bool | Add (const Vector2D &rclVct) |
Vector2D & | At (size_t ulNdx) const |
BoundBox2D | CalcBoundBox (void) const |
POLYGON2D. | |
bool | Contains (const Vector2D &rclV) const |
bool | Delete (size_t ulNdx) |
void | DeleteAll (void) |
size_t | GetCtVectors (void) const |
void | Intersect (const Polygon2D &rclPolygon, std::list< Polygon2D > &rclResultPolygonList) const |
Polygon2D & | operator= (const Polygon2D &rclP) |
Vector2D & | operator[] (size_t ulNdx) const |
Polygon2D (const Polygon2D &rclPoly) | |
Polygon2D (void) | |
virtual | ~Polygon2D () |
2D polygon class.
Definition at line 135 of file Tools2D.h.
Base::Polygon2D::Polygon2D | ( | const Polygon2D & | rclPoly | ) | [inline] |
bool Base::Polygon2D::Add | ( | const Vector2D & | rclVct | ) | [inline] |
Definition at line 267 of file Tools2D.h.
Referenced by PointsGui::ViewProviderPoints::cut(), MeshGui::ViewProviderMesh::getFacetsFromPolygon(), and Intersect().
Vector2D & Base::Polygon2D::At | ( | size_t | ulNdx | ) | const [inline] |
Definition at line 290 of file Tools2D.h.
Referenced by Intersect().
BoundBox2D Polygon2D::CalcBoundBox | ( | void | ) | const |
POLYGON2D.
Definition at line 246 of file Tools2D.cpp.
References Base::BoundBox2D::fMaxX, Base::BoundBox2D::fMaxY, Base::BoundBox2D::fMinX, and Base::BoundBox2D::fMinY.
Referenced by MeshCore::MeshAlgorithm::CheckFacets().
bool Polygon2D::Contains | ( | const Vector2D & | rclV | ) | const |
Definition at line 295 of file Tools2D.cpp.
References _CalcTorsion(), Base::Vector2D::fX, Base::Vector2D::fY, and GetCtVectors().
Referenced by MeshCore::MeshAlgorithm::CheckFacets(), PointsGui::ViewProviderPoints::cut(), Intersect(), and Base::BoundBox2D::operator||().
void Base::Polygon2D::DeleteAll | ( | void | ) | [inline] |
Definition at line 257 of file Tools2D.h.
Referenced by Intersect().
size_t Base::Polygon2D::GetCtVectors | ( | void | ) | const [inline] |
Definition at line 262 of file Tools2D.h.
Referenced by Contains(), Intersect(), and Base::BoundBox2D::operator||().
void Polygon2D::Intersect | ( | const Polygon2D & | rclPolygon, | |
std::list< Polygon2D > & | rclResultPolygonList | |||
) | const |
Definition at line 336 of file Tools2D.cpp.
References Add(), At(), Contains(), DeleteAll(), Base::Line2D::FromPos(), GetCtVectors(), Base::Line2D::IntersectAndContain(), and Base::Length.
Vector2D & Base::Polygon2D::operator[] | ( | size_t | ulNdx | ) | const [inline] |