# Comp split problem

1817
5
05-21-2014 06:10 AM
New Contributor
Hello,

I am facing a problem with splitting my building in different faces for every side.
As my building has not a square shape, the result using comp(f): {front... left....back...right) rule is resulting wrong because I want to set different textures in each side. (Neither all left sides are not the same nor back sides and for example the front facade is repeated 3 times instead of 1 )

I have attached a picture of my building in order to make clearer what I want to achieve.
Tags (3)
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: matthiasbuehler

`Volume -->     comp(f) { top: Roof | bottom: NIL | all = FacadeShape } # Note that all faces are pumped into 1 shape with the '=' !  FacadeShape -->     comp(f) {all : SingleFacade}  SingleFacade -->     print(comp.index)`

Does that help ?

m.
5 Replies
by Anonymous User
Not applicable
Original User: amiri1988

hello
i wish my suggestion will help you, i'm not an expert with city engine.
try this comp(f) {world.south, world.north, world.west, world.east}
New Contributor
hello
i wish my suggestion will help you, i'm not an expert with city engine.
try this comp(f) {world.south, world.north, world.west, world.east}

Unfortunately this results in the same with what I have already tried.

My problem is that the facade for example that faces in north has different textures and I don't want my rule to read it as one face because the result is wrong.
:confused:
New Contributor
As this thread says, I cannot find the index of each face because I cannot select its face separately, but all the building only.

??:confused:
by Anonymous User
Not applicable
Original User: matthiasbuehler

`Volume -->     comp(f) { top: Roof | bottom: NIL | all = FacadeShape } # Note that all faces are pumped into 1 shape with the '=' !  FacadeShape -->     comp(f) {all : SingleFacade}  SingleFacade -->     print(comp.index)`

Does that help ?

m.
New Contributor
Thank you very much for your help!!!