//-------------------------------------------------------------------------------------------------- public static Loft Create(Body targetBody) { Debug.Assert(targetBody != null); var loft = new Loft(); targetBody.AddShape(loft); return(loft); }
//-------------------------------------------------------------------------------------------------- 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); }