Skip to content

Point generation utilities with random close packing

Notifications You must be signed in to change notification settings

entropylost/prism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prism

Prism is a library for generating points in patterns within volumes.

Polygon::new()
        .add_rect(Vector2::new(100.0, 100.0), Vector2::new(200.0, 200.0))
        .add_polygon(&[
            Vector2::new(150.0, 150.0),
            Vector2::new(150.0, 250.0),
            Vector2::new(250.0, 200.0),
        ])
        .packed_points(5.0)

Image of result

Features:

  • Arbitrary-dimensional cuboid and sphere volumes.
  • 2d multi-polygon volumes (with holes).
  • Grid and white noise random point generation.
  • Random close packing generation.

About

Point generation utilities with random close packing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages