Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to draw custom Box? (Read 4043 times)
wushuang83
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 1st, 2009
How to draw custom Box?
Jul 3rd, 2009 at 1:35am
Print Post  
As the title,could anyone give me a method to draw custom Box like another drawtools's Pencile?
Thank you very much!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to draw custom Box?
Reply #1 - Jul 3rd, 2009 at 9:09am
Print Post  
If you mean you need free form drawing, check this post:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=115209944...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
wushuang83
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 1st, 2009
Re: How to draw custom Box?
Reply #2 - Jul 9th, 2009 at 3:55am
Print Post  
Thank you Stoyan,and how can I creat a box with the lines I've drawn
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to draw custom Box?
Reply #3 - Jul 9th, 2009 at 8:03am
Print Post  
Scale the point coordinates to make them in the 0-100 range, define a custom Shape whose outline is set to a list of LineTemplates between the points, and assign that shape to a ShapeNode.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
wushuang83
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 1st, 2009
Re: How to draw custom Box?
Reply #4 - Jul 9th, 2009 at 8:22am
Print Post  
You mean for every contiguous points of my draw-line,isn't it?
Sorry,I'm weak at English
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to draw custom Box?
Reply #5 - Jul 9th, 2009 at 8:34am
Print Post  
Yep. If you are into maths, you might try approximating the point sequence with a shorter list of bezier, arc and line segments. Otherwise just add line segments for all points.
  
Back to top
 
IP Logged
 
wushuang83
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 1st, 2009
Re: How to draw custom Box?
Reply #6 - Jul 9th, 2009 at 8:44am
Print Post  
enn,I know,and I want to creat a box with the line that I drawn,and put it to the right position where I was drawn it,If I use bezier line,I can't get the location and size of my box.
That's my trouble....
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to draw custom Box?
Reply #7 - Jul 9th, 2009 at 10:31am
Print Post  
This paper describes how to find a bezier curve that approximates a sequence of points, if that's what you need:
http://www.foibg.com/ijita/vol15/ijita15-3-p06.pdf
  
Back to top
 
IP Logged
 
wushuang83
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 1st, 2009
Re: How to draw custom Box?
Reply #8 - Jul 10th, 2009 at 1:30am
Print Post  
thx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint