I have a custom class (MyBox) that extend devDept.Eyeshot.Entities.Solid and I want to add it to the ViewportLayout like this:
MyBox box = new MyBox(10, 20, 30); // length, width, height
EyeViewportLayout.Entities.Add(box);
EyeViewportLayout.ZoomFit();
EyeViewportLayout.Invalidate();
I notice that to visualize my class I need to call Solid.CreateBox(length, width, height) which return a new Solid. How can I do the same work of CreateBox inside my custom class MyBox so when I add it to ViewportLayout.Entities it get displayed ?