private void AddProfile(GeometryObject obj, Transform transform) { Profile profile = obj as Profile; if (null == profile) { return; } foreach (Curve curve in profile.Curves) { AddCurve(curve, transform); } }