//-------------------------------------------------------------------------------------------------- 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); }
//-------------------------------------------------------------------------------------------------- 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); }