Example #1
0
 ///<summary>
 /// Constructs a new compound shape from cached data.
 ///</summary>
 ///<param name="shapes">Shape entries used to create the compound. Assumed to be centered properly.</param>
 /// <param name="volumeDescription">Description of the volume and its distribution in the shape. Assumed to be correct; no processing or validation is performed.</param>
 public CompoundShape(IList <CompoundShapeEntry> shapes, EntityShapeVolumeDescription volumeDescription)
 {
     this.shapes = new RawList <CompoundShapeEntry>(shapes);
     UpdateEntityShapeVolume(volumeDescription);
 }
Example #2
0
 protected void UpdateEntityShapeVolume(EntityShapeVolumeDescription volume)
 {
     Volume             = volume.Volume;
     volumeDistribution = volume.VolumeDistribution;
 }