コード例 #1
0
        //--------------------------------------------------------------------------------------------------

        public static Extrude Create(Body body)
        {
            Debug.Assert(body != null);
            Debug.Assert(body.Shape.ShapeType == ShapeType.Sketch);

            var extrude = new Extrude();

            body.AddShape(extrude);

            return(extrude);
        }
コード例 #2
0
        //--------------------------------------------------------------------------------------------------

        public static Extrude Create(Body body, SubshapeReference faceRef)
        {
            Debug.Assert(body != null);
            Debug.Assert(faceRef != null);
            Debug.Assert(body.Shape.ShapeType == ShapeType.Solid);

            var extrude = new Extrude
            {
                Face = faceRef
            };

            body.AddShape(extrude);

            return(extrude);
        }