mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-05 06:45:52 +00:00
Remove Curve
's TransformObject
implementation
This commit is contained in:
parent
e697c3ff6a
commit
2322ab9ddc
@ -1,23 +0,0 @@
|
|||||||
use fj_math::Transform;
|
|
||||||
|
|
||||||
use crate::{
|
|
||||||
objects::{Curve, Objects},
|
|
||||||
services::Service,
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::{TransformCache, TransformObject};
|
|
||||||
|
|
||||||
impl TransformObject for Curve {
|
|
||||||
fn transform_with_cache(
|
|
||||||
self,
|
|
||||||
_: &Transform,
|
|
||||||
_: &mut Service<Objects>,
|
|
||||||
_: &mut TransformCache,
|
|
||||||
) -> Self {
|
|
||||||
// Don't need to transform path, as that's defined in surface
|
|
||||||
// coordinates, and thus transforming `surface` takes care of it.
|
|
||||||
let path = self.path();
|
|
||||||
|
|
||||||
Self::new(path)
|
|
||||||
}
|
|
||||||
}
|
|
@ -15,8 +15,9 @@ impl TransformObject for HalfEdge {
|
|||||||
objects: &mut Service<Objects>,
|
objects: &mut Service<Objects>,
|
||||||
cache: &mut TransformCache,
|
cache: &mut TransformCache,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let curve =
|
// Don't need to transform curve, as that's defined in surface
|
||||||
self.curve().transform_with_cache(transform, objects, cache);
|
// coordinates.
|
||||||
|
let curve = self.curve();
|
||||||
let boundary = self.boundary().zip_ext(self.surface_vertices()).map(
|
let boundary = self.boundary().zip_ext(self.surface_vertices()).map(
|
||||||
|(point, surface_vertex)| {
|
|(point, surface_vertex)| {
|
||||||
let surface_vertex = surface_vertex
|
let surface_vertex = surface_vertex
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
//! API for transforming objects
|
//! API for transforming objects
|
||||||
|
|
||||||
mod curve;
|
|
||||||
mod cycle;
|
mod cycle;
|
||||||
mod edge;
|
mod edge;
|
||||||
mod face;
|
mod face;
|
||||||
|
Loading…
Reference in New Issue
Block a user