# Airfoil has holes in it

**URL:** <https://discourse.processing.org/t/airfoil-has-holes-in-it/5420>\
**Category:** Libraries\
**Created:** [November 11, 2018, 3:27am UTC](https://discourse.processing.org/t/airfoil-has-holes-in-it/5420 "2018-11-11T03:27:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 11, 2018, 3:48am UTC](https://discourse.processing.org/t/airfoil-has-holes-in-it/5420/2 "2018-11-11T03:48:22Z")

</div>

looks impressive,  
can you tell me why you need to do 60 little shapes instead  
one shape with the for …60 vertex inside?  
and if you miss the last point ( = first point ) could do a  
endShape(CLOSE);

and for the structure, see

> [@How to close a PShape with 2 arcs and two lines](https://discourse.processing.org/t/how-to-close-a-pshape-with-2-arcs-and-two-lines/5287/3):
>
> good, thanks @jeremydouglass , but doing the outline is only one question, how can a group ( of shapes ( even if closed )) be treated like a closed shape and filled?? PShape l1,l2,l3,l4,all; int w=100; void setup(){ size(300,300); all = createShape(GROUP); l1 = createShape(LINE,0,0,w,0); l2 = createShape(LINE,w,0,w,w); l3 = createShape(LINE,w,w,0,w); l4 = createShape(LINE,0,w,0,0); all.addChild(l1); all.addChild(l2); all.addChild(l3); all.addChild(l4); //all.fill(0,200,0); // …

can do a create shape in setup and a  
draw shape ( width/2.height/2) in draw,  
so no need to do that absolute in the create shape

---

_[View the full topic](https://discourse.processing.org/t/airfoil-has-holes-in-it/5420)._
