mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-03 13:47:12 +00:00
Implement TransformObject for Handle<HalfEdge>
This commit is contained in:
parent
ced66d9a8c
commit
34ce68d89f
@ -1,10 +1,12 @@
|
|||||||
use fj_math::Transform;
|
use fj_math::Transform;
|
||||||
|
|
||||||
use crate::{objects::HalfEdge, Core};
|
use crate::{
|
||||||
|
objects::HalfEdge, operations::insert::Insert, storage::Handle, Core,
|
||||||
|
};
|
||||||
|
|
||||||
use super::{TransformCache, TransformObject};
|
use super::{TransformCache, TransformObject};
|
||||||
|
|
||||||
impl TransformObject for HalfEdge {
|
impl TransformObject for Handle<HalfEdge> {
|
||||||
fn transform_with_cache(
|
fn transform_with_cache(
|
||||||
&self,
|
&self,
|
||||||
transform: &Transform,
|
transform: &Transform,
|
||||||
@ -24,6 +26,6 @@ impl TransformObject for HalfEdge {
|
|||||||
.clone()
|
.clone()
|
||||||
.transform_with_cache(transform, core, cache);
|
.transform_with_cache(transform, core, cache);
|
||||||
|
|
||||||
Self::new(path, boundary, curve, start_vertex)
|
HalfEdge::new(path, boundary, curve, start_vertex).insert(core)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user