The MeshGeomEdge class is geometric counterpart to MeshEdge that holds the geometric data points of an edge. More...
#include <Elements.h>
Public Member Functions | |
bool | ContainedByOrIntersectBoundingBox (const Base::BoundBox3f &rclBB) const |
Checks if the edge is inside the bounding box or intersects with it. | |
Base::BoundBox3f | GetBoundBox () const |
Returns the bounding box of the edge. | |
bool | IntersectBoundingBox (const Base::BoundBox3f &rclBB) const |
Checks if the edge intersects with the given bounding box. | |
MeshGeomEdge (void) | |
Public Attributes | |
Base::Vector3f | _aclPoints [2] |
Corner points. | |
bool | _bBorder |
Set to true if border edge. |
The MeshGeomEdge class is geometric counterpart to MeshEdge that holds the geometric data points of an edge.
Definition at line 137 of file Elements.h.
MeshCore::MeshGeomEdge::MeshGeomEdge | ( | void | ) | [inline] |
Definition at line 140 of file Elements.h.
bool MeshGeomEdge::ContainedByOrIntersectBoundingBox | ( | const Base::BoundBox3f & | rclBB | ) | const |
Checks if the edge is inside the bounding box or intersects with it.
Definition at line 163 of file Elements.cpp.
References _aclPoints, GetBoundBox(), IntersectBoundingBox(), and Base::BoundBox3< _Precision >::IsInBox().
Base::BoundBox3f MeshGeomEdge::GetBoundBox | ( | ) | const |
Returns the bounding box of the edge.
Definition at line 187 of file Elements.cpp.
References _aclPoints.
Referenced by ContainedByOrIntersectBoundingBox().
bool MeshGeomEdge::IntersectBoundingBox | ( | const Base::BoundBox3f & | rclBB | ) | const |
Checks if the edge intersects with the given bounding box.
Definition at line 192 of file Elements.cpp.
References _aclPoints, Base::BoundBox3< _Precision >::CalcCenter(), SketcherExample::f, Wm4::Vector3< Real >::Length(), Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), Base::BoundBox3< _Precision >::LengthZ(), Wm4::Vector3< Real >::Normalize(), draftTools::p, Wm4::IntrSegment3Box3< Real >::Test(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by ContainedByOrIntersectBoundingBox().
Corner points.
Definition at line 150 of file Elements.h.
Referenced by ContainedByOrIntersectBoundingBox(), GetBoundBox(), MeshCore::MeshKernel::GetEdges(), and IntersectBoundingBox().
Set to true if border edge.
Definition at line 151 of file Elements.h.
Referenced by MeshCore::MeshKernel::GetEdges().