POST
|
Hi, I have CityEngine 2014.1 Advanced and I'm wanting to use compass directions (world.north, world.east, world.south, world.west) for an envelope operation, which unfortunately only uses street directions (street.front, street.side, street.back) as inputs. As a workaround, I'm hoping to set the street.front edge to be the northernmost (world.north) edge. Does anybody know a way to do this? I thought perhaps a python script would be able to select all the world.north edges and then set these as the first street edge for their respective parcels... Any help would be very much appreciated! Thanks Nathan
... View more
10-01-2014
08:54 PM
|
0
|
3
|
4980
|
POST
|
Hi Matt, I've got CE 2014.0 now, but the setback issue is still there that we discussed in this post. Using the parcels and rule from above, it still gets the results that you attached as '2013.1.jpg' rather than the correct '2014.0.jpg', which maintains the holes in both parcels. Is there something I'm missing? Thanks N
... View more
07-30-2014
09:20 PM
|
0
|
0
|
899
|
POST
|
So the envelope operation uses: envelope(direction, maxHeight, frontBaseHeight, frontAngle, backBaseHeight, backAngle, rightBaseHeight, rightAngle, leftBaseHeight, leftAngle) Within this, frontBaseHeight and frontAngle apply to the street.front edges if these are defined, otherwise they apply to object.front. I would like them to apply to the northern edge of the parcel, which would be world.north. Hope this helps make sense of it.
... View more
07-03-2014
01:04 PM
|
0
|
0
|
224
|
POST
|
Hi Matt, The problem is effectively the same as for setback operation discussed below and fixed in CE2014.0. As an example, the attached green image is a simple extruded parcel, which includes a hole. However when innerRect() is applied to the parcel, it fills in the hole (resulting in the red image). The red image is the result of this code: Lot --> extrude(world.y,5) innerRect() color(1,0,0) Ideally, it would not fill in the hole. Instead it would find the largest possible rectangle within the remaining space. Nathan
... View more
07-02-2014
01:09 PM
|
0
|
0
|
899
|
POST
|
Hi, I'm wanting to use the envelope function, but with compass directions instead of street sides or object sides. So basically, it could use one angle for the northern sides of a parcel, a second to the eastern sides, and so on. This would work if the envelope function could use world.north etc., but unfortunately it's limited to using object.xxx or street.xxx. I thought perhaps there might be a way to cheat and assign street.front to world.north, in which case the other sides would flow on and use street.left, street.right and street.back for east, west and south respectively. Does anybody have any suggestions? Thanks Nathan
... View more
07-01-2014
08:30 PM
|
0
|
2
|
485
|
POST
|
Hi Matt, Just wondering about the issue with innerRect() not working on polygons with holes. Is this likely to be fixed soon, or is there a workaround until it is? This is quite crucial for what we're wanting to use CityEngine for, which is analysing infill capacity (i.e. whether a house will fit in a back yard). I was hoping to do this by using cadastral parcels with buildings cut out, but my rule requires innerRect to get a normal shaped house. Thanks Nathan
... View more
07-01-2014
05:48 PM
|
0
|
0
|
899
|
POST
|
I thought that might be the case 🙂 Could you also confirm if the update will also fix the similar problem with innerRect() not taking holes into account? Thanks Nate
... View more
05-22-2014
05:38 PM
|
0
|
0
|
899
|
POST
|
Thanks Matt - that's fantastic. I don't suppose you can give any indication of when 2014 will be released?
... View more
05-17-2014
04:09 PM
|
0
|
0
|
899
|
POST
|
The attached .gdb contains the two parcels from the screenshot - the one which works and the other which doesn't. Looking at them, the obvious difference is that the hole in the one which works extends to the edge of the parcel. The zip also contains the CGA code, although it's just what I posted previously. Cheers N
... View more
05-15-2014
12:58 PM
|
0
|
0
|
1066
|
POST
|
Hi Matt, Using .gdb did the trick, thanks 🙂 On a related note, I'm having trouble with setback operations on the imported parcels (which have holes from the buildings being cut out). As a simplified example, I've attached a screenshot of the following operation: Lot --> Testing1 Testing2 Testing1 --> color(0,1,0) extrude(6) Testing2 --> setback(3){world.east : NIL | remainder : Testing3} Testing3 --> color(1,0,0) extrude(5) When I do this, many results (Testing3) fill the hole in as part of the remainder. This is shown in the left parcel of the screenshot, where the red portion is a hole in the original parcel and shouldn't be included in the result. The parcel on the right has the same rule applied but correctly still excludes the hole. I'm not sure if this is a remaining issue with holes in imported shapes, or just something with the setback operation. Is there a way to spatially limit a result to the original shape, so that a result doesn't spill over the boundaries? Thanks Nathan
... View more
05-14-2014
06:47 PM
|
0
|
0
|
1066
|
POST
|
Oh I've actually worked this out. I got around the issue with separate branches by making a footprint, then saving the scope measurements and reverting the shape back to the original parcel, then doing the envelope. I was previously trying to then shrink the envelope down to the footprint scope sizes, but the trick was instead to split it (both down the x and z axes) and only keep the middle bits, which were set to have the footprint sizes. I think it's perhaps more complicated to explain than it actually was, but I'm just glad it's all working now! Thanks for the help. Nathan
... View more
05-11-2014
07:25 PM
|
0
|
3
|
1178
|
POST
|
Hi Matt, That's pretty much what I'm after - to extrude the building footprint to the roof of the larger envelope (which is based on the parcel). Sorry for the confusion, when I wrote 'while the larger transparent one ignores it', I meant this it's based on the original parcel shape, not the building footprint.
... View more
05-07-2014
03:38 PM
|
0
|
0
|
384
|
POST
|
Hi, I'm using CityEngine 2013.1 and holes aren't quite working for me either. I'm importing parcels with the building footprints cut out. For some parcels it works fine (a 'hole' polygon and a surrounding good polygon), but sometimes it doesn't - it creates a hole polygon but the surrounding polygon doesn't have the hole cut out. The screenshot attached should help explain. The proper polygons are selected and some have vertices around the hole showing the excluded empty area, but others unfortunately include the empty area. It tends to be that the inner holes are excluded if they touch a boundary, but not if they are entirely within the larger polygon. Nate
... View more
05-01-2014
03:40 PM
|
0
|
0
|
1066
|
POST
|
Hi Matt, the screenshot attached has the process the rule follows, as well as an example of two envelopes. The pink/purple inner envelope is based on the building footprint, while the larger transparent one ignores it. The solution would involve a third envelope which had the xz scope (footprint) of the pink and purple envelope and extruded out to the y scope (i.e. roof) of the outer transparent envelope at all points. Nathan
... View more
04-30-2014
09:14 PM
|
0
|
0
|
794
|
POST
|
It almost does. I was thinking of that, but then they would need to be reconciled, i.e. the envelope would need to be limited to the xz scope or the footprint would need extrapolated to the height of the envelope. I thought that perhaps it required what you suggested but in a linear form, so I tried to: Save the original scope values create the limited footprint save the modified x and z scopes return the shape to the original x and z scope values create the envelop limit the envelope to the modified x and z scope values This almost works, but the shape of the envelope carries through to the shrunken shape - it retains sloped sides where they could be straight up and down without breaching the original envelope. If I extruded the modified flat footprint very high and also created a suitable envelope, is there a way to extract the area which falls inside both shapes? Oh and thanks for the help, it's much appreciated.
... View more
04-29-2014
07:04 PM
|
0
|
0
|
794
|
Title | Kudos | Posted |
---|---|---|
2 | 07-19-2015 05:09 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|