Finding percentage of volume/area in a cube/square

In summary, the conversation discusses the possibility of finding the percentage of a pink area inside a rotated square using the distance from the pink to the center of the square and the rotation angle. It is possible to calculate this using trigonometry and drawing the situation helps in visualizing the solution. The method can also be applied to cubes with different tilt angles. However, if there are curves involved, a numeric approximation may be needed. The connection between drawing and calculating is supported by the fact that drawing helps in visualizing the problem and finding a solution.
  • #1
aosome23
16
0
Okay, so this is quite hard to explain in words so I will use pictures.

O0AzYeF.jpg

Suppose you have a Square with the length of W
You also know the distance from the pink surface to the center of the square is X. The rotation of the square is theta. As shown in the picture above...

So the problem is: Is it possible to find how much of the pink is inside the square using X and theta using percentage? For example I know that if the rotation is 0, and the distance from the pink to the center of the cube is 0, it will be 50%(shown in the bottom picture)... However, when the angle changes, I do not know how to solve it...

SaHSDh4.jpg


So is this even possible? I have a feeling it is but its very complicated
ALSO, if it is possible, can you do this for a cube?

Thanks
 
Mathematics news on Phys.org
  • #2
You can draw it, therefore it is possible to calculate it.

If the square is partially inside like in the upper right case, it is relatively easy to find the answer - draw a line through the "upper end" of your line "x" that is parallel to the top of the square. It will create two triangles of the same size - one inside, one outside the red area. You can imagine to exchange them, then your problem is reduced to the lower right case, you just have to find the distance between the center and this new line. This can be done with trigonometry.

If two adjacent sides of your square are partially (or outside) in the red area, it gets more complicated, but again trigonometry helps.A cube can have two different tilt angles and more cases, in the general case that gets messy.
 
  • #3
mfb said:
You can draw it, therefore it is possible to calculate it.

That seems like a very profound fact, do you have any supporting evidence? Is there truly an intrinsic connection between drawing something and calculating it?

I have done a project similar to this - It's definitely possible to find the area percentage analytically, and even if it wasn't you could also find it numerically. Like mfb said, you use trigonometry to do it.
 
  • #4
ellipsis said:
That seems like a very profound fact, do you have any supporting evidence? Is there truly an intrinsic connection between drawing something and calculating it?
Well, a numeric solution is obvious - you can simply count pixels.
For analytic solutions with straight lines only (!): if you know the coordinates of all lines, you can calculate the intersections and get analytic values for them. You can then divide all areas into triangles and calculate the area of each one.
In general, this is not possible if you have some curves, but then you can still get a numeric approximation.
 
  • Like
Likes zoki85
  • #5
Well, it depends on the kind of curve, mfb: The problem of a circle overlap percentage is even easier! (Just take the area of the circular segment)
 
  • #6
mfb said:
In general, this is not possible if you have some curves, but then you can still get a numeric approximation.
Sure, there are many cases where it is possible.
 
  • #7
mfb said:
Well, a numeric solution is obvious - you can simply count pixels.
rofl2.gif
 

Related to Finding percentage of volume/area in a cube/square

1. How do you find the percentage of volume in a cube?

To find the percentage of volume in a cube, you first need to find the total volume of the cube by multiplying the length, width, and height. Then, you can find the percentage of volume by dividing the desired volume by the total volume and multiplying by 100.

2. What is the formula for finding the area of a square?

The formula for finding the area of a square is length multiplied by width (A = l x w). This means that you would multiply one side of the square by another side to find the total area.

3. How do you calculate the percentage of area in a square?

To calculate the percentage of area in a square, you first need to find the total area by using the formula A = l x w. Then, divide the desired area by the total area and multiply by 100 to get the percentage.

4. Is there a difference between finding the percentage of volume and the percentage of area in a cube or square?

Yes, there is a difference. Finding the percentage of volume involves calculating the percentage of the total volume of a three-dimensional object, while finding the percentage of area involves calculating the percentage of the total area of a two-dimensional object.

5. Can you use the same formula to find the percentage of volume/area in any shape?

No, the formula for finding the percentage of volume/area in a cube or square is specific to these shapes. Other shapes may have different formulas for finding their percentage of volume/area.

Similar threads

  • General Math
Replies
1
Views
1K
Replies
3
Views
3K
  • General Math
Replies
7
Views
4K
Replies
13
Views
3K
  • General Math
Replies
3
Views
1K
Replies
1
Views
781
  • General Math
Replies
2
Views
1K
Replies
10
Views
1K
Replies
2
Views
1K
Replies
2
Views
795
Back
Top