This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn linked_face(vertexes: &[Rc<RefCell<Vertex>>], face: UnlinkedFace) -> Option<RefCell<Face>> { | |
Some(RefCell::new(Face { | |
a: match vertexes.get(face.a) { | |
Some(x) => x.clone(), | |
None => return None | |
}, | |
b: match vertexes.get(face.b) { | |
Some(x) => x.clone(), | |
None => return None | |
}, |