MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::EdgeSegment Struct Reference

Represents a segment on one edge. More...

#include <MREdgePoint.h>

Public Member Functions

 EdgeSegment ()=default
 
 EdgeSegment (EdgeId e, float a=0.0f, float b=1.0f)
 
EdgePoint edgePointA () const
 returns starting EdgePoint
 
EdgePoint edgePointB () const
 returns ending EdgePoint
 
bool valid () const
 returns true if the edge is valid and start point is less than end point
 
bool operator== (const EdgeSegment &rhs) const =default
 
EdgeSegment sym () const
 represents the same segment relative to sym edge in
 

Public Attributes

EdgeId e
 id of the edge
 
SegmPointf a { 0.0f }
 start of the segment
 
SegmPointf b { 1.0f }
 end of the segment
 

Detailed Description

Represents a segment on one edge.

Constructor & Destructor Documentation

◆ EdgeSegment() [1/2]

MR::EdgeSegment::EdgeSegment ( )
nodiscarddefault

◆ EdgeSegment() [2/2]

MR::EdgeSegment::EdgeSegment ( EdgeId e,
float a = 0.0f,
float b = 1.0f )
inlinenodiscard

Member Function Documentation

◆ edgePointA()

EdgePoint MR::EdgeSegment::edgePointA ( ) const
inlinenodiscard

returns starting EdgePoint

◆ edgePointB()

EdgePoint MR::EdgeSegment::edgePointB ( ) const
inlinenodiscard

returns ending EdgePoint

◆ operator==()

bool MR::EdgeSegment::operator== ( const EdgeSegment & rhs) const
default

◆ sym()

EdgeSegment MR::EdgeSegment::sym ( ) const
inlinenodiscard

represents the same segment relative to sym edge in

◆ valid()

bool MR::EdgeSegment::valid ( ) const
inlinenodiscard

returns true if the edge is valid and start point is less than end point

Member Data Documentation

◆ a

SegmPointf MR::EdgeSegment::a { 0.0f }

start of the segment

◆ b

SegmPointf MR::EdgeSegment::b { 1.0f }

end of the segment

◆ e

EdgeId MR::EdgeSegment::e

id of the edge


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