ObjectARX

ObjectARX

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

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

216 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*
Alfred.NESWADBA
Posts: 8,962
Registered: ‎06-29-2007
Message 2 of 4 (196 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 -

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

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

12-26-2011 10:08 PM in reply to: Alfred.NESWADBA

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?

ADN Support Specialist
Balaji_Ram
Posts: 691
Registered: ‎03-21-2011
Message 4 of 4 (138 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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.