HelixToolkit.Wpf.SharpDX MeshGeometryModel3D bounds size

Igor 7 years ago updated by anonymous 4 years ago 2

Hello guys!

I have one question about bounds property of MeshGeometryModel3D.

When I create new instance of MeshGeometryModel3D it has "bounds" property {Minimum:X:0 Y:0 Z:0 Maximum:X:0 Y:0 Z:0}. If I add to this model some geometry (sphere for example) with center in (500, 500, 0) and radius 5, my MeshGeometryModel3D will have "bounds" property like {Minimum:X:0 Y:0 Z:-5 Maximum:X:505 Y:505 Z:5}!

So my question is: is there any method to set "bounds" property of MeshGeometryModel3D by geometry, which this model contains? To receive in this particular example something like {Minimum:X:495 Y:495 Z:-5 Maximum:X:505 Y:505 Z:5}.

Thanks in advance!