mirror of https://github.com/hannobraun/Fornjot
Remove unused code
This commit is contained in:
parent
496a693f86
commit
32d0ad95ce
|
@ -1,5 +1,3 @@
|
||||||
use fj_math::Scalar;
|
|
||||||
|
|
||||||
use crate::objects::{Curve, Cycle, Edge, Face, Surface, Vertex};
|
use crate::objects::{Curve, Cycle, Edge, Face, Surface, Vertex};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
@ -10,8 +8,6 @@ use super::{
|
||||||
/// The boundary representation of a shape
|
/// The boundary representation of a shape
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct Shape {
|
pub struct Shape {
|
||||||
distinct_min_distance: Scalar,
|
|
||||||
|
|
||||||
stores: Stores,
|
stores: Stores,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,11 +15,6 @@ impl Shape {
|
||||||
/// Construct a new shape
|
/// Construct a new shape
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
// This should really come from `Self::DEFAULT_MIN_DISTANCE`, or a
|
|
||||||
// similarly named constant. Unfortunately `Scalar::from_f64` can't
|
|
||||||
// be `const` yet.
|
|
||||||
distinct_min_distance: Scalar::from_f64(5e-7), // 0.5 µm
|
|
||||||
|
|
||||||
stores: Stores {
|
stores: Stores {
|
||||||
curves: Store::new(),
|
curves: Store::new(),
|
||||||
surfaces: Store::new(),
|
surfaces: Store::new(),
|
||||||
|
@ -55,17 +46,6 @@ impl Shape {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Override the minimum distance between distinct objects
|
|
||||||
///
|
|
||||||
/// Used for vertex validation, to determine whether vertices are unique.
|
|
||||||
pub fn with_distinct_min_distance(
|
|
||||||
mut self,
|
|
||||||
distinct_min_distance: impl Into<Scalar>,
|
|
||||||
) -> Self {
|
|
||||||
self.distinct_min_distance = distinct_min_distance.into();
|
|
||||||
self
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Insert an object into the shape
|
/// Insert an object into the shape
|
||||||
///
|
///
|
||||||
/// Validates the object, and returns an error if it is not valid. See the
|
/// Validates the object, and returns an error if it is not valid. See the
|
||||||
|
|
Loading…
Reference in New Issue