Method for generating a rural home interior lighting system

By extracting information from rural residential building models, designing lighting fixtures and switch locations, and constructing projection point connection diagrams, the problem of the lack of high-quality lighting system design for rural residences was solved, achieving automated lighting system generation and improved construction efficiency.

CN115510518BActive Publication Date: 2026-01-02SHANGHAI CONSTRUCTION FOURTH CONSTRUCTION GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210518044.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-12
Publication Date
2026-01-02
Estimated Expiration
2042-05-12

AI Technical Summary

Technical Problem

Rural houses lack high-quality lighting system design drawings, resulting in messy wiring and difficult maintenance. Existing BIM technology cannot generate electromechanical professional models.

Method used

By extracting architectural information from rural residential building models, designing lighting fixtures and switch locations, constructing projection point connection diagrams, selecting the shortest path, and automatically generating lighting system design drawings.

Benefits of technology

It enables the automatic design of switch, light fixture locations, and electrical conduit layouts based on rural residential building models, improving construction efficiency and quality, and providing villagers with free lighting system design drawings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115510518B_ABST
    Figure CN115510518B_ABST
Patent Text Reader

Abstract

This invention provides a method for generating an indoor lighting system for a rural residence, which involves extracting architectural information from a model of a rural residence at a certain level; and then generating a system based on the room number r in the architectural information. i Building area a i Design each room r i The set of lighting locations L i ={l ij}; For each room r i According to the building information, the set of doors D of this room i Design switch points s ij For each room r i Calculate the switch locations and light fixture locations on the top surface t. i A set of projection point schemes; based on each projection point scheme ps in the set of projection point schemes. k Construct a connectivity graph (GP) of the projection points; from the various schemes of the GP, ps k Select length pl k Shortest path pt k The proposed solution serves as a model for indoor lighting systems in rural residences. It visualizes the design of such systems within the model and enables the automatic design of switch locations, luminaire placement, and electrical conduit layout based on the rural residential building model, thereby improving the efficiency and quality of rural residential construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method for generating an indoor lighting system for rural residences. Background Technology

[0002] In most parts of my country, rural houses lack high-quality design data, especially for systems such as lighting, electrical outlets, and water supply and drainage, which often lack design drawings and are constructed by local craftsmen based on experience. This approach easily leads to problems such as messy wiring, difficult maintenance, unreasonable switch placement, and negatively impacted user experience.

[0003] The indoor lighting system of rural houses mainly includes the main distribution cabinet, wiring, switches, and lamps. The main distribution cabinet is generally determined by the location of the municipal power supply and does not require design; the location of switches and lamps is the focus of the design, while the rational arrangement of wiring is the design challenge.

[0004] With the application and promotion of Building Information Modeling (BIM) technology in architectural design, there are more and more BIM-based rural residential building schemes. However, these schemes only have architectural models and lack mechanical and electrical professional models, making it impossible to generate drawings for systems such as lighting. Summary of the Invention

[0005] The purpose of this invention is to provide a method for generating an indoor lighting system for rural residences.

[0006] To address the above problems, this invention provides a method for generating an indoor lighting system for rural residences, comprising:

[0007] Step 1: Extract architectural information from a single-story rural residential building model;

[0008] Step 2: Based on the room r in the building information i Building area a i Design each room r i The set of lighting locations L i ={l ij};

[0009] Step 3: For each room r i According to the building information, the set of doors D of this room i Design switch points s ij ;

[0010] Step 4: For each room r i Calculate the switch locations and light fixture locations on the top surface t. i A set of projection point schemes;

[0011] Step 5: Based on each projection point scheme ps in the projection point scheme set k Construct the connection graph GP of the projection points;

[0012] Step 6: From the various solutions ps in GP k Select length pl k Shortest path pt k The proposed solution serves as a model for the indoor lighting system of rural residences, and the solution is visualized within the model.

[0013] Furthermore, in the above method, architectural information is extracted from a single-story rural residential building model, including:

