public void CreateExtrudeMesh(Model model1) { Shapes shapes = new Shapes(); CompositeCurve roundRect = shapes.RoundRectangle(); Mesh mesh = roundRect.ExtrudeAsMesh(new Vector3D(0, 0, 50), 0.001, Mesh.natureType.Plain); mesh.Color = Color.Aquamarine; mesh.ColorMethod = colorMethodType.byEntity; model1.Entities.Add(mesh); model1.Invalidate(); }