mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-17 07:26:06 +00:00
Implement TransformObject
for Curve
This commit is contained in:
parent
d212a1d832
commit
bbfd1a5e50
19
crates/fj-core/src/algorithms/transform/curve.rs
Normal file
19
crates/fj-core/src/algorithms/transform/curve.rs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
use fj_math::Transform;
|
||||||
|
|
||||||
|
use crate::{objects::Curve, services::Services};
|
||||||
|
|
||||||
|
use super::{TransformCache, TransformObject};
|
||||||
|
|
||||||
|
impl TransformObject for Curve {
|
||||||
|
fn transform_with_cache(
|
||||||
|
self,
|
||||||
|
_: &Transform,
|
||||||
|
_: &mut Services,
|
||||||
|
_: &mut TransformCache,
|
||||||
|
) -> Self {
|
||||||
|
// There's nothing to actually transform here, as `Curve` holds no data.
|
||||||
|
// We still need this implementation though, as a new `Curve` object
|
||||||
|
// must be created to represent the new and transformed curve.
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
//! API for transforming objects
|
//! API for transforming objects
|
||||||
|
|
||||||
|
mod curve;
|
||||||
mod cycle;
|
mod cycle;
|
||||||
mod edge;
|
mod edge;
|
||||||
mod face;
|
mod face;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user