|
POST
|
hi .. this is directly not possible, sadly. maybe you can play additionally with geometry.lowerheight .. it may help you ? [[ I think this is an undocumented geometric value. it's the height value of the lowest vertex of the extruded volume's top face ]] Lot --> extrude(world.y, 50) split(y){geometry.lowerheight : X. | ~1 : NIL} usually, the best strategy on sloped buildings is to decide if 1] all facades have synchronized floor levels. this is done by splitting the 3d volume into floor volumes, then comp(f) to get the facades. 2] all facades create independent floor levels. for this, you can comp(f) directly on the extruded volume. I can post more later .. have a quick meeting now .. 😉
... View more
04-25-2012
12:35 AM
|
0
|
0
|
1486
|
|
POST
|
hey Mary .. can you post a good reference picture of a bay window how you imagine it ? please let me know .. matt
... View more
04-25-2012
12:05 AM
|
0
|
0
|
2832
|
|
POST
|
hey Daniel ! instead of the setback() operation, just use the shapeO() operation. let's assume your Block's cornerWidth is 10 meters. have a precise look at this code for the 'Lot' Start Rule and play with it's 4 attributes. you'll notice that as long as the setback distances are big enough, the previously chamfered corners will disappear. ( utilizing a geometric dependency in code )
attr Front_Setback = 15
attr Right_Setback = 15
attr Back_Setback = 15
attr Left_Setback = 15
Lot -->
shapeO(Front_Setback,Right_Setback,Back_Setback,Left_Setback) { shape : color(.9,.7,.7) SetbackZone. | remainder : color(.2,.7,.7) DevelopmentZone.}
to find the Block Subdivision Settings : Help > Manual > Shapes > Block Parameters you could also search for 'Block Subdivision' in the top left search field in the manual, then second entry 'Block Parameters' the docs on the shapeO() operation can be found : Help > CGA Rule Reference > shapeO() I hope this helps you find things a little quicker. We know the docs still have 'potential of improvement', but this is currently being organized. Let me know if this worked ! Cheers !
... View more
04-24-2012
01:20 AM
|
0
|
0
|
2711
|
|
POST
|
hey ! actually it's Matthias, but Matt in short is faster to type .. 😮 exactly. the strategy of this is completely generic. it does not matter what specific you are coding in CGA (buildings, roofs, forests, ..), if you need, you can always create copies of a shape like this to do different things on the copies. Once you're familiar with it, you'll use it A LOT ! depending on if you 'want/can easily work with' overlapping geometries, or need them to be cut out, is up to you and depends just on how you write the code. cheers !
... View more
04-24-2012
12:35 AM
|
0
|
0
|
1315
|
|
POST
|
hi .. can you post a little example based on 2 shapes with their related text file ? let me know ..
... View more
04-23-2012
08:51 AM
|
0
|
0
|
2707
|
|
POST
|
hi Daniel, that's easily possible : Just select your Block, then set the cornerWidth parameter to something larger than 0. (Just below the Block Subdivision Type parameter) Let me know if it works !
... View more
04-23-2012
07:53 AM
|
0
|
0
|
2711
|
|
POST
|
hi Daniel, so I understand yo correct : that Block was actually subdivided using CGA, right ? a few inputs you may not yet have known : - if your Block is not subdivided (but dynamic), the resulting Lot's 'First Edge' always is on the widest street side. thus, the index of the 'widest side' is always 0. plus, the initial scope orientation is always aligned on this 'First Edge'. - if all Widths are equal, the longest Edge becomes the 'First Edge'. - Dynamic City Layouts give you no visual indicator where that First Edge actually is compared to if you draw a Static Shape manually or import it somehow. - if you have a Static Shape selected, you'll see a tiny finey orange line on one of the edges. that is the First Edge. the edge between vertex 0 and 1. - you can always convert a specific Dynamic Shape - as for example from your Block - to a Static Shape via the RMB command 'Convert to Static Shapes'. [ move the shape up a little, then delete it later on together with the layer it's been created on. ] important : Attributes on Start Shapes, such your specific Lot's StreetWidth attributes are constant for the Model since those Attributes are specific INPUTS for CGA to create the Model on this shape. Once the Model Generation is started, CGA works just with the input it gets. CGA just executes a series of geometric operations, thus it has no 'knowledge of the semantic content' of the instructions you give it. So to CGA there's no difference between if you just : 1] extrude a Lot directly to get a Building Model or 2] first split the Lot into smaller Lots via CGA operations and then extrude some of those to individual Buildings. --> the result in both 1] and 2] is both 'just a Model'. --> Once the Model Generation is started, CGA can not go back and check the environment around the shape and read more info to further process that data in the current Model. That is currently not possible, but may change with an upcoming release. [same is true with sampled map layer information: it is constant during the Model Generation process.] --> All MetaInformation (geometric, semantic) you're interested in must be passed on via the Rules. --> Think of it as follows : Once you hit the Generate Button, a Shape goes blind and sees nothing else around itself but the information it was given to build the Model. I hope this gives a little more insight. let me know if you have any more questions ! 😮
... View more
04-19-2012
07:42 AM
|
0
|
0
|
1786
|
|
POST
|
make sure you draw shapes counter-clockwise, this makes sure the normals are showing up. if you select the shapes, then go Shapes > Reset Seed, this will create all new seed values. check the seed in the Inspector under the Information tab. (maybe deselect/reselect if it does not properly refresh.) with the shapefile shapes, can it also be the normal ? did you try to reverse the normal via the Shapes menu ? let me know ..
... View more
04-19-2012
06:53 AM
|
0
|
0
|
927
|
|
POST
|
hi ! did you maybe miss this sticky thread ? http://forums.arcgis.com/threads/54072-textures-raster-files-concepts-in-CityEngine-ArcGIS about the street : are you using the 'Dynamic City Layouts', where you draw dynamic streets or is your block a static shape you have imported ?
... View more
04-19-2012
06:44 AM
|
0
|
0
|
1100
|
|
POST
|
hi .. for starters, this may be a welcome input to you : http://forums.arcgis.com/threads/52304-Deriving-block-parameters-from-landuse-maps
... View more
04-18-2012
08:52 AM
|
0
|
0
|
1786
|
|
POST
|
hey .. important input. set() existed already before 2011, but it did not work on attributes. the 'generic attributes' as mentioned, are only working that way in CE 2011 and newer. In your case, you'll have to pass the values as Rule parameters like this : [ You may see that this may get a little ugly if you have lots and lots of parameters ] Lot -->
FootprintValues(scope.sx, scope.sy, scope.sz)
FootprintValues(xDim, yDim, zDim) -->
print (xDim)
print (yDim)
print (zDim) note that 'xDim' is just a name. you can name this freely !
... View more
04-18-2012
08:46 AM
|
0
|
0
|
1553
|
|
POST
|
good question. this is about one of the fundamental elements of CGA. A --> B forwards the geometry from A into B A --> B C forwards the copy from A to B and then makes an other copy called C you can use this e.g. like this : A --> B t(0,50,0) C like this, you make B, then translate the scope and make an other copy C * * * in your case, the geometry moves on into the geometry of the scatter operation and 'lives there'. Thus, you just need a copy of the incoming facade Geometry ! FacadeScatter --> FacadeCopy. scatter(..) ok ?
... View more
04-18-2012
08:36 AM
|
0
|
0
|
1315
|
|
POST
|
thank you as a user to be so patient with us ! it's great to see users getting used to CGA and actually accomplish things ! not every person is interested in scripting, we know, that's why we'll be working more on rule templates which should make the lifes of non-tekkies easier !
... View more
04-18-2012
08:31 AM
|
0
|
0
|
2158
|
|
POST
|
1] if subdividing a Block with the Dynamic City Layouts : use the Block Subdivision Type 'Offset Subdivision' 2] if you try doing this via CGA : check the CGA operation called shapeO() in Help > CGA Operations Reference 3] note that CGA does not yet support polygons with holes, thus shapeO creates a 'diagonal line' to split the otherwise closed topology of the shape open.
... View more
04-18-2012
08:02 AM
|
0
|
0
|
683
|
|
POST
|
btw. instead of 10 times 10% case statement, you could also use : i ( fileRandom("volumes/*.obj")) 😮
... View more
04-17-2012
08:03 AM
|
0
|
0
|
2158
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-06-2012 08:40 AM | |
| 1 | 09-30-2013 08:33 AM | |
| 1 | 08-07-2013 04:45 AM | |
| 1 | 10-15-2012 02:19 AM | |
| 1 | 01-30-2014 12:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|