Bezier clipping

前端 未结 4 1872
盖世英雄少女心
盖世英雄少女心 2020-12-15 22:28

I\'m trying to find/make an algorithm to compute the intersection (a new filled object) of two arbitrary filled 2D objects. The objects are defined using either lines or cub

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 23:18

    There are a number of academic research papers on doing bezier clipping:

    http://www.andrew.cmu.edu/user/sowen/abstracts/Se306.html

    http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.61.6669

    http://www.dm.unibo.it/~casciola/html/research_rr.html

    I recommend the interval methods because as you describe, you don't have to divide down to polygons, and you can get guaranteed results as well as define your own arbitrary precision for the resultset. For more information on interval rendering, you may also refer to http://www.sunfishstudio.com

提交回复
热议问题