simplemesh: Generators for primitive meshes

[ bsd3, deprecated, library, web ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated

Generators for primitive meshes


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.7 && <5), linear [details]
License BSD-3-Clause
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 by jonascarpay at 2017-12-07T00:29:02Z
Distributions NixOS:0.1.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 941 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-12-07 [all 1 reports]

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)) ]