Skip to content

Instantly share code, notes, and snippets.

View ranadeep47's full-sized avatar
🎯
Focusing

Ranadeep ranadeep47

🎯
Focusing
View GitHub Profile
@ranadeep47
ranadeep47 / three-uvToGlobal.js
Created November 9, 2020 14:18 — forked from paulzi/three-uvToGlobal.js
Transform UV coordinate to global (Three.js)
/**
* @param {THREE.Mesh} mesh
* @param {THREE.Vector2} point
* @returns {THREE.Vector3[]}
*/
var uvToGlobal = function (mesh, point) {
var a, b, c, i, uv, face, uvs, faces, vertices, matrix, matrix2, point3, result;
result = [];
uvs = mesh.geometry.faceVertexUvs[0];
faces = mesh.geometry.faces;
@ranadeep47
ranadeep47 / image_save.sh
Created April 30, 2018 18:02 — forked from tommeier/image_save.sh
Bash script to download list of image urls to a location
while read p; do
echo "SAVING : $p"
filename=$(basename "$p")
extension="${filename##*.}"
filename="${filename%.*}"
echo " -- Filename : $filename"
curl -o "/file/save/location/$filename.$extension" "$p"
done < /soure/url/list/image_list.txt