mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Update comments
This commit is contained in:
parent
351a61cd7c
commit
efd7739162
@ -86,14 +86,13 @@ impl SurfaceGeom {
|
||||
Triangle::from(triangle_points_in_global_space)
|
||||
}
|
||||
Path::Line(line) => {
|
||||
// We don't need to approximate a line. So instead of creating a
|
||||
// line segment to represent the line at this point, we just
|
||||
// need this single point.
|
||||
let point_global = line.origin()
|
||||
+ line.direction() * point_surface.u
|
||||
+ self.v * point_surface.v;
|
||||
|
||||
// We don't need to approximate a plane, so our triangle can be
|
||||
// arbitrarily large or small. Here we choose the smallest
|
||||
// possible size (it is collapsed to a point), as per the
|
||||
// documentation of this function.
|
||||
Triangle::from([point_global; 3])
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user