Mohamed
Mohamed

Reputation: 347

THREE.JS make face normal perpendicular on the face and outside direction

I use THREE.JS to create a custom geometry, I create vertices and faces, when I create a face without setting the normal like new THREE.Face3(a,b,c) in some faces the normal direction is to inside the geometry, how to make all faces direction is outside the geometry?

Upvotes: 2

Views: 497

Answers (1)

gaitat
gaitat

Reputation: 12632

Create your faces in a counter-clockwise fashion; then the normal will be pointing outwards.

Upvotes: 2

Related Questions