Add polygon in A-frame
问题 Is there a way to add polygon in A-frame? Kinda like: <a-entity geometry="primitive:polygon;positions:x y z, ..., x y z;"> </a-entity> ? Thanks. 回答1: There used to be a polygon-component, but it doesn't work with 0.5.0 or 0.6.0. So you have to make your own in three.js, by creating a component which adds a mesh to your entity: let points = []; //vertices of Your shape points.push( new THREE.Vector2( 0, 0 ) ); points.push( new THREE.Vector2( 3, 0 ) ); points.push( new THREE.Vector2( 5, 2 ) );