Skip to content

How to represent orientation vectors for geometric primitives? #202

Answered by hugoledoux
CalebKornfein asked this question in Q&A
Discussion options

You must be logged in to vote

It is not there mostly because the geometric primitives are supposed to be stored according to the standard ISO 19107, which prescribes the orientation of surfaces for the different geometric primitives. See an overview of the rules for the geom primitives of CityJSON: https://val3dity.readthedocs.io/2.5.0/definitions.html

But if you really want to store the normal of a surface, you can store it as an attribute, see here how the semantics is stored, but also other attributes can be stored. So you could add a property "normal": [0.0, 0.0, 1.0], for instance

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CalebKornfein
Comment options

@hugoledoux
Comment options

Answer selected by CalebKornfein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants