Exemplo n.º 1
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>	Handle a circle event.  Snuff out the a parabola, form a vertex of the diagram. </summary>
 /// <remarks>	Darrellp, 2/21/2011. </remarks>
 /// <param name="fortune">	The fortune. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 internal override void Handle(Fortune fortune)
 {
     // Remove a parabola node from the beachline since it's being squeezed out.  Insert a vertex into
     // the voronoi diagram
     fortune.Bchl.RemoveNodeAndInsertVertex(this, LfnEliminated, VoronoiVertex, fortune.QevEvents);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Handle the event
 /// </summary>
 /// <param name="fortune">Fortune data structure being built</param>
 internal abstract void Handle(Fortune fortune);
Exemplo n.º 3
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>	Handle a site event.  This is done by adding a polgyon/parabola to the beachline. </summary>
 /// <remarks>	Darrellp, 2/21/2011. </remarks>
 /// <param name="fortune">	The fortune object to update. </param>
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 internal override void Handle(Fortune fortune)
 {
     // Insert the new parabola into the beachline
     fortune.Bchl.PolyInsertNode(this, fortune.QevEvents);
 }