简体   繁体   English

为什么 Paper.js 的 `smooth:continuous` 函数没有按预期工作?

[英]Why isn't Paper.js's `smooth: continuous` function working as expected?

Sketch link 草图链接

I want to smooth out the subtraction of these two spheres, as seen in the sketch.我想平滑这两个球体的减法,如草图所示。 I expected smoothing via the continuous type to remove the pointy edges of the sphere, but this didn't happen.我希望通过continuous类型进行平滑以去除球体的尖边缘,但这并没有发生。 If you change the position of the second circle to a number greater than 100 (circle v ), then the smoothing works correctly.如果您将第二个圆的位置更改为大于 100 的数字(圆v ),则平滑工作正常。 How can I solve this?我该如何解决这个问题?

The smooth function will try to remain course to the original curve, that often means keep some corners.平滑函数将尝试保持原始曲线的路线,这通常意味着保留一些角落。

Instead, you can add some handles to your corner points.相反,您可以为角点添加一些手柄。 That way you will have a good control on the curvature of your drawing.这样您就可以很好地控制绘图的曲率。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM