How to deactivate polygonizer in geomerative

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

in processing

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
  grp = RG.loadShape("v2.svg");
 // grp.centerIn(g, 100, 1, 1);
  pointPaths = grp.getPoints();
  handles =grp.getHandles();

void draw(){
      for(int j = 0; j<pointPaths.length; j++){
        ellipse(pointPaths[j].x, pointPaths[j].y,5,5);
      for(int j = 0; j<handles.length; j++){
        ellipse(handles[j].x, handles[j].y,5,5);

this thread is related to my pervious threads:
thread 1
thread 2

1 Like

Hi again @jeykech,

Please reference related threads – Problem with Bezier Curves when exporting SVG from illustrator, and Getting undesirable vertices when importing SVG from illustrator – 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 . As with my previous reply, Geomerative’s source code will tell you more about what’s happening under the hood.

1 Like