Update name of struct field

This commit is contained in:
Hanno Braun 2024-10-23 19:37:05 +02:00
parent 84e98d7f74
commit 2a8f050d6a

View File

@ -20,7 +20,7 @@ pub struct Geometry {
surface: BTreeMap<Handle<Surface>, SweptCurve>, surface: BTreeMap<Handle<Surface>, SweptCurve>,
vertex: BTreeMap<Handle<Vertex>, VertexGeom>, vertex: BTreeMap<Handle<Vertex>, VertexGeom>,
curve2: BTreeMap<Handle<Curve>, CurveGeom2>, curve_generators: BTreeMap<Handle<Curve>, CurveGeom2>,
surface2: BTreeMap<Handle<Surface>, SurfaceGeom>, surface2: BTreeMap<Handle<Surface>, SurfaceGeom>,
space_2d: Handle<Surface>, space_2d: Handle<Surface>,
@ -38,7 +38,7 @@ impl Geometry {
surface: BTreeMap::new(), surface: BTreeMap::new(),
vertex: BTreeMap::new(), vertex: BTreeMap::new(),
curve2: BTreeMap::new(), curve_generators: BTreeMap::new(),
surface2: BTreeMap::new(), surface2: BTreeMap::new(),
space_2d: topology.surfaces.space_2d(), space_2d: topology.surfaces.space_2d(),
@ -119,7 +119,7 @@ impl Geometry {
curve: Handle<Curve>, curve: Handle<Curve>,
geometry: CurveGeom2, geometry: CurveGeom2,
) { ) {
self.curve2.insert(curve, geometry); self.curve_generators.insert(curve, geometry);
} }
pub(crate) fn define_surface_inner( pub(crate) fn define_surface_inner(
@ -189,7 +189,7 @@ impl Geometry {
/// method returning the old-style geometry is still taking up the more /// method returning the old-style geometry is still taking up the more
/// concise name. /// concise name.
pub fn of_curve_2(&self, curve: &Handle<Curve>) -> Option<&CurveGeom2> { pub fn of_curve_2(&self, curve: &Handle<Curve>) -> Option<&CurveGeom2> {
self.curve2.get(curve) self.curve_generators.get(curve)
} }
/// # Access the geometry of the provided surface /// # Access the geometry of the provided surface