Skip to main content

cbop::Contour

cbop::Contour

#include <polygon.h>

Public Types

Name
typedef std::vector< Point_2 >::iterator iterator
typedef std::vector< Point_2 >::const_iterator const_iterator

Public Functions

Name
Contour()
Point_2 & vertex(unsigned int p)
Point_2 vertex(unsigned int p) const
Segment_2 segment(unsigned p) const
unsigned nvertices() const
unsigned nedges() const
Bbox_2 bbox() const
bool counterclockwise()
bool clockwise()
void changeOrientation()
void setClockwise()
void setCounterClockwise()
void move(double x, double y)
void add(const Point_2 & s)
void erase(iterator i)
void clear()
void clearHoles()
iterator begin()
iterator end()
const_iterator begin() const
const_iterator end() const
Point_2 & back()
const Point_2 & back() const
void addHole(unsigned int ind)
unsigned int nholes() const
unsigned int hole(unsigned int p) const
bool external() const
void setExternal(bool e)

Public Types Documentation

typedef iterator

typedef std::vector<Point_2>::iterator cbop::Contour::iterator;

typedef const_iterator

typedef std::vector<Point_2>::const_iterator cbop::Contour::const_iterator;

Public Functions Documentation

function Contour

inline Contour()

function vertex

inline Point_2 & vertex(
    unsigned int p
)

Get the p-th vertex of the external contour

function vertex

inline Point_2 vertex(
    unsigned int p
) const

function segment

inline Segment_2 segment(
    unsigned p
) const

function nvertices

inline unsigned nvertices() const

Number of vertices and edges

function nedges

inline unsigned nedges() const

function bbox

Bbox_2 bbox() const

Get the bounding box

function counterclockwise

bool counterclockwise()

Return if the contour is counterclockwise oriented

function clockwise

inline bool clockwise()

Return if the contour is clockwise oriented

function changeOrientation

inline void changeOrientation()

function setClockwise

inline void setClockwise()

function setCounterClockwise

inline void setCounterClockwise()

function move

void move(
    double x,
    double y
)

function add

inline void add(
    const Point_2 & s
)

function erase

inline void erase(
    iterator i
)

function clear

inline void clear()

function clearHoles

inline void clearHoles()

function begin

inline iterator begin()

function end

inline iterator end()

function begin

inline const_iterator begin() const

function end

inline const_iterator end() const

function back

inline Point_2 & back()

function back

inline const Point_2 & back() const

function addHole

inline void addHole(
    unsigned int ind
)

function nholes

inline unsigned int nholes() const

function hole

inline unsigned int hole(
    unsigned int p
) const

function external

inline bool external() const

function setExternal

inline void setExternal(
    bool e
)

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