Exemplo n.º 1
0
 // Dynamically inserts each geometry into the convex hull.
 private void AddMultiVertexGeometry_(com.epl.geometry.MultiVertexGeometry mvg)
 {
     com.epl.geometry.Point   point = new com.epl.geometry.Point();
     com.epl.geometry.Point2D pt_p  = new com.epl.geometry.Point2D();
     for (int i = 0; i < mvg.GetPointCount(); i++)
     {
         mvg.GetXY(i, pt_p);
         int p = AddPoint_(pt_p);
         if (p != -1)
         {
             mvg.GetPointByVal(i, point);
             int tp = m_shape.AddPoint(m_path_handle, point);
             m_tree_hull.SetElement(p, tp);
         }
     }
 }