This oddly named thing is simply a line with tension. A set of X,Y coordinates can be used to make a polygon or poly-line. Usually the points are connected by straight-line segments. A Cardinal Spline takes the positions of the current point and,along with the previous and next points, averages out the positions using a tension value. This smoothes the line and makes a path that is gently curved through the points rather than zigzagging through them. Figure 1 shows a cardinal spline drawn through several points. The black dots are the nodes, the lines are the curves generated by several different representations of the line at different tensions.
The red line has zero tension. The Indigo line has a tension of 1. The others are something in-between.
Cardinal splines are just a subset of the hermite curves. They don't need the tangent points because they will be calculated from the control points. We'll lose some of the flexibility of the hermite curves, but as a tradeoff the curves will be much easier to use. The formula for the tangents for cardinal splines is:
Ti=tension* ( Pi+1- Pi-1)
tensionis a constant which affects the tightness of the curve. Write yourself a program and play around with it. (tensionshould be between 0 and 1, but this is not a must).
分享到:
相关推荐
基于Cardinal的插值,可画2维或3维的图,操作简便,载入代码即可
评估Cardinal2D.m -------------------- 在参数值... TestEvaluateCardinal2D.m ------------------------ 一个简单的测试程序,用于评估给定数据集的 Cardinal Spline,其中 Tension=0 (Catmull-Rom) 和 Tension=0.5。
c++ QT实现可交互的Cardinal曲线(计算机图形学作业),鼠标点击屏幕自动生成点,点击绘制自动生成cardinal曲线,拖动滑动条修改张力参数t,曲线随之变化,同时点也可以用鼠标点击拖动
Cardinal(Catmull-Rom) 使用统一参数化对给定的四个控制点进行样条插值。 每个控制点都可以是 N 维欧几里得空间。 ---------------------------------- 还给出了一个简单的测试程序 (main.m) 来执行给定数据的 1D、...
给资料为B-spline曲线详细解释.B-spline基本特性, B-spline曲線數學模式,B-spline模型特性。
An improved EEMD method based on the adjustable cubic trigonometric cardinal spline interpolation
基数样条 / Catmull-Rom 用于 JavaScript/HTML5 的 ...curve_func.js - if you get sweaty palms with the idea of using extensions: this is a pure function that takes the context as an argument instead of
cardinal曲线JS算法和demo演示。 JavaScript版的。 Java版的请看 http://blog.csdn.net/aofavx/article/details/75012648
Cardinal
cardinal程序实现cardinal曲线
已知型值点,求Cardinal曲线 《计算机图形学基础教程》的课后习题。P153页
掌握Cardinal样条曲线的表示和算法,了解控制参数对曲线形状的影响。 对照Cardinal样条曲线的数学表示和程序代码的对应关系。 在路径曲线上放置一小汽车,使其在路径上运动起来,汽车运动速度可调。
WordPress主题Cardinal是一款热销的含30组演示多用途企业建站WordPress主题,其中包含商业、代理机构、摄影师、新闻杂志、音乐家、婚礼婚庆等。 WordPress主题Cardinal不仅支持,而且使 WooCommerce 网站看起来非常...
Qt实现cardinal样条曲线例子,并实现简单动画,开发环境Qt5.4.1,使用的vs2013编译链接的,附有vc工程文件
A reference to an invalid page (a page that is not in your working set) is referred to as a page fault. Assuming the page reference does not result in an access violation, a page fault can be either ...
Cardinal, python IRC bot,旨在使功能快速且简单 满足基数。 你说的另一个IRC机器人? 世界需要什么 !base是一个模块化的,扭曲的基于 python的IRC机器人。 包括电池 !基本的目标是使插件开发更容易和强大,并且...
根据cardinal曲线原理完成鼠标取点绘制曲线,并使小车沿曲线运动,使用Qt完成界面设计。
casa-del-cardinal
—— CTF AWD 线下赛平台介绍Cardinal 是由 Vidar-Team 开发的 AWD 比赛平台,使用 Go 编写。本程序可以作为 CTF 线下比赛平台,亦可用于团队内部 AWD 模拟练习。更多图片(该 AWD 实时 3D 攻击大屏为项目 ,已适配...
1. Introduction:A New Ecology is Needed 1 1.1 Environmental management has changed 1 1.2 Ecology is changing 2 1.3 Book outline 3 2. Ecosystems have Openness (Thermodynamic) 7 2.1 Why must ecosystems ...