How can we translate this C# code:
Mesh m7 = new Mesh();
m7.MakeFace(new ICurve[] {(ICurve) redLp },
new ICurve[][] { new ICurve[] { circle } }, Plane.XY, tol, true);
To Managed C++?
Thanks!
How can we translate this C# code:
Mesh m7 = new Mesh();
m7.MakeFace(new ICurve[] {(ICurve) redLp },
new ICurve[][] { new ICurve[] { circle } }, Plane.XY, tol, true);
To Managed C++?
Thanks!
array<ICurve^>^ ar1 = gcnew array<ICurve^> { redLp };
array<array<ICurve^>^>^ ar2 = gcnew array<array<ICurve^>^>{
gcnew array<ICurve^> { circle }
};
IList<ICurve^>^ list1 = gcnew List<ICurve^>(ar1);
IList<IList<ICurve^>^>^ list2 = gcnew List<IList<ICurve^>^>();
list2->Add( gcnew List<ICurve^>(ar2[0]) );
Mesh^ m7 = gcnew Mesh();
m7->MakeFace( list1, list2, Plane::XY, tol, true);
Note: it might be possible that Plane::XY
should be Plane.XY
, or Plane->XY
but i assumed an Enum.