POST
|
Where are your "cut faces" coming from? Anyway, sortIndices(array) is the function you need to sort arrays, if you managed to store geometry.area values to an array.
... View more
09-11-2023
12:40 PM
|
1
|
1
|
375
|
POST
|
Hi, I guess I'm behind this video so may be I can help a bit. Generally speaking you can leverage adjacency (occlusion) test everywhere if you build relevant labeled shape proxys beforehand (but not parent nor children) in your shape tree. In this regard you can also use some comp(f,e etc) functions that will query occlusions tests so you can then grab subsequent indexes to feed operations that work with arrays of index as input . roofRidge doesn't but you can set the scope aligned to a specific edge before. To get this edge, use comp(fe) before with some other tests to get:- the edges which are not side, nor overlapping the labeled mass of some other building (or even finer labeled mass of the walls), their length, then rank them per length in order the longest edge (or whatever else not adjacent/inside/overlapping another building or wall), then set the scope you're applying the roofRidge onto to this index. If you need further hints feel free to contact me directly.
... View more
08-30-2023
01:27 AM
|
0
|
1
|
402
|
POST
|
//use the p() function probability for true in [0,1], instead of percentages attr my_prob=0.5 base--> case p(my_prob): X //true else :Y //false
... View more
05-29-2023
03:20 PM
|
2
|
1
|
482
|
POST
|
.cgb is purposefully binary of .cga hence is not editable
... View more
04-06-2023
12:38 AM
|
0
|
0
|
335
|
IDEA
|
Hi Jonas, yep I don't know if this is possible and what core design implications it may have. basically it would be similar to dynamic (g) selector for all available components. Thanks
... View more
04-05-2023
02:02 AM
|
0
|
0
|
534
|
IDEA
|
etc... we really/urgently need a comp(selector) working with arrays of indexes (either 1D or 2D) AND with the = operator. This would allow comping logical groups of geometry and retaining their connectivity. Cheers, R
... View more
03-27-2023
01:00 AM
|
1
|
2
|
797
|
IDEA
|
Indeed, this is a long asked feature probably already in esri's backlog. This would also allow direct use of double parallel street segments coming from OSM or other, when constructing complex median ways and intersections...
... View more
03-26-2023
09:48 AM
|
0
|
0
|
673
|
POST
|
combination of set() setElems() and with are indeed the way to go for this kind of stuff. You can do a lot of geometrical calculation in some kind of loop, iterating on the initialShape, storing calculated values in arrays trough comp(), sets feeding arrays, incrementing, resetGeometry and eventually exit the loop when condition are met
... View more
02-01-2023
02:32 PM
|
0
|
0
|
651
|
IDEA
|
HI , no unfortunately, it's impossible to catch those pure geometrical error at the moment, as I said derivation stops and leaves rule geometry -as is- as a terminal leaf. No matter what you code after. This is a very special tricky usecase, I should probably package an exemple.
... View more
12-01-2022
09:53 AM
|
0
|
0
|
852
|
IDEA
|
Hi, this is a thing which is in my unformulated wish list for a long time. Wondering if it would possible to have something similar to the try | except python version, but in cga. This would be mainly for geometrical manipulation operators which "silently" fail to process a rule geometry (thinking of roofs in certain weird cases, offsets, setbacks etc). When that happens there's no way -in cga, for example with some case/else- to catch those errors because derivation stops at faulty shape and keeps input geometry in its current state (meaning if at beginning of a rule set, most of the cases without a proper material, name etc). Of course these problems are somehow catchable in cga log afterwards, but I think (imho) it would really streamline and robustify generation process when dealing with massive batches. Anyway, this is not urgent...
... View more
11-21-2022
09:39 AM
|
1
|
3
|
915
|
IDEA
|
Hey, totally forgot this is already implemented in comp !thanks for the reminder !
... View more
10-21-2022
03:16 AM
|
0
|
0
|
739
|
IDEA
|
as title suggest it would be a nice addition to be able to extract holes as geometry directly in cga. We alreday have a deleteHoles, too bad those go to NIL 🙂 Obvioulsy extracted geom would have reversed normals.
... View more
10-20-2022
01:04 AM
|
0
|
3
|
783
|
IDEA
|
tons of, first is comp(e) from for shapes coming from envelop() which are not regular roofing operation hence do not really support hip/ridge/valley etc selectors (everything falls in ridge) 2- for more easy identification (and further derivation) of corners between faces (ie from a concave A rectified shape to insert instanced rounding: A-->extrude(3) comp(f){side=B C} B-->comp(e){concave:ConcCorners|convex:ConvCorners} ConvCorners-->i(assetForCorner("conv")) ConcCorners-->i(assetForCorner("conc")) 3, insert some proxy labeled shapes going to NIL against which other part of a facade could test so to get smarter generic adaptative facade patterns (avoid balconies in corners, or the contrary etc) many many use cases I think and ti's very generic. Best Romain
... View more
10-04-2022
12:24 AM
|
0
|
0
|
791
|
Title | Kudos | Posted |
---|---|---|
1 | 09-11-2023 12:40 PM | |
2 | 05-29-2023 03:20 PM | |
1 | 03-27-2023 01:00 AM | |
1 | 11-21-2022 09:39 AM | |
1 | 09-25-2022 09:02 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|