Select to view content in your preferred language

CityEngine CGA “ extrude” Use questions

584
2
02-22-2022 12:01 AM
GGgarlic
New Contributor

 

Using extrusion will produce such redundant faces. How to remove them?

3]LV7_C@0LH[6[FPUSM(520.png

~P5~PD~7`USCRCO84C]_2AJ.png

0 Kudos
2 Replies
JonasObertuefer
Esri Contributor

Hi,

This is because you have multiple initial shapes next to each other.

There are two way to get ride of the faces in-between:

1. Combine the sidewalk shapes together into one:

  • Select the sidewalks
  • Menu -> Shapes -> Convert Models to Shapes
  • Menu -> Shapes -> Combine Shapes
  • Apply your rule to this large sidewalk shape

Note: The shape created is not updated when you make changes to your street network.

2. Using occlusion queries:

 

Sidewalk --> extrude(10)
             comp(f) { side : Wall }

Wall --> case touches(inter): NIL   // using inter occlusion
         else : Wall.

 

See comp operationtouches() function  and context and occlusion queries in the cga docs for more infos.

Hope this helps!

Cheers
Jonas

GGgarlic
New Contributor

It works. The number of scenes has been reduced a lot. Thank you very much!

0 Kudos