Discussion:
subtraction and sum of 3D objects
(too old to reply)
Carlos C.
2008-03-10 14:49:26 UTC
Permalink
Hi, I need to calculate volumes of objects, it's easy for one box or
cylinder but i can't figure out how
to calculate the volume when both figures are together.
My mayor problem it's the subtraction of objects (ex. when i cross in
the middle of a box with a cylinder, I need the
"subtraction" be a hole in the middle of the box)
if someone knows how to do this please help this lost soul :P


I'm working with DirectX9 and VB .NET

thanks in advance
ZMan
2008-03-27 21:58:03 UTC
Permalink
This is called Constructive Solid Geometry - CSG

http://www.opencsg.org/

I don't know of any managed wrappers or implementations though.
Post by Carlos C.
Hi, I need to calculate volumes of objects, it's easy for one box or
cylinder but i can't figure out how
to calculate the volume when both figures are together.
My mayor problem it's the subtraction of objects (ex. when i cross in
the middle of a box with a cylinder, I need the
"subtraction" be a hole in the middle of the box)
if someone knows how to do this please help this lost soul :P
I'm working with DirectX9 and VB .NET
thanks in advance
Loading...