projects
/
hair
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added head mesh, points/directions for hair that follow the Poisson
[hair]
/
src
/
hair.h
1
#ifndef PARTICLES_H_
2
#define PARTICLES_H_
3
4
#include <gmath/gmath.h>
5
6
#include "mesh.h"
7
8
class Hair {
9
private:
10
std::vector<Vec3> spawn_points;
11
std::vector<Vec3> spawn_directions;
12
13
public:
14
Hair();
15
~Hair();
16
17
bool init(const Mesh *m, int num_spawns, float thresh = 0.4);
18
void draw() const;
19
};
20
21
#endif //PARTICLES_H_
22