git-svn-id: svn://db.shs.com.ru/libs@695 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-12 18:23:03 +00:00
parent bee5885342
commit 1e73f5e41a
2 changed files with 4 additions and 4 deletions

View File

@@ -264,10 +264,10 @@ Mesh * Primitive::cylinder(int segments, float radius, float height, float end_a
Mesh * Primitive::arrow(int segments, float thick, float angle) {
double cone_r = 2. * thick;
double cone_r = 1.5 * thick;
double cone_h = 1.5 * cone_r / tan(angle * deg2rad);
Mesh * ret = new Mesh();
Mesh * m = Primitive::cylinder(segments, thick, 1. - cone_h);
Mesh * m = Primitive::cylinder(segments, thick / 2., 1. - cone_h);
ret->append(m);
delete m;
m = Primitive::cone(segments, cone_r, cone_h);