/// Returns the center of the face given as the average of its vertex positions.
Returns the center of the face given as the average of its vertex positions.
Returns the center of the face given as the average of its vertex positions .
pub fn face_center(&self, face_id: FaceID) -> Vec3
    {
        let mut walker = self.walker_from_face(face_id);
        let p0 = self.vertex_position(walker.vertex_id().unwrap());
        walker.as_next();
        let p1 = self.vertex_position(walker.vertex_id().unwrap());
        walker.as_next();
        let p2 = self.vertex_position(walker.vertex_id().unwrap());
        (p0 + p1 + p2)/3.0
    }
pub fn face_center ( & self , face_id : FaceID ) -> Vec3 { let mut walker = self . walker_from_face ( face_id ) ; let p0 = self . vertex_position ( walker . vertex_id ( ) . unwrap ( ) ) ; walker . as_next ( ) ; let p1 = self . vertex_position ( walker . vertex_id ( ) . unwrap ( ) ) ; walker . as_next ( ) ; let p2 = self . vertex_position ( walker . vertex_id ( ) . unwrap ( ) ) ; ( p0 + p1 + p2 ) / 3.0 }
Returns the center of the face given as the average of its vertex positions.
Returns the center of the face given as the average of its vertex positions .
&self
face_id
FaceID