Finding percentage of volume/area in a cube/square

  • Context: Undergrad 
  • Thread starter Thread starter aosome23
  • Start date Start date
  • Tags Tags
    area volume
Click For Summary

Discussion Overview

The discussion revolves around calculating the percentage of area or volume of a colored region (referred to as "pink") within a square or cube, given certain parameters such as distance from the center and rotation angle. The scope includes both analytical and numerical methods for solving this problem, with a focus on geometric and trigonometric approaches.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that it is possible to calculate the area percentage using trigonometry, especially when the square is partially inside the colored area.
  • Another participant mentions that drawing the scenario can aid in visualizing the problem, implying a connection between geometric representation and calculation.
  • There are claims that both analytical and numerical methods can be employed to find the area percentage, with one participant referencing a previous project as evidence of feasibility.
  • Some participants discuss the complexity of the problem when curves are involved, noting that while analytic solutions may be limited, numeric approximations remain viable.
  • One participant highlights that calculating the overlap percentage for circular shapes is simpler than for other curves.

Areas of Agreement / Disagreement

Participants generally agree that it is possible to calculate the area percentage, but there is no consensus on the methods or the complexity involved, especially regarding curves and different geometric configurations.

Contextual Notes

Limitations include the dependence on the specific shapes involved (e.g., straight lines versus curves) and the potential complexity introduced by different tilt angles in three-dimensional cases.

aosome23
Messages
16
Reaction score
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
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.
 
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.
 
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   Reactions: zoki85
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)
 
mfb said:
In general[/color], 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.
 
mfb said:
Well, a numeric solution is obvious - you can simply count pixels.
rofl2.gif
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
230K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
6K