コード例 #1
0
        internal BagProperties ToBag(DataBag dtBag)
        {
            var bagProperties = new BagProperties(null
                                                  , dtBag.Name, dtBag.Description
                                                  , new Vector3D(dtBag.Dimensions[0], dtBag.Dimensions[1], dtBag.Dimensions[2])
                                                  , dtBag.RoundingRadius);

            bagProperties.SetWeight(dtBag.Weight);
            bagProperties.SetNetWeight(new OptDouble(dtBag.NetWeight > 0, dtBag.NetWeight));
            return(bagProperties);
        }