How to form a Concave shape out of Convex shapes?

前端 未结 5 1631
故里飘歌
故里飘歌 2021-01-31 23:34

i\'m trying to get around the rule of only being able to form convex shapes in the SFML c++ library.

To do this I\'m planning on testing given vertices,

5条回答
  •  被撕碎了的回忆
    2021-02-01 00:13

    Some things to think about:

    • Left-handed and right-handed corners (the sign of the cross-product is an easy way to distinguish). All corners in a convex shape are the same handed-ness.

    • Extending an edge and adding a new vertex may give you better results than adding edges between existing vertices.

提交回复
热议问题