How can a create gable roofs in City Engine 2014.1 so that they are created along the Z axis instead of X axis?
Gable always follows longest axis, or we would simply use rotateScope(). I tried that first. Here is how I did this (rule is attached):
attr switchAxis = true
attr gableAngle = 45
attr originalScopeX = 0
attr originalScopeZ = 0
# Gable always follows longest axis, or we would simply use rotateScope().
rotate(rel, scope, 0,90,0)
I tried the rule that you wrote but I got weird roofs. The top of the roof should be even. The shapes came from Open Street Map OSM file.
You may have unnecessary points in your footprints - simplify them to just 4 vertices and I think you should get better results.
You might also try reduceGeometry(edges, 0.1) to reduce the vertex count - the 0.1 part... look in the help manual because I can't remember the exact details of the tolerance parameter.
How do I simplify the footprints to just 4 vertices each before extruding them?
Try innerRect - you call innerRect inside a mostly square shape, and it gives you exactly 4 vertices.
Also, ignore tip about reduceGeometry(edges, 0.1) I gave up above. I meant cleanupGeometry.
How do I combine two or more shapes into one shape?
Hold shift while selecting multiple shapes, then look in the Shapes menu for Combine Shapes. You can then apply one rule to the combined shape. This shape combination will not merge coplanar faces or any kind of unioning type stuff.
I don't like how InnerRect works. There's Cleanup Shape in the Shapes menu that takes combined shapes and modifies them so that they become one shape. I thought that Combine Shape and Cleanup Shape work but one house still gives me hip roof instead of gable roof on one end. City Engine doesn't let me take a group of shapes like the one above the house with weird roofs and change them into one rectangle.
You can force shapes to be rectangular by inserting the built in cube into your scope, and then using either the top or bottom face to replace the starting geometry that you are not getting the right roofs from.
Indeed, InnerRect is a blunt tool. Threre's a process called CleanupShapes under the Shapes menu - not really familiar with what it does but otherwise I'd look at processing your footprints in ArcMap or some other programme in order to optimise your footprints.
How do I import OSM files into ArcMap? How do I install Data Interoperability extension into trial version of ArcMap? The ArcGIS Administrator program said that extension is authorized but not installed. How do I insert the built-in cube into my scope in CityEngine?
I'd recommend finding an area of GeoNet that is more taylored to these questions - I stick them in 'New to GIS' when I have this type of question.
Completely agree that much of Esri's documentation, error/help messages are seemingly willfully difficult.
hahaha, they might be difficult, but I assure you it is not willfull. The people here are quite nice.
Retrieving data ...