The simplemesh package

[ Tags: bsd3, library, web ] [ Propose Tags ]

Generators for primitive meshes


[Skip to Readme]

Properties

Versions 0.1.0.0
Dependencies base (>=4.7 && <5), linear [details]
License BSD3
Author Jonas Carpay
Maintainer jonascarpay@gmail.com
Category Web
Home page https://github.com/jonascarpay/simplemesh#readme
Source repo head: git clone https://github.com/jonascarpay/simplemesh
Uploaded Thu Dec 7 00:29:02 UTC 2017 by jonascarpay
Distributions NixOS:0.1.0.0
Downloads 156 total (8 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-12-07 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for simplemesh-0.1.0.0

[back to package description]

simplemesh

Utility functions for the generation of primitive meshes, similar to Rust's genmesh. Ideally, I want to be able to unify shapes in gloss and apecs-physics, but for now, this is just a collection of functions that I find myself writing a lot. If you know of a more formal library (or have ideas on how to make this one more formal), let me know. If you don't know of another library and want me to push this one to Hackage, also let me know.

> vertices (rectangle 2 3)
[ V2 0.0 0.0, V2 0.0 3.0, V2 2.0 3.0, V2 2.0 0.0 ]

> edges (centeredRectangle 2 3)
[ (V2 (-1.0) (-1.5), V2 (-1.0) 1.5)
, (V2 (-1.0) 1.5, V2 1.0 1.5)
, (V2 1.0 1.5, V2 1.0 (-1.5))
, (V2 1.0 (-1.5), V2 (-1.0) (-1.5)) ]