cityjson / Up3date

A Blender add-on to import, edit and export 3D city models encoded in CityJSON v.1.0 format preserving geometries, attributes and semantics
MIT License
66 stars 12 forks source link

Created GUI to help cityjson-fy objects #12

Closed LaurensJN closed 3 years ago

LaurensJN commented 3 years ago

Great repo! I'd like to use Up3date to create a CityJSON file in Blender from a segmented mesh object. I created a little GUI that converts selected objects to comply with the specifications for exporting objects, to speed up that process. I thought i might be useful to merge it into the add-on.

konmast3r commented 3 years ago

Hey Laurens! Thank you for further developing the add-on. Nice to see that people find it useful. Could you maybe provide some documentation on how to use the GUI, its capabilities and its limitations (if any)? Would be nice to be able to test it myself and allow any other interested enthusiast how to use it too. Thanks you!

LaurensJN commented 3 years ago

Hi Konstantinos! It's actually quite straightforward: in the scene properties there is an extra tab called 'Up3date' where you can set four properties:

When you set the properties and click on cityjsonfy, it will name the geometry object correctly and add an empty object too with the same ID (as said in specifications) and add the geometry type to the object with the geometry and the feature type to the empty object.

It's not foolproof (yet) but I think it'd be a good start to a GUI. Let me know what you think.

konmast3r commented 3 years ago

Oh nice! I just checked it out, looks quite straightforward indeed, but good to document it in the Readme as well (maybe latter in time if you think it's not stable yet). Also good to know that the add-on currently doesn't support the geometry type "MultiSolid" so if you change the geometry type into this you ll probably get weird behavior, so I would recommend it avoid it for now. Thanks again Laurens!