Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aspect ratio of a triangle of a meshed surface

Tags:

c++

math

mesh

I need to calculate the aspect ratio of a triangle. I have the 3 points, and therefore I have the lengths and midpoints. I was attempting to use this tutorial (although its not much of one in my opinion), but it is very vague and doesn't give much information. Could someone elaborate, specifically on the rectangle creation part, or even share a bit of c++ code to solve this problem?

To James's solution:

double s = (a + b + c) / 2.0;
double AR = (a * b * c) / (8.0 * (s - a) * (s - b) * (s - c));

@James:

Cubit reports the following:

Function Name  Average      Std Dev      Minimum     Maximum
-------------  ---------    ---------    ---------   ---------
Aspect Ratio   1.000e+00    7.371e-04    1.000e+00   1.010e+00
--------------------------------------------------------------

Your formula reports the following:

Function Name  Average    Minimum    Maximum
-------------  ---------  --------   -------
Aspect Ratio   1.00006    1.000000   1.00972
--------------------------------------------
like image 749
Drise Avatar asked Apr 23 '12 23:04

Drise


People also ask

What is aspect ratio formula?

Aspect ratios are written as a formula of width to height, like this: 3:2. For example, a square image has an aspect ratio of 1:1, since the height and width are the same. The image could be 500px × 500px, or 1500px × 1500px, and the aspect ratio would still be 1:1.

What is the aspect ratio of triangle having same units of size?

Aspect ratio of a triangle is the ratio of the circumradius to twice its inradius, so AR = abc/(8(s-a)(s-b)(s-c)) where a,b,c are the lengths of sides of the triangle and s = (a+b+c)/2 . So, if a=b=c , then the aspect ratio is 1.

How do you find the ratio of the sides of a triangle?

use the formula a, b, c are the side lengths, A, B C are the opposite angles. a/sin A = b/ sin B = c/sin C. This give you their relative sizes to each other. If one length is known then you can figure out the other two.

What is aspect ratio of a material?

5.1 Aspect Ratio. The aspect ratio (L/D) of an object is defined as the ratio of its longest dimension to shortest dimension.


1 Answers

These are the definitions of aspect ratio for triangles I know:

Aspect ratio of a triangle is the ratio of the longest edge to shortest edge (so equilateral triangle has aspect ratio 1).

Aspect ratio of a triangle is the ratio of the circumradius to twice its inradius, so AR = abc/(8(s-a)(s-b)(s-c)) where a,b,c are the lengths of sides of the triangle and s = (a+b+c)/2. So, if a=b=c, then the aspect ratio is 1.

These are much easier to calculate than what you've given.

like image 78
James Custer Avatar answered Sep 28 '22 02:09

James Custer