|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Multi-connected walls » » » » Post: Re: Multi-connected walls |
Print at Dec 19, 2025, 2:55:32 AM |
| Posted by Sv.Kostadinov at Dec 12, 2009, 8:12:43 PM |
Re: Multi-connected wallsHi again!! I've tried the Bulgarian translation. Looks very clear and correct! Now, about the multi-connected walls: First I've tried to put references to neighboring walls to each of the wall ends. But after a certain amount of time, the things got very complicated and messed up. So I've made a bold decision to add another intermediate object. This object is called Joint and serves as shared attach point for neighboring walls. All walls are connecting to joints not to each other and they don't directly know about each other. Some things like JoinedWall class became pretty more simple. I had little troubles except that I've redefined a lot of classes just about the limitation of the privates. Almost all of the changes that I've made to your code were "deprivatisations" and changing to protected. if everything was protected not private it would be perfect! I would like to post the most important classes for you to take a look. How and where could I do this? The other problem that I've faced today was the difficulty to achieve some direct interaction between to controllers or their views, because they don't have access to each other, only to the model. I have my own component called Detail View that shows some detailed info about the currently selected wall. I am trying to capture the moving of a door or window over a wall to update the info in Detail view. I have success when moving an existing door. But don't have success with a door dragged from the catalog, cause it's not yet added to the home model. I'm searching for a workarround for this. Congratulations for the excellent software! It is a pleasure to work with it! Regards! |
|
|
Current timezone is GMT Dec 19, 2025, 2:55:32 AM |