Original User: matthiasbuehlerhi !indeed, the normals of my asset were inverted. how EVER that happened .. 😞
attr depth = 2
attr thickness = 0.3
attr miniCutDepth = 0.5
profileAsset = "assets/profileAsset_normalsOutside.obj"
attr leftEdgeID = 0
attr rightEdgeID = 2
Lot -->
extrude(10)
split(y){~3 : comp(f) {side :Facade(split.index) | top : Roof.} }*
Facade(i) -->
case i != 0 && p(0.6) :
Facade.
PutBalcony
else :
Facade.
PutBalcony -->
s('20, thickness, depth)
center(x)
i(profileAsset)
LeftTrim(leftEdgeID)
LeftTrim(n) -->
print (geometry.nEdges)
alignScopeToGeometry(yUp, n)
split(z) {~1 : RightTrim(rightEdgeID) | miniCutDepth : NIL}
RightTrim(n) -->
alignScopeToGeometry(yUp, n)
split(z) { ~1 : X. | miniCutDepth : NIL}
I adapted the code as seen here and it works again (you can even delete the additional alignScopeToAxes(y) in the Left and RightTrim rules, as done here). Note the 'new' indices which work here. I tested those indices both on Windows and Linux (including backface culling) !* * *I faced the same issue as you did where it seemed that no index seems to work : that fix was easy.since the normals drive the scope alignment (and the normals were inverted), inverting the asset to the 'correct sidedness' inverts the split direction. this means that the split order has to be reversed (note that ~1 : is now first in the split)!with the indices 0 and 2 and the new asset, everything works fine.* * **phew* .. I'm glad the edge indexing after the trim is consistent on both Linux and Windows !more questions ? 🙂btw. sorry for the confusion with the normals !