manifold3d_types/manifold/
vertex.rs

1use crate::math;
2use manifold3d_sys::ManifoldVec3;
3
4pub trait Warp: WarpVertex + ExternCWarpFn {}
5
6pub trait WarpVertex {
7    fn warp_vertex(&self, vertex: math::Point3) -> math::Point3;
8}
9
10pub trait ExternCWarpFn {
11    fn extern_c_warp_fn(
12        &self,
13    ) -> unsafe extern "C" fn(
14        arg1: f64,
15        arg2: f64,
16        arg3: f64,
17        arg4: *mut ::std::os::raw::c_void,
18    ) -> ManifoldVec3;
19}