an other advantage of creating single fence pieces is that you can adapt to slopes..
I made a quick example .. not perfect, but it shows a few things.
[ATTACH=CONFIG]11128[/ATTACH]
fence assets & CGA code, see attached zip
hi !
well, synchronizing can no more be forced after you separate shapes e.g. with a split or comp(f). once the Model Hierarchy is branched, the shapes can not communicate or get directly synched.
thus, in your specific case it's easiest to use the extrude() operation's nature to point all faces' normals to the 'outside' (note that the input face's normal is also reversed after the extrude op) to make sure all fences are correctly placed.
* * *
once you've gone over the CGA rule, you may have a few questions, but I guess you get the main ideas.
1] the point of the strange scaling is that if you model this fence asset to be 4 meters wide and you just insert this, there may be cases where fences are only 0.5 meters wide, thus scaling the asset quite extremely. this must be avoided. thus, I'd recommend to create the fence itself completely procedural.
2] the second point is that usually the pointy fence boards are placed exactly vertically. if you insert a 4-meter prebuilt asset on a sloped fence, all the boards of course point up not vertically since it's just a 'dumb' asset which is placed tilted.
3] at one point in the CGA code, you find a strange roof() operation. this is hack since we have no bevel op yet to basically build a little roof on the board edges and directly cutting off the most of the 'tip', leaving the beveled geometry.
Hello all!
I stumbled upon this rule and I love it! I was curious how you would go about editing the rule or the parameters to not generate a greenspace on the polygon. I'm looking to add this to a polygon that contains a parking lot rule from the Complete Streets rule package.