ObjectARX

## ObjectARX

Active Contributor
Posts: 33
Registered: ‎11-03-2011
Message 1 of 4 (218 Views)

# Urgent! Someone can give me an algorithm to calculate the volume

218 Views, 3 Replies
12-07-2011 01:49 AM

It's urgent! I need to calculate the volume in 3d-points Array.The point-Array compose arbitrary-closed polyhedron.Now I need to algorithm to get the volume of polyhedron.Help me please.

You'd better can supply me some Done algorithm or some mothod to achieve in ARX way. Have code it's better!

Thank you very much !I am waiting!

(I used it in AutoCAD arx app.What I get it only the 3d-point array can compose the arbitrary-closed polyhedron)

Send me 740176597@qq.com or write here.Either way you prefer.

*Expert Elite*
Posts: 9,583
Registered: ‎06-29-2007
Message 2 of 4 (198 Views)

# Re: Urgent! Someone can give me an algorithm to calculate the volume

12-08-2011 01:19 AM in reply to: jzq740176597

Hi,

>> I need to calculate the volume in 3d-points Array.The point-Array compose arbitrary-closed polyhedron

If you just have points as the source ... and no edges or faces ... imho a polyhedron is not described enough to do any volume-calculation. See >>>here<<< for samples that shows you how different options (different ways of how points can be connected to built up a polyhedron).

So you need more than just points! Without more info (or more limits of how points are to be connected) you will not be able to calculate anything.

Sorry, - alfred -

-------------------------------------------------------------------------
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Contributor
Posts: 33
Registered: ‎11-03-2011
Message 3 of 4 (157 Views)

# Re: Urgent! Someone can give me an algorithm to calculate the volume

thank for you reply! Yes,you are right! Now I know the 3dFaces that compose the polyhedron.And I know all the points of each 3dface.How I can calculate the volume？

Posts: 749
Registered: ‎03-21-2011
Message 4 of 4 (140 Views)

# Re: Urgent! Someone can give me an algorithm to calculate the volume

01-01-2012 07:24 PM in reply to: jzq740176597

Hi,

I have attached a sample project that creates a sculpted solid from a set of surfaces that define its bounds. The result of this is a AcDb3dSolid. The AcDb3dSolid::getMassProp method can then be used to retrieve the volume.

Hope this helps and wish you a happy new year !!

Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community