/// <summary> /// Initialize the graphics buffer (should be called in the forms load event). /// </summary> public void Initialize(Mesh mesh) { renderer = new TopologyRenderer(mesh); zoom = new Projection(ClientRectangle); zoom.Initialize(mesh.Bounds); InitializeBuffer(); initialized = true; Render(); }
/// <summary> /// Initialize the graphics buffer (should be called in the forms load event). /// </summary> public void Initialize(Mesh mesh) { renderer = new TopologyRenderer(mesh); zoom = new Projection(this.ClientRectangle); //zoom.ClipMargin = 10.0f; var b = mesh.Bounds; zoom.Initialize(new BoundingBox((float)b.Left, (float)b.Right, (float)b.Bottom, (float)b.Top)); InitializeBuffer(); initialized = true; this.Render(); }
/// <summary> /// Initialize the graphics buffer (should be called in the forms load event). /// </summary> public void Initialize(Mesh mesh) { renderer = new TopologyRenderer(mesh); zoom.Initialize(this.ClientRectangle); //zoom.ClipMargin = 10.0f; var b = mesh.Bounds; zoom.Update(new BoundingBox((float)b.MinX, (float)b.MaxX, (float)b.MinY, (float)b.MaxY)); InitializeBuffer(); initialized = true; this.Render(); }
/// <summary> /// Initialize the graphics buffer (should be called in the forms load event). /// </summary> public void Initialize(Mesh mesh) { renderer = new TopologyRenderer(mesh); zoom = new Projection(this.ClientRectangle); //zoom.ClipMargin = 10.0f; var b = mesh.Bounds; zoom.Initialize(new BoundingBox((float)b.Left, (float)b.Right, (float)b.Bottom, (float)b.Top)); InitializeBuffer(); initialized = true; this.Render(); }