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

        public static BooleanCut Create(Body targetBody, IShapeOperand operand)
        {
            Debug.Assert(targetBody != null);

            var boolean = new BooleanCut();

            targetBody.AddShape(boolean);
            boolean.AddOperand(operand);

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

        public static BooleanCut Create(Body targetBody, IShapeOperand[] operands)
        {
            Debug.Assert(targetBody != null);

            var boolean = new BooleanCut();

            targetBody.AddShape(boolean);
            foreach (var shapeOperand in operands)
            {
                boolean.AddOperand(shapeOperand);
            }

            return(boolean);
        }