Article | 60002006 |
Type | Wish |
Product | Engine |
Version | 6026 |
Date Added | 7/17/2013 12:00:00 AM |
Fixed | (7/17/2013 12:00:00 AM) |
Submitted by | Alessio |
Summary
Calculation of the Volume of a vdPolyface
Solution
In version 6027 we exported these following methods of the vdPolyface object
summary>Calculates an Approximation of the Volume of the polyface object.Note that the vdPolyface must be closed in order to calculate the volume or the result will not be accurate.
param name="precision">A double value to be used as precision.If precision 0.0 is passed then a default 100 slices precision is being used.
param name="volume">A double value where the volume is going to be returned.
param name="CenterOfVolume">A gPoint object where it is going to be calculated and returned the center of volume of the object.
returns>True if the process ended succesfully or false if the calculation failed.
remarks>The method calculates the smallest size of the bounding box of the object and performs perpedicular slices calculating the small volumes that are produced. The total Volume of the object is the sum of these volumes. The precision is the step of the slices. If 0.0 precision is passed then 100 slices are performed.
public bool Volume(double precision ,out double volume , out gPoint CenterOfVolume)
summary>Calculates an Approximation of the Volume of the polyface object.Note that the vdPolyface must be closed in order to calculate the volume or the result will not be accurate.
param name="precision">A double value to be used as precision.If precision 0.0 is passed then a default 100 slices precision is being used.
param name="volume">A double value where the volume is going to be returned.
returns>True if the process ended succesfully or false if the calculation failed.
remarks>The method calculates the smallest size of the bounding box of the object and performs perpedicular slices calculating the small volumes that are produced. The total Volume of the object is the sum of these volumes. The precision is the step of the slices. If 0.0 precision is passed then 100 slices are performed.
public bool Volume(double precision, out double volume)