[0014] Step 1.1: Extract a list of rooms from the architectural model, denoted as room set R = {rooms r}. i}, where i represents the room number;

[0015] Step 1.2: Extract each room r from the building model i Building area a i The set of walls that enclose the room W i ={wall w ij}, Top surface t i Set of gates D i =(d ij The information, i.e., r i =(a i W i D i t i ), where wall w ij Let d represent the j-th wall in the i-th room. ij This represents the j-th door in the i-th room;

[0016] Step 1.3: Extract r from each room i The top surface t i The geometric information includes: elevation z1, top surface t i The set of edges = {edge te ij}; where the edge te ij Includes information about two vertices, the start and the end points, i.e., te ij =(starting point tep) ij1 , finish line ij2 Vertices on different edges may be repeated;

[0017] Step 1.4: Extract room r i w on each wall ij Information includes: whether it bears weight (wz) ij Length wl ij and thickness ww ij Information;

[0018] Step 1.5: Extract the d values ​​of each door in the room. ijinformation of whether the door dw ij , the opening direction dv ij , the door handle coordinate b ij =(x bij , y bij ), and the door panel center coordinate c ij =(x cij , y cij ).

[0019] Further, in the above method, step 2: according to the building area a i of the room r i in the building information, the lamp point set L i ={l ij} of each room r i is designed, including:

[0020] If the building area a i of the room r i does not exceed the threshold A, one lamp point l ij is arranged at the center point of the top surface t i of the room r i的 .

[0021] If the building area a i of the room r i exceeds the threshold A, the room is divided into two top surfaces through the center point of the long side of the top surface t i of the room r i , and one lamp point coordinate l ij is arranged at the center point of each top surface.

[0022] Further, in the above method, A is 50m 2 .

[0023] Further, in the above method, step 3: for each room r i , according to the door set D i of the room in the building information, the switch point s ij is designed, including:

[0024] Step 3.1: traverse each room r i in the room set R;

[0025] Step 3.2: traverse each door d ij in the door set D i =(d ij ) of the room r i .

[0026] Step 3.3: if the door d ij is the door dw ijTherefore, calculate the entrance switch point s of this door. ij =(x ij y ij (x, zs); where zs is a fixed value; x ij =x bij +k(x bij -x cij );y ij = y bij +k(y bij -y cij );

[0027] Step 3.4: If gate d ij Is it the entrance door? ij No, and door d ij Opening direction dv ij Pointing to this room r i Then calculate the point s of the incoming switch. ij =(x ij y ij ,zs), where x ij =x bij +k (x bij -x cij );y ij =y bij +k(y bij -y cij );

[0028] Step 3.5: Traverse the set of doors D i Each door in the middle ij Then, return to step 3.1 until room r in the room set R. i Complete traversal.

[0029] Furthermore, in the above method, zs is 1.25m.

[0030] Furthermore, in the above method, in step 3.3, if gate d ij It is a double door, k = 2.5; if d ij For a single door, k = 0.5.

[0031] Furthermore, in the above method, step 4: for each room r i Calculate the locations of switches and light fixtures on the top surface t. i The set of projection point schemes includes:

[0032] Step 4.1: Iterate through each room r in the room set R. i ;

[0033] Step 4.2: Calculate room r i Each lighting fixture locationij On the top surface t i The four sides of the te ij The set of vertical projection points lp ij ;

[0034] Step 4.3: Calculate r i Each switch point s in the middle ij =(x ij y ij ,zs) on the top surface t i projection point sp ij =(x ij y ij ,z1);

[0035] Step 4.4: Calculate the t value of the incoming power distribution cabinet on the top surface. i The projection point p0 on;

[0036] Step 4.5: Rooms r in the room set R i After traversal, use permutations and combinations to iterate through each room r. i The set of vertical projection points lp ij Select one projection point to form the projection point scheme (ps) k To obtain the set of projection point schemes PS = {ps k},ps k Includes: the vertical projection point (lp) of each luminaire. ij and the projection point sp of each switch ij If the total number of lights is N, then PS has 4 N One option.

[0037] Furthermore, in the above method, step 5: based on the scheme ps for each projection point k Construct the connectivity graph GP of the projection points, including:

[0038] Step 5.1: Apply the shadow point scheme to Photoshop. k The vertical projection point lp of each lamp ij Each room i The top surface t i each side ij The starting point tep ij1 and the end point tep ij2 And the set of points GP = {gp} added to the graph by the projection point p0. k};

[0039] Step 5.2: Then, combine each point gp in the point set GP of the graph. k The projection point gp' on the other side of the wall k Also add them to the point set GP; and delete duplicate points in the point set GP of the graph based on their coordinates;

[0040] Step 5.3: the edge te i of each top surface t ij is added as an edge in the point set GP of the graph, and the edge set GE = {ge k}; if the edge ge k has a projection point, the projection point includes a certain projection point in the vertical projection point set lp ij or the projection point sp ij , the edge te ij is split into two edges at the projection point, and the element ge k in the GE set is replaced; the length of the edge ge k is the physical length of the edge ge k ;

[0041] Step 5.4: establish the connecting edge of each point gp k in GP and the projection point gp' k of each point gp k on the other side of the wall surface as the first connecting edge length, and the length of the first connecting edge is K*the thickness ww ij of the wall;

[0042] Step 5.5: add the lamp point l ij and the switch point s ij to the point set GP of the graph; and establish the connecting edge between the lamp point l ij and the corresponding vertical projection point in lp ij as the second connecting edge, and the length of the second connecting edge is M*the physical length of the second connecting edge; establish the connecting edge between the switch point s ij and the corresponding projection point sp ij as the third connecting edge; the length of the third connecting edge is M*the physical length of the third connecting edge; and M is 2;

[0043] Step 5.6: using the minimum spanning tree algorithm, calculate the shortest path pt k connecting all lamp points l i and switch points s ij from the projection point p0 of the top surface t ij of the incoming power distribution cabinet in each scheme ps k , and record it as (scheme ps k , path pt k , length pl k ); wherein the length pl k is the length of the path pt k passing through the edge ge k, the length of the first connecting edge, the length of the second connecting edge, and the length of the third connecting edge ki The sum of the lengths of the edges of the first connecting edge, the second connecting edge, and the third connecting edge is set as pt k The sum of the lengths of the edges of the first connecting edge, the second connecting edge, and the third connecting edge is set as pt ki The sum of the lengths of the edges of the first connecting edge, the second connecting edge, and the third connecting edge is set as pt k If the number of edges is K, then

[0044] Further, in the above method, in step 5.4, if the length of the wall wl ij is less than 500 cm, K is 10000;

[0045] If the length of the wall wl ij is greater than 500 mm, K is 50;

[0046] If whether the wall is load-bearing wz ij represents that the wall is a non-load-bearing wall, K is 25.

[0047] Compared with the prior art, the present application extracts building information from a certain layer of rural residential building model; according to the building area a i of the room r i in the building information, the lamp point set L i ={l i} of each room r ij is designed; for each room r i , the switch point s i is designed according to the door set D ij in the building information; for each room r i , the projection point scheme set of the switch point and the lamp point on the top surface t i is calculated; based on each projection point scheme ps k in the projection point scheme set, the connection graph GP of the projection point is constructed; the scheme with the shortest path pt k of the length pl k is selected from each scheme ps k of GP as the scheme of the rural residential indoor lighting system, and the scheme of the rural residential indoor lighting system is visualized and displayed in the model, so that the design of the switch, the lamp point and the wire conduit can be automatically completed according to the rural residential building model, free lighting system design drawings are provided for villagers, and the construction efficiency and quality of rural residences are improved.

[0048] The present application can extract all space information and building system and equipment information of the whole building from BIM, mine the position, the system or equipment involved and other information of the work order from the work order description, realize intelligent work order classification and positioning, and the accuracy is as high as 90%; and more than 80% of high-frequency repeated work orders are automatically mined, which greatly improves the efficiency of operation and maintenance management. BRIEF DESCRIPTION OF DRAWINGS

[0049] Figure 1 is a flow chart of a rural residential indoor lighting system generation method according to an embodiment of the present application;

[0050] Figure 2 is a schematic diagram of a control according to an embodiment of the present application;

[0051] Figure 3 is a flow chart according to an embodiment of the present application;

[0052] Figure 4 is a schematic diagram of a functional module according to an embodiment of the present application;

[0053] Figure 5 is a schematic diagram of a shortest path solution according to an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the above objectives, features and advantages of the present application more apparent, further detailed description of the present application will be given below with reference to the accompanying drawings and specific embodiments.

[0055] As shown in Figure 1 , the present application provides a rural residential indoor lighting system generation method, comprising:

[0056] Step 1: Extract building information from a certain layer of rural residential building model. Specifically, the following steps are included:

[0057] Step 1.1: Extract the room list from the building model, denoted as the room set R = {rooms r i}, where i represents the serial number of the room;

[0058] Step 1.2: Extract the building area a i , the wall set W i = {walls w i} surrounding the room, the top surface t ij and the door set D i = (d i ) information of each room r ij , i.e. r i = (a i , W i , D i , t i ), where w ij represents the jth wall in the ith room, and d ij represents the jth door in the ith room;

[0059] Step 1.3: Extract the geometric information of the top surface t i of each room r i , including the elevation z1, the top surface ti The set of edges = {edge te ij}; where the edge te ij Includes information about two vertices, the start and the end, i.e., te ij =(starting point tep) ij1 , finish line ij2 Vertices on different edges may be repeated;

[0060] Step 1.4: Extract room r i w on each wall ij Information includes: whether it bears weight (wz) ij Length wl ij and thickness ww ij Information;

[0061] Step 1.5: Extract the d values ​​of each door in the room. ij Information includes: whether there is an entrance door (dw) ij , Open directional DV ij Door handle coordinates b ij =(x bij y bij ), coordinates of the center point c of the door panel ij =(x cij y cij ) information;

[0062] by Figure 2 and Figure 3 Taking the architectural model shown as an example, the room set R includes living room r1, bedroom r2, dining room r3, kitchen r4, etc. Taking living room r1 as an example, the top surface t1 includes the edge {te}. 11 ,te 12 ,te 13 ,te 14 ,}, gate D1 includes {d 11 d 12 d 13 d 14}, where d 11 d 12 For the entrance door; the wall includes (w 11 w 12 w 13 );

