AnsweredAssumed Answered

Negative extrusion — works in CE, doesn't in the viewer

Question asked by raze on Oct 7, 2014
Latest reply on Oct 16, 2014 by raze

I've been creating a bunch of buildings with negative extrusions in CE which works fine with my method below. However, when I checked them in the scene viewer, the buildings were full of holes. How do I avoid this?

 

 

Simplified script:

 

version "2014.0"

Lot-->
extrude(20) Gebaeude

Gebaeude--> comp(f){side: Facade(comp.index)  | top: Roof}

Facade(FacadeIndex) -->
case FacadeIndex == 0: Facade000
else: FacadeXXX

Facade000 -->
  color(1,0,0)
  split (x){
  5: side |
  5: center |
  ~5: side 
  }

center -->
  split (y){
  5: top |
  5: middle | // Would be a single window texture, for example
  ~5: bottom
  } 

middle -->
  extrude(-1)
  comp(f){side: FacadeXXX | top: Undefined} // "Undefined" rule doesn't exist, can be named anything. NIL doesn't work!

FacadeXXX -->
color(rand,rand,rand)

 

Screenshots:

CE_hole__0000_Layer-3.png

 

Scene viewer:

CE_hole__0002_Layer-1.png

 

View from inside/bottom:

CE_hole__0001_Layer-2.png

Outcomes