Jump to content

How to find the volume of irregular object?


Rook

Recommended Posts

Hello.

What have you tried so far?

Is this math or physics or other? Are you supposed to do a calculation or suggest an experiment? Can you show the homework task?

Edited by Ghideon
Cleared up and added stuff. Initially posted in a hurry on phone.
Link to comment
Share on other sites

By computer algorithm? Start from calculating bounding box of mesh. Then "split" volume to boxes with known size x, size y, size z. If box fits all inside initial mesh, you count it all in. If it's all outside, you don't count it (e.g. concave object). If it's partially in and partially outside, you have to repeat evaluation but with smaller boxes just that box region (e.g. divide size of box by 2). Repeat subdivision, until it's above some threshold tolerance. That's brute-force algorithm of volume calculation in 3D space by computer algorithm..

ps. Instead of boxes you can try spheres instead. The smaller sphere, the slower algorithm, but the larger precision. One could put smaller and smaller spheres inside of closed mesh till some threshold if they all fit inside of mesh. So you need routine which checks if "mesh is inside of mesh entirely, partially or not at all". Which is pretty basic for primitives like box or sphere.

Edited by Sensei
Link to comment
Share on other sites

7 hours ago, swansont said:

If it’s a physical object, you can measure how much liquid it displaces when submerged

At the first sigh it appears to be ultimate answer. But rethink it a bit. If your object is concave this solution can make regions where still gathered air. Also if object is somewhere empty it will give incorrect results.

If object is not convex and solid this solution might give wrong answers.

""How to find the volume of irregular object?"

Irregular object can mean concave object..

 

Link to comment
Share on other sites

If the water idea were not possible for some reason then how about slicing the sharp points off and cutting it into a central cuboid and several pyramid or dome shapes. These individual shapes might be easier to measure and have their volumes calculated from their dimensions - then add them.  I guess it depends on just how irregular the shape is and whether it can be cut up into regular shapes and their dimensions measured or not.

 

 

PS - I don't necessarily mean to physically cut the object. Just measure its dimensions and cut it up mathematically into more manageable shapes (if possible - depends on how irregular it is).  That or an estimation averaging the irregularities to regular shapes and adding their volumes.  

Link to comment
Share on other sites

6 hours ago, Sensei said:

At the first sigh it appears to be ultimate answer. But rethink it a bit. If your object is concave this solution can make regions where still gathered air. Also if object is somewhere empty it will give incorrect results.

If object is not convex and solid this solution might give wrong answers.

""How to find the volume of irregular object?"

Irregular object can mean concave object..

 

Those are details of proper lab technique (ensure no air bubbles), rather than being a critique of the concept. Any method will have potential errors introduced if poorly executed.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.