[0063] Step 2: Based on the room r in the building information i Building area a i Design each room r i The set of lighting locations L i ={l ij The preferred solution is if the building area is a i Rooms r not exceeding threshold A i In room ri的 Top surface t i One light fixture is placed at the center point. ij If the building area is a i Rooms exceeding threshold A i After passing through room r i The top surface t i The room is divided into two ceiling surfaces by the center point of the longer side, and a light fixture is placed at the center point of each of the two ceiling surfaces. ij A is preferably 50m 2 .

[0064] Taking living room r1 as an example, the building area is 20.58m². 2 If the value is less than A, design a light fixture location l at the center point of the top surface. 11 ,like Figure 2 As shown.

[0065] Step 3: For each room r i According to the building information, the set of doors D of this room i Design switch points s ij Specifically, it includes the following steps:

[0066] Step 3.1: Iterate through each room r in the room set R. i ;

[0067] Step 3.2: Traverse room r i The set of gates D i =(d ij ) each door d ij ;

[0068] Step 3.3: If gate d ij Is it the entrance door? ij Therefore, calculate the entrance switch point s of this door. ij =(x ij y ij (zs); where zs is a fixed value, preferably 1.25m; x ij =x bij +k (x bij -x cij );y ij =y bij +k(y bij -y cij If gate d ij For a double door, k = 2.5 is preferred; if d ij For a single door, k = 0.5 is preferred;

[0069] like Figure 3 As shown, taking room r1 as an example, d 11For a double-leaf entrance door, the switch s was determined according to the above calculation formula. 11 The location.

[0070] Step 3.4: If gate d ij Is it the entrance door? ij No, and door d ij Opening direction dv ij Pointing to this room r i Then calculate the point s of the incoming switch. ij =(x ij y ij ,zs), where x ij =x bij +k (x bij -x cij );y ij =y bij +k(y bij -y cij );

[0071] like Figure 4 As shown, taking room r2 as an example, d21 is a single door. The switch s is determined according to the above calculation formula. 21 The location.

[0072] Step 3.5: Traverse the set of doors D i Each door in the middle ij Then, return to step 3.1 until room r in the room set R. i Complete traversal.

[0073] Step 4: For each room r i Calculate the locations of switches and light fixtures on the top surface t. i A set of projection point schemes. Specifically, it includes the following steps:

[0074] Step 4.1: Iterate through each room r in the room set R. i ;

[0075] Step 4.2: Calculate room r i Each lighting fixture location ij On the top surface t i The four sides of the te ij The set of vertical projection points lp ij The available options typically have four projection points (lp). ij ={lp ij1 , lp ij2 , lp ij3 , lp ij4};

[0076] like Figure 2 As shown, for lamp l 11There are four projection points, lp 11 = {lp 111 , lp 112 , lp 113 , lp 114}.

[0077] Step 4.3: Calculate r i Each switch point s ij = (x ij , y ij , zs) in the top surface t i The projection point sp ij = (x ij , y ij , z1) of the top surface t 11

[0078] As shown in Figure 2 , for the switch s 11 The projection point sp i of the top surface t

[0079] Step 4.4: Calculate the projection point p0 of the household distribution cabinet on the top surface t i

[0080] Step 4.5: After the rooms r i in the room set R are traversed, a permutation and combination method is used to select one projection point from the vertical projection point set lp ij of each room r k to form a projection point scheme ps k , so as to obtain a projection point scheme set PS = {ps k}, ps ij includes the vertical projection point lp ij of each lamp and the projection point sp N of each switch. If the total number of lamps is N, there are generally 4 112 schemes in PS.

[0081] As shown in Figure 2 , Figure 3 and Figure 4 , PS = {ps1 = (lp111, lp211, sp111, sp211), ps2 = (lp 211 , lp 111 , sp 211 ), ps3 = (lp 113 , lp 211 , sp 111 , sp 211 ), ps4 = (lp 114 , lp 211 , sp 111 , sp​​211 There are a total of 16 schemes in PS.

[0082] Step 5: Based on the scheme ps for each projection point k Construct the connectivity graph (GP) of the projection points. This includes the following steps:

[0083] Step 5.1: Apply the shadow point scheme to Photoshop. k The vertical projection point lp of each lamp ij Each room i The top surface t i each side ij The starting point tep ij1 and the end point tep ij2 And the set of points GP = {gp} added to the graph by projection point p0. k};

[0084] Step 5.2: Then, combine each point gp in the point set GP of the graph. k The projection point gp' on the other side of the wall k Also add them to the point set GP; and delete duplicate points in the point set GP of the graph based on their coordinates;

[0085] like Figure 2 As shown, lp 111 At point lp' on the back of the wall 111 Add it to the vertex set of the GP; the main consideration is that wires can be designed by opening holes at each vertex;

[0086] Step 5.3: Using each top surface t i the edge ij作 For the edges of vertices in the vertex set GP of the graph, add them to the edge set GE = {ge}. k}; If edge ge k There are projection points, including: a set of vertical projection points lp ij A projection point or projection point sp in ij Then, taking the projection point as the boundary, the edge te ij Split into 2 edges and replace the element ge in the GE set. k ;border k The side length is called the side length. k The physical length;

[0087] like Figure 2 As shown, top surface t i the edge 11 There is an LP on the side. 111 Therefore, it is split into 2 edges te 111 and te 112 Add to GP;

[0088] Step 5.4: Establish the GP for each point in the GP k and each point gp k The projection point gp' on the other side of the wall k The connecting edge is taken as the first connecting edge length, which is K * the wall thickness. ij If the length of the wall is wl ij For load-bearing walls less than 500cm, K is preferably 10000; if the wall length wl ij For load-bearing walls larger than 500mm, K is preferably 50; if it is not load-bearing, wz ij This indicates that the wall is a non-load-bearing wall, and K is preferably 25; this is mainly because the amount of work required to open holes in different walls varies greatly.

[0089] like Figure 2 As shown, wall w13 is a non-load-bearing wall, point lp 111 and projection point lp' 111 The value between them becomes 25 * 0.24 = 6;

[0090] Step 5.5: Place the light fixtures at point l ij and switch position s ij Add to the point set GP of the graph; and establish the lamp location l ij与 lp ij The connecting edge between the corresponding vertical projection points is used as the second connecting edge, and the length of the second connecting edge is M * the physical length of the second connecting edge; establish the switch point s. ij With the corresponding projection point sp ij The connecting edge between them is used as the third connecting edge; the side length of the third connecting edge is M * the physical length of the third connecting edge; M is preferably 2; mainly considering that the amount of work for grooving the top surface and the wall surface is large.

[0091] like Figure 3 As shown, s 11 to sp 11 side length gel k =2 * 1.75 = 3.5;

[0092] Step 5.6: Using the minimum spanning tree algorithm, calculate ps for each solution based on the vertex set GP and edge set GE of the graph. k From the top of the distribution cabinet t i Starting from projection point p0, connect all light fixture points l ij and switch position s ij The shortest path pt k And recorded as (scheme ps) k , path pt k Length pl k ); where the length pl k It is the path ptk Passing through the border k The side lengths of the first connecting edge, the second connecting edge, and the third connecting edge are gel. ki The sum; let pt k ={edge ki}, pt k If the number of edges is K, then

[0093] like Figure 5 The scheme shown is ps1, pt1 = {ge11, ge12, ..., ge20};

[0094] Step 6: From the various solutions ps in GP k Select length pl k Shortest path pt k The proposed solution serves as a model for the indoor lighting system of rural residences, and the solution is visualized within the model.

[0095] like Figure 2 , Figure 3 and Figure 4 As shown, the shortest path solution is displayed as follows: Figure 5 As shown.

[0096] Specifically, according to the current national standard "General Specification for Building Electrical and Intelligent Systems," electrical wires cannot be directly laid in walls, floors, and ceilings; they require conduit protection. Furthermore, lighting power supplies on the same floor are generally in the same circuit, and wires in the same circuit should be run in the same conduit. Additionally, conduits should avoid crossing structural walls shorter than 500mm. Research indicates that lighting system layouts in rural residences are relatively simple and follow certain patterns, allowing for the exploration of automated design methods based on building models. In particular, rural residences generally do not have suspended ceilings; therefore, electrical conduits are typically laid along the edge of the ceiling, making it easy to conceal them with plaster moldings and avoiding aesthetic concerns.

[0097] This invention extracts architectural information from a model of a rural residential building; based on the room r in the architectural information... i Building area a i Design each room r i The set of lighting locations L i ={l ij}; For each room r i According to the building information, the set of doors D of this room i Design switch points s ij For each room r i Calculate the switch locations and light fixture locations on the top surface t. iA set of projection point schemes; based on each projection point scheme ps in the set of projection point schemes. k Construct a connectivity graph (GP) of the projection points; from the various schemes of the GP, ps k Select length pl k Shortest path pt k The proposed solution serves as a model for indoor lighting systems in rural residences. It visualizes the design of such systems within the model and can automatically design the locations of switches, light fixtures, and electrical conduits based on the rural residential building model. This provides villagers with free lighting system design drawings, improving the efficiency and quality of rural residential construction.

[0098] This invention can extract all spatial information of the entire building and information on building systems and equipment from BIM, and extract information such as the location of the work order and the systems or equipment involved from the work order description, so as to achieve intelligent work order classification and positioning with an accuracy rate of up to 90%; and automatically extract more than 80% of high-frequency repetitive work orders, which greatly improves the efficiency of operation and maintenance management.

[0099] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0100] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0101] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Therefore, if these modifications and variations fall within the scope of the claims of the invention and their equivalents, the invention is also intended to include these modifications and variations.

