Problem With Trimmed Geo and Balconies

1574
15
03-19-2012 03:00 AM
AndréCardoso
New Contributor III
Hi, I have a problem :p


I'm building balconies, and I'm relying on the trim planes to "join" balconies on different facades:

BalconyStripe -->
    s('3, '1, balconyLength)
    center(x)
    i("builtin:cube:notex")
    BalconySupport



The problem is that after trimming I get NO endings on the volume, just a hole. Like in the screenshot.

Can someone help me with this? What's the best approach for these situations?

Thanks!
André
0 Kudos
15 Replies
AndréCardoso
New Contributor III
*Bump* :p

Can anyone help me with this?
0 Kudos
by Anonymous User
Not applicable
Original User: matthiasbuehler

*normal* [ haha, 3d graphics 'inside joke' ]



hi ..

try these files.


this is a hack though.

to know : if you cut a profile with a split, the 'closing geometry' is created. thus in this example, we align the scope to some very specific edges to cut from one side, then from the other side to close the geo.

though since these edges are specific to each assets, they need be found/set manually (play with the values to find them). then, set the miniCutDepth to something small, like 0.005.


the case why there are no geometries created was just a development decision some time ago. this may change one day.


use the provided asset, but adapt the path to it ..

matt

ps.

not CGA-related :
as an architect, I MUST [ ;) ] say that the profile you are using is an ornamental 'band', but is not directly used as a 'form' for a balcony in reality. yes, some details are important .. hehe.
0 Kudos
AndréCardoso
New Contributor III

*normal* [ haha, 3d graphics 'inside joke' ]

Lol



hi ..

try these files.


this is a hack though.

to know : if you cut a profile with a split, the 'closing geometry' is created. thus in this example, we align the scope to some very specific edges to cut from one side, then from the other side to close the geo.

though since these edges are specific to each assets, they need be found/set manually (play with the values to find them). then, set the miniCutDepth to something small, like 0.005.


the case why there are no geometries created was just a development decision some time ago. this may change one day.


use the provided asset, but adapt the path to it ..

matt


Well, first it seems the asset you sent me is with the normals all wrong. So I opted to use the asset I've been using :p This is from the CE examples, and is attached here.

Second, I could not reproduce the behaviour you explained. No "closing geometries" were created after I splited the geom. Also, I had to change the rules a bit, concerning the split axes, and operation order.

I even tried some last resort things, like a comp(f)... but see the pictures attached! There you can see the rules and the results.

It's worth saying that I was inspecting the results both with backface culling on and off...



ps.

not CGA-related :
as an architect, I MUST [ ;) ] say that the profile you are using is an ornamental 'band', but is not directly used as a 'form' for a balcony in reality. yes, some details are important .. hehe.


That's why on our office we're all computer engineers :p
0 Kudos
AndréCardoso
New Contributor III
And this solution is just stupid -- see the screen attached


:S
0 Kudos
by Anonymous User
Not applicable
Original User: matthiasbuehler

hi !

I just retried with this with my original asset : the asset itself works.

though, there may some other things which go wrong :

1]
to make the edge-finding process faster, create an attr of the left and right indices, then use the slider in the Inspector :)

when retrying here at home, I weirdly found other indices (left 5 and right 7). puzzling.

2]
make sure your scale.sx is large enough to be trimmed even at sharp angles, so maybe scale it to '20 !
of course, if not all geometry is trimmed, the number of edges is not correct, so the whole point of this hack is lost.

here's the proof that it works with my code and asset. [sorry, could have posted also before !]
[ATTACH=CONFIG]12979[/ATTACH]


let me know .. !
0 Kudos
AndréCardoso
New Contributor III
Hi!

Well, it seems you were right about your asset. I tried again and I saw the results. The backface culling must've confused me... sorry!!!

Concerning the indices, I also found different results weather I was in Linux or Windows ... :S

HOWEVER, I still did not found a way to solve my problem, with my asset. I think I might just use yours, but I would like to understand this out:
- using you asset, when choosing incorrect edges the asset was split, but no new faces were created! Why? For example, on the screen I chose edge number 4 and the asset was split from the back. Shouldn't I have gotten a new face there?
- I went through all the indices on the asset I was using, and could not replicate the behaviour!

I'm not understanding this very well, because I don't know exactly when new faces are created! Am I missing something?

Thanks in advance!


hi ! 

I just retried with this with my original asset : the asset itself works. 

though, there may some other things which go wrong : 

1] 
to make the edge-finding process faster, create an attr of the left and right indices, then use the slider in the Inspector :)  

when retrying here at home, I weirdly found other indices (left 5 and right 7). puzzling. 

2] 
make sure your scale.sx is large enough to be trimmed even at sharp angles, so maybe scale it to '20 ! 
of course, if not all geometry is trimmed, the number of edges is not correct, so the whole point of this hack is lost. 

here's the proof that it works with my code and asset. [sorry, could have posted also before !] 
[ATTACH=CONFIG]12979[/ATTACH] 


let me know .. !
0 Kudos
by Anonymous User
Not applicable
Original User: matthiasbuehler

hi !

I've had a look at your asset and it makes sense that it cannot be closed.

CE can only close 'cylinder - like', CLOSED assets, even if the ends are missing as on my asset. your asset is open on the back side, thus it is not closed as an 'O', but open as a 'C', profile-wise spoken.

once you have it closed, make sure you merge all the vertices and eges properly to make the tube mathematically 'watertight'.


ok ?

I'll track the linux/windows changing indices down !

matt
0 Kudos
MatthiasBuehler1
Frequent Contributor II

- using   you asset, when choosing incorrect edges the asset was split, but no new faces were created! Why? For example, on the screen I chose edge number 4 and the asset was split from the back. Shouldn't I have


just to be clear, you actually meant using 'my (André's) own' asset, right ?
0 Kudos
by Anonymous User
Not applicable
Original User: thyandrecardoso

No!

Take a look at the screens on that post: the last one ("doubt1.jpg") was taken using YOUR asset.

Now it makes more sense that my asset doesn't get new faces.
However, still does not explain why certain split directions don't cause new faces to be created....


just to be clear, you actually meant using 'my (André's) own' asset, right ?
0 Kudos