#include <Projection.h>
Public Member Functions | |
MeshProjection (const MeshKernel &) | |
bool | projectLineOnMesh (const MeshFacetGrid &grid, const Base::Vector3f &p1, FacetIndex f1, const Base::Vector3f &p2, FacetIndex f2, const Base::Vector3f &view, std::vector< Base::Vector3f > &polyline) |
~MeshProjection () | |
Protected Member Functions | |
bool | bboxInsideRectangle (const Base::BoundBox3f &bbox, const Base::Vector3f &p1, const Base::Vector3f &p2, const Base::Vector3f &view) const |
bool | connectLines (std::list< std::pair< Base::Vector3f, Base::Vector3f > > &cutLines, const Base::Vector3f &startPoint, const Base::Vector3f &endPoint, std::vector< Base::Vector3f > &polyline) const |
bool | isPointInsideDistance (const Base::Vector3f &p1, const Base::Vector3f &p2, const Base::Vector3f &pt) const |
MeshProjection::MeshProjection | ( | const MeshKernel & | mesh | ) |
MeshProjection::~MeshProjection | ( | ) |
|
protected |
|
protected |
References Base::DistanceP2().
Referenced by projectLineOnMesh().
|
protected |
References draftfunctions.move::move(), and Base::Vector3< _Precision >::ProjectToLine().
Referenced by projectLineOnMesh().
bool MeshProjection::projectLineOnMesh | ( | const MeshFacetGrid & | grid, |
const Base::Vector3f & | p1, | ||
FacetIndex | f1, | ||
const Base::Vector3f & | p2, | ||
FacetIndex | f2, | ||
const Base::Vector3f & | view, | ||
std::vector< Base::Vector3f > & | polyline | ||
) |
References bboxInsideRectangle(), connectLines(), MeshCore::MeshGeomFacet::GetBoundBox(), MeshCore::MeshGridIterator::GetBoundBox(), MeshCore::MeshGridIterator::GetElements(), MeshCore::MeshKernel::GetFacet(), MeshCore::MeshGridIterator::Init(), MeshCore::MeshGeomFacet::IntersectWithPlane(), isPointInsideDistance(), MeshCore::MeshGridIterator::More(), MeshCore::MeshGridIterator::Next(), and Base::Vector3< _Precision >::Normalize().
Referenced by MeshPartGui::CurveOnMeshHandler::Private::projectLineOnMesh(), and MeshPart::MeshProjection::projectParallelToMesh().