Book a Demo

Author Topic: Shapes: bezierto in paths  (Read 2823 times)

ThommyG

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Shapes: bezierto in paths
« on: December 21, 2006, 06:37:39 am »
Hi,

I am relatively new to EA, but I already found the shapes feature, which lets me create custom shapes to be used together with stereotypes.

I composed the following shape and was confused by the output (see comments):

shape main
{
  setpencolor(0,0,255);
  setpenwidth(2);
  startpath();
  moveto(15,0);
  lineto(100,0); // line is NOT displayed!
  bezierto(80,25,80,75,100,100);
  lineto(15,100);
  bezierto(0,75,0,25,15,0);
  lineto(100,0); // this time, the line is displayed
  endpath();
  fillandstrokepath(); // not filled!}
  return;
}


What must be done, that this shape is filled?

Or is bezierto not intended to work within paths?

I tried to use the arc method to produce this drawing, but wasn't successful either (because of way the lines are drawn).

tnx, ThommyG

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Shapes: bezierto in paths
« Reply #1 on: December 21, 2006, 05:10:46 pm »
Hi ThommyG,

This is unfortunately a bug with our shape feature; please find that this has been corrected in build 803.

If I find a work around i'll let you know.

Ash





The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Shapes: bezierto in paths
« Reply #2 on: December 22, 2006, 06:50:38 am »
Not build 802 Ash?
No, you can't have it!

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Shapes: bezierto in paths
« Reply #3 on: December 26, 2006, 04:06:55 pm »
yeah, no typo - thanks :)

it's just that 802 is almost out the door; only super mega critical issues qualify for late changes.
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Shapes: bezierto in paths
« Reply #4 on: December 26, 2006, 04:15:00 pm »
All is fine then Ash. 801 took a long time - although it was worth waiting for - so I was a bit worried we might be in for 2-3 months. Your explanation has eased that concern. Thanks much.
No, you can't have it!