Skip to content

Commit

Permalink
Merge pull request #1025 from hannobraun/kernel
Browse files Browse the repository at this point in the history
Make small improvements in kernel
  • Loading branch information
hannobraun authored Sep 1, 2022
2 parents 9998f58 + af00f27 commit c9a320a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/fj-kernel/src/algorithms/intersect/ray_face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ mod tests {
.copied()
.find(|edge| {
let [a, b] = edge.vertices().get_or_panic();
dbg!((a.global().position(), b.global().position()));
a.global().position() == Point::from([1., 0., 1.])
&& b.global().position() == Point::from([1., 0., -1.])
})
Expand Down
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/algorithms/sweep/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ impl Sweep for Edge {
let path = path.into();
let tolerance = tolerance.into();

if let Some(vertices) = self.vertices().get() {
if let Some(vertices) = self.global().vertices().get() {
let face = create_non_continuous_side_face(
path,
vertices.map(|vertex| *vertex.global()),
vertices.map(|vertex| *vertex),
color,
);
return face;
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-kernel/src/algorithms/triangulate/delaunay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn triangulate(
triangles
}

#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub struct TriangulationPoint {
pub point_surface: Point<2>,
pub point_global: Point<3>,
Expand Down

0 comments on commit c9a320a

Please sign in to comment.