k2f_idml 0.3.2

K2F lock → IDML exporter
Documentation
1
2
3
4
5
6
7
8
use k2f_core::GeometryNode;

pub(crate) fn find_geo<'a>(node: &'a GeometryNode, id: &str) -> Option<&'a GeometryNode> {
    if node.id == id {
        return Some(node);
    }
    node.children.iter().find_map(|c| find_geo(c, id))
}