# How to deactivate polygonizer in geomerative

**URL:** <https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252>\
**Category:** Libraries\
**Created:** [November 5, 2019, 12:26pm UTC](https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252 "2019-11-05T12:26:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeykech](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@jeykech](https://discourse.processing.org/u/jeykech)\
**Post date:** [November 5, 2019, 12:26pm UTC](https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252/1 "2019-11-05T12:26:59Z")

</div>

hi all,

I have this svg I want to import to processing and manipulate the vertices.  
when I import the svg , there are some points I don’t want or need. I want just the vertices from the original curve nothing more, how to please?  
in illustrator

 ![48](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b379c50b0eea062eed903e99294b5acf672b14f5.png)  
in processing  
 ![jpg](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a638a9cccffe0f8e59aaf6e78716a04145a285ac.jpeg)

```auto
import geomerative.*;

RShape grp;
RPoint[] pointPaths, handles;

float xmag, ymag, newYmag, newXmag = 0;
float z = 0;

boolean ignoringStyles = false;

void setup(){
  size(600, 600);

  // VERY IMPORTANT: Allways initialize the library before using it
  RG.init(this);
  RG.ignoreStyles(ignoringStyles);
  
  RG.setPolygonizer(0);
  
  grp = RG.loadShape("v2.svg");
 // grp.centerIn(g, 100, 1, 1);
  
  pointPaths = grp.getPoints();
  handles =grp.getHandles();
}

void draw(){
background(255);
      for(int j = 0; j<pointPaths.length; j++){
        fill(255,0,0);
        ellipse(pointPaths[j].x, pointPaths[j].y,5,5);
      }
     
      for(int j = 0; j<handles.length; j++){
        fill(255,255,0);
        ellipse(handles[j].x, handles[j].y,5,5);
      }
    
save("jpg.jpg");  
}

```

this thread is related to my pervious threads:  
[thread 1](https://discourse.processing.org/t/getting-undesirable-vertices-when-importing-svg-from-illustrator/15205/12)  
[thread 2](https://discourse.processing.org/t/problem-with-bezier-curves-when-exporting-svg-from-illustrator/15232)

---

<div class="post-metadata">

**Author:** ![behreajj](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@behreajj](https://discourse.processing.org/u/behreajj)\
**Post date:** [November 5, 2019, 2:48pm UTC](https://discourse.processing.org/t/how-to-deactivate-polygonizer-in-geomerative/15252/2 "2019-11-05T14:48:15Z")

</div>

Hi again @jeykech,

Please reference related threads – [Problem with Bezier Curves when exporting SVG from illustrator,](https://discourse.processing.org/t/problem-with-bezier-curves-when-exporting-svg-from-illustrator/15232/3) and [Getting undesirable vertices when importing SVG from illustrator](https://discourse.processing.org/t/getting-undesirable-vertices-when-importing-svg-from-illustrator/15205/13) – and post or reference any source files used with example code, namely “v2.svg”. On a quick glance, seems like Geomerative’s SVG parser has the same issue as `PShape`'s – that it does not group the anchor point, the preceding control point and the ensuing control point together into a single object. As a simplified illustration of the grouping strategy I’m talking about: [an example in p5.js](https://editor.p5js.org/jeremy.behreandt/sketches/jPutorSJF) . As with my previous reply, Geomerative’s [source code](https://github.com/rikrd/geomerative/blob/master/src/geomerative/RSVG.java) will tell you more about what’s happening under the hood.
