mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Update name of struct field
This commit is contained in:
parent
2a8f050d6a
commit
9156b40207
@ -21,7 +21,7 @@ pub struct Geometry {
|
|||||||
vertex: BTreeMap<Handle<Vertex>, VertexGeom>,
|
vertex: BTreeMap<Handle<Vertex>, VertexGeom>,
|
||||||
|
|
||||||
curve_generators: BTreeMap<Handle<Curve>, CurveGeom2>,
|
curve_generators: BTreeMap<Handle<Curve>, CurveGeom2>,
|
||||||
surface2: BTreeMap<Handle<Surface>, SurfaceGeom>,
|
surface_generators: BTreeMap<Handle<Surface>, SurfaceGeom>,
|
||||||
|
|
||||||
space_2d: Handle<Surface>,
|
space_2d: Handle<Surface>,
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ impl Geometry {
|
|||||||
vertex: BTreeMap::new(),
|
vertex: BTreeMap::new(),
|
||||||
|
|
||||||
curve_generators: BTreeMap::new(),
|
curve_generators: BTreeMap::new(),
|
||||||
surface2: BTreeMap::new(),
|
surface_generators: BTreeMap::new(),
|
||||||
|
|
||||||
space_2d: topology.surfaces.space_2d(),
|
space_2d: topology.surfaces.space_2d(),
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ impl Geometry {
|
|||||||
panic!("Attempting to define geometry for 2D space");
|
panic!("Attempting to define geometry for 2D space");
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.surface2.contains_key(&surface)
|
if self.surface_generators.contains_key(&surface)
|
||||||
&& (surface == self.xy_plane
|
&& (surface == self.xy_plane
|
||||||
|| surface == self.xz_plane
|
|| surface == self.xz_plane
|
||||||
|| surface == self.yz_plane)
|
|| surface == self.yz_plane)
|
||||||
@ -159,7 +159,7 @@ impl Geometry {
|
|||||||
panic!("Attempting to redefine basis plane.");
|
panic!("Attempting to redefine basis plane.");
|
||||||
}
|
}
|
||||||
|
|
||||||
self.surface2.insert(surface, geometry);
|
self.surface_generators.insert(surface, geometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn define_vertex_inner(
|
pub(crate) fn define_vertex_inner(
|
||||||
@ -215,7 +215,7 @@ impl Geometry {
|
|||||||
&self,
|
&self,
|
||||||
surface: &Handle<Surface>,
|
surface: &Handle<Surface>,
|
||||||
) -> Option<&SurfaceGeom> {
|
) -> Option<&SurfaceGeom> {
|
||||||
self.surface2.get(surface)
|
self.surface_generators.get(surface)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// # Access the geometry of the provided vertex
|
/// # Access the geometry of the provided vertex
|
||||||
|
Loading…
Reference in New Issue
Block a user