Prod.: Engine, ver.: 6, ID: 60001204, HowTo : Zooming and paning with drawings with very large values of extends

HowTo : Zooming and paning with drawings with very large values of extends

Article60001204
TypeHowTo
ProductEngine
Version6
Date Added8/19/2010
Submitted byHolloway, Keith D
Keywords

Subject

Zooming and paning with drawings with very large values of extends

Summary

Zooming and paning with drawings with very large values of extends larger than 1.0e+10

Solution


VectorDraw has limits for maximum and minimum PixelSize values.
PixelSize represent the result of:  ViewSize in Drawing Units / Height of active Render Viewport in pixels.
You can control these values by using
VectorDraw.Geometry.Globals.MaximunPixelSize which by default is 1.0e+09


and


VectorDraw.Geometry.Globals.DefaultPixelEquality which by default is 1.0E-10d


example Zooming and paning with drawings with very large values of extends:


Globals.MaximunPixelSize = 1.0e+18;


Globals.DefaultPixelEquality = 1.0d / Globals.MaximunPixelSize;


//Also its better to change the following values also


Globals.Default3DMatrixEquality = Globals.DefaultPixelEquality;


Globals.DefaultScaleEquality = Globals.DefaultPixelEquality;


Globals.DefaultVectorEquality = Globals.DefaultPixelEquality;