Expand description
A minimal CityJSON-to-OBJ writer.
Ported from cjseq2 0.1.1’s conv::obj, which the typed rewrite dropped.
The behaviour is unchanged, including its crude notion of a face: every ring
becomes an f line, interior rings included, and nothing is triangulated.
The one thing that did change is how the rings are found. The old version
recursed through an untyped Boundaries tree until it hit a leaf; here each
geometry’s ring iterator comes from its variant, so the depth is never
guessed at.
Functions§
- to_obj
- Writes a CityJSON object as OBJ to
writer. - to_
obj_ string - Converts a CityJSON object to OBJ format and returns it as a string.