Skip to content

Commit

Permalink
just some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Dec 15, 2024
1 parent d193c1e commit d1f5ce1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hgeometry-examples/lowerEnv/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ myRect = let m = 100 in Box (Point2 (negate m) (negate m)) (Point2 m m)

type Vtx r = (Int, Point 3 r :+ VertexAttributes 'Coloured)


-- | Triangulate the faces.
--
-- maybe actually move this into the ply-writer, since both blender and the weird online
-- viewer apparently could not deal well with non-triangular faces to begin with.
triangulate' :: (ConvexPolygon_ convexPolygon point r, Ord r, Num r)
=> (plane, convexPolygon)
-> NonEmpty (plane, ConvexPolygon point)
Expand Down
1 change: 0 additions & 1 deletion hgeometry/src/HGeometry/PlaneGraph/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ edgeSegments = theFold
draw ei _ = let seg = uncurry ClosedLineSegment $ g^.endPointsOf (getPositiveDart g ei)
in seg >$ indexed pSegFSeg ei seg

-- TODO: Make this into a IndexedFold1

-- | Renders all interior faces as simple polygons.
interiorFacePolygons :: forall planeGraph vertex r.
Expand Down

0 comments on commit d1f5ce1

Please sign in to comment.