¡@

Home 

javascript Programming Glossary: geometry

Transforming vertex normals in three.js

http://stackoverflow.com/questions/16469270/transforming-vertex-normals-in-three-js

to first calculate the face vertex normals when I setup my geometry then be free to transform it merge and whatnot. While I realize.. which are transformed when you apply a matrix I thought geometry.applyMatrix was able to transform them as well. However while.. them as well. However while the following works fine geometry.applyMatrix new THREE.Matrix4 .makeScale 1 1 1 geometry.computeFaceNormals..

json with google geocoding api

http://stackoverflow.com/questions/4681928/json-with-google-geocoding-api

json '#results' .append ' p Latitude ' json.results.geometry.location.lat ' p ' '#results' .append ' p Longitude ' json.results.geometry.location.lng.. ' p ' '#results' .append ' p Longitude ' json.results.geometry.location.lng ' p ' script head body input type text id query.. bug in it json.results is an array of results so it has no geometry property. You have to access the first element of the array..

Check if polygon is inside a polygon

http://stackoverflow.com/questions/4833802/check-if-polygon-is-inside-a-polygon

tell me where to start. javascript algorithm google maps geometry polygon share improve this question Perform line intersection..

Load JavaScript dynamically

http://stackoverflow.com/questions/7293344/load-javascript-dynamically

.getScript 'http maps.googleapis.com maps api js libraries geometry sensor true' function data textStatus console.log textStatus..

Using textures in THREE.js

http://stackoverflow.com/questions/7919516/using-textures-in-three-js

material new THREE.MeshPhongMaterial color 0xCC0000 geometry new THREE.PlaneGeometry 100 100 mesh new THREE.Mesh geometry.. new THREE.PlaneGeometry 100 100 mesh new THREE.Mesh geometry material pointLight new THREE.PointLight 0xFFFFFF camera.position.z..

Three.js - Custom Shapes?

http://stackoverflow.com/questions/8284233/three-js-custom-shapes

'red.png' create a sphere shape geometry new THREE.SphereGeometry 50 16 16 give a shape red color material.. map texture create an object mesh new THREE.Mesh geometry material javascript 3d three.js share improve this question.. improve this question There are multiple ways to use geometry in three.js from exporting models via a 3D editor like Blender..

Three.js - how to detect what shape was selected? after drag

http://stackoverflow.com/questions/8292486/three-js-how-to-detect-what-shape-was-selected-after-drag

0 500 2000 light.castShadow true scene.add light var geometry new THREE.CubeGeometry 7 7 1 3 3 1 for var i 0 i 5 i var object.. 7 7 1 3 3 1 for var i 0 i 5 i var object new THREE.Mesh geometry new THREE.MeshLambertMaterial map THREE.ImageUtils.loadTexture..