center loaded obj

Dec 9, 2011 at 5:30 PM

Hi!

First of all - great work with Helix. Really good 3dViewPort!

But now question - is it possible, to "AutoFit" or "Center" object when loaded? When I load object (obj file) it shows "somewhere" in viewpost, and I have to scroll out until it shows :o Is it possible, to make it automaticly? like: Model3d.Camera.CenterToObject() or Model3dCamera.FitObjectToScreen()? 

Best wishes

Chris

Coordinator
Dec 9, 2011 at 5:44 PM

hi Chris, try the ZoomExtents() method on the HelixViewport3D. Or set ZoomExtentsWhenLoaded=true if the model was added before the view is loaded.

See all properties/methods of the control at http://helixtoolkit.codeplex.com/wikipage?title=HelixViewport3D

Dec 9, 2011 at 5:59 PM

:o ! It works! Solution was so close, but I was too lazy, to read all descriptions :P

Thx for help!