Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Fix cuboid face orientation #183

Merged
merged 2 commits into from
Oct 17, 2019

Conversation

CarpeNecopinum
Copy link
Contributor

Currently, the faces obtained by decompose(Face, HyperRectangle{3}) are oriented towards the positive coordinate axes (assuming counter-clockwise winding order).

Since they enclose a volume, it would however make more sense if they pointed outwards (which would help with e.g. #144 or rendering with backface-culling enabled).

This PR thus fixes the orientation of the faces and adds a test to document this.

@SimonDanisch
Copy link
Member

Thank you :)

@SimonDanisch SimonDanisch merged commit 8c12f5d into JuliaGeometry:master Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants