libfive 0.3.1

Tools for solid modeling, especially suited for parametric and procedural design.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// # 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::text(
                txt.as_ptr(),
                sys::tvec2 {
                    x: pos.x.0,
                    y: pos.y.0,
                },
            )
        })
    }
}