Classes
Collaboration diagram for Polygon:

Classes

class  lanelet::BasicPolygon2d
 Primitive 2d polygon with basic points. More...
 
class  lanelet::BasicPolygon3d
 Primitive 3d polygon with basic points. More...
 
class  lanelet::BasicPolygonWithHoles2d
 A (basic) 2d polygon with holes insideThis class is thought for geometry calculations, it has no properties of a normal lanelet primitive. More...
 
class  lanelet::BasicPolygonWithHoles3d
 A (basic) 2d polygon with holes insideThis class is thought for geometry calculations, it has no properties of a normal lanelet primitive. More...
 
class  lanelet::CompoundHybridPolygon2d
 Combines multiple linestrings to one polygon in 2d that returns BasicPoint2d. More...
 
class  lanelet::CompoundHybridPolygon3d
 Combines multiple linestrings to one polygon in 3d that returns BasicPoint3d. More...
 
class  lanelet::CompoundPolygon2d
 Combines multiple linestrings to one polygon in 2d. More...
 
class  lanelet::CompoundPolygon3d
 Combines multiple linestrings to one polygon in 3d. More...
 
class  lanelet::ConstHybridPolygon2d
 Polygon with access to primitive points. More...
 
class  lanelet::ConstHybridPolygon3d
 Polygon with access to primitive points. More...
 
class  lanelet::ConstPolygon2d
 An immutable clockwise oriented, open (ie start point != end point) polygon in 2d. More...
 
class  lanelet::ConstPolygon3d
 An immutable clockwise oriented, open (ie start point != end point) polygon in 3d. More...
 
class  lanelet::Polygon2d
 An mutable clockwise oriented, open (ie start point != end point) polygon in 2d. More...
 
class  lanelet::Polygon3d
 A mutable clockwise oriented, open (ie start point != end point) polygon in 3d. More...
 

Detailed Description

General

Polygons are very similar to LineStringPrimitives. The only difference is their interpretation: LineStrings are a one-dimensional structure, Polygons are two-dimensional. They are assumed to be in clockwise order. An implicit edge is assumend between the last point and the first point of the polygon.

These polygons are second-class citisens of lanelet2. Most of the time, you will use Area instead. Their only role is for an annotation of a region in the map.

Design

The design of a Polygon is completely identical to LineStrings. They even share the same data structures and are directily convertible. The only difference is that polygons can not be inverted. This would not make sense.

As LineStrings and Polygons share the same data object, converting between the two is as cheap as copying a shared_ptr.

Compound versions

Similar to the CompoundLineString3d / CompoundLineString2d / ... classes, CompoundPolygon2d / CompoundPolygon3d exists that allows to combine multiple LineStrings3d to one closed polygon. They act like a normal polygon but internally access the data of multiple line strings.



lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Tue Jun 6 2023 02:23:32