git-svn-id: svn://db.shs.com.ru/libs@696 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -265,7 +265,7 @@ Mesh * Primitive::cylinder(int segments, float radius, float height, float end_a
|
||||
|
||||
Mesh * Primitive::arrow(int segments, float thick, float angle) {
|
||||
double cone_r = 1.5 * thick;
|
||||
double cone_h = 1.5 * cone_r / tan(angle * deg2rad);
|
||||
double cone_h = 2. * cone_r / tan(angle * deg2rad);
|
||||
Mesh * ret = new Mesh();
|
||||
Mesh * m = Primitive::cylinder(segments, thick / 2., 1. - cone_h);
|
||||
ret->append(m);
|
||||
|
||||
Reference in New Issue
Block a user