VertexContainer_2

Introduction

A model for the VertexContainer_2 concept defines the requirements for a resizable container of 2D points. It is used to output the offset polygons generated by the Polygon_offset_builder_2<Ssds,Gt,Container> class.

Types

VertexContainer_2::Point_2
A 2D point type used to represent a vertex. Must be a model of the Kernel::Point_2 concept

VertexContainer_2::size_type
A unsigned integral type that can represent the number of vertices in the container.

Creation

VertexContainer_2 c;
Default constructor

size_type c.size () const Returns the number of vertices in the container.

void c.push_back ( Point_2 const& v) const
Adds the vertex v to the container, resizing its capacity if required.

Has Models

CGAL::Polygon_2

Any standard BackInsertionSequence, such as vector, list or deque, with a value_type being a model of the Kernel::Point_2 concept.