Even though I don't do a lot of bezier stuff recently, I think about this page a lot, and often send it to coworkers who are doing bezier stuff. https://pomax.github.io/bezierinfo/ This page is great for at least 2 reasons:
I guess one thing I'm not seeing that is useful for drawing poly-curves is knowing when you're past the end of the curve segment, and I don't see that. If I recall, it's mostly just a dot product check. >0 for one end, <0 for the other end.
-
-
Hm, in what context? You can only run through each segment using a time interval [0,1] so your control value should already be able to inform you that you've "fallen off" the segment on either end by being <0 or >1?
-
To rasterize, I would generate a bounding box, then pass that to the GPU with the curve data. Per pixel, it would find the nearest point on the curve, if that point was within the drawing width, it would draw. Also, if not past the end of the curve.
- Näytä vastaukset
Uusi keskustelu -
-
-
Although, that's only if the two meeting ends are meant to create a continuous curve. If the point where the two curves meet is meant to have an angle, it gets more complicated, as you have to find the angle between 2-1 and 2-3 (see images) to put into the dot product.pic.twitter.com/aGpq62PMq6
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.