modeluielement3d & screenspacelines3d

Jan 13, 2011 at 10:01 AM

how can you make the screenspacelines3d part of the modeluielement3d's children? It gives me an error.

Jan 13, 2011 at 11:10 PM

well to answer my own question, I have made a change to the MathUtils private static Matrix3D GetWorldTransformationMatrix(DependencyObject visual, out Viewport3DVisual viewport) method.

Look for this statement:

if (!(visual is ModelVisual3D))
{
    break;
}

and change it to:

if (!(visual is ModelVisual3D) && !(visual is UIElement3D))
{
    break;
}

So anything that inherits UIElement3D will work...like ContainerUIElement3D