libfive 0.1.2

Tools for solid modeling, especially suited for parametric and procedural design.
Documentation
1
2
3
4
5
6
7
8

/// # Text <a name="text"></a>
impl Tree {
    pub fn text(txt: impl Into<Vec<u8>>, pos: TreeVec2) -> Self {
        let txt = std::ffi::CString::new(txt).unwrap();
        Self(unsafe { sys::libfivestd_text(txt.as_ptr(), sys::tvec2 { x: pos.x.0, y: pos.y.0 }) })
    }
}