문제

How can I render n-sided polygon in three.js. It does not have geometry for that. I need it to be able to render both convex and concave polygons. So maybe there is a patch or workaround somewhere. Usage: The input will be n vertices which will make the n-sided polygon. However, all the vertices will be on the same plane and the output should be a rendered polygon.

도움이 되었습니까?

해결책

Maybe you can use the Shape Object for that? http://mrdoob.github.com/three.js/examples/webgl_geometry_shapes.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top