pub struct ClusterSimplifyResult {
pub positions: Vec<f32>,
pub indices: Vec<u32>,
pub source_triangles: Vec<u32>,
pub max_displacement: f64,
}Expand description
聚类简化结果(与 TS ClusterSimplifyResult 同构)。
Fields§
§positions: Vec<f32>代表点位置(f32,由 f64 均值截断)。
indices: Vec<u32>简化后索引。
source_triangles: Vec<u32>每输出三角形 → 当前层输入三角形索引(父子归属用)。
max_displacement: f64顶点相对代表点的最大位移(世界单位,f64 真误差场)。
Trait Implementations§
Source§impl Clone for ClusterSimplifyResult
impl Clone for ClusterSimplifyResult
Auto Trait Implementations§
impl Freeze for ClusterSimplifyResult
impl RefUnwindSafe for ClusterSimplifyResult
impl Send for ClusterSimplifyResult
impl Sync for ClusterSimplifyResult
impl Unpin for ClusterSimplifyResult
impl UnsafeUnpin for ClusterSimplifyResult
impl UnwindSafe for ClusterSimplifyResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more