public Body CreateUnfoldedFaceBody()
{
List<ITrimmedCurve> profile = new List<ITrimmedCurve>();
foreach (FlatLoop flatLoop in Loops) {
foreach (Fin fin in flatLoop.SourceLoop.Fins)
profile.Add(fin.Edge);
}
Body body = null;
try {
body = Body.CreatePlanarBody(sourceFace.Geometry as Plane, profile);
}
catch {
Debug.Assert(false, "Could not create facet.");
return null;
}
body.Transform(transform);
return body;
}