mirror of https://github.com/hannobraun/Fornjot
Change order of fields in `Face`
I think this makes more sense, since the surface is the defining element of the face, and the edges only make sense in reference to the surface. This way, it's also consistent with the order of fields in `Edge`.
This commit is contained in:
parent
68a6762d1b
commit
691654487d
|
@ -51,6 +51,9 @@ pub enum Face {
|
||||||
/// A face is defined by a surface, and is bounded by edges that lie in that
|
/// A face is defined by a surface, and is bounded by edges that lie in that
|
||||||
/// surface.
|
/// surface.
|
||||||
Face {
|
Face {
|
||||||
|
/// The surface that defines this face
|
||||||
|
surface: Surface,
|
||||||
|
|
||||||
/// The edges that bound the face
|
/// The edges that bound the face
|
||||||
///
|
///
|
||||||
/// # Implementation Note
|
/// # Implementation Note
|
||||||
|
@ -62,9 +65,6 @@ pub enum Face {
|
||||||
/// more specialized data structure here, that specifies the edges in
|
/// more specialized data structure here, that specifies the edges in
|
||||||
/// surface coordinates.
|
/// surface coordinates.
|
||||||
edges: Edges,
|
edges: Edges,
|
||||||
|
|
||||||
/// The surface that defines this face
|
|
||||||
surface: Surface,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/// The triangles of the face
|
/// The triangles of the face
|
||||||
|
|
Loading…
Reference in New Issue