Skip to content
GeolmPublic

About

Uniform sampling in combined shapes with overlap handling and distance constraints. (~300 LOC, C11)

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

spawn2d

Uniform sampling in combined shapes with overlap handling and distance constraints.

demo


Features

  • Uniform sampling in aggregated shapes (combination of multiple shapes)
    • discs
    • axis-aligned bounding boxes (AABB)
    • oriented bounding boxes (OBB)
    • ellipses
  • Exclusion shapes
  • Optional minimum-distance constraint
  • Uniform sampling along a Catmull-Rom spline with adjustable width
  • Deterministic RNG (SplitMix32)
  • C11, no dynamic allocation, no external dependencies
  • Only two functions in the API

About

Uniform sampling in combined shapes with overlap handling and distance constraints. (~300 LOC, C11)

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages