mirror of
https://github.com/hannobraun/Fornjot
synced 2025-10-15 04:18:17 +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 crate::{objects::HalfEdge, Core};
|
||||
use crate::{
|
||||
objects::HalfEdge, operations::insert::Insert, storage::Handle, Core,
|
||||
};
|
||||
|
||||
use super::{TransformCache, TransformObject};
|
||||
|
||||
impl TransformObject for HalfEdge {
|
||||
impl TransformObject for Handle<HalfEdge> {
|
||||
fn transform_with_cache(
|
||||
&self,
|
||||
transform: &Transform,
|
||||
@ -24,6 +26,6 @@ impl TransformObject for HalfEdge {
|
||||
.clone()
|
||||
.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