From f1012f44f6ee0ad7a3b8fc99310e9e8cee76fdd5 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 20 Jul 2022 14:05:39 +0200 Subject: [PATCH] Make fields of `Edge` private --- crates/fj-kernel/src/objects/edge.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/fj-kernel/src/objects/edge.rs b/crates/fj-kernel/src/objects/edge.rs index 5561f2945..1a5d142fd 100644 --- a/crates/fj-kernel/src/objects/edge.rs +++ b/crates/fj-kernel/src/objects/edge.rs @@ -9,18 +9,8 @@ use super::{Curve, GlobalVertex, Surface, Vertex}; /// An edge of a shape #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)] pub struct Edge { - /// Access the curve that defines the edge's geometry - /// - /// The edge can be a segment of the curve that is bounded by two vertices, - /// or if the curve is continuous (i.e. connects to itself), the edge could - /// be defined by the whole curve, and have no bounding vertices. - pub curve: Local>, - - /// Access the vertices that bound the edge on the curve - /// - /// If there are no such vertices, that means that both the curve and the - /// edge are continuous (i.e. connected to themselves). - pub vertices: VerticesOfEdge, + curve: Local>, + vertices: VerticesOfEdge, } impl Edge {