Remove unused struct field

This commit is contained in:
Hanno Braun 2022-06-28 18:48:58 +02:00
parent bac7c658e6
commit 19724a3010
2 changed files with 6 additions and 13 deletions

View File

@ -2,32 +2,25 @@
use fj_math::Point; use fj_math::Point;
use crate::{ use crate::objects::{Cycle, Face, Surface};
objects::{Cycle, Face, Surface},
shape::Shape,
};
/// API for building a [`Face`] /// API for building a [`Face`]
#[must_use] #[must_use]
pub struct FaceBuilder<'r> { pub struct FaceBuilder {
surface: Surface, surface: Surface,
exterior: Option<Vec<Point<2>>>, exterior: Option<Vec<Point<2>>>,
interiors: Vec<Vec<Point<2>>>, interiors: Vec<Vec<Point<2>>>,
color: Option<[u8; 4]>, color: Option<[u8; 4]>,
_shape: &'r mut Shape,
} }
impl<'r> FaceBuilder<'r> { impl FaceBuilder {
/// Construct a new instance of `FaceBuilder` /// Construct a new instance of `FaceBuilder`
pub fn new(surface: Surface, _shape: &'r mut Shape) -> Self { pub fn new(surface: Surface) -> Self {
Self { Self {
surface, surface,
exterior: None, exterior: None,
interiors: Vec::new(), interiors: Vec::new(),
color: None, color: None,
_shape,
} }
} }

View File

@ -57,8 +57,8 @@ impl Face {
}) })
} }
/// Build a face using the [`FaceBuilder`] API /// Build a face using the [`FaceBuilder`] API
pub fn builder(surface: Surface, shape: &mut Shape) -> FaceBuilder { pub fn builder(surface: Surface, _shape: &mut Shape) -> FaceBuilder {
FaceBuilder::new(surface, shape) FaceBuilder::new(surface)
} }
/// Access the boundary representation of the face /// Access the boundary representation of the face