comp

237
3
04-21-2020 03:23 AM
biaozeng
New Contributor II

When using the comp function, as in the first picture, the projected direction of the long side of the fitted border square is comp (f) {fron | backt} The two small faces on the side are left right. Instead of like The two pictures are projected in the xyz world coordinates, and I do n’t know how to change this axis. In the third picture, if I want to swap the front, back and left and right sides, I do n’t know what to do. In general, I create a front and side The details of the rules are different. When I generate a large number of buildings, I can't flexibly change the rules to modify the front and back and the left and right sides. Hope to know some solutions.

Tags (1)
0 Kudos
3 Replies
biaozeng
New Contributor II

To supplement the screenshot of the problem I encountered earlier, this splitting method is not what I want, I want to change it, I do n’t know how to operate in cityengine

0 Kudos
biaozeng
New Contributor II

0 Kudos
CherylLau
Esri Regular Contributor

The comp operation will categorize faces as front, back, left, right, top, bottom according to the faces' normals in relation to the scope's coordinate system.  The following screenshot shows how faces are categorized for a cube with the given scope (xyz axes in red, green, blue).

comp operation—CGA | Documentation