Skip to content

Commit

Permalink
Merge branch 'cycle_validation' of https://github.com/A-Walrus/Fornjot
Browse files Browse the repository at this point in the history
…into cycle_validation
  • Loading branch information
A-Walrus committed Mar 16, 2023
2 parents eb95ffb + deade38 commit f3728c0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
10 changes: 10 additions & 0 deletions crates/fj-kernel/src/objects/full/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ impl HalfEdge {
self.curve.point_from_path_coords(start)
}

/// Compute the surface position where the half-edge ends
pub fn end_position(&self) -> Point<2> {
// Computing the surface position from the curve position is fine.
// `HalfEdge` "owns" its end position. There is no competing code that
// could compute the surface position from slightly different data.

let [_, end] = self.boundary;
self.curve.point_from_path_coords(end)
}

/// Access the vertex from where this half-edge starts
pub fn start_vertex(&self) -> &Handle<Vertex> {
&self.start_vertex
Expand Down
24 changes: 12 additions & 12 deletions nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f3728c0

Please sign in to comment.