|
20 | 20 |
|
21 | 21 | use crate::cxxbridge::ffi::ControlPointDistribution as BindControlPointDistribution; |
22 | 22 | use crate::cxxbridge::ffi::FilmFit as BindFilmFit; |
23 | | -use crate::cxxbridge::ffi::InterpolationMethod as BindInterpolationMethod; |
| 23 | +use crate::cxxbridge::ffi::Interpolation as BindInterpolation; |
24 | 24 | use crate::cxxbridge::ffi::RotateOrder as BindRotateOrder; |
25 | 25 | use mmscenegraph_rust::curve::simplify::ControlPointDistribution as CoreControlPointDistribution; |
26 | 26 | use mmscenegraph_rust::math::camera::FilmFit as CoreFilmFit; |
27 | | -use mmscenegraph_rust::math::interpolate::InterpolationMethod as CoreInterpolationMethod; |
| 27 | +use mmscenegraph_rust::math::interpolate::Interpolation as CoreInterpolation; |
28 | 28 | use mmscenegraph_rust::math::rotate::euler::RotateOrder as CoreRotateOrder; |
29 | 29 |
|
30 | 30 | pub fn bind_to_core_rotate_order(value: BindRotateOrder) -> CoreRotateOrder { |
@@ -97,32 +97,32 @@ pub fn core_to_bind_control_point_distribution( |
97 | 97 | } |
98 | 98 |
|
99 | 99 | pub fn bind_to_core_interpolation_method( |
100 | | - value: BindInterpolationMethod, |
101 | | -) -> CoreInterpolationMethod { |
| 100 | + value: BindInterpolation, |
| 101 | +) -> CoreInterpolation { |
102 | 102 | match value { |
103 | | - // BindInterpolationMethod::Nearest => CoreInterpolationMethod::Nearest, |
104 | | - BindInterpolationMethod::Linear => CoreInterpolationMethod::Linear, |
105 | | - BindInterpolationMethod::CubicNUBS => { |
106 | | - CoreInterpolationMethod::CubicNUBS |
| 103 | + // BindInterpolation::Nearest => CoreInterpolation::Nearest, |
| 104 | + BindInterpolation::Linear => CoreInterpolation::Linear, |
| 105 | + BindInterpolation::CubicNUBS => { |
| 106 | + CoreInterpolation::CubicNUBS |
107 | 107 | } |
108 | | - BindInterpolationMethod::CubicSpline => { |
109 | | - CoreInterpolationMethod::CubicSpline |
| 108 | + BindInterpolation::CubicSpline => { |
| 109 | + CoreInterpolation::CubicSpline |
110 | 110 | } |
111 | 111 | _ => panic!("Invalid interpolation method: {:?}", value), |
112 | 112 | } |
113 | 113 | } |
114 | 114 |
|
115 | 115 | pub fn core_to_bind_interpolation_method( |
116 | | - value: CoreInterpolationMethod, |
117 | | -) -> BindInterpolationMethod { |
| 116 | + value: CoreInterpolation, |
| 117 | +) -> BindInterpolation { |
118 | 118 | match value { |
119 | | - // CoreInterpolationMethod::Nearest => BindInterpolationMethod::Nearest, |
120 | | - CoreInterpolationMethod::Linear => BindInterpolationMethod::Linear, |
121 | | - CoreInterpolationMethod::CubicNUBS => { |
122 | | - BindInterpolationMethod::CubicNUBS |
| 119 | + // CoreInterpolation::Nearest => BindInterpolation::Nearest, |
| 120 | + CoreInterpolation::Linear => BindInterpolation::Linear, |
| 121 | + CoreInterpolation::CubicNUBS => { |
| 122 | + BindInterpolation::CubicNUBS |
123 | 123 | } |
124 | | - CoreInterpolationMethod::CubicSpline => { |
125 | | - BindInterpolationMethod::CubicSpline |
| 124 | + CoreInterpolation::CubicSpline => { |
| 125 | + BindInterpolation::CubicSpline |
126 | 126 | } |
127 | 127 | } |
128 | 128 | } |
0 commit comments