concave

How to form a Concave shape out of Convex shapes?

烂漫一生 提交于 2019-12-03 04:38:50
问题 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, and if concave, splitting the vertices into groups, testing each groups' concaveness, and repeating until a full set of concave shapes results that look just like the original shape when put together What I would like to know is... What the equation for testing a shapes concaveness is: What is it and how does it work? How would i split up the

How to form a Concave shape out of Convex shapes?

孤人 提交于 2019-12-02 17:47:44
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, and if concave, splitting the vertices into groups, testing each groups' concaveness, and repeating until a full set of concave shapes results that look just like the original shape when put together What I would like to know is... What the equation for testing a shapes concaveness is: What is it and how does it work? How would i split up the vertices of the concave shape so in the end the shape is formed out of as few convex shapes as possible?

opencv find concave hull

两盒软妹~` 提交于 2019-11-30 07:31:59
问题 I have a set of discrete points shown in an image, like the following I want to reconstruct or up sampling (I'm not sure what's the correct way to describe it) the image, so that the result image would be like the following . It doesn't need to be exactly the same as the example image, but the main idea is to fill up the original one. I have an initial idea about how to do it. But I don't know how to do it after the first step. My idea is to first separate image using kmeans and find out the

opencv find concave hull

匆匆过客 提交于 2019-11-29 04:34:03
I have a set of discrete points shown in an image, like the following I want to reconstruct or up sampling (I'm not sure what's the correct way to describe it) the image, so that the result image would be like the following . It doesn't need to be exactly the same as the example image, but the main idea is to fill up the original one. I have an initial idea about how to do it. But I don't know how to do it after the first step. My idea is to first separate image using kmeans and find out the different objects. And I have successfully done it. The resulting images after kmeans are: . After

Render filled complex polygons with large number of vertices with OpenGL

ぃ、小莉子 提交于 2019-11-28 06:57:40
问题 I use OpenGL to render 2D map and in the process I need to render filled polygons with large number of vertices( 100,000+ ). To do this, I tessellated the polygons to triangles using glu tessellator and rendered the triangles with VBO. The polygons are rendered successfully. The problem is that the tessellation process turns out to be extremely slow. For some charts with 500,000 vertices, it will take nearly 2 mins on my laptop(i5-3230M 2.6GHz, 8G RAM). This is unacceptable for my application