Method Run
- Namespace
- GeometryHelper.Takeoff
- Assembly
- GeometryHelper.dll
Run(IReadOnlyList<VolumeItem>)
Takes off the volumes of the parts with the default options.
public static VolumeTakeoffResult[] Run(IReadOnlyList<VolumeItem> items)
Parameters
itemsIReadOnlyList<VolumeItem>The parts. A null entry is passed over: its result has no item, every volume nought and one issue, "no item".
Returns
- VolumeTakeoffResult[]
The take-off of each part, in the order the parts were given.
Exceptions
- ArgumentNullException
itemsis null.
Run(IReadOnlyList<VolumeItem>, VolumeTakeoffOptions)
Takes off the volumes of the parts.
public static VolumeTakeoffResult[] Run(IReadOnlyList<VolumeItem> items, VolumeTakeoffOptions options)
Parameters
itemsIReadOnlyList<VolumeItem>The parts. A null entry is passed over: its result has no item, every volume nought and one issue, "no item". The same body may be given in two items, and the later loses all of it to the earlier.
optionsVolumeTakeoffOptionsHow each overlap is worked out, and how many threads to use.
Returns
- VolumeTakeoffResult[]
The take-off of each part, in the order the parts were given.
Remarks
A column 400 by 400 and 3 200 high, ranked first, a beam 300 wide, 600 deep and 6 000 long running through it, second, and a slab 6 000 by 6 000 by 200 on both, third, with the tops of the three flush: the column keeps its 512 000 000; the beam, 1 080 000 000 gross, loses 72 000 000 to the column and keeps 1 008 000 000; the slab, 7 200 000 000 gross, loses 32 000 000 to the column and 336 000 000 to the beam and keeps 6 832 000 000. The three add up to 8 352 000 000, the volume of the three together.
A common part is checked by Validate(Tolerance) and by its volume, which can be no more than the smaller part's, within the point tolerance times the area of the two. A valid body can still have lost part of what the two share, since nothing bounds a common part from below; a take-off that matters is worth checking against the parts' net bodies cut by TrySubtractAll(GeoSolid3, IEnumerable<GeoSolid3>, out GeoSolid3, SolidBooleanOptions, out SubtractReport).
Exceptions
- ArgumentNullException
itemsoroptionsis null.