manifold3d_types/manifold/
vertex.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::math;
use manifold3d_sys::ManifoldVec3;

pub trait Warp: WarpVertex + ExternCWarpFn {}

pub trait WarpVertex {
    fn warp_vertex(&self, vertex: math::Point3) -> math::Point3;
}

pub trait ExternCWarpFn {
    fn extern_c_warp_fn(
        &self,
    ) -> unsafe extern "C" fn(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: *mut ::std::os::raw::c_void,
    ) -> ManifoldVec3;
}