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

View File

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