fvbehr

Inserted asset get cut off

Discussion created by fvbehr on Feb 6, 2012
Latest reply on Feb 12, 2012 by fvbehr
Hi,
I have encountered a strange error when inserting an asset into my building. The asset (blue columns) get cut off diagonaly. This also happens if I insert the built-in cube. See screenshot:
[ATTACH=CONFIG]11711[/ATTACH]

Here is the relevant code:
//  Splitting vertically and assigning index # for further splitting 
Building -->
  split(y){ groundfloor_height : Floor(split.index)  // Groundfloor
  | floor_height : Floor(split.index)   // First Floor
  | floor_height : Floor(split.index)   // Second Floor
  | floor_height : Floor(split.index)   // Blind Floor
  | floor_height : Floor(split.index)   // fourth Floor
  | {~floor_height : Floor(split.index)}*  // Mid Floors
  | floor_height : Floor(700)   // Top Floor 1, indexed with 700
  | top2floor_height : Floor(800)   // Top Floor 2, indexed with 800
  | floor_height : Floor(900)   // Top Floor 3, indexed with 900
  | roof_ledge_height : Floor(999)} // The top ledge just below the roof

Floor(floorindex) -->
 case floorindex == 800 : Topfloor2

//Split Start and Endtile
Topfloor2 -->
  split(x) {start_window_tile_width : start_window_tile
  | ~1 : Topfloor2setback
  | start_window_tile_width : start_window_tile}


//Setback for the top floors. Insert a cube, delete the front face. Then split the Cube. 
Topfloor2setback -->
  s('1,top2floor_height,top2_setback) t(0,0,-top2_setback)
        i("builtin:cube") color("#00ff00")
  comp (f)
  {front : NIL | back :wall | left :wall | right :wall | top :wall | bottom : collumnX
  }
  
collumnX -->
  split(x) { window_tile_width : wall
  | beam_width : collumnZ
  | {~window_tile_width : wall
  | beam_width : collumnZ}* 
  | window_tile_width : wall 
  }
  
collumnZ -->
  split(y) { top2_setback - beam_width / 2 : wall 
  | beam_width/2 : collumn_insert
  }  

collumn_insert -->
  s(beam_width, 12, beam_width)
  t(0,1,-12)
  r(90,0,0)
        i(asset_cylinder) color("#0000ff")


What could be causing this and how can I prevent this?

I am using Cityengine 2010.3 on Windows 7 x64.

Cheers, Florian

Attachments

Outcomes