Example #1
0
        //--------------------------------------------------------------------------------------------------

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

            var loft = new Loft();

            targetBody.AddShape(loft);

            return(loft);
        }
Example #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);
        }