SFCGAL 2.3.0
SFCGAL::detail::ConstraintInfo Struct Reference

Structure to identify constraint sources for topology-preserving mode. More...

#include <ConstraintInfo.h>

Public Types

enum class  Type {
  LINESTRING , POLYGON_EXTERIOR , POLYGON_INTERIOR , POLYHEDRALSURFACE_EXTERIOR ,
  POLYHEDRALSURFACE_INTERIOR , MULTIPOLYGON_EXTERIOR , MULTIPOLYGON_INTERIOR
}
 Constraint type enumeration. More...

Public Member Functions

 ConstraintInfo (Type constraintType, size_t geometryIndex, size_t ringIndexParam=0)
 Constructor for constraint info.

Public Attributes

Type type
 The constraint type.
size_t geomIndex
 Index of the source geometry.
size_t ringIndex
 Index of the ring within the geometry.

Detailed Description

Structure to identify constraint sources for topology-preserving mode.

Member Enumeration Documentation

◆ Type

Constraint type enumeration.

Enumerator
LINESTRING 
POLYGON_EXTERIOR 
POLYGON_INTERIOR 
POLYHEDRALSURFACE_EXTERIOR 
POLYHEDRALSURFACE_INTERIOR 
MULTIPOLYGON_EXTERIOR 
MULTIPOLYGON_INTERIOR 

Constructor & Destructor Documentation

◆ ConstraintInfo()

SFCGAL::detail::ConstraintInfo::ConstraintInfo ( Type constraintType,
size_t geometryIndex,
size_t ringIndexParam = 0 )
inline

Constructor for constraint info.

Parameters
constraintTypeThe constraint type
geometryIndexIndex of the source geometry
ringIndexParamIndex of the ring within the geometry

Member Data Documentation

◆ geomIndex

size_t SFCGAL::detail::ConstraintInfo::geomIndex

Index of the source geometry.

◆ ringIndex

size_t SFCGAL::detail::ConstraintInfo::ringIndex

Index of the ring within the geometry.

◆ type

Type SFCGAL::detail::ConstraintInfo::type

The constraint type.