Help with Region.ExtrudeAsMesh<CustomMesh>(...)
For some reason, extruding a Region with ExtrudeAsMesh<MyMesh>(....) doesn’t yield the same result as ExtrudeAsMesh(...). What am I doing wrong?
public class MyMesh : Mesh
{
}
private void Design1_ContentRendered(object? sender, EventArgs e)
{
Circle outer = new Circle(Plane.XY, 10);
Circle inner = new Circle(Plane.XY, 6);
Region region = new Region([outer, inner], Plane.XY, false);
design1.Entities.Add( region.ExtrudeAsMesh(30, 0.1, Mesh.natureType.RichSmooth), System.Drawing.Color.LightGray );
region.Translate(0, 24, 0);
design1.Entities.Add( region.ExtrudeAsMesh<MyMesh>(30, 0.1, Mesh.natureType.RichSmooth), System.Drawing.Color.LightBlue );
design1.ZoomFit();
}

Eyeshot 2024 - VS 2022
Comments
Replicated, we are investigating...
Thanks for the release 2024.2.342 that fixes the issue.
Please sign in to leave a comment.