Question

I'm currently trying to plot a few points on a 3D plot window using ILNumerics. This works actually quite good but as soon as I rotate the plot it cuts off the labels in the background...

Here is my code

        float[,] a = new float[2, 3] { { 1.0f, 2.0f, 3.0f }, { 1.0f, 2.0f, 3.0f } };
        ILArray<float> B = a;

        var scene = new ILScene {
            new ILPlotCube(twoDMode: false) {
                new ILPoints {
                    Positions = B,
                    Size = 4,
                }
            }
        };

        ilPanel1.Scene = scene;

This is an image of whats happening:

https://www.dropbox.com/s/gd2cqzsp8kqc8d5/plot.png

I hope you guys have a suggestion for this problem... Thanks in advance!!

Was it helpful?

Solution

After any modification of buffer data Configure() needs to be called on the affected node or any node on the path up to the root node. The only exception to that rule: if your code rests in the load event handler for the ILPanel, ILNumerics calls this for you automatically.

Obviously, your code is defined somewhere else - not in that handler. So you must follow the common rule and add ilPanel1.Scene.Configure() manually.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top