Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

make triangle with threejs

let geom = new THREE.Geometry();
let v1 = new THREE.Vector3(0,0,0);
let v2 = new THREE.Vector3(30,0,0);
let v3 = new THREE.Vector3(30,30,0);

geom.vertices.push(v1);
geom.vertices.push(v2);
geom.vertices.push(v3);

geom.faces.push( new THREE.Face3( 0, 1, 2 ) );
geom.computeFaceNormals();

let mesh= new THREE.Mesh( geom, new THREE.MeshNormalMaterial() );
Comment

PREVIOUS NEXT
Code Example
Javascript :: mongoose model schema 
Javascript :: what is the meaning of the table innerhtml in javascript 
Javascript :: javaScript Math.log() Method 
Javascript :: how to add space between words in javascript 
Javascript :: how to validate date in react 
Javascript :: axios remove existing token 
Javascript :: self invoking function in javascript 
Javascript :: react validate 
Javascript :: validate on submit not working 
Javascript :: how to create variables using javascript 
Javascript :: regex javascript matching first letter to last 
Javascript :: find the second largest number in array javascript 
Javascript :: javascript filter 2d array 
Javascript :: even numbers in an array 
Javascript :: checks for valid email address syntax javascript 
Javascript :: dynamodb async await 
Javascript :: phoenix routes 
Javascript :: noscript you need to enable javascript to run this app. /noscript 
Javascript :: call function add parameter javascript 
Javascript :: is already declared javascript 
Javascript :: @hapi/disinfect 
Python :: python create new folder if not exist 
Python :: conda install ffmpeg 
Python :: display maximum columns pandas 
Python :: jupyter notebook no password or token 
Python :: where to import messages in django 
Python :: python clear console 
Python :: ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True site:stackoverflow.com 
Python :: copy text to clipboard python 
Python :: python time code 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =