+ Reply to Thread
Results 1 to 3 of 3

Thread: Inserted asset get cut off

  1. #1
    Florian von Behr
    Join Date
    Feb 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Inserted asset get cut off

    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:
    Click image for larger version

Name:	Screenshot_Pillars.JPG
Views:	71
Size:	62.9 KB
ID:	11711

    Here is the relevant code:
    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

  2. #2
    Matthias Buehler

    Join Date
    Oct 2011
    Posts
    1,676
    Points
    438
    Answers Provided
    140


    0

    Default Re: Inserted asset get cut off

    hi !


    that's the trim planes.

    there's vertical and horizontal trim planes.
    - horizontal trim planes are deactivated by default.
    - to deactivate the vertical trim planes, use :
    Code:
    set (trim.vertical, false)

    to visualize the trim planes, open the Model Hierarchy, double click the model in the viewport (enter Edit Model Mode), select a shape.
    activate the trim plane display with the 3rd icon with the 2 green little planes (top left corner of the Model Hierarchy).

    ok ?
    _________________

    CityEngine Machinist

    * YOUTUBE CHANNEL : www.youtube.com/channel/UCNS4TLgToEDQiH9pi06ofOA
    * tutorial videos : http://forums.arcgis.com/threads/648...URCES-FAQ-HELP
    * Please use the rating buttons on the right side !

  3. #3
    Florian von Behr
    Join Date
    Feb 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Re: Inserted asset get cut off

    Works now. Thanks.

    Florian

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts