encodes a point on an edge of mesh or of polyline More...
#include <MRMesh/MREdgePoint.h>
Public Member Functions | |
| EdgePointT ()=default | |
| EdgePointT (EdgeId e, T a) | |
| EdgePointT (const MeshTopology &topology, VertId v) | |
| EdgePointT (const PolylineTopology &topology, VertId v) | |
| VertId | inVertex (const MeshTopology &topology) const |
| returns valid vertex id if the point is in vertex, otherwise returns invalid id | |
| VertId | inVertex (const PolylineTopology &topology) const |
| returns valid vertex id if the point is in vertex, otherwise returns invalid id | |
| VertId | getClosestVertex (const MeshTopology &topology) const |
| returns one of two edge vertices, closest to this point | |
| VertId | getClosestVertex (const PolylineTopology &topology) const |
| returns one of two edge vertices, closest to this point | |
| bool | inVertex () const |
| returns true if the point is in a vertex | |
| void | moveToClosestVertex () |
| sets this to the closest end of the edge | |
| bool | isBd (const MeshTopology &topology, const FaceBitSet *region=nullptr) const |
| returns true if the point is on the boundary of the region (or for whole mesh if region is nullptr) | |
| bool | valid () const |
| consider this valid if the edge ID is valid | |
| operator bool () const | |
| EdgePointT | sym () const |
| represents the same point relative to sym edge in | |
| bool | operator== (const EdgePointT &rhs) const =default |
| returns true if two edge-points are equal including equal not-unique representation | |
Public Attributes | |
| EdgeId | e |
| SegmPoint< T > | a |
| a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) | |
encodes a point on an edge of mesh or of polyline