Implement TransformObject for Curve

This commit is contained in:
Hanno Braun 2023-07-14 10:25:19 +02:00
parent d212a1d832
commit bbfd1a5e50
2 changed files with 20 additions and 0 deletions

View 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()
}
}

View File

@ -1,5 +1,6 @@
//! API for transforming objects
mod curve;
mod cycle;
mod edge;
mod face;