SVGPointList pl = _points.getAnimatedPoints();
int size = pl.getNumberOfItems();
if (size == 0) {
shapeNode.setShape(DEFAULT_SHAPE);
} else {
AWTPolygonProducer app = new AWTPolygonProducer();
app.setWindingRule(CSSUtilities.convertFillRule(e));
app.startPoints();
for (int i = 0; i < size; i++) {
SVGPoint p = pl.getItem(i);
app.point(p.getX(), p.getY());
}
app.endPoints();
shapeNode.setShape(app.getShape());
}
} catch (LiveAttributeException ex) {
throw new BridgeException(ctx, ex);
}
}