Mesh::Edge Class Reference

The Edge helper class The Edge class provides an interface for the EdgePy class for convenient access to the Mesh data structure. More...

#include <Edge.h>

Public Member Functions

 Edge ()
 
 Edge (const Edge &f)
 
bool isBound () const
 
void operator= (const Edge &f)
 
void unbound ()
 
 ~Edge ()
 
- Public Member Functions inherited from MeshCore::MeshGeomEdge
void ClosestPointsToLine (const Base::Vector3f &linePt, const Base::Vector3f &lineDir, Base::Vector3f &rclPnt1, Base::Vector3f &rclPnt2) const
 Get the closest points rclPnt1 and rclPnt2 of the line defined by this edge and the line defined by rclPt and rclDir. More...
 
bool ContainedByOrIntersectBoundingBox (const Base::BoundBox3f &rclBB) const
 Checks if the edge is inside the bounding box or intersects with it. More...
 
Base::BoundBox3f GetBoundBox () const
 Returns the bounding box of the edge. More...
 
bool IntersectBoundingBox (const Base::BoundBox3f &rclBB) const
 Checks if the edge intersects with the given bounding box. More...
 
bool IntersectWithEdge (const MeshGeomEdge &edge, Base::Vector3f &res) const
 Calculates the intersection point of an edge with this edge. More...
 
bool IntersectWithLine (const Base::Vector3f &rclPt, const Base::Vector3f &rclDir, Base::Vector3f &rclRes) const
 Calculates the intersection point of the line defined by the base rclPt and the direction rclDir with the edge. More...
 
bool IntersectWithPlane (const Base::Vector3f &rclPt, const Base::Vector3f &rclDir, Base::Vector3f &rclRes) const
 Calculates the intersection point of the plane defined by the base rclPt and the direction rclDir with the edge. More...
 
bool IsCollinear (const MeshGeomEdge &edge) const
 Checks if the two edges are collinear. More...
 
bool IsParallel (const MeshGeomEdge &edge) const
 Checks if the two edges are parallel. More...
 
bool IsPointOf (const Base::Vector3f &rclPoint, float fDistance) const
 Checks if the point is part of the edge. More...
 
bool IsProjectionPointOf (const Base::Vector3f &point) const
 Checks if the projection point of point lies on the edge. More...
 
 MeshGeomEdge ()
 
void ProjectPointToLine (const Base::Vector3f &rclPoint, Base::Vector3f &rclProj) const
 Calculates the projection of a point onto the line defined by the edge. More...
 

Public Attributes

int Index
 
Base::Reference< const MeshObjectMesh
 
MeshCore::FacetIndex NIndex [2]
 
MeshCore::PointIndex PIndex [2]
 

Detailed Description

The Edge helper class The Edge class provides an interface for the EdgePy class for convenient access to the Mesh data structure.

This class should not be used for programming algorithms in C++. Use Mesh Core classes instead!

Constructor & Destructor Documentation

◆ Edge() [1/2]

◆ Edge() [2/2]

Edge::Edge ( const Edge f)

References NIndex, and PIndex.

◆ ~Edge()

Edge::~Edge ( )

Member Function Documentation

◆ isBound()

bool Mesh::Edge::isBound ( ) const

◆ operator=()

void Edge::operator= ( const Edge f)

References Index, NIndex, and PIndex.

◆ unbound()

void Edge::unbound ( )

References Index.

Member Data Documentation

◆ Index

◆ Mesh

Base::Reference<const MeshObject> Mesh::Edge::Mesh

Referenced by Mesh::Facet::getEdge().

◆ NIndex

MeshCore::FacetIndex Mesh::Edge::NIndex[2]

◆ PIndex

MeshCore::PointIndex Mesh::Edge::PIndex[2]

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