|
Sweet Home 3D Forum » List all forums » » Forum: New versions » » » Thread: Wirings plugin » » » » Post: Re: Wirings plugin |
Print at Dec 24, 2025, 6:15:44 PM |
| Posted by Daniels118 at Apr 18, 2025, 6:38:27 PM |
|
Re: Wirings plugin I don't know if I have understood the problem correctly, however based on my guess I think your problem is originated by objects imported with the wrong front side. I understand the reason you made this to simplify making holes, but the plugin logic is made to take advantage of the built-in features of SH3D which recognize the concept of backside of objects and enforce its usage through the magnetism option. The plugin is designed to make wirings visible on the surface of walls without having to make the walls transparent, and using the backside of objects is the easiest way to determine the surface of the wall where the object is placed. For completeness I'll report the exact logic of the automatic wiring feature. The automatic wiring feature works with 2 main computations: - the point on the object where the line starts/ends - the path connecting the 2 endpoints Endpoint point computation - If the object elevation relative to the the level is 0, then the endpoint is on the floor centered on the object. - If the object elevation plus the object height is equal or greater than the level height, then the endpoint is on the ceiling centered on the object. - In all other cases the endpoint is on the center of the backside face of the object. The computed point is then shifted horizontally along the X axis of the object (according to the object angle) by a small amount, so that multiple wirings on the same object won't overlap. Path computation - If endpoints are both on the floor, or both on the ceiling, then they are connected by a straight line (unless additional mid points have been added manually). - If both endpoints are on the same wall*, or just one is on a wall (the other is either on the floor, on the ceiling), then a 3rd point is added and a bend occurrs so that the line becames "L" shaped (that is, it goes from the point on the wall straight up or down to the same elevation of the other point, and then moves horizontally straight to the other point). - If each endpoint is on a different wall*, then a 4th point is added and 2 bends occurr so that the line becames "U" shaped (that is, it goes from the first point straight down along the wall to the floor, then moves horizontally on the floor straight below the last point, and then goes up straight along the wall up to the last point). - If one endpoint is on the floor and the other is on the ceiling, then the connection breaks. * points are considered to lay on the same wall when they aren't either on the floor or on the ceiling, and the backside of the furniture they belong to are aligned on the same line. There is no real check to see if they really are on a wall. |
|
|
Current timezone is GMT Dec 24, 2025, 6:15:44 PM |