Skip to main content

cbop::SweepEvent

cbop::SweepEvent

#include <booleanop.h>

Public Functions

Name
SweepEvent()
SweepEvent(bool b, const Point_2 & p, SweepEvent * other, PolygonType pt, EdgeType et =NORMAL)
bool below(const Point_2 & p) const
bool above(const Point_2 & p) const
bool vertical() const
Segment_2 segment() const
std::string toString() const

Public Attributes

Name
bool left
Point_2 point
SweepEvent * otherEvent
PolygonType pol
EdgeType type
bool inOut
bool otherInOut
std::set< SweepEvent *, SegmentComp >::iterator posSL
SweepEvent * prevInResult
bool inResult
unsigned int pos
bool resultInOut
unsigned int contourId

Public Functions Documentation

function SweepEvent

inline SweepEvent()

function SweepEvent

SweepEvent(
    bool b,
    const Point_2 & p,
    SweepEvent * other,
    PolygonType pt,
    EdgeType et =NORMAL
)

function below

inline bool below(
    const Point_2 & p
) const

Is the line segment (point, otherEvent->point) below point p

function above

inline bool above(
    const Point_2 & p
) const

Is the line segment (point, otherEvent->point) above point p

function vertical

inline bool vertical() const

Is the line segment (point, otherEvent->point) a vertical line segment

function segment

inline Segment_2 segment() const

Return the line segment associated to the SweepEvent

function toString

std::string toString() const

Public Attributes Documentation

variable left

bool left;

variable point

Point_2 point;

variable otherEvent

SweepEvent * otherEvent;

variable pol

PolygonType pol;

variable type

EdgeType type;

variable inOut

bool inOut;

Does segment (point, otherEvent->p) represent an inside-outside transition in the polygon for a vertical ray from (p.x, -infinite)?

variable otherInOut

bool otherInOut;

variable posSL

std::set< SweepEvent *, SegmentComp >::iterator posSL;

variable prevInResult

SweepEvent * prevInResult;

variable inResult

bool inResult;

variable pos

unsigned int pos;

variable resultInOut

bool resultInOut;

variable contourId

unsigned int contourId;

Updated on 2026-11-13 at 20:25:42 +0000