Skip to content
Discussion options

You must be logged in to vote

Messing around a bit more...

(defn render-mesh
  [mesh mvp screen]
  (let [faces (render/project-faces mvp screen (map #(g/vertices % mesh) (g/faces mesh false)))
        faces (->> faces
                   (render/z-map-faces)
                   (render/z-sort-faces first))]
    (map (fn [face] (svg/polygon (second face))) faces)))
(render-mesh mesh mvp screen)
;;=> ([:polygon {:points "0.00,0.00 10.00,0.00 10.00,10.00 0.00,10.00"}])

Which I think sets me on the path to victory. 🤔

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by timothypratley
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant