# Problem when using curveVertex on a PShape

**URL:** <https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319>\
**Category:** Processing\
**Created:** [October 17, 2022, 12:21pm UTC](https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319 "2022-10-17T12:21:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [October 17, 2022, 3:22pm UTC](https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319/2 "2022-10-17T15:22:48Z")

</div>

Hi @DrHooDoo 🙂

You are right. It looks like `curveVertex()` doesn’t work properly with PShape in Java2D.

Here’s a previous thread on this topic that might be helpful:

> [@Why doesn't curveVertex work in this PShape](https://discourse.processing.org/t/why-doesnt-curvevertex-work-in-this-pshape/6263):
>
> I was looking at an example of creating a spiral on the old Processing forum, [drawing a spiral](https://processing.org/discourse/beta/num_1223582667.html) size(800,800); smooth(); translate(width/2,height/2); strokeWeight(2); beginShape(); for(int i=0;i\<350;i++) { curveVertex((i\*2)\*sin(i/5.0),(i\*2)\*cos(i/5.0)); } endShape(); I tried to recreate this in a PShape but curveVertex seems not to work when used this way, and I would like to know why. Is it just because PShape doesn’t like it for some reason? So in this example, the “green” one at the end …

Note: This is a known issue (with a “help wanted” tag by the way if someone feels like looking into it 😉)

> <https://github.com/processing/processing/issues/5173>
>
> Processing 3.3.5
> 
> The PDFs I'm saving consist of a squiggle shape made of curv…eVertex spline points. Something in this process does not carry over to the PDF export, which consists of straight lines as if I had only used the vertex function. 
> 
> Is this a pdf vector limitation or a problem on our end?
> 
> Thanks for any help on this.

---

_[View the full topic](https://discourse.processing.org/t/problem-when-using-curvevertex-on-a-pshape/39319)._
