Understanding the geometry of a truncated Icosahedron, for rendering

寵の児 提交于 2019-12-14 03:56:05
问题 I'm trying to render a truncated icosahedron like above with clickable zones using Three.js. I found the code for a regular icosahedron var t = ( 1 + Math.sqrt( 5 ) ) / 2; var vertices = [ [ -1, t, 0 ], [ 1, t, 0 ], [ -1, -t, 0 ], [ 1, -t, 0 ], [ 0, -1, t ], [ 0, 1, t ], [ 0, -1, -t ], [ 0, 1, -t

Rotating, inverting and translating a PShape object in Processing

早过忘川 提交于 2019-12-14 03:53:34
问题 I would like to: translate , invert and rotate a single quadrilateral (PShape object) multiple times then change the height of one of its 2 top vertices so as the whole thing act as an articulated arm that can be bent either to the right or the left . To be as clear as possible I've made some

Google Maps API v3 - circle sector

谁说我不能喝 提交于 2019-12-14 03:28:10
问题 I would like to draw sector of circle on map defined by point, radius, startAngle and stopAngle. I found lots of exmaples but with polygons etc whitch was too complicated for my case. Thanks for any help! 回答1: a Circle is an object with no defined sides. Only a radius and a center point. You are

Detecting light projections and intersections in 2D space using C#

▼魔方 西西 提交于 2019-12-14 02:35:24
问题 A light source is an entity in 2D space that sits in a single coordinate. There are multiple light sources around in various locations and each gives off 8 rays of light in directions N, S, E, W, NW, NE, SW, SE. The coordinates of all lights are known. I need to calculate all intersections of

Drawing an honeycomb with as3

空扰寡人 提交于 2019-12-14 01:46:48
问题 I'm trying to create an honeycomb with as3 but I have some problem on cells positioning. I've already created the cells (not with code) and for cycled them to a funcion and send to it the parameters which what I thought was need (the honeycomb cell is allready on a sprite container in the center