Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jun 28, 2022
1 parent 496a693 commit 32d0ad9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions crates/fj-kernel/src/shape/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use fj_math::Scalar;

use crate::objects::{Curve, Cycle, Edge, Face, Surface, Vertex};

use super::{
Expand All @@ -10,20 +8,13 @@ use super::{
/// The boundary representation of a shape
#[derive(Clone, Debug)]
pub struct Shape {
distinct_min_distance: Scalar,

stores: Stores,
}

impl Shape {
/// Construct a new shape
pub fn new() -> 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 {
curves: Store::new(),
surfaces: Store::new(),
Expand Down Expand Up @@ -55,17 +46,6 @@ impl Shape {
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
///
/// Validates the object, and returns an error if it is not valid. See the
Expand Down

0 comments on commit 32d0ad9

Please sign in to comment.