Hello!
Ive been exploring Puma and finding it ever so useful. However, I have a couple of questions regarding the plugin and wondering if I can connect with the developers or anyone else involved in the making or using the app.
Im using the Complete Streets:Street Start Rule Package as RPK in Puma. I wonder if there is a way to resolve this within the attributes somewhere. Or would that require a tweaking of the RPK in city engine?
Any response is much appreciated.
Sid
Hello Sid
Thank you for your question about using the Complete Streets:Street Start Rule Package as RPK in Puma.
Currently, Puma doesn't support other geometry than flat polygons. It means that the rules like the complete street have to be modified a bit to work with Puma.
This was already done for the showcase scene for the Puma release, and all the rules used in this scene are available to download here: https://esri.github.io/cityengine/puma#examples
Alternatively, you can also modify a rule to work with Puma using the CGA Editor in CityEngine, in a similar way.
Thanks, Thomas.
I understand. I already went through all the showcase files used in Puma's release and found that the streets and sidewalks RPK only uses flat polygons, hence the question.
Perhaps I should look into modifying the rule in CGA editor to work with Puma. Although, that'll be a whole new territory for me to explore. Let's see how that goes. Thanks anyway!
Sid
Hi Thomas,
Apologies for reviving this thread - but by "flat polygons" do you also mean rectangular ones ?
I have been comparing results applied in CityEngine and results applied in Puma on the same irreguar shape, and they vary quite a bit. It seems Puma has a hard time working with non-rectangular shapes. Is there anything I can do to work around this ?
Expected result, from CityEngine :
Result in Puma :
Hi,
This is a bug in the current release of Puma. Until this is fixed you can add a cleanupGeometry() at the very start of of your StartRule:
// Your start rule
Init -->
cleanupGeometry(edges, 0)
// continue here with your normal code
Let me know if this works for you!
Best,
Jonas