Questions tagged [face]

A face is an elementary surface geometry. Faces are used in 3D modelling to define meshes

A face is an elementary surface geometry. A face is defined by three (sometimes four) vertices or the indices from a vertices array or collection. Faces are used in 3D modelling, for example to define faceted boundary representations.

Note: Use this tag for questions related to face geometries, do not use this tag for questions related to face recognition (use face-recognition instead).

176 questions
14
votes
3 answers

Change the colors of a cube's faces

I actually found this question, but it says material.color doesn't exist. I need to know how to change the colors of the various faces of a cube I'm drawing: var newCube = new THREE.Mesh(new three.CubeGeometry(size, size, size), new…
David Gomes
  • 5,644
  • 16
  • 60
  • 103
9
votes
1 answer

Coloring faces of a Three.js BoxGeometry

I saw some solutions that accessed the THREE.BoxGeometry faces like that: var geometry = new THREE.BoxGeometry(n,n,n) let faces = geometry.faces; for (let face of faces) { face.color.set(Math.random() * 0xffffff); } But it seems that the…
ironmouse
  • 1,292
  • 2
  • 15
  • 23
7
votes
1 answer

rotate face from non-front to front opencv

I've struggled for a week with a problem that I can't rotate a face from non-front like the Left Face in this image to front like the Right Face in the same image. 1). I use a tutorial about delaunay at learnopencv website to get all the triangle…
Rain Maker
  • 152
  • 1
  • 3
  • 6
6
votes
1 answer

Can CATransform3D be used to get eye size dimensions in Face Mesh?

I am trying to get width of the eyes and distance of 2 eyes using 3D Face Mesh of ARKit. I have used CATransform3D of ARAnchor; struct CATransform3D { CGFloat m11, m12, m13, m14; CGFloat m21, m22, m23, m24; CGFloat m31, m32, m33, m34; …
Rohan
  • 2,939
  • 5
  • 36
  • 65
5
votes
0 answers

Is there a standard Face Unlock icon / logo for Android?

After scouring the internet, my own Pixel phone, and at least one app that uses face unlock, I have seen this icon used as a symbol for face unlock functionality. However I have not found a downloadable image to use for mockup purposes, either in…
pollux
  • 51
  • 1
5
votes
1 answer

How do you transform 2D facial landmarks into 3D world coordinates?

First post here, I'll do my best to describe the problem. I am trying to animate the face of a 3D virtual character in realtime using opencv, dlib, and webcam data similar to fancy applications such as this software Following the example here and…
HairyS
  • 53
  • 3
4
votes
1 answer

Why I can't create Face3 in ThreeJS Typescript project

I am trying to create Mesh by using Face3. I am using Threejs in typescript project. There are several problems I am facing. const points = [ new Face3(-1, 1, -1),//c new Face3(-1, -1, 1),//b new Face3(1, 1, 1),//a new Face3(1,…
USMANHEART
  • 93
  • 1
  • 9
4
votes
0 answers

THREE.JS + Delaunator.JS Keeping faces indexing

Probably this question is for Mapbox team and Delaunator.JS developers, but I hope that somebody could help me here. I have a pseudo quadtree geometry (THREE.BufferGeometry) set by series of points having seven partitions with their individual draw…
VVK
  • 435
  • 2
  • 27
4
votes
3 answers

Using MTCNN with a webcam via OpenCV

I wish to be able to use a webcam and utilize MTCNN as the primary facial detector. Just as one can use Haar Cascades, I want to use MTCNN to find faces on my webcam This video is about breaking MTCNN, but nonetheless provides insight into my goal:…
4
votes
0 answers

Distance between face and device

I am using mlkit for face recognization from github link below: https://github.com/firebase/quickstart-android/tree/master/mlkit and to get distance, method below: https://github.com/philiiiiiipp/Android-Screen-to-Face-Distance-Measurement But this…
4
votes
2 answers

Aligning ARFaceAnchor with SpriteKit overlay

I'm trying to calculate SpriteKit overlay content position (not just overlaying visual content) over specific geometry points ARFaceGeometry/ARFaceAnchor. I'm using SCNSceneRenderer.projectPoint from the calculated world coordinate, but the result…
ansont
  • 71
  • 3
4
votes
3 answers

Adjacency or Edge List to Faces

How to go from an edge list or adjacency list representation of a planar graph to a face list? For example, with this graph (which is not 0-indexed, oddly enough): I'd want a list that looks something like…
user4159038
3
votes
4 answers

How to use AWS Rekognition service to detect faces with Node.js

I am trying to use Amazon Rekognition Service with Node.js, I uploaded a face image to S3 service in a bucket with a sample program and now I want to detect face with Node.js The code is as below // Load the AWS SDK for Node.js var AWS =…
ays
  • 39
  • 1
  • 3
3
votes
1 answer

Three.js - Merge multiple geometries/meshes removing common areas

I´m trying to merge two geometries/meshes (red and blue) into a unique one. But after creating a new geometry and applying geometry.merge() I found that all the inner vertices and faces are still there (the green area). I would like to remove all…
spacorum
  • 495
  • 6
  • 16
3
votes
2 answers

Three.js - Create new mesh from certain faces/vertices of another mesh

I´ve been several days struggling with a particular Three.js issue, and I cannot find any way to do it. This is my case: 1) I have a floating mesh, formed by several triangled faces. This mesh is created from the geometry returned by a loader, after…
spacorum
  • 495
  • 6
  • 16
1
2 3
11 12