Zoom invariant / Position Invariant entity

The code is the same as for Eyeshot 8 sample, with this changes:

 

Instead of 


public override bool IsInFrustum(PlaneEquation[] frustum, Point3D center, double radius, bool quick)

use


public override bool IsInFrustum(FrustumParams data, Point3D center, double radius)

 

Instead of 


protected override void DrawForSelection(DrawParams data)

use


protected override void DrawForSelection(GfxDrawForSelectionParams data)

 

Instead of 


new Scale(screenToWorld, screenToWorld, screenToWorld) * // scale

use


new Scaling(screenToWorld, screenToWorld, screenToWorld) * // scale
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

1 comment
  • Hi,

    I'm considering zoom invariant entities for Dimensions and TextLeader (constant arrowhead and text size).

    Is there anything to pay attention when deriving from those types of entities?

Please sign in to leave a comment.