CGAL 5.1 - 2D Straight Skeleton and Polygon Offsetting

#include <Concepts/VertexContainer_2.h>

Definition

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.

Has Models:

CGAL::Polygon_2

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

Types

typedef unspecified_type Point_2
 A 2D point type used to represent a vertex. More...
 
typedef unspecified_type size_type
 A unsigned integral type that can represent the number of vertices in the container. More...
 

Creation

 VertexContainer_2 ()
 Default constructor. More...
 
size_type size () const
 Returns the number of vertices in the container. More...
 
void push_back (Point_2 const &v) const
 Adds the vertex v to the container, resizing its capacity if required. More...
 

Member Typedef Documentation

◆ Point_2

A 2D point type used to represent a vertex.

Must be a model of the Kernel::Point_2 concept

◆ size_type

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

Constructor & Destructor Documentation

◆ VertexContainer_2()

VertexContainer_2::VertexContainer_2 ( )

Default constructor.

Member Function Documentation

◆ push_back()

void VertexContainer_2::push_back ( Point_2 const &  v) const

Adds the vertex v to the container, resizing its capacity if required.

◆ size()

size_type VertexContainer_2::size ( ) const

Returns the number of vertices in the container.