Esempio n. 1
0
        //--------------------------------------------------------------------------------------------------

        public static Loft Create(Body targetBody)
        {
            Debug.Assert(targetBody != null);

            var loft = new Loft();

            targetBody.AddShape(loft);

            return(loft);
        }
Esempio n. 2
0
        //--------------------------------------------------------------------------------------------------

        public static Loft Create(Body targetBody, IEnumerable <IShapeOperand> sections)
        {
            Debug.Assert(targetBody != null);

            var loft = new Loft();

            foreach (var operand in sections)
            {
                loft.AddOperand(operand);
            }
            targetBody.AddShape(loft);

            return(loft);
        }