We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › CandySVG and P5Sunflow
Page Index Toggle Pages: 1
CandySVG and P5Sunflow (Read 412 times)
CandySVG and P5Sunflow
Mar 18th, 2008, 4:52pm
 
Hi!

while im trying to do a graphic by using an svg file i wanted to youse P5Sunflow.
but it doesnt work out.

it highlights the part where i want to draw the svg and the console says:

ArrayOutOfBoundsExceptions: 512

java.lang.ArrayIndexOutOfBoundsException: 512
at hipstersinc.sunflow.SunflowShape.flattenVertices(SunflowShape.java:51)
at hipstersinc.sunflow.SunflowShape.<init>(SunflowShape.java:20)
at hipstersinc.P5Sunflow.render_triangles(P5Sunflow.java:138)
at processing.core.PGraphics3D.endShape(PGraphics3D.java:1020)
at processing.core.PApplet.endShape(PApplet.java:7398)
at processing.candy.SVG$Path.drawShape(SVG.java:1622)
at processing.candy.SVG$BaseObject.draw(SVG.java:829)
at processing.candy.SVG$Group.drawShape(SVG.java:964)
at processing.candy.SVG$BaseObject.draw(SVG.java:829)
at processing.candy.SVG.drawImpl(SVG.java:474)
at processing.candy.SVG.draw(SVG.java:427)
at Temporary_5848_1985.setup(Temporary_5848_1985.java:54)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at processing.core.PGraphics.requestDisplay(PGraphics.java:690)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)

thanx for any help!

greetz
pete
Page Index Toggle Pages: 1