🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.graphics
6 messages
6 total messages Started by LJ Fri, 01 Aug 2008 05:59
how to generate spline?
#101
Author: LJ
Date: Fri, 01 Aug 2008 05:59
10 lines
1069 bytes
Hi all,

  i need to generate a curve by some points, and the all points must cross 
the curve.like the AutoCAD's spline.

  it's not same as the bezier in delphi. the points not cross the curve of 
bezier.

  how to do realize it? please help me.
  thanks a lot. 
Re: how to generate spline?
#102
Author: Horst Reichert
Date: Fri, 01 Aug 2008 06:18
5 lines
1027 bytes
If you need a ready made solution see: 
http://www.rt-science.com/tools2d.html and the Interpolation\CubicSpline 
example.

Regards Horst 
Re: how to generate spline?
#104
Author: LJ
Date: Fri, 01 Aug 2008 07:23
8 lines
1202 bytes
I need a arithmetic and a code solution.
"Horst Reichert" <horst.reichert@rt-science.de> д����Ϣ����:4892aa98@newsgroups.borland.com...
> If you need a ready made solution see: 
> http://www.rt-science.com/tools2d.html and the Interpolation\CubicSpline 
> example.
>
> Regards Horst
> 
Re: how to generate spline?
#105
Author: David Ninnes
Date: Fri, 01 Aug 2008 10:46
30 lines
1756 bytes

"LJ" <june.shi@yahoo.com> wrote in message 
news:4892a571@newsgroups.borland.com...
> Hi all,
>
>  i need to generate a curve by some points, and the all points must cross 
> the curve.like the AutoCAD's spline.
>
>  it's not same as the bezier in delphi. the points not cross the curve of 
> bezier.
>
>  how to do realize it? please help me.
>  thanks a lot.
>

In a cardinal spline all the points touch the curve, it is available in 
GDI+. A Catmull-Rom spline also does this I've read, but I haven't used that 
one myself.


hth,
Dave






 
Re: how to generate spline?
#119
Author: Horst Reichert
Date: Mon, 04 Aug 2008 07:00
12 lines
1366 bytes
"LJ" <june.shi@yahoo.com> schrieb im Newsbeitrag 
news:4892b943@newsgroups.borland.com...
>I need a arithmetic and a code solution.

You can use the arithmetic without the drawing stuff. See Manual 
(http://www.rt-science.com/downloads/RtTools2D_vcl.pdf) page 52 or online 
Help for TRtInterpolationCalcualion



Regards Horst
Re: how to generate spline?
#251
Author: Paul Nicholls
Date: Mon, 04 Aug 2008 23:45
23 lines
1409 bytes
"LJ" <june.shi@yahoo.com> wrote in message 
news:4892a571@newsgroups.borland.com...
> Hi all,
>
>  i need to generate a curve by some points, and the all points must cross 
> the curve.like the AutoCAD's spline.
>
>  it's not same as the bezier in delphi. the points not cross the curve of 
> bezier.
>
>  how to do realize it? please help me.
>  thanks a lot.


Maybe this page will help you

http://www.ddj.com/architect/184410198

It has Pascal code for drawing Catmull-Rom spline, as well 3 other types of 
curves.

cheers,
Paul 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads