Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 2:14 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Strange FigureShape Problem [SOLVED]
PostPosted: Sat May 25, 2013 8:02 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I am attempting to draw a shape the is convex on one end and concave on the other.
I am building it out of CURVESHAPES stored into a FIGURESHAPE

the coordinates (and the order applied) is as follows, in order to supposedly create a continous border in a counter-clockwise direction. Note : I have a very specific need the it create a single closed shape.... this app has over 300 shapes defined in a similar manner, and this is the ONLY one that doesn't draw correctly ....

L is a Order Curve Shape with end points at X1 and X2
A is a Order-1 Curve Shape with end points at X1 and X2 and Control Point at CX


L X1=16,60 X2=92,60
A X1=92,60 X2=76,30 cx=76,60
A X1=76,30 X2=92, 0 cx=76,0
L X1=92, 0 X2=16, 0
A X1=16, 0 X2= 0,30 cx= 0, 0
A X1= 0,30 X2=16,60 cx= 0,60


What I am getting is the TOP shape (with huge horizontal outliers)
What I WANT is the bottom Shape


NOTE : I just discovered something (that SHOULD not matter)...... If I draw the shape with SCALE=1 it comes out fine
If I increase the scale above 1... (actually is fine up to 1.49.... at 1.50 and above it freaks out) the horizontal lines appear..... and ONLY on this shape (the other 200+ shapes work perfect)

The only thing different between this shape and any other.. this is the only one with a Convex and Concave Arc... although there are others that create ovals using 4 arcs like this (yes... I have a reason for needing arcs and not ovalshapes in some cases).


Image

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Strange FigureShape Problem [SOLVED]
PostPosted: Sun May 26, 2013 8:48 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
Workaround.... fudged the Y values of the ARC end points by 0.1 ... and while not mathematically correct it does draw the shape without the artifacts.... and the slight distortion is not visible until you get to very large scale values (beyond what would be selected in normal use)

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group