连接两条贝塞尔曲线 [英] joining two bezier curves

查看:192
本文介绍了连接两条贝塞尔曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两条贝塞尔曲线,它们在空间上相距一定距离. 曲线1具有控制点A0,A1,A2,A3. A0和A3位于曲线上并为其终点 曲线2具有控制点C0,C1,C2,C3. C0和C3位于曲线上,并且是端点

我想将两条曲线A和C与中间贝塞尔曲线B连接起来.中间曲线B具有控制点A3和C0,它们位于曲线上并作为其端点.我不知道中间控制点B1和B2.连接也应该足够平滑.请就如何进行提供帮助.已经阅读了很多关于贝塞尔曲线的信息,但是不知道该怎么做. 谢谢并恭祝安康, 高丽人

解决方案

B1为:B1x = 2 * A3x-A2x; B1y = 2 * A3y-A2y;

B2为:B2x = 2 * C0x-C1x; B2y = 2 * C0y-C1y;

这应该使您完全顺畅地加入.

i have two bezier curves placed at a distance apart in space. curve 1 has control points A0, A1,A2, A3. A0 and A3 lie on curve and are its end points Curve 2 has control points C0,C1, C2, C3 . C0 and C3 lie on curve.and are its end points

i want to join the two curves A and C with an intermediate bezier curve B. the intermediate Curve B has control points A3 and C0 which lie on the curve and are its end points. the intermediate control points B1 and B2 are unknown to me. also the joining should be smooth enough. please help as to how to proceed. have read alot about beziers but dont know how to do this. thanks and regards, Gauri

解决方案

B1 will be: B1x = 2 * A3x - A2x; B1y = 2 * A3y - A2y;

B2 will be: B2x = 2 * C0x - C1x; B2y = 2 * C0y - C1y;

This should give you perfectly smooth join.

这篇关于连接两条贝塞尔曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