简体   繁体   中英

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. If you change the position of the second circle to a number greater than 100 (circle v ), then the smoothing works correctly. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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