Claims

1. A method for generating a rural home interior lighting system, characterized by, Comprising: Step 1: extracting building information from a rural residential building model of a certain floor; Step 2: Based on the room r in the building information i Building area a i Design each room r i The set of lighting locations L i ={l ij }; Step 3: For each room r i , according to the door set D i of the room in the building information ij , design the switch point s Step 4: For each room r i , compute the set of projected point schemes of the switch point and the luminaire point on the top surface t i ; Step 5: constructing a connection graph GP of the projection points based on each projection point scheme ps in the set of projection point schemes k , constructing a connection graph GP of the projection points; Step 6: Selecting the length pl from the various schemes ps of GP k k The shortest path pt k The scheme of the shortest path pt as a scheme of a rural residential indoor lighting system, visualizing the scheme of the rural residential indoor lighting system in a model;​ Extracting building information from a rural residential building model of a certain floor, comprising: Step 1.1: Extract a list of rooms from the building model, denoted as a room set R = {room r i}, where i denotes the room number; Step 1.2: Extract each room r from the building model i Building area a i The set of walls that enclose the room W i ={wall w ij }, Top surface t i Set of gates D i ={door d ij The information of}, i.e., r i ={a i W i D i t i }, where wall w ij Let d represent the j-th wall in the i-th room, and let d be the door. ij This represents the j-th door in the i-th room; Step 1.3: Extract r from each room i The top surface t i The geometric information includes: elevation z1, top surface t i The set of edges = {edge te ij }; where the edge te ij Includes information about two vertices, the start and the end points, i.e., te ij =(starting point tep) ij1 , finish line ij2 Vertices on different edges may be repeated; Step 1.4: Extracting the room r i of each wall w ij Information, including: whether the wall wz ij supports weight; length wl ij and thickness ww ij information; Step 1.5: Extracting information of each door d of the room ij including: whether it is an entrance door dw ij , the opening direction dv ij , the door handle coordinates b ij = (x bij , y bij ), and the door panel center point coordinates c ij = (x cij , y cij ) Step 2: According to the room r in the building information i , the building area a i , the design of each room r i , the lamp point set L i ={l ij} is included: If the building area a i The room r i In the room r i的 The top surface t i The center point of the top surface t ij ; If the building area a i is greater than the threshold A, the room r i is divided into two top surfaces by the long center point of the top surface t i of the room r i , and one lamp point coordinate l ij is arranged at the center point of each of the two top surfaces. Step 3: For each room r i , according to the door set D i of the room in the building information ij , design the switch point s ij , including: Step 3.1 : Traverse the individual rooms r in the room set R i ; Step 3.2: Traverse the room r i of the door set D i ={doors d ij} of the door set D ij ; Step 3.3: If the door d ij of whether the front door dw ij is yes, calculate the front door switch point of the fan s ij = (x ij , y ij , zs); wherein zs is a fixed value; x ij = x bij +k(x bij -x cij ); y ij = y bij +k(y bij -y cij ); Step 3.4: If the door d ij is not the entrance door dw ij , and the opening direction dv ij of the door d ij points to the current room r i , then calculate the entrance switch point s ij = (x ij , y ij , zs), where x ij = x bij +k(x bij -x cij ); y ij = y bij +k(y bij -y cij ). Step 3.5: iterate through the door set D i each door d in D ij After that, return to step 3.1 until the room r in the room set R i Iteration is complete; In step 3.3, if the door d ij is a double door, k = 2.5; if the door d ij is a single door, k = 0.5; Step 4: For each room r i , calculate the projection point scheme set of the switch point and the lamp point on the top surface t i , including: Step 4.1 : Traverse the individual rooms r in the room set R i ; Step 4.2: Calculate the room r i Each lamp point l in the room r ij The four edge lines te of the top surface t i The vertical projection point set lp of the four edge lines te ij The vertical projection point set lp of the four edge lines te ij ; Step 4.3: Calculate r i Each switch point s in the middle ij = (x ij , y ij , zs) the projection point sp i = (x ij , y ij , z1) on the top surface t ij ; Step 4.4: Calculate the projection point p0 on the top surface t of the incoming distribution cabinet. i Step 4.4: Calculate the projection point p0 on the top surface t of the incoming distribution cabinet. Step 4.5: Room r in room set R i After traversal, permutation and combination is used to select one projection point from each room r i 's vertical projection point set lp ij to form a projection point scheme ps k to obtain projection point scheme set PS={ps k}, ps k includes: each lamp's vertical projection point lp ij and each switch's projection point sp ij ; if the total number of lamps is N, there are 4 N schemes in PS; Step 5: Based on each projection point scheme ps in the set of projection point schemes k constructing a connection graph GP of the projection points, comprising: Step 5.1: Apply the shadow point scheme to Photoshop. k The vertical projection point lp of each lamp ij Each room i The top surface t i each side ij The starting point tep ij1 and the end point tep ij2 And the set of points GP={gp} added to the graph by the projection point p0. k }; Step 5.2: each point gp in the point set GP of the graph is replaced by a point gp' in the point set GP' of the graph Gp' such that gp' = gp + gp' - gp k the projection point gp on the other side of the wall ’ k is also added to the point set GP; and the points in the point set GP of the graph are deleted according to the coordinates; Step 5.3: Using each top surface t i the edge ij Edges that are vertices in the vertex set GP of the graph are added to the edge set GE = {ge} k }; If edge ge k There are projection points, including: a set of vertical projection points lp ij A projection point or projection point sp in ij Then, taking the projection point as the boundary, the edge te ij Split into 2 edges and replace the element ge in the GE set. k ;border k The side length is called the side length. k The physical length; Step 5.4: Establishing each point gp in the GP k and each point gp k the projection point gp on the other side of the wall ’ k the connecting edge of the point gp, as the first connecting edge length, the length of the first connecting edge is K*the thickness of the wall ww ij ; Step 5.5: the lamp point lp is added to the point set GP of the graph; and the lamp point lp is established ij and the switch point sp ij is added to the point set GP of the graph; and the lamp point lp is established ij and the switch point sp ij is added to the point set GP of the graph; and the lamp point lp is established ij and the switch point sp ij is added to the point set GP of the graph; and the lamp point lp is established Step 5.6: Using the minimum spanning tree algorithm, calculate ps for each solution based on the vertex set GP and edge set GE of the graph. k The bottom of the power distribution cabinet is on the top surface. i Starting from projection point p0, connect all light fixture points l ij and switch position s ij The shortest path pt k And record it as a solution ps k , path pt k Length pl k ; where the length pl k It is the path pt k Passing through the border k The lengths of the first connecting edge, the second connecting edge, and the third connecting edge. The sum; let pt k ={biange ki }, pt k If the number of edges is K, then pl k = .

2. The method of claim 1, wherein the rural residential indoor lighting system is generated by: A is 50 m 2 .

3. The method of claim 1, wherein the rural residential indoor lighting system is generated by: zs is 1.25 m.

4. The method of claim 1, wherein the rural residential indoor lighting system is generated by: In step 5.4, if the length of the wall wl ij For load-bearing walls less than 500 cm in length, K is 10,000. If the length of the wall wl ij For load-bearing walls greater than 500 mm, K is 50. If not load bearing wz ij Indicates that the wall is non-load bearing and K is 25.

Citation Information

Patent Citations

  • Pipeline arrangement model generation method and device, computer equipment and storage medium

    CN113158281A

  • Electrical loop automatic analysis and drawing generation method and device based on graph algorithm

    CN113626909A