title: How to apply Straight Skeleton Algorithm in android
body: <p>I have a requirement like this. Here is my home class snapshot.</p>
  
  <p><img src="https://i.stack.imgur.com/q0gIU.png" alt="enter image description here"></p>
  
  <p>It contains several shop shape. And for that I have used this code : </p>
  
  <pre><code>ArrayList&lt;Point&gt; points2 = new ArrayList&lt;Point&gt;();
  
  points2.add(vertex.Get(20, 0));
  
  points2.add(vertex.Get(44, 0));
  
  points2.add(vertex.Get(44, 25));
  
  points2.add(vertex.Get(20, 25));
  
  Polygon view1 = new Polygon(context, points2, android.R.color.holo_orange_dark, R.color.background_light, floor != 0);
  
  view1.setId(0);
  
  views.add(view1);           
  
  addView(view1);
  </code></pre>
  
  <p>This is for static number of shapes.Now requirement is such that number of shapes will be dynamic.and for that i don't need to use same code as above.Client has told to implement Straight Skeleton Algorithm.</p>
  
  <p>I googled about it and found some help for same algorithm implementation in core java.</p>
  
  <p><a href="https://stackoverflow.com/questions/5640040/java-library-for-creating-straight-skeleton">Java library for creating straight skeleton?</a> </p>
  
  <p>This issue explains in java.I tried it out,that is totaly in core java.I need to implement it on android.and Never worked on such issue before.Need some help if some one have already implemented it on android.</p>
  
  <p>Thanks</p>