MeshLib C++ Docs
Loading...
Searching...
No Matches

encodes a point on an edge of mesh or of polyline More...

#include <MRMesh/MREdgePoint.h>

Public Member Functions

 EdgePoint ()=default
 EdgePoint (EdgeId e, float a)
 EdgePoint (const MeshTopology &topology, VertId v)
 EdgePoint (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
EdgePoint sym () const
 represents the same point relative to sym edge in
bool operator== (const EdgePoint &rhs) const =default
 returns true if two edge-points are equal including equal not-unique representation

Public Attributes

EdgeId e
SegmPointf a
 a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e )

(Note that these are not member symbols.)

bool fromSameTriangle (const MeshTopology &topology, EdgePoint &a, EdgePoint &b)
bool fromSameTriangle (const MeshTopology &topology, EdgePoint &&a, EdgePoint &&b)

Detailed Description

encodes a point on an edge of mesh or of polyline


The documentation for this struct was generated from the following file: