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
) constfunction segment
inline Segment_2 segment(
unsigned p
) constfunction nvertices
inline unsigned nvertices() constNumber of vertices and edges
function nedges
inline unsigned nedges() constfunction bbox
Bbox_2 bbox() constGet 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() constfunction end
inline const_iterator end() constfunction back
inline Point_2 & back()function back
inline const Point_2 & back() constfunction addHole
inline void addHole(
unsigned int ind
)function nholes
inline unsigned int nholes() constfunction hole
inline unsigned int hole(
unsigned int p
) constfunction external
inline bool external() constfunction setExternal
inline void setExternal(
bool e
)Updated on 2026-11-13 at 20:25:42 +0000