Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometric primitives and base algorithms

Modules§

convex_hull
Set of functions to compute and generate convex hulls
fail_fast
The fail-fast surrogate and all logic pertaining to its generation
geo_enums
Set of enums representing various geometric properties
geo_traits
Set of traits representing various geometric properties & operations
primitives
Set of geometric primitives - atomic building blocks for the geometry module
shape_modification
Set of function to modify geometric shapes

Structs§

AllowedOrientations
Permitted rotations without reflection and after canonical x-axis reflection.
DTransformation
A rigid transformation: optional reflection across the x-axis, then rotation, then translation. The reflection axis is in the transformation’s input coordinate system.
OriginalShape
A SPolygon exactly as is defined in the input file
Transformation
The matrix form of DTransformation. read more

Functions§

normalize_rotation
Normalizes a rotation angle to the range [0, 2π).