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

0

Comments

2 comments
Date Votes
  • Replicated, we are investigating...

    0
  • Thanks for the release 2024.2.342 that fixes the issue.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post