CN113158281B - Pipeline arrangement model generation method and device, computer equipment and storage medium - Google Patents
Pipeline arrangement model generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113158281B CN113158281B CN202010076350.1A CN202010076350A CN113158281B CN 113158281 B CN113158281 B CN 113158281B CN 202010076350 A CN202010076350 A CN 202010076350A CN 113158281 B CN113158281 B CN 113158281B
- Authority
- CN
- China
- Prior art keywords
- model
- point
- distribution box
- room
- path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000004590 computer program Methods 0.000 claims description 19
- 239000000463 material Substances 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 25
- 238000012545 processing Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 12
- 230000000694 effects Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/08—Construction
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a generation method, a device, computer equipment and a storage medium of a pipeline arrangement model, wherein basic attribute information of an object to be pipeline arranged is obtained, the basic attribute information comprises characteristic information of a target model in the object to be pipeline arranged, the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model, a room model central point corresponding to the room model is obtained, and a pipeline arrangement model of the object to be pipeline arranged is generated according to a preset generation rule and the basic attribute information; the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model. By adopting the method, the generation efficiency of the pipeline arrangement model in the house can be improved.
Description
Technical Field
The present disclosure relates to the field of building technologies, and in particular, to a method and an apparatus for generating a pipeline arrangement model, a computer device, and a storage medium.
Background
Along with the development of the times, the scientific technology gradually tends to develop in a specialized, comprehensive and quantitative way, so that the automation is realized in the field of building design.
For the pipeline arrangement model generation technology of each floor, the traditional method is that a designer designs a pipeline model by himself, so that the designer needs to create related group files of all drainage terminals in a room by himself between electric appliances such as lamps and sockets in each room in each floor and distribution boxes configured in each floor, and then draw pipeline connection between each terminal and a transverse pipe and pipeline model between the transverse pipe and a vertical pipe according to the positions and characteristics of all drainage terminals in the room, so that pipeline connection between the distribution boxes and the electric appliances in each floor is completed.
Although the existing method can realize the pipe arrangement between the distribution box and the electrical equipment, the process is too tedious and complex, and the time and labor cost is high.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for generating a pipeline arrangement model that can improve piping efficiency.
A method of generating a pipeline arrangement model, the method comprising:
Basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
An apparatus for generating a model of a pipeline arrangement, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring basic attribute information of an object to be subjected to pipeline arrangement, the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor slab model, a lamp model and a socket model;
the generating module is used for acquiring a room model center point corresponding to the room model and generating a pipeline arrangement model of the object to be pipeline arranged according to the basic attribute information and a preset generating rule;
The preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
According to the method, the device, the computer equipment and the storage medium for generating the pipeline arrangement model, the basic attribute information of the object to be distributed is obtained, and the basic attribute information comprises the characteristic information of the target model in the object to be distributed, and the target model comprises the room model, the distribution box model, the floor slab model, the lamp model and the socket model, so that when the room model central point corresponding to the room model is obtained, the pipeline arrangement model of the object to be distributed can be automatically generated according to the basic attribute information according to the preset connection rule of the distribution box model, the connection rule of the distribution box model and the room model central point, the connection rule of the lamp model and the distribution box model and the connection rule of the socket model and the distribution box model, and the problem that in a traditional method, a designer is required to manually draw pipeline connection between each drainage terminal and a transverse pipe in a house and pipeline model between the transverse pipe and a vertical pipe one by one is low in house generation efficiency is solved, time cost is greatly saved, and generation efficiency of the pipeline arrangement model in the house is improved.
Drawings
FIG. 1 is a flow diagram of a method of generating a pipeline arrangement model in one embodiment;
FIG. 2A is a plan view of a one-layer room model of an object to be pipelined in one embodiment;
FIG. 2B is a schematic diagram of determining a center point of a room model in one embodiment;
FIG. 3 is a flow chart of a method for generating a pipeline arrangement model according to another embodiment;
FIG. 4A is a schematic diagram of the connection between the block terminal models in one embodiment;
FIG. 4B is a schematic illustration of determining a wall model centerline in one embodiment;
FIG. 4C is a schematic diagram of determining a baseline in one embodiment;
FIG. 5 is a flow chart of a method of generating a pipeline arrangement model according to yet another embodiment;
FIG. 6A is a physical diagram of a connection between a distribution box model and a room model center point in one embodiment;
FIG. 6B is a diagram showing the effect of a connection between a center point of a distribution box model and a room model in one embodiment;
FIG. 7 is a flow chart of a method of generating a pipeline arrangement model according to yet another embodiment;
FIG. 8A is a diagram showing the connection of a lamp model and a distribution box model in the same room model according to one embodiment;
FIG. 8B is a schematic diagram of determining a projected point of a luminaire model according to an embodiment;
FIG. 9A is a schematic diagram of a connection between a lamp model and a room model center point in an embodiment;
FIG. 9B is a diagram showing the effect of connecting a room model center point with a luminaire model according to one embodiment;
FIG. 10 is a flow chart of a method of generating a pipeline arrangement model according to yet another embodiment;
FIG. 11A is a diagram of a block diagram and a wall diagram in one embodiment;
FIG. 11B is a physical diagram of a block terminal model in one embodiment;
FIG. 12A is a schematic diagram of a connection between a socket model and a distribution box model in one embodiment;
FIG. 12B is a diagram showing the effect of the connection between the socket model and the distribution box model according to one embodiment;
FIG. 13A is a first effect diagram of a pipeline layout model of an object to be pipeline laid out in an embodiment;
FIG. 13B is a second effect diagram of a pipeline layout model of an object to be pipeline laid out according to an embodiment;
FIG. 14 is a first block diagram of an apparatus for generating a pipeline arrangement model in one embodiment;
FIG. 15 is a second block diagram of the apparatus for generating a pipeline arrangement model in one embodiment; .
Fig. 16 is an internal structural view of a computer device in one embodiment.
Description of the embodiments
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, in the method for generating the pipeline arrangement model provided in the present application, the execution body may be a generating device of the pipeline arrangement model, and the generating device of the pipeline arrangement model may be implemented in a manner of software, hardware, or a combination of software and hardware to form part or all of the computer device. Alternatively, the computer device may be an electronic device with a data processing function, such as a personal computer (Personal Computer, PC), a portable device, a server, or an embedded device, an intelligent device, or the like, and the specific form of the computer device is not limited in this embodiment. The execution subject of the method embodiments described below will be described by taking a computer device as an example.
In one embodiment, as shown in fig. 1, there is provided a method for generating a pipeline arrangement model, including the steps of:
step S11, basic attribute information of an object to be arranged in a pipeline is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be arranged in the pipeline, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model.
Specifically, the computer device may traverse the family file of the object to be pipelined through the tool component to obtain the basic attribute information of the object to be pipelined, where the object to be pipelined may be one layer of a building model or may be all layers of the building model, which is not limited herein, and a plan view of a one-layer room model of the object to be pipelined may be as shown in fig. 2A. And, the characteristic information of the target model in the object to be pipelined comprises: the method comprises the steps of obtaining name information, enclosure line information and elevation information of room models, position information and affiliated elevation information of distribution box models, thickness information of floor models, position information and affiliated elevation information of lamp models, position information and affiliated elevation information of socket models and affiliated room information of socket models, and accordingly obtaining the number of the room models included in each floor, the positions of all the lamp models in each room model and the positions of all the socket models.
Step S12, a room model center point corresponding to the room model is obtained, and a pipeline arrangement model of the object to be pipeline arranged is generated according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
Specifically, when the computer equipment acquires a room model center point corresponding to the acquired room model, each room model in each floor corresponding to the object to be pipeline arrangement can be acquired first, a minimum circumscribed rectangle formed by the surrounding lines of each room model is determined, and then a diagonal intersection point of the minimum circumscribed rectangle is taken as the room model center point of the room model center point; when a floor includes 4 room models, the center point of the room model as shown in fig. 2B can be determined. The room model center point may be used to generate a path connection between the utility model and the room model center point and then to generate a path connection between the room model center point and the utility model when the light fixture model or the receptacle model and the utility model are not in the same room model.
According to the method for generating the pipeline arrangement model, the basic attribute information of the object to be distributed is obtained, and the basic attribute information comprises the characteristic information of the target model in the object to be distributed, and the target model comprises the room model, the distribution box model, the floor model, the lamp model and the socket model, so that when the room model central point corresponding to the room model is obtained, the pipeline arrangement model of the object to be distributed can be automatically generated according to the preset connection rule of the distribution box model, the connection rule of the distribution box model and the room model central point, the connection rule of the lamp model and the distribution box model and the connection rule of the socket model and the distribution box model according to the basic attribute information, and the problem that in a traditional method, a designer is required to manually draw pipeline connection between each drainage terminal and the transverse pipe in a house and pipeline model between the transverse pipe and the vertical pipe in the house is low in generation efficiency is avoided, time cost is greatly saved, and generation efficiency of the pipeline arrangement model in the house is improved.
In one embodiment, when the number of floors included in the object to be pipelined is m, step S12 may include:
And generating a first pipeline arrangement path between the distribution box models of adjacent floors according to the characteristic information of the distribution box models in the basic attribute information and the connection rule of the distribution box models in the preset generation rule.
Specifically, when the computer device determines that the number of floors included in the object to be pipelined is m, the first pipeline arranging path may be automatically generated according to the flowchart shown in fig. 3, that is, the process of generating the first pipeline arranging path includes the following substeps:
s121, determining the position of the ith distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information when m is more than or equal to 2; where i' =1, 2, … …, m.
Specifically, when the object to be pipelined includes m floors, the computer device may determine a position of a distribution box model of each floor according to the basic attribute information, where the position of the distribution box model may represent a target position of the distribution box model in a target room model in a corresponding floor, the target room model may include one of the room models in the corresponding floor, and the target position may include a coordinate position of the distribution box model in the target room model.
Step S122, the i 'th distribution box model position is moved upwards by a preset distance along the z-axis to obtain a moving point A, and the i' +1 th distribution box model position is moved downwards by a preset distance along the z-axis to obtain a moving point B.
Specifically, as shown in fig. 4A, the computer device may move the i 'th block model position (corresponding to the block a in fig. 4A) up a preset distance along the z-axis to obtain the moving point a, or may move the i' +1 th block model position (corresponding to the block B in fig. 4A) down a preset distance along the z-axis to obtain the moving point B. Alternatively, the preset distance may be 300mm.
In the actual processing procedure, the process of determining the moving point a and the moving point B by the computer device may be performed simultaneously, or may be performed sequentially, for example, the ith 'position of the block terminal model and the (i' +1) th position of the block terminal model may be moved first, or the ith '+1 th position of the block terminal model may be moved first and the ith' position of the block terminal model may be moved later, which is not limited herein.
Step S123, a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model are respectively obtained, and a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness are obtained.
Specifically, as shown in fig. 4A, when determining the moving point a and the moving point B, the computer device may acquire a wall midpoint a 'and a wall midpoint B' obtained after the moving point a and the moving point B are projected onto the corresponding wall model center line, which may be the wall center line of the wall as shown in fig. 4B.
Then, the computer device may further obtain a projection point a″ and a projection point b″ obtained after the wall midpoint a 'and the wall midpoint B' are respectively projected to the floor model of which the elevation is lowered by the set thickness. Optionally, the set thickness is half the thickness of the floor slab model.
And S124, determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '', and the shortest line segment as the pipeline arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model.
Specifically, when determining the projection point a″ and the projection point B', the computer device may acquire all paths between the projection point a″ and the projection point b″ according to the process shown in fig. 4C, and since the projection point a″ and the projection point b″ obtained at this time are not in the same room model although at the same height, it may be that the projection point a″ and the projection point b″ are connected along the corresponding room model surrounding line (corresponding to the room surrounding line in fig. 4C), and the wall line in fig. 4C represents the wall model center line; and, the shortest path connecting the projection point a″ and the projection point b″ is taken as the shortest line segment between the projection point a″ and the projection point b″ and then stored as the line arrangement path of the i 'th distribution box model and the i' +1 th distribution box model, and it is possible to identify whether or not a junction box (corresponding to the cassette in fig. 4A) needs to be set at the end points, which may include the moving point a, the wall midpoint a ', the moving point B, the wall midpoint B', the intersection point of the connection point a and the projection point b″, and the projection point B '(corresponding to the black point in fig. 4A), which are the line segments between the i' th distribution box model and the moving point a ', the line segment between the wall midpoint a' and the projection point B ', the line segment between the i' +1 th distribution box model, and the shortest line segment between the i 'th distribution box model, and the projection point B', and the solid point in fig. 4A.
And step S125, adding 1 to the value of i ', and repeating the steps of executing the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths.
Specifically, the computer device may obtain the pipeline arrangement paths between the adjacent inter-floor distribution box models at the same time, or may sequentially obtain the pipeline arrangement paths between the adjacent inter-floor distribution box models until the pipeline arrangement paths from the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths from the m-1 st distribution box model and the m-th distribution box model are obtained, so as to determine the first pipeline arrangement path.
When the computer device determines that the number of floors included in the object to be pipelined is m and the central point of the room model is obtained, step S12 may further include:
and generating a second pipeline arrangement path between the distribution box model and the room model center point according to the characteristic information of the distribution box model in the basic attribute information and the connection rule of the distribution box model and the room model center point in the preset generation rule.
Specifically, when the computer device determines that the number of floors included in the object to be pipelined is m, the generating process of the second pipeline routing path may be as shown in fig. 5, and includes the following substeps:
step S201, according to the characteristic information of the distribution box model in the basic attribute information, acquiring the position information of the i 'distribution box model set on the i' th floor and the maximum closed area formed by the enclosing lines of all room models in the i 'th floor, and taking each line segment forming the maximum closed area as the i' th floor outer wall line.
Specifically, the computer device may obtain, according to the feature information of the distribution box model in the basic attribute information, location information of the distribution box model set corresponding to each floor, and may determine an outer wall line of each floor by obtaining a maximum closed area formed by surrounding lines of all room models included in each floor; wherein, the maximum closed area can be a closed area formed by the central line of the wall model of the corresponding floor.
Step S202, when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness above the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance towards the direction in the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor.
Specifically, when the computer equipment connects the ith distribution box model and the room model central point, firstly judging whether the room model central point is in the ith floor outer wall line or not, and if the room model central point is not in the ith floor outer wall line, not generating a connection path; if the central point of the room model is in the i ' th floor outer wall line, further judging whether the central point of the room model and the i ' th distribution box model are in the same target room model, when the central point of the room model and the i ' th distribution box model are in the same target room model, the computer equipment can determine that the i ' th distribution box model and the lamp models are in the same target room model, and at the moment, a connecting path can be directly and automatically generated between the i ' th distribution box model and each lamp model in the target room model; wherein the target model is one of the room models in the i' th floor.
When the computer equipment determines that the center point of the room model and the i 'th distribution box model are not in the same target room model, performing path generation by referring to a connection schematic diagram shown in fig. 6A and 6B, moving the i' th distribution box model position (corresponding to the distribution box position in fig. 6A) upwards by a set distance along the z-axis to obtain a point 1 in fig. 6A, projecting the point 1 onto the center line of a wall model (corresponding to the wall center line in fig. 6A), projecting the obtained projection point (corresponding to the point 2 in fig. 6A) onto a floor model with a layer of elevation at the target room model being lowered by a set thickness to obtain a target projection point (corresponding to the point 3 in fig. 6A), moving the target projection point along the vertical wall model by the set distance in the direction corresponding to the room model to obtain a target movement point (corresponding to the point 4 in fig. 6A), and projecting the target movement point onto the elevation of the target room model to obtain a projection point P (corresponding to the point 5 in fig. 6A); the point 5 obtained at this time is at the same height as the center point of the room model, and the line segments between the point 1 and the point 2, the point 2 and the point 3, and the point 3 and the point 4 are saved. Alternatively, the set height may be half the thickness of the floor model and the set distance may be 300mm.
And step S203, a first coordinate system is established by taking the long side direction of the smallest circumscribed rectangle formed by all room models in the ith floor as an X axis and the short side direction of the smallest circumscribed rectangle as a Y axis.
Specifically, when the computer device obtains the projection point P (i.e., the point 5) according to the process shown in fig. 6A, the computer device may further establish the first coordinate system according to the process shown in fig. 6B, with the point 5 as the origin, the long side direction of the smallest circumscribed rectangle formed by all room models in the i' th floor as the X axis, and the short side direction of the smallest circumscribed rectangle as the Y axis.
Step S204, obtaining a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a reference line.
Specifically, the computer device may acquire, in a first coordinate system as shown in fig. 6B, a target distance from a center point of a room model to the target room model enclosing line, the target distance may be a line closest to the projection point P (corresponding to the point 5 in fig. 6A) in the target room model, the line may be a collinear line among a plurality of room model enclosing lines corresponding to all room models in the i' th floor, and then use the target distance as the reference line (corresponding to the line a in fig. 6B).
Step S205, obtaining an intersection P ' of the reference line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection P ' deviates from a set distance.
Specifically, when determining the reference line, the computer apparatus may acquire an intersection P ' (corresponding to P in fig. 6B) of the reference line (corresponding to a straight line a in fig. 6B) and the i ' th floor outer wall line (corresponding to an outer wall line in fig. 6B) as in the process shown in fig. 6B, and then determine that the intersection P ' (corresponding to P in fig. 6B) deviates from a set distance (corresponding to 300mm in fig. 6B) to obtain a target point P (corresponding to P in fig. 6B).
In step S206, when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the center point of the room model is greater than the Y-axis coordinate of the projection point P, determining that the projection point P obtains an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and offsetting the intersection point D by a set distance to obtain an intersection point a.
Specifically, as shown in fig. 6B, the computer device uses the determined projection point P (corresponding to the point 5 in fig. 6A) as a starting point, compares the Y-axis coordinate sizes of the point 5 and the central point of the room model (the starting direction is the Y-axis direction), when the Y-axis coordinate of the central point of the room model is greater than the Y-axis coordinate of the point 5, determines to obtain an intersection point D (corresponding to the intersection point a in fig. 6B) closest to the i-th floor outer wall line with the point 5 along the Y-axis positive direction, and when the Y-axis coordinate of the central point of the room model is less than the Y-axis coordinate of the point 5, determines to obtain an intersection point closest to the i-th floor outer wall line with the point 5 along the Y-axis negative direction. When the intersection point D obtained by the computer device is the intersection point a in fig. 6B, the intersection point a may be offset from the wall model center line by a set distance to obtain an intersection point a (corresponding to a in fig. 6B). Alternatively, the set distance may be 300mm.
In step S207, when the target point P is on the line segment between the projection point P and the intersection point a, a path formed by connecting the projection point P, the target point P, and the room model center point is taken as a path between the i' th distribution box model and the room model center point.
Specifically, as shown in fig. 6B, when the computer device determines that the target point P is on a line segment between the projection point P (corresponding to the point 5 in fig. 6A) and the intersection point a, a path obtained by connecting the points 5, P and the center point of the room model is directly taken as a path between the i' th distribution box model and the center point of the room model.
In step S208, when the target point P is not on the line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is greater than the X-axis coordinate of the central point of the room model, determining that the intersection point B closest to the i' th floor outer wall line is acquired along the X-axis negative direction with the intersection point a as the starting point, and shifting the intersection point B by a set distance to obtain the intersection point B.
Specifically, as shown in fig. 6B, if the computer device determines that the target point P is not on a line segment between the projection point P (corresponding to the point 5 in fig. 6A) and the intersection point a, the X-axis coordinates of the intersection point a and the central point of the room model may be compared with each other with the intersection point a as a starting point, when the X-axis coordinates of the intersection point a are greater than those of the central point of the room model, the intersection point B closest to the i 'th floor outer wall line is determined to be acquired along the X-axis negative direction with the intersection point a as a starting point, when the X-axis coordinates of the intersection point a are less than those of the central point of the room model, the intersection point closest to the i' th floor outer wall line is determined to be acquired along the X-axis positive direction with the intersection point a as a starting point, and then the intersection point B is offset by a set distance to obtain the intersection point B. Alternatively, the set distance may be 300mm.
In step S209, when the intersection b is taken as a starting point and the Y-axis coordinate of the intersection b is greater than the Y-axis coordinate of the central point of the room model, determining that the intersection C closest to the i' th floor outer wall line is acquired along the Y-axis negative direction with the intersection b as a starting point, and shifting the intersection C by a set distance to obtain the intersection C.
Specifically, as shown in fig. 6B, when determining the intersection B, the computer device may determine the size of the Y-axis coordinate of the intersection B and the central point of the room model again using the intersection B as a starting point, when determining that the Y-axis coordinate of the intersection B is greater than the Y-axis coordinate of the central point of the room model, may determine that the intersection C closest to the i 'th floor outer wall line is obtained along the Y-axis negative direction using the intersection B as a starting point, and when determining that the Y-axis coordinate of the intersection B is less than the Y-axis coordinate of the central point of the room model, may determine that the intersection closest to the i' th floor outer wall line is obtained along the Y-axis positive direction using the intersection B as a starting point, and then offset the intersection C by a set distance to obtain the intersection C. Alternatively, the set distance may be 300mm.
And step S2010, continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to obtain the intersection point I, connecting the projection point P, the intersection point a, the intersection point b, … …, the intersection point I, the target point P and the central point of the room model to obtain a first path, and moving the first path along the Z axis to a second path obtained when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model.
Specifically, as shown in fig. 6B, the computer apparatus may continue to acquire a new intersection point by alternating the Y axis and the X axis based on the setting of the vertical connection of the pipeline model until the acquired new intersection point is an intersection point I nearest to the reference line (corresponding to the straight line a in fig. 6B), shift the intersection point I by a set distance to obtain an intersection point I (corresponding to the intersection point 1 in fig. 6B), then move the first path obtained after connecting point 5, intersection point a, intersection point B, … …, intersection point 1, target point P, the center point of the room model along the Z axis to obtain a second path when the projection point P in the first path coincides with the target movement point (corresponding to the point 4 in fig. 6A), and use the second path as a path between the I' th distribution box and the center point of the room model.
And step S2011, adding 1 to the value of i ', and repeating the step of executing the path between the i' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m distribution box and the room model central point are obtained as the second pipeline arrangement path.
Specifically, the computer device may execute the step of the path between the i 'th block terminal model and the room model center point at the same time, or may sequentially execute the step of the path between the i' th block terminal model and the room model center point until the second pipeline arrangement path is obtained.
When the computer device determines that the number of floors included in the object to be arranged in the pipeline is m, and obtains the feature information of the lamp model and the feature information of the distribution box model in each floor, step S12 may further include:
and generating a third pipeline arrangement path between the lamp model and the distribution box model according to the characteristic information of the lamp model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the lamp model and the distribution box model in the preset generation rule.
Specifically, when the computer device determines that the number of floors included in the object to be pipelined is m, the third pipeline arranging path may be automatically generated according to the flowchart shown in fig. 7, that is, the process of generating the third pipeline arranging path includes the following substeps:
step S301, obtaining the position information of the ith ' distribution box model set on the ith ' floor and the position of the lamp model in each room model on the ith ' floor according to the feature information of the lamp model and the feature information of the distribution box model in the basic attribute information.
Specifically, the computer device may determine, according to the basic attribute information of the object to be pipelined, the location information of the distribution box model in each floor, and the locations of the luminaire models of all luminaire models in each floor; the lamp model position can represent a specific coordinate position in a room model to which the lamp model belongs.
And S302, when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an origin and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q and the i-th lamp model are positioned on the plane of the second coordinate system.
Specifically, when the computer device determines that the lamp model and the distribution box model belong to the same room model, if the computer device determines that the j-th lamp model and the i-th distribution box model are both in the k-th room model, the computer device may set up a second coordinate system with the projection point P (i.e. the point 5 in fig. 6A) determined in the foregoing embodiment as an origin, the long side of the circumscribed rectangle of the k-th room model as a horizontal axis (corresponding to the X axis in fig. 8A), and the short side as a vertical axis (corresponding to the Y axis in fig. 8A), and if the k-th room model includes the lamp model 1 and the lamp model 2, as shown in fig. 8B, the projection point of the lamp model 1 (corresponding to the lamp 1 projection point in fig. 8B) and the projection point of the lamp model 2 (corresponding to the lamp 2 projection point in fig. 8B) may be acquired first. And then determining the nearest distance to the projection point of the lamp 1 in the kth room model enclosing line as a straight line A1 in the second coordinate system, and determining the nearest distance to the projection point of the lamp 2 in the kth room model enclosing line as a straight line A2 in the second coordinate system.
When the X-axis coordinate of the projection point of the lamp 1 is determined to be larger than the X-axis coordinate of the point 5 by taking the projection point of the lamp 1 as a starting point, determining that the projection point of the lamp 1 acquires an intersection point P1 closest to a surrounding line of a kth room model along the X-axis negative direction, and obtaining the intersection point P1 after shifting the intersection point P1 by a set distance, at the moment, moving a connecting path between the points 5 and P1 and the lamp model 1 along the Z axis to a path obtained when the connecting path coincides with the point 4, and taking the connecting path as a connecting path between the lamp model 1 and an ith distribution box model.
When the point 5 is used as a starting point to determine that the Y-axis coordinate of the point 5 is smaller than the Y-axis coordinate of the projection point of the lamp 2, determining that the point 5 acquires an intersection point A2 closest to the projection point of the lamp 2 along the Y-axis negative direction, moving the intersection point A2 along the Y-axis negative direction to obtain an intersection point A2, when the X-axis coordinate of the intersection point A2 is smaller than the X-axis coordinate of the projection point of the lamp 2 with the point A2 as a starting point, determining that the intersection point A2 acquires an intersection point I2 closest to the projection point of the lamp 2 along the X-axis positive direction, moving the intersection point I2 to obtain an intersection point l2, then determining that the Y-axis coordinate of the intersection point l2 is larger than the Y-axis coordinate of the projection point of the lamp 2 with the point l2 as a starting point, acquiring an intersection point P2 along the Y-axis negative direction, deviating the intersection point P2 from a preset distance, obtaining an intersection point P2, and taking a connection path between the point 5, the intersection point A2, the intersection point P2 and the projection point of the lamp 2 as a path to coincide with a 4 th module when the path is moved along the Z axis to the Z-axis to the power distribution box. Optionally, the preset distance is 300mm.
And S303, when the j-th lamp model and the i-th distribution box model are not in the k-th room model, moving the center point of the room model downwards by a set distance to generate a first center point, establishing a third coordinate system X ' O ' Y ' by taking the first center point as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model as transverse shafts and longitudinal shafts, and determining a j-th projection point obtained after the j-th lamp model is projected to a plane where the third coordinate system is located.
Specifically, when the computer device determines that the jth lamp model and the ith distribution box model are not in the kth room model, as shown in fig. 9A, the center point of the room model may be moved downward by a set distance to generate a first center point (corresponding to the center point 0 in fig. 9A), a third coordinate system X ' O ' Y ' is established by using the first center point as an origin and using the long sides and the short sides of the circumscribed rectangle of the kth room model as horizontal axes and vertical axes (corresponding to X0Y in fig. 9A), and when the kth room model includes 3 lamp models as shown in fig. 9B, the jth projection point obtained after the determined jth lamp model is projected onto the plane where the third coordinate system is located may be the lamp projection point 1, the lamp projection point 2, and the lamp projection point 3 shown in fig. 9B.
And S304, when two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are respectively in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to be a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model.
Specifically, as shown in fig. 9A, when the jth luminaire model position is the lamp 1 shown in fig. 9B and the jth projection point is the lamp projection point 1, two paths from the lamp projection point 1 to the first center point (corresponding to the center point 0 in fig. 9A) along the X ' axis (corresponding to the X axis in fig. 9A) and the Y ' axis (corresponding to the Y axis in fig. 9A) are all within the kth room model enclosure line, one of the two paths may be arbitrarily selected and stored, and the path between the selected one path and the lamp projection point 1 and the luminaire model 1 is taken as the path of the luminaire model 1 and the ith ' distribution box model.
And S305, when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model.
Specifically, if the two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are not in the kth room model enclosing line, when the jth projection point is taken as a starting point and the starting direction is taken as the Y 'axis direction, comparing the Y' coordinates of the jth projection point and the center point of the room model, if the Y 'axis coordinates of the center point of the room model are greater than the Y' axis coordinates of the jth projection point, determining to acquire an intersection point A 'closest to the kth room model enclosing line along the Y' axis positive direction by the jth projection point, and shifting the intersection point A 'by a set distance to obtain an intersection point a'.
And comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' coordinate of the intersection point a ' is larger than the X ' coordinate of the central point of the room model, determining to acquire an intersection point B ' closest to the enclosing line of the kth room model along the X ' negative direction by taking the intersection point a ' as a starting point, and obtaining the intersection point B ' after the intersection point B ' is offset by a set distance.
Determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' which is closest to a k-th room model enclosing line along a Y ' axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' after the intersection point C ' is offset by a set distance.
Continuing to alternately execute the step of acquiring the intersection closest to the kth room model enclosing line to acquire a new intersection, and when the currently acquired intersection is the intersection I ' closest to the set reference line, shifting the intersection I ' by a set distance to acquire an intersection I ', taking the j-th projection point, the intersection a ', the intersection b ', … …, the intersection I ', the first center point and the room model center point as a fourth path between the j-th projection point and the first center point, and then moving the path between the fourth path and the j-th projection point and the j-th lamp model position along the Z axis to a path acquired when the path coincides with a target moving point (corresponding to the point 4 in fig. 6A) as a path between the j-th lamp model and the I ' -th distribution box model; the set datum line is a line closest to the center point of the room model in the kth room model enclosing line.
Step S306, adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until the paths from the 1 st lamp model and the ith distribution model to the paths from the J lamp model and the ith distribution box model are obtained and used as the paths from the J lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model.
Specifically, as shown in he 9B, when the lamp 1, the lamp 2, and the lamp 3 are included in the kth room model, the path of the lamp 2 and the ith 'power distribution model may be further connected with the lamp projection point 2 as a start point when the path of the lamp 1 and the ith' power distribution model is connected until the ith 'power distribution model is connected with the lamp 1, the lamp 2, and the lamp 3 included in the kth room model, and when the ith' power distribution model is connected with the lamp 1, the lamp 2, and the lamp 3 included in the kth room model, the effect diagram as shown in fig. 9A and 9B may be obtained.
Step S307, the value of K is increased by 1, the step of obtaining the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information is repeatedly executed until the paths from the J lamp models and the ith distribution box in the 1 st room model to the paths from the J lamp models and the ith distribution box in the K room model are obtained, and the paths are used as the paths of all the lamp models and the ith distribution box in the ith floor; where K represents the number of room models included in the i' th floor.
Specifically, the computer device may generate paths of all the lamp models in each room in the i 'th floor and the i' th distribution box at the same time, or may sequentially generate paths of each lamp model in each room in the i 'th floor and the i' th distribution box until all the lamp models in the i 'th floor are connected with the i' th distribution box model.
And step S308, adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the lamp model in each room model in the i' th floor according to the basic attribute information until the paths from all the lamp models in the 1 st floor to the 1 st distribution box to all the lamp models in the m th floor to the m distribution box are obtained and used as the third pipeline arrangement path.
Specifically, the computer device may generate paths between all the light fixture models included in each floor and the distribution box models set in the corresponding floor at the same time, or may sequentially generate paths between all the light fixture models included in each floor and the distribution box models set in the corresponding floor until all the light fixture models of each floor in the m floors are connected with the distribution box models of the corresponding floor, thereby generating the third pipeline arrangement path.
When the computer device determines that the number of floors included in the object to be pipelined is m and obtains the feature information of the socket model and the feature information of the distribution box model in each floor, step S12 may further include:
and generating a fourth pipeline arrangement path between the socket model and the distribution box model according to the characteristic information of the socket model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the socket model and the distribution box model in the preset generation rule.
Specifically, when the computer device determines that the number of floors included in the object to be pipelined is m, the fourth pipeline arranging path may be automatically generated according to the flowchart shown in fig. 10, that is, the process of generating the fourth pipeline arranging path includes the following substeps:
and S401, acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information.
Specifically, the computer device may determine, according to the basic attribute information of the object to be pipelined, the location information of the distribution box model in each floor, and the locations of the light fixture models of all the socket models in each floor; wherein the socket model location may characterize a specific coordinate location in a room model to which the socket model belongs.
Step S402, the i 'th distribution box model position is moved downwards for a set distance to obtain a moving point i', the moving point i 'is projected to the center line of the wall model to obtain a projection point i', the projection point i 'is projected to a floor model with the set thickness at the elevation of the room model, the lowering point i' is obtained, and the lowering point i 'is moved along the direction perpendicular to the wall model and into the room model for a set distance to obtain a target moving point i'.
Specifically, as shown in fig. 11A, the computer device may move the i 'th distribution box model downward by a set distance to obtain a moving point i' (corresponding to a point 1 in fig. 11A), project the moving point i 'onto a wall model center line to obtain a projection point i' (corresponding to a point 2 in fig. 11A), project the projection point i 'onto a floor model with a set thickness at an elevation where the room model is located to obtain a drop point i' (corresponding to a point 3 in fig. 11A), move the drop point i 'by a set distance along a direction perpendicular to the wall model into the room model to obtain a target moving point i' (corresponding to a point 4 in fig. 11A), and save line segments between the moving point i 'and the projection point i', the drop point i 'and the target moving point i'; the thickness of the floor model and the height of the point 4 may be shown in fig. 11B, and in fig. 11B, the height plane of the point 4 and half of the thickness of the floor model are the same.
And S403, projecting the point obtained after the position of the f socket model is moved to the center line of the wall model to the plane with the height of the target moving point i' to obtain a target projection point f, and taking the center line of the wall model where the f socket model is positioned as an f datum line.
Specifically, the computer device may move the f-th socket model position to the wall model center line of the room model where the socket model position is located to obtain a moving point (corresponding to P1 in fig. 12A), then project the moving point to a plane at the height of the target moving point i' (corresponding to the point 4 in fig. 11A) to obtain the target projection point f (corresponding to P2 in fig. 12A), and finally use the wall model center line where the f-th socket model is located as the f-th reference line (corresponding to the line a in fig. 12A).
In step S404, a third coordinate system is established with the target moving point i' as the origin and the long side direction and the short side of the smallest circumscribed rectangle composed of all room models of the ith floor as the horizontal axis and the vertical axis.
Specifically, as shown in fig. 12A, the computer apparatus may establish a third coordinate system with the target movement point i' (corresponding to the point 4 in fig. 11A) as the origin, and with the long-side direction and the short-side direction of the smallest circumscribed rectangle composed of all room models of the ith floor as the horizontal axis (corresponding to the X-axis in fig. 12A) and the vertical axis (corresponding to the Y-axis in fig. 12A).
In step S405, when it is determined that the y-axis coordinate of the center point of the room model is larger than the y-axis coordinate of the target moving point i ' with the target moving point i ' as the starting point, the intersection closest to the wall model center line of the i ' th floor is acquired along the y-axis positive direction, and the intersection a″ is designated as the intersection a″ and the point obtained by shifting the intersection a″ by the set distance is designated as the intersection a″.
Specifically, when determining the starting direction of the target moving point i', the computer device may take the direction with the small absolute value of the x-axis coordinate and the y-axis coordinate of the target projection point (corresponding to P2 in fig. 12A) as the starting direction, for example, when the coordinates of the target projection point are (-5, 2), then the starting direction is the y-axis positive direction.
When it is determined that the start direction is the y-axis positive direction, as shown in fig. 12B, the computer device determines that the y-axis coordinate size of the room model center point and the target moving point i 'is determined when it is determined that the y-axis coordinate of the room model center point is greater than the y-axis coordinate of the target moving point i', an intersection closest to the wall model center line of the i 'th floor may be acquired along the y-axis positive direction as an intersection a″ (corresponding to an intersection a in fig. 12B), and when it is determined that the y-axis coordinate of the room model center point is less than the y-axis coordinate of the target moving point i', the target moving point i 'may be acquired along the y-axis negative direction as an intersection closest to the wall model center line of the i' th floor; then, the point at which the intersection a″ is shifted by the set distance is referred to as an intersection a″ (corresponding to the intersection a in fig. 12B).
In step S406, when the x-axis coordinate of the intersection point a '' is determined to be larger than the x-axis coordinate of the center point of the room model, the intersection point B '' closest to the wall model center line of the ith floor is acquired along the x-axis negative direction from the intersection point a '' as the starting point, and the intersection point B '' is deviated from the set distance to obtain the intersection point B ''.
Specifically, as shown in fig. 12B, when the intersection a″ is determined (corresponding to the intersection a in fig. 12B), the computer device may continue to determine the size of the intersection a″ and the x-axis coordinate larger than the center point of the room model with the intersection a″ as the start point, and when the x-axis coordinate of the intersection a″ is larger than the x-axis coordinate of the center point of the room model, may acquire the intersection b″ closest to the wall model center line of the i 'th floor along the x-axis negative direction with the intersection a″ as the start point (corresponding to the intersection B in fig. 12B), and when the x-axis coordinate of the intersection a″ is smaller than the x-axis coordinate of the center point of the room model, may acquire the intersection closest to the wall model center line of the i' th floor along the x-axis positive direction with the intersection a″ as the start point; then, the intersection b″ is deviated from the set distance to obtain an intersection b″ (corresponding to the intersection B in fig. 12B). Alternatively, the set distance may be 300mm.
In step S407, when it is determined that the y-axis coordinate of the intersection b″ is larger than the y-axis coordinate of the center point of the room model, the intersection c″ closest to the wall model center line of the i' th floor is obtained in the negative y-axis direction from the intersection b″ and the intersection c″ is deviated from the set distance to obtain the intersection c″.
Specifically, as shown in fig. 12B, when determining the intersection b″ (corresponding to the intersection B in fig. 12B), the computer apparatus may continue to determine the y-axis coordinate size of the intersection b″ and the room model center point with the intersection b″ as a starting point, and when the y-axis coordinate of the intersection b″ is greater than the y-axis coordinate of the room model center point, may acquire an intersection c″ closest to the wall model center line of the i' th floor (corresponding to the intersection C in fig. 12B) along the y-axis negative direction with the intersection b″ as a starting point; when the y-axis coordinate of the intersection b″ is smaller than the y-axis coordinate of the room model center point, an intersection closest to the wall model center line of the i' th floor may be acquired in the y-axis positive direction with the intersection b″ as a starting point (corresponding to the intersection B in fig. 12B); then, the intersection c″ is deviated from the set distance to obtain an intersection c″ (corresponding to the intersection C in fig. 12B); wherein the X-axis coordinates and the Y-axis coordinates correspond to the X-axis coordinates and the Y-axis coordinates in fig. 12A and 12B.
And step S408, the step of acquiring the intersection point closest to the wall model center line of the ith floor is continuously and alternately executed to acquire a new intersection point, and the line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model is taken as the path between the ith socket model and the ith distribution box model until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line.
Specifically, the computer apparatus may continue to acquire a new intersection point by alternating the y-axis and the x-axis based on the setting of the vertical connection of the electric line model until the acquired new intersection point is an intersection point i″ closest to the f-th reference line (corresponding to the intersection point I in fig. 12B), at which time a line segment connecting the target moving point I ', the intersection point a″, the intersection points b″, … …, the intersection point i″, the target projection point f, the f-th outlet model (corresponding to the point 4, the intersection point a, the intersection points B, … …, the intersection point I, P, the outlet in fig. 12B) may be taken as a path between the f-th outlet model and the I' th distribution box model.
Step S409, adding 1 to the value of F, and repeatedly executing the steps of obtaining the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of jack models included in the i' th floor.
Specifically, the computer device may acquire connection segments between all the jack models in 1 floor and the distribution box models set in the floor at the same time, or may sequentially acquire connection segments between each jack model in each room in the floor and the distribution box models set in the floor until paths of all the jack models in the floor and the distribution box models in the floor are obtained.
And step S4010, adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' power distribution box model set on the i 'floor and the position of the socket model in each room model on the i' floor according to the characteristic information of the socket model and the characteristic information of the power distribution box model in the basic attribute information until paths from all the socket models and the 1 st power distribution box model on the 1 st floor to all the socket models and the m power distribution box model on the m floor are obtained, and taking the paths as the fourth pipeline arrangement path.
Specifically, the computer device may generate connection line segments between all the socket models in each floor and the distribution box models set in the corresponding floor at the same time, or may sequentially obtain connection line segments between the socket models included in each floor and the distribution boxes set in the corresponding floor until connection between the distribution box models of each floor in the m floors and all the socket models in the floor is completed, so as to obtain the fourth pipeline routing path.
And determining a pipeline arrangement model of the object to be pipeline arranged according to the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path.
Specifically, when the computer device obtains at least one pipeline arrangement path of the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, the computer device may delete the repeated line segments in the obtained at least one pipeline arrangement path, and generate each connected electric tube according to preset electric tube attribute information of all the remaining line segments, so as to generate a pipeline arrangement model of the object to be pipeline arranged; the method comprises the steps that when each electric tube is generated, a junction box is placed when an inflection point or an intersection point is detected, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube; the effect diagram of the pipeline arrangement model of the object to be pipeline arranged, which is obtained by the computer equipment, can be shown in fig. 13A and 13B.
In this embodiment, the computer device obtains feature information of the distribution box model and a connection rule of the distribution box model in the preset generation rule through basic attribute information of an object to be subjected to pipeline arrangement, and generates a first pipeline arrangement path between the distribution box models of adjacent floors; the characteristic information of the distribution box model and the second pipeline arrangement path between the distribution box model and the room model center point can be automatically generated when the characteristic information of the distribution box model and the connection rule of the distribution box model and the room model center point in the preset generation rule are obtained from the attribute information, the characteristic information of the lamp model, the characteristic information of the distribution box model and the third pipeline arrangement path between the lamp model and the distribution box model can be generated when the connection rule of the lamp model and the distribution box model in the preset generation rule is obtained from the basic attribute information, the characteristic information of the socket model and the fourth pipeline arrangement path between the socket model and the distribution box model in the preset generation rule is obtained from the characteristic information of the socket model and the connection rule of the distribution box model in the preset generation rule, so that the problem that the pipeline arrangement path is generated in a traditional method, which is required to be manually drawn by a designer, is solved, the problem that the pipeline arrangement efficiency is low due to the connection between each drainage terminal and a transverse pipe and the pipeline in a traditional method is greatly improved is solved, and the cost of the house is greatly saved; further, when the computer device determines that at least one of the first pipeline routing path, the second pipeline routing path, the third pipeline routing path and/or the fourth pipeline routing path is obtained, junction box setting can be performed on the intersection point and the inflection point in the obtained at least one pipeline routing path, so that accuracy and reliability of the obtained pipeline routing path are higher.
For a clearer description of the technical solutions of the embodiments of the present application, a specific embodiment is described herein, including:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model; the feature information of the target model in the object to be pipeline arranged comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
Acquiring each room model in each floor corresponding to the object to be arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonal lines of the minimum circumscribed rectangle as the center point of the room model;
when m is more than or equal to 2, determining the position of the ith 'distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information; wherein i' =1, 2, … …, m;
The ith 'distribution box model position is moved upwards by a preset distance along the z axis to obtain a moving point A, and the ith' +1 distribution box model position is moved downwards by a preset distance along the z axis to obtain a moving point B;
respectively obtaining a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and obtaining a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness;
determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '' and the shortest line segment as the line arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model;
and adding 1 to the value of i ', and repeatedly executing the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths. And/or
Acquiring the position information of an ith distribution box model arranged on an ith floor and a maximum closed area formed by the enclosing lines of all room models in the ith floor according to the characteristic information of the distribution box model in the basic attribute information, and taking each line segment forming the maximum closed area as an ith floor outer wall line;
when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness on the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance along the direction of the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
a first coordinate system is established by taking the long side direction of a minimum circumscribed rectangle formed by all room models in an ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis;
Acquiring a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a datum line;
acquiring an intersection point P ' of the datum line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection point P ' deviates from a set distance;
when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the central point of the room model is larger than the Y-axis coordinate of the projection point P, determining the projection point P to acquire an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and obtaining an intersection point a after the intersection point D is offset by a set distance;
when the target point P is on a line segment between the projection point P and the intersection point a, taking a path formed after the projection point P, the target point P and the central point of the room model are connected as a path between the i' th distribution box model and the central point of the room model;
when the target point P is not on a line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is larger than that of the central point of the room model, determining an intersection point B closest to an i' th floor outer wall line along the X-axis negative direction by taking the intersection point a as a starting point, and obtaining an intersection point B after the intersection point B is offset by a set distance;
When the intersection point b is taken as a starting point and the Y-axis coordinate of the intersection point b is larger than the Y-axis coordinate of the central point of the room model, determining an intersection point C which is closest to the i' th floor outer wall line along the Y-axis negative direction by taking the intersection point b as the starting point, and obtaining the intersection point C after the intersection point C is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to acquire an intersection point I, connecting the projection point P, the intersection point a, the intersection points b, … …, the intersection point I, the target point P and the central point of the room model to acquire a first path, and moving the first path along the Z axis to a second path acquired when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model;
and adding 1 to the value of i ', and repeating the step of executing the path between the i ' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m ' th distribution box and the room model central point are obtained as the second pipeline arrangement path. And/or
According to the characteristic information of the lamp models and the characteristic information of the distribution box models in the basic attribute information, the position information of the i ' distribution box models arranged on the i ' th floor and the positions of the lamp models in each room model in the i ' th floor are obtained;
when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q is positioned on the plane where the j-th lamp model is positioned;
when the jth lamp model and the ith distribution box model are not in the kth room model, downwards moving a central point of the room model by a set distance to generate a first central point, establishing a third coordinate system X ' O ' Y ' by taking the first central point as an original point and taking the long side and the short side of an external rectangle of the kth room model as a transverse axis and a longitudinal axis, and determining a jth projection point obtained after the jth lamp model is projected to a plane where the third coordinate system is located;
When two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model;
when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model;
adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor according to the basic attribute information and the positions of the lamp models in each room model in the ith floor until the paths from the 1 st lamp model and the ith distribution model to the paths from the J th lamp model and the ith distribution box model are obtained and used as paths from the J th lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model;
Adding 1 to the value of K, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until paths from J lamp models and the ith distribution box in the 1 st room model to paths from J lamp models and the ith distribution box in the K room model are obtained, and taking the paths as paths of all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor;
and adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the positions of the lamp models in each room model in the i' th floor according to the basic attribute information until the paths of all the lamp models and the 1 st distribution box in the 1 st floor to all the lamp models and the m distribution box in the m th floor are obtained and used as the third pipeline arrangement path. And/or
Acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model in the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information;
The method comprises the steps of moving an i 'th distribution box model downwards by a set distance to obtain a moving point i', projecting the moving point i 'to a center line of a wall model to obtain a projection point i', projecting the projection point i 'to a floor model with a set thickness at the elevation of a room model, obtaining a descending point i', and moving the descending point i 'by the set distance along a direction perpendicular to the wall model and into the room model to obtain a target moving point i';
the point obtained after the position of the f socket model is moved to the center line of the wall model is projected to the plane with the height of the target moving point i' to obtain a target projection point f, and the center line of the wall model where the f socket model is positioned is used as an f datum line;
a third coordinate system is established by taking a target moving point i' as an origin, and taking the long side direction and the short side of a minimum circumscribed rectangle formed by all room models of an ith floor as a transverse axis and a longitudinal axis;
when the y-axis coordinate of the central point of the room model is larger than the y-axis coordinate of the target moving point i ', the point which is closest to the wall model central line of the ith floor and is acquired by the target moving point i' along the positive y-axis direction is marked as an intersection point A '', and the point which is obtained by offsetting the intersection point A '' by a set distance is marked as an intersection point a '';
When the x-axis coordinate taking the intersection point a ' as a starting point and the x-axis coordinate of the intersection point a ' is larger than the x-axis coordinate of the central point of the room model, acquiring an intersection point B ' ' closest to the wall model central line of the ith floor along the x-axis negative direction by taking the intersection point a ' as the starting point, and obtaining an intersection point B ' ' after deviating the intersection point B ' ' from a set distance;
when the y-axis coordinate taking the intersection point b ' as a starting point and the y-axis coordinate of the intersection point b ' is larger than the y-axis coordinate of the central point of the room model, acquiring an intersection point C ' ' closest to the wall model central line of the ith floor along the y-axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' ' by deviating the intersection point C ' ' from a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the wall model center line of the ith floor to acquire a new intersection point until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line, and taking a line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model as a path between the ith socket model and the ith distribution box model;
adding 1 to the value of F, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of socket models included in the i' th floor;
And adding 1 to the value of i ', repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and taking the paths as the fourth pipeline arrangement path.
The preset path generating operation includes: when the set projection point is taken as a starting point and the starting direction is taken as a Y 'axis direction, comparing the Y' coordinates of the set projection point and the set origin, if the Y 'axis coordinates of the set origin are larger than the Y' axis coordinates of the set projection point, determining to acquire an intersection point A 'closest to a room model enclosing line by the set projection point along the Y' axis positive direction, and obtaining an intersection point a 'after the intersection point A' is deviated by a set distance;
comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance;
Determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path;
the set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line.
Deleting repeated line segments in the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
It should be understood that, although the steps in the flowcharts of fig. 1-13 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in FIGS. 1-13 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 14, there is provided a generating apparatus of a pipeline arrangement model, including: a first acquisition module 11 and a generation module 12, wherein:
the first obtaining module 11 is configured to obtain basic attribute information of an object to be pipelined, where the basic attribute information includes feature information of a target model in the object to be pipelined, and the target model includes a room model, a distribution box model, a floor model, a lamp model, and a socket model.
The generating module 12 is configured to obtain a room model center point corresponding to the room model, and generate a pipeline arrangement model of the object to be pipeline arranged according to the basic attribute information and a preset generating rule; the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model.
The obtaining, by the first obtaining module 11, the feature information of the target model in the object to be pipelined specifically includes: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
The generating module 12 may specifically include: the first generating unit and/or the second generating unit and/or the third generating unit and/or the fourth generating unit and the determining unit.
Specifically, the first generating unit may be configured to generate a first pipeline arrangement path between the block terminal models of adjacent floors according to the feature information of the block terminal model in the basic attribute information and the connection rule of the block terminal model in the preset generating rule.
The second generating unit may be configured to generate a second pipeline arrangement path between the distribution box model and the room model center point according to the feature information of the distribution box model in the basic attribute information and a connection rule between the distribution box model and the room model center point in the preset generating rule.
The third generating unit may be configured to generate a third pipeline arrangement path between the lamp model and the distribution box model according to the feature information of the lamp model in the basic attribute information, the feature information of the distribution box model, and the connection rule between the lamp model and the distribution box model in the preset generating rule.
And the fourth generating unit is used for generating a fourth pipeline arrangement path between the socket model and the distribution box model according to the characteristic information of the socket model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the socket model and the distribution box model in the preset generating rule.
And the determining unit can be used for determining the pipeline arrangement model of the object to be pipeline arranged according to the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path.
The first generating unit may specifically include: the device comprises a first determining subunit, a first acquiring subunit, a second determining subunit and a first generating subunit.
Specifically, when m is more than or equal to 2, the first determining subunit is used for determining the ith 'distribution box model position and the ith' +1th distribution box model position according to the characteristic information of the distribution box model in the basic attribute information; wherein i' =1, 2, … …, m;
the first obtaining subunit can be used for moving the ith distribution box model position upwards by a preset distance along the z-axis to obtain a moving point A, and moving the ith' +1th distribution box model position downwards by a preset distance along the z-axis to obtain a moving point B;
the second acquisition subunit can be used for respectively acquiring a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and acquiring a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness;
a second determining subunit operable to determine a shortest line segment between the projection point a″ and the projection point b″ and to use a line segment between the i 'th block model position and the movement point a, a line segment between the movement point a and the wall midpoint a', a line segment between the wall midpoint a 'and the projection point a″, a line segment between the i' +1 th block position and the movement point B, a line segment between the movement point B and the wall midpoint B ', a line segment between the wall midpoint B' and the projection point b″ and the shortest line segment as a line arrangement path of the i 'th block model and the i' +1 th block model;
The first generating subunit may be configured to add 1 to the value of i ', and repeat the steps of executing the pipeline arrangement paths of the i ' th block terminal model and the i ' +1th block terminal model until the pipeline arrangement paths of the 1 st block terminal model and the 2 nd block terminal model to the pipeline arrangement paths of the m-1 st block terminal model and the m-th block terminal model are obtained as the first pipeline arrangement path.
The second generating unit may specifically include: the system comprises a third determining subunit, a fourth determining subunit, a first establishing subunit, a fifth determining subunit, a third obtaining subunit, a sixth determining subunit, a seventh determining subunit, an eighth determining subunit, a ninth determining subunit, a tenth determining subunit and a second generating subunit.
Specifically, the third determining subunit may be configured to obtain, according to the feature information of the distribution box model in the basic attribute information, position information of an i 'th distribution box model set on an i' th floor, and a maximum closed area formed by surrounding lines of all room models in the i 'th floor, and use each line segment forming the maximum closed area as an i' th floor outer wall line;
the fourth determining subunit is configured to determine that, when the center point of the room model is in the i ' th floor outer wall line and the center point of the room model and the i ' th distribution box model are not in the same target room model, project the i ' th distribution box model position to the center line of the wall model after moving a set distance along the z axis, project the obtained projection point to a floor model with a layer of elevation falling by a set thickness above the elevation where the target room model is located, obtain a target projection point, move the target projection point along a vertical wall model by a set distance in a direction corresponding to the room model, obtain a target movement point, and project the target movement point to the elevation where the target room model is located, so as to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
The first establishing subunit can be used for establishing a first coordinate system by taking the long side direction of a minimum circumscribed rectangle formed by all room models in the ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis;
a fifth determining subunit, configured to obtain, in the first coordinate system, a target distance from the central point of the room model to the enclosing line of the target room model, and take the target distance as a reference line;
the third acquisition subunit is configured to acquire an intersection point P ' of the reference line and the i ' th floor outer wall line, and determine a target point P obtained after the intersection point P ' deviates from a set distance;
a sixth determining subunit, configured to determine, when the projection point P is taken as a starting point, an initial direction is taken as a Y-axis direction, and a Y-axis coordinate of a center point of the room model is greater than the Y-axis coordinate of the projection point P, obtain an intersection point D closest to an i' th floor outer wall line along a Y-axis positive direction, and offset the intersection point D by a set distance to obtain an intersection point a;
a seventh determining subunit, configured to, when the target point P is on a line segment between the projection point P and the intersection point a, take a path formed after connecting the projection point P, the target point P, and a central point of the room model as a path between the i' th distribution box model and the central point of the room model;
An eighth determining subunit, configured to determine, when the target point P is not on a line segment between the projection point P and the intersection point a and the X-axis coordinate of the intersection point a is greater than the X-axis coordinate of the central point of the room model, obtain an intersection point B closest to the i' th floor outer wall line along the X-axis negative direction with the intersection point a as a starting point, and offset the intersection point B by a set distance to obtain an intersection point B;
a ninth determining subunit, configured to determine, when the intersection b is taken as a starting point and a Y-axis coordinate of the intersection b is greater than a Y-axis coordinate of a central point of the room model, obtain an intersection C closest to an i' th floor outer wall line along a Y-axis negative direction with the intersection b as a starting point, and offset the intersection C by a set distance to obtain an intersection C;
a tenth determining subunit, configured to continue to alternately perform the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, until the currently acquired intersection point is the intersection point I closest to the reference line, shift the intersection point I by a set distance to obtain an intersection point I, connect the projection point P, the intersection point a, the intersection point b, … …, the intersection point I, the target point P, and the central point of the room model to obtain a first path, and move the first path along the Z axis to a second path obtained when the projection point P in the first path coincides with the target movement point, as a path between the I' th distribution box and the central point of the room model;
And the second generating subunit may be configured to add 1 to the value of i ', and repeat the step of executing the path between the i ' th distribution box model and the central point of the room model until the path between the 1 st distribution box and the central point of the room model and the path between the m ' th distribution box and the central point of the room model are obtained, as the second pipeline arrangement path.
The third generating unit may specifically include: the system comprises a fourth acquisition subunit, a first processing subunit, a second processing subunit, a third processing subunit, a fourth processing subunit, a fifth processing subunit, a sixth processing subunit and a third generation subunit.
The fourth obtaining subunit may be configured to obtain, according to the feature information of the lamp model and the feature information of the distribution box model in the basic attribute information, i ' th distribution box model position information set on the i ' th floor, and a lamp model position in each room model in the i ' th floor;
the first processing subunit may be configured to determine, when the jth luminaire model and the ith distribution box model are both in the kth room model, to establish a second coordinate system with the projection point P as an origin and with long sides and short sides of a circumscribed rectangle of the kth room model, determine a projection point Q of a position of the jth luminaire model on a plane where the second coordinate system is located, determine a third path of the projection point Q and the projection point P according to a preset path generating operation, and move a path between the third path and the jth projection point and a position of the jth luminaire model along a Z axis to a path obtained when the path overlaps with a target moving point, as a path of the jth luminaire model and the ith distribution box model;
The second processing subunit is configured to, when the jth lamp model and the ith distribution box model are not in the kth room model, move the center point of the room model downward by a set distance to generate a first center point, and establish a third coordinate system X ' O ' Y ' with the first center point as an origin and the long side and the short side of the circumscribed rectangle of the kth room model as a transverse axis and a longitudinal axis, and determine a jth projection point obtained after the jth lamp model is projected onto a plane where the third coordinate system is located;
the third processing subunit is configured to determine, when two paths from a jth projection point to the first center point along an X 'axis direction and a Y' axis direction are respectively within a kth room model enclosure line, a path obtained when one of the two paths and a path between the jth projection point and a jth lamp model position move along a Z axis to overlap with a target moving point, as a path between the jth lamp model and an ith distribution box model;
a fourth processing subunit, configured to determine, when the two paths are not in the kth room model, a fourth path between the jth projection point and the first center point according to the preset path generating operation, and move, along the Z axis, a path obtained when the path between the fourth path and the jth projection point, and between the jth luminaire model position, and the jth luminaire model position overlap with the target moving point, as a path between the jth luminaire model and the ith distribution box model;
A fifth processing subunit, configured to add 1 to the value of J, and repeatedly perform the steps of obtaining, according to the basic attribute information, the position information of the ith distribution box model set on the ith floor, and the positions of the lamp models in each room model on the ith floor, until a path from the 1 st lamp model to the ith distribution model to a path from the J th lamp model to the ith distribution box model are obtained, where the path is taken as a path from the J th lamp model to the ith distribution box model in the k th room model; wherein J represents the number of luminaire models included in the kth room model;
a sixth processing subunit, configured to add 1 to the value of K, and repeatedly perform the steps of obtaining, according to the basic attribute information, the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model on the ith floor, until paths from the J lamp models and the ith distribution box in the 1 st room model to the J lamp models and the ith distribution box in the K room model are obtained, and use the paths as paths from all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor;
And the third generating subunit may be configured to add 1 to the value of i ', and repeatedly perform the steps of obtaining, according to the basic attribute information, the position information of the i' distribution box model set on the i 'th floor, and the positions of the lamp models in each room model on the i' th floor, until paths from all the lamp models and the 1 st distribution box on the 1 st floor to all the lamp models and the m-th distribution box on the m-th floor are obtained, where the paths are used as the third pipeline arrangement path.
The generating operation of the preset path comprises the steps of comparing the Y ' coordinate of the set projection point with the Y ' coordinate of the set origin when the set projection point is taken as a starting point and the starting direction is taken as a Y ' axis direction, if the Y ' coordinate of the set origin is larger than the Y ' coordinate of the set projection point, determining to acquire an intersection point A ' closest to a room model enclosing line along the Y ' axis positive direction by the set projection point, and obtaining an intersection point a ' after the intersection point A ' is offset by a set distance;
comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance;
Determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path;
the set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line.
The fourth generation unit may specifically include: a fifth acquisition subunit, a sixth acquisition subunit, a seventh acquisition subunit, an eighth acquisition subunit, a second setup subunit, a seventh processing subunit, an eighth processing subunit, a ninth processing subunit, a tenth processing subunit, and a fourth generation subunit.
Specifically, the fifth obtaining subunit may be configured to obtain, according to the feature information of the jack model and the feature information of the distribution box model in the basic attribute information, i ' th distribution box model position information set on the i ' th floor, and a jack model position in each room model on the i ' th floor;
the sixth obtaining subunit may be configured to move the position of the ith distribution box model downward by a set distance to obtain a moving point i ', project the moving point i ' onto a center line of the wall model to obtain a projection point i ', project the projection point i ' onto a floor model with a set thickness at an elevation where the room model is located, obtain a descending point i ', and move the descending point i ' by a set distance along a direction perpendicular to the wall model into the room model to obtain a target moving point i ';
a seventh obtaining subunit, configured to re-project a point obtained after the position of the f socket model is moved to the center line of the wall model onto a plane at the height where the target moving point i' is located, to obtain a target projection point f, and use the center line of the wall model where the f socket model is located as an f reference line;
an eighth obtaining subunit, configured to establish a third coordinate system with the target moving point i' as an origin, and with a long side direction and a short side of a minimum circumscribed rectangle formed by all room models of the ith floor as a horizontal axis and a vertical axis;
A second establishing subunit, configured to determine, when the y-axis coordinate of the center point of the room model is greater than the y-axis coordinate of the target moving point i ', that the target moving point i ' acquires, along the positive y-axis direction, an intersection point closest to the wall model center line of the i ' th floor as an intersection point a″ and that the intersection point a″ is offset by a set distance as an intersection point a″;
a seventh processing subunit, configured to, when determining that the x-axis coordinate of the intersection point a″ is larger than the x-axis coordinate of the central point of the room model, acquire an intersection point b″ closest to the wall model center line of the i' th floor along the x-axis negative direction with the intersection point a″ as the start point, and obtain the intersection point b″ after deviating the intersection point b″ by a set distance;
an eighth processing subunit, configured to, when determining that the y-axis coordinate of the intersection b″ is greater than the y-axis coordinate of the central point of the room model, obtain an intersection c″ closest to the wall model center line of the i' th floor along the y-axis negative direction with the intersection b″ as the start point, and obtain the intersection c″ by deviating the intersection c″ from the set distance;
a ninth processing subunit, configured to continue to alternately perform the step of acquiring the intersection closest to the wall model centerline of the I 'th floor to acquire a new intersection, until the currently acquired intersection is the intersection i″ closest to the f' th reference line, and use the line segment between the target moving point I ', the intersection a″, the intersection b″ and … …, the intersection i″ and the target projection point f and the f' th socket model as the path between the f 'th socket model and the I' th distribution box model;
A tenth processing subunit, configured to add 1 to the value of F, and repeatedly execute the steps of obtaining, according to the feature information of the jack model and the feature information of the distribution box model in the basic attribute information, the position information of the i ' th distribution box model set on the i ' th floor, and the position of the jack model in each room model on the i ' th floor, until a path from the 1 st jack model to the i ' th distribution box model to a path from the F-th jack model to the i ' th distribution box model, and using the path as a path from all jack models and the i ' th distribution box model on the i ' th floor; wherein F represents the number of socket models included in the i' th floor;
and a fourth generating subunit, configured to add 1 to the value of i ', and repeatedly perform the steps of obtaining the position information of the i' th distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the feature information of the socket model and the feature information of the distribution box model in the basic attribute information, until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and use the paths as the fourth pipeline arrangement path.
The determining unit may specifically include: deleting repeated line segments in the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
The obtaining, in the generating module 12, the room model center point corresponding to the room model may specifically include:
and acquiring each room model in each floor corresponding to the object to be pipeline arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonals of the minimum circumscribed rectangle as the center point of the room model.
In one embodiment, as shown in fig. 15, there is provided a generating apparatus of a pipeline arrangement model, including: a second acquisition module 21 and a processing module 22.
Specifically, the second obtaining module 21 may be configured to obtain basic attribute information of an object to be pipelined, where the basic attribute information includes feature information of a target model in the object to be pipelined, and the target model includes a room model, a distribution box model, a floor model, a light fixture model, and a socket model; the feature information of the target model in the object to be pipeline arranged comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information. Acquiring each room model in each floor corresponding to the object to be arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonal lines of the minimum circumscribed rectangle as the center point of the room model;
The processing module 22 can be used for determining the position of the ith 'distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information when m is more than or equal to 2; wherein i' =1, 2, … …, m; the ith 'distribution box model position is moved upwards by a preset distance along the z axis to obtain a moving point A, and the ith' +1 distribution box model position is moved downwards by a preset distance along the z axis to obtain a moving point B; respectively obtaining a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and obtaining a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness; determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '' and the shortest line segment as the line arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model; and adding 1 to the value of i ', and repeatedly executing the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths. And/or according to the characteristic information of the distribution box model in the basic attribute information, acquiring the position information of the i 'distribution box model set on the i' th floor and the maximum closed area formed by the enclosing lines of all room models in the i 'th floor, and taking each line segment forming the maximum closed area as an i' th floor outer wall line; when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness on the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance along the direction of the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor; a first coordinate system is established by taking the long side direction of a minimum circumscribed rectangle formed by all room models in an ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis; acquiring a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a datum line; acquiring an intersection point P ' of the datum line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection point P ' deviates from a set distance; when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the central point of the room model is larger than the Y-axis coordinate of the projection point P, determining the projection point P to acquire an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and obtaining an intersection point a after the intersection point D is offset by a set distance; when the target point P is on a line segment between the projection point P and the intersection point a, taking a path formed after the projection point P, the target point P and the central point of the room model are connected as a path between the i' th distribution box model and the central point of the room model; when the target point P is not on a line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is larger than that of the central point of the room model, determining an intersection point B closest to an i' th floor outer wall line along the X-axis negative direction by taking the intersection point a as a starting point, and obtaining an intersection point B after the intersection point B is offset by a set distance; when the intersection point b is taken as a starting point and the Y-axis coordinate of the intersection point b is larger than the Y-axis coordinate of the central point of the room model, determining an intersection point C which is closest to the i' th floor outer wall line along the Y-axis negative direction by taking the intersection point b as the starting point, and obtaining the intersection point C after the intersection point C is offset by a set distance; continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to acquire an intersection point I, connecting the projection point P, the intersection point a, the intersection points b, … …, the intersection point I, the target point P and the central point of the room model to acquire a first path, and moving the first path along the Z axis to a second path acquired when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model; and adding 1 to the value of i ', and repeating the step of executing the path between the i ' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m ' th distribution box and the room model central point are obtained as the second pipeline arrangement path. And/or according to the characteristic information of the lamp model and the characteristic information of the distribution box model in the basic attribute information, acquiring the position information of the i ' distribution box model set on the i ' th floor and the position of the lamp model in each room model in the i ' th floor; when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q is positioned on the plane where the j-th lamp model is positioned; when the jth lamp model and the ith distribution box model are not in the kth room model, downwards moving a central point of the room model by a set distance to generate a first central point, establishing a third coordinate system X ' O ' Y ' by taking the first central point as an original point and taking the long side and the short side of an external rectangle of the kth room model as a transverse axis and a longitudinal axis, and determining a jth projection point obtained after the jth lamp model is projected to a plane where the third coordinate system is located; when two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model; when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model; adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor according to the basic attribute information and the positions of the lamp models in each room model in the ith floor until the paths from the 1 st lamp model and the ith distribution model to the paths from the J th lamp model and the ith distribution box model are obtained and used as paths from the J th lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model; adding 1 to the value of K, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until paths from J lamp models and the ith distribution box in the 1 st room model to paths from J lamp models and the ith distribution box in the K room model are obtained, and taking the paths as paths of all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor; and adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the positions of the lamp models in each room model in the i' th floor according to the basic attribute information until the paths of all the lamp models and the 1 st distribution box in the 1 st floor to all the lamp models and the m distribution box in the m th floor are obtained and used as the third pipeline arrangement path. And/or according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information, the position information of the i ' distribution box model set on the i ' th floor and the position of the socket model in each room model on the i ' th floor are obtained; the method comprises the steps of moving an i 'th distribution box model downwards by a set distance to obtain a moving point i', projecting the moving point i 'to a center line of a wall model to obtain a projection point i', projecting the projection point i 'to a floor model with a set thickness at the elevation of a room model, obtaining a descending point i', and moving the descending point i 'by the set distance along a direction perpendicular to the wall model and into the room model to obtain a target moving point i'; the point obtained after the position of the f socket model is moved to the center line of the wall model is projected to the plane with the height of the target moving point i' to obtain a target projection point f, and the center line of the wall model where the f socket model is positioned is used as an f datum line; a third coordinate system is established by taking a target moving point i' as an origin, and taking the long side direction and the short side of a minimum circumscribed rectangle formed by all room models of an ith floor as a transverse axis and a longitudinal axis; when the y-axis coordinate of the central point of the room model is larger than the y-axis coordinate of the target moving point i ', the point which is closest to the wall model central line of the ith floor and is acquired by the target moving point i' along the positive y-axis direction is marked as an intersection point A '', and the point which is obtained by offsetting the intersection point A '' by a set distance is marked as an intersection point a ''; when the x-axis coordinate taking the intersection point a ' as a starting point and the x-axis coordinate of the intersection point a ' is larger than the x-axis coordinate of the central point of the room model, acquiring an intersection point B ' ' closest to the wall model central line of the ith floor along the x-axis negative direction by taking the intersection point a ' as the starting point, and obtaining an intersection point B ' ' after deviating the intersection point B ' ' from a set distance; when the y-axis coordinate taking the intersection point b ' as a starting point and the y-axis coordinate of the intersection point b ' is larger than the y-axis coordinate of the central point of the room model, acquiring an intersection point C ' ' closest to the wall model central line of the ith floor along the y-axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' ' by deviating the intersection point C ' ' from a set distance; continuing to alternately execute the step of acquiring the intersection point closest to the wall model center line of the ith floor to acquire a new intersection point until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line, and taking a line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model as a path between the ith socket model and the ith distribution box model; adding 1 to the value of F, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of socket models included in the i' th floor; and adding 1 to the value of i ', repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and taking the paths as the fourth pipeline arrangement path. The preset path generating operation includes: when the set projection point is taken as a starting point and the starting direction is taken as a Y 'axis direction, comparing the Y' coordinates of the set projection point and the set origin, if the Y 'axis coordinates of the set origin are larger than the Y' axis coordinates of the set projection point, determining to acquire an intersection point A 'closest to a room model enclosing line by the set projection point along the Y' axis positive direction, and obtaining an intersection point a 'after the intersection point A' is deviated by a set distance; comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance; determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance; continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path; the set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line. Deleting repeated line segments in the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
For specific limitations on the generation device of the pipeline arrangement model, reference may be made to the above limitation on the generation method of the pipeline arrangement model, and no further description is given here. The various modules in the pipeline arrangement model generation device can be fully or partially implemented by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 15. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method of generating a pipeline arrangement model. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 15 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application is applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is also provided a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method embodiments described above when executing the computer program, and specifically may implement the following steps:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model. The characteristic information of the target model in the object to be pipeline arrangement comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
In one embodiment, there is also provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model; the feature information of the target model in the object to be pipeline arranged comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
Acquiring each room model in each floor corresponding to the object to be arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonal lines of the minimum circumscribed rectangle as the center point of the room model;
When m is more than or equal to 2, determining the position of the ith 'distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information; wherein i' =1, 2, … …, m;
the ith 'distribution box model position is moved upwards by a preset distance along the z axis to obtain a moving point A, and the ith' +1 distribution box model position is moved downwards by a preset distance along the z axis to obtain a moving point B;
respectively obtaining a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and obtaining a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness;
determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '' and the shortest line segment as the line arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model;
And adding 1 to the value of i ', and repeatedly executing the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths. And/or
Acquiring the position information of an ith distribution box model arranged on an ith floor and a maximum closed area formed by the enclosing lines of all room models in the ith floor according to the characteristic information of the distribution box model in the basic attribute information, and taking each line segment forming the maximum closed area as an ith floor outer wall line;
when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness on the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance along the direction of the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
A first coordinate system is established by taking the long side direction of a minimum circumscribed rectangle formed by all room models in an ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis;
acquiring a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a datum line;
acquiring an intersection point P ' of the datum line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection point P ' deviates from a set distance;
when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the central point of the room model is larger than the Y-axis coordinate of the projection point P, determining the projection point P to acquire an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and obtaining an intersection point a after the intersection point D is offset by a set distance;
when the target point P is on a line segment between the projection point P and the intersection point a, taking a path formed after the projection point P, the target point P and the central point of the room model are connected as a path between the i' th distribution box model and the central point of the room model;
when the target point P is not on a line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is larger than that of the central point of the room model, determining an intersection point B closest to an i' th floor outer wall line along the X-axis negative direction by taking the intersection point a as a starting point, and obtaining an intersection point B after the intersection point B is offset by a set distance;
When the intersection point b is taken as a starting point and the Y-axis coordinate of the intersection point b is larger than the Y-axis coordinate of the central point of the room model, determining an intersection point C which is closest to the i' th floor outer wall line along the Y-axis negative direction by taking the intersection point b as the starting point, and obtaining the intersection point C after the intersection point C is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to acquire an intersection point I, connecting the projection point P, the intersection point a, the intersection points b, … …, the intersection point I, the target point P and the central point of the room model to acquire a first path, and moving the first path along the Z axis to a second path acquired when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model;
and adding 1 to the value of i ', and repeating the step of executing the path between the i ' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m ' th distribution box and the room model central point are obtained as the second pipeline arrangement path. And/or
According to the characteristic information of the lamp models and the characteristic information of the distribution box models in the basic attribute information, the position information of the i ' distribution box models arranged on the i ' th floor and the positions of the lamp models in each room model in the i ' th floor are obtained;
when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q is positioned on the plane where the j-th lamp model is positioned;
when the jth lamp model and the ith distribution box model are not in the kth room model, downwards moving a central point of the room model by a set distance to generate a first central point, establishing a third coordinate system X ' O ' Y ' by taking the first central point as an original point and taking the long side and the short side of an external rectangle of the kth room model as a transverse axis and a longitudinal axis, and determining a jth projection point obtained after the jth lamp model is projected to a plane where the third coordinate system is located;
When two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model;
when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model;
adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor according to the basic attribute information and the positions of the lamp models in each room model in the ith floor until the paths from the 1 st lamp model and the ith distribution model to the paths from the J th lamp model and the ith distribution box model are obtained and used as paths from the J th lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model;
Adding 1 to the value of K, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until paths from J lamp models and the ith distribution box in the 1 st room model to paths from J lamp models and the ith distribution box in the K room model are obtained, and taking the paths as paths of all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor;
and adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the positions of the lamp models in each room model in the i' th floor according to the basic attribute information until the paths of all the lamp models and the 1 st distribution box in the 1 st floor to all the lamp models and the m distribution box in the m th floor are obtained and used as the third pipeline arrangement path. And/or
Acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model in the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information;
The method comprises the steps of moving an i 'th distribution box model downwards by a set distance to obtain a moving point i', projecting the moving point i 'to a center line of a wall model to obtain a projection point i', projecting the projection point i 'to a floor model with a set thickness at the elevation of a room model, obtaining a descending point i', and moving the descending point i 'by the set distance along a direction perpendicular to the wall model and into the room model to obtain a target moving point i';
the point obtained after the position of the f socket model is moved to the center line of the wall model is projected to the plane with the height of the target moving point i' to obtain a target projection point f, and the center line of the wall model where the f socket model is positioned is used as an f datum line;
a third coordinate system is established by taking a target moving point i' as an origin, and taking the long side direction and the short side of a minimum circumscribed rectangle formed by all room models of an ith floor as a transverse axis and a longitudinal axis;
when the y-axis coordinate of the central point of the room model is larger than the y-axis coordinate of the target moving point i ', the point which is closest to the wall model central line of the ith floor and is acquired by the target moving point i' along the positive y-axis direction is marked as an intersection point A '', and the point which is obtained by offsetting the intersection point A '' by a set distance is marked as an intersection point a '';
When the x-axis coordinate taking the intersection point a ' as a starting point and the x-axis coordinate of the intersection point a ' is larger than the x-axis coordinate of the central point of the room model, acquiring an intersection point B ' ' closest to the wall model central line of the ith floor along the x-axis negative direction by taking the intersection point a ' as the starting point, and obtaining an intersection point B ' ' after deviating the intersection point B ' ' from a set distance;
when the y-axis coordinate taking the intersection point b ' as a starting point and the y-axis coordinate of the intersection point b ' is larger than the y-axis coordinate of the central point of the room model, acquiring an intersection point C ' ' closest to the wall model central line of the ith floor along the y-axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' ' by deviating the intersection point C ' ' from a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the wall model center line of the ith floor to acquire a new intersection point until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line, and taking a line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model as a path between the ith socket model and the ith distribution box model;
adding 1 to the value of F, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of socket models included in the i' th floor;
And adding 1 to the value of i ', repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and taking the paths as the fourth pipeline arrangement path.
The preset path generating operation includes: when the set projection point is taken as a starting point and the starting direction is taken as a Y 'axis direction, comparing the Y' coordinates of the set projection point and the set origin, if the Y 'axis coordinates of the set origin are larger than the Y' axis coordinates of the set projection point, determining to acquire an intersection point A 'closest to a room model enclosing line by the set projection point along the Y' axis positive direction, and obtaining an intersection point a 'after the intersection point A' is deviated by a set distance;
comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance;
Determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path;
the set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line.
Deleting repeated line segments in the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
It should be clear that the process of executing the computer program by the processor in the embodiment of the present application is consistent with the execution of each step in the above method, and specific reference may be made to the foregoing description.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of the method embodiments described above, in particular the following steps may be implemented:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model. The characteristic information of the target model in the object to be pipeline arrangement comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model; the feature information of the target model in the object to be pipeline arranged comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
Acquiring each room model in each floor corresponding to the object to be arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonal lines of the minimum circumscribed rectangle as the center point of the room model;
When m is more than or equal to 2, determining the position of the ith 'distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information; wherein i' =1, 2, … …, m;
the ith 'distribution box model position is moved upwards by a preset distance along the z axis to obtain a moving point A, and the ith' +1 distribution box model position is moved downwards by a preset distance along the z axis to obtain a moving point B;
respectively obtaining a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and obtaining a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness;
determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '' and the shortest line segment as the line arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model;
And adding 1 to the value of i ', and repeatedly executing the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths. And/or
Acquiring the position information of an ith distribution box model arranged on an ith floor and a maximum closed area formed by the enclosing lines of all room models in the ith floor according to the characteristic information of the distribution box model in the basic attribute information, and taking each line segment forming the maximum closed area as an ith floor outer wall line;
when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness on the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance along the direction of the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
A first coordinate system is established by taking the long side direction of a minimum circumscribed rectangle formed by all room models in an ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis;
acquiring a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a datum line;
acquiring an intersection point P ' of the datum line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection point P ' deviates from a set distance;
when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the central point of the room model is larger than the Y-axis coordinate of the projection point P, determining the projection point P to acquire an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and obtaining an intersection point a after the intersection point D is offset by a set distance;
when the target point P is on a line segment between the projection point P and the intersection point a, taking a path formed after the projection point P, the target point P and the central point of the room model are connected as a path between the i' th distribution box model and the central point of the room model;
when the target point P is not on a line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is larger than that of the central point of the room model, determining an intersection point B closest to an i' th floor outer wall line along the X-axis negative direction by taking the intersection point a as a starting point, and obtaining an intersection point B after the intersection point B is offset by a set distance;
When the intersection point b is taken as a starting point and the Y-axis coordinate of the intersection point b is larger than the Y-axis coordinate of the central point of the room model, determining an intersection point C which is closest to the i' th floor outer wall line along the Y-axis negative direction by taking the intersection point b as the starting point, and obtaining the intersection point C after the intersection point C is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to acquire an intersection point I, connecting the projection point P, the intersection point a, the intersection points b, … …, the intersection point I, the target point P and the central point of the room model to acquire a first path, and moving the first path along the Z axis to a second path acquired when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model;
and adding 1 to the value of i ', and repeating the step of executing the path between the i ' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m ' th distribution box and the room model central point are obtained as the second pipeline arrangement path. And/or
According to the characteristic information of the lamp models and the characteristic information of the distribution box models in the basic attribute information, the position information of the i ' distribution box models arranged on the i ' th floor and the positions of the lamp models in each room model in the i ' th floor are obtained;
when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q is positioned on the plane where the j-th lamp model is positioned;
when the jth lamp model and the ith distribution box model are not in the kth room model, downwards moving a central point of the room model by a set distance to generate a first central point, establishing a third coordinate system X ' O ' Y ' by taking the first central point as an original point and taking the long side and the short side of an external rectangle of the kth room model as a transverse axis and a longitudinal axis, and determining a jth projection point obtained after the jth lamp model is projected to a plane where the third coordinate system is located;
When two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model;
when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model;
adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor according to the basic attribute information and the positions of the lamp models in each room model in the ith floor until the paths from the 1 st lamp model and the ith distribution model to the paths from the J th lamp model and the ith distribution box model are obtained and used as paths from the J th lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model;
Adding 1 to the value of K, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until paths from J lamp models and the ith distribution box in the 1 st room model to paths from J lamp models and the ith distribution box in the K room model are obtained, and taking the paths as paths of all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor;
and adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the positions of the lamp models in each room model in the i' th floor according to the basic attribute information until the paths of all the lamp models and the 1 st distribution box in the 1 st floor to all the lamp models and the m distribution box in the m th floor are obtained and used as the third pipeline arrangement path. And/or
Acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model in the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information;
The method comprises the steps of moving an i 'th distribution box model downwards by a set distance to obtain a moving point i', projecting the moving point i 'to a center line of a wall model to obtain a projection point i', projecting the projection point i 'to a floor model with a set thickness at the elevation of a room model, obtaining a descending point i', and moving the descending point i 'by the set distance along a direction perpendicular to the wall model and into the room model to obtain a target moving point i';
the point obtained after the position of the f socket model is moved to the center line of the wall model is projected to the plane with the height of the target moving point i' to obtain a target projection point f, and the center line of the wall model where the f socket model is positioned is used as an f datum line;
a third coordinate system is established by taking a target moving point i' as an origin, and taking the long side direction and the short side of a minimum circumscribed rectangle formed by all room models of an ith floor as a transverse axis and a longitudinal axis;
when the y-axis coordinate of the central point of the room model is larger than the y-axis coordinate of the target moving point i ', the point which is closest to the wall model central line of the ith floor and is acquired by the target moving point i' along the positive y-axis direction is marked as an intersection point A '', and the point which is obtained by offsetting the intersection point A '' by a set distance is marked as an intersection point a '';
When the x-axis coordinate taking the intersection point a ' as a starting point and the x-axis coordinate of the intersection point a ' is larger than the x-axis coordinate of the central point of the room model, acquiring an intersection point B ' ' closest to the wall model central line of the ith floor along the x-axis negative direction by taking the intersection point a ' as the starting point, and obtaining an intersection point B ' ' after deviating the intersection point B ' ' from a set distance;
when the y-axis coordinate taking the intersection point b ' as a starting point and the y-axis coordinate of the intersection point b ' is larger than the y-axis coordinate of the central point of the room model, acquiring an intersection point C ' ' closest to the wall model central line of the ith floor along the y-axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' ' by deviating the intersection point C ' ' from a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the wall model center line of the ith floor to acquire a new intersection point until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line, and taking a line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model as a path between the ith socket model and the ith distribution box model;
adding 1 to the value of F, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of socket models included in the i' th floor;
And adding 1 to the value of i ', repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and taking the paths as the fourth pipeline arrangement path.
The preset path generating operation includes: when the set projection point is taken as a starting point and the starting direction is taken as a Y 'axis direction, comparing the Y' coordinates of the set projection point and the set origin, if the Y 'axis coordinates of the set origin are larger than the Y' axis coordinates of the set projection point, determining to acquire an intersection point A 'closest to a room model enclosing line by the set projection point along the Y' axis positive direction, and obtaining an intersection point a 'after the intersection point A' is deviated by a set distance;
comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance;
Determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path;
the set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line.
Deleting repeated line segments in the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and/or the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
It should be clear that the process of executing the computer program by the processor in the embodiment of the present application is consistent with the execution of each step in the above method, and specific reference may be made to the foregoing description.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (10)
1. A method of generating a pipeline arrangement model, the method comprising:
basic attribute information of an object to be subjected to pipeline arrangement is obtained, wherein the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor model, a lamp model and a socket model;
Acquiring a room model center point corresponding to the room model, and generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model;
when the number of floors included in the object to be pipeline arrangement is m, generating a pipeline arrangement model of the object to be pipeline arrangement according to the basic attribute information and a preset generation rule, including:
generating a first pipeline arrangement path between the distribution box models of adjacent floors according to the characteristic information of the distribution box models in the basic attribute information and the connection rule of the distribution box models in the preset generation rule;
generating a second pipeline arrangement path between the distribution box model and the room model center point according to the characteristic information of the distribution box model in the basic attribute information and the connection rule of the distribution box model and the room model center point in the preset generation rule;
Generating a third pipeline arrangement path between the lamp model and the distribution box model according to the characteristic information of the lamp model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the lamp model and the distribution box model in the preset generation rule;
generating a fourth pipeline arrangement path between the socket model and the distribution box model according to the characteristic information of the socket model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the socket model and the distribution box model in the preset generation rule;
determining a pipeline arrangement model of the object to be pipeline arranged according to the first pipeline arrangement path and the second pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path and the third pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path and the fourth pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and the fourth pipeline arrangement path;
generating a first pipeline arrangement path between the distribution box models of adjacent floors according to the characteristic information of the distribution box models in the basic attribute information and the connection rule of the distribution box models in the preset generation rule, wherein the first pipeline arrangement path comprises the following steps:
When m is more than or equal to 2, determining the position of the ith 'distribution box model and the position of the ith' +1th distribution box model according to the characteristic information of the distribution box model in the basic attribute information; wherein i' =1, 2, … …, m;
the ith 'distribution box model position is moved upwards by a preset distance along the z axis to obtain a moving point A, and the ith' +1 distribution box model position is moved downwards by a preset distance along the z axis to obtain a moving point B;
respectively obtaining a wall midpoint A 'and a wall midpoint B' which are obtained after the moving point A and the moving point B are projected to the center line of the corresponding wall model, and obtaining a projection point A '' and a projection point B '' which are obtained after the wall midpoint A 'and the wall midpoint B' are respectively projected to the floor model with the elevation descending set thickness;
determining the shortest line segment between the projection point A '' and the projection point B '', and taking the line segment between the i 'th distribution box model position and the movement point A, the line segment between the movement point A and the wall midpoint A', the line segment between the wall midpoint A 'and the projection point A' ', the line segment between the i' +1 th distribution box position and the movement point B, the line segment between the movement point B and the wall midpoint B ', the line segment between the wall midpoint B' and the projection point B '' and the shortest line segment as the line arrangement paths of the i 'th distribution box model and the i' +1 th distribution box model;
Adding 1 to the value of i ', and repeatedly executing the steps of the pipeline arrangement paths of the i ' th distribution box model and the i ' +1 th distribution box model until the pipeline arrangement paths of the 1 st distribution box model and the 2 nd distribution box model to the pipeline arrangement paths of the m-1 th distribution box model and the m-th distribution box model are obtained and used as the first pipeline arrangement paths;
generating a second pipeline arrangement path between the distribution box model and the room model center point according to the characteristic information of the distribution box model in the basic attribute information and the connection rule of the distribution box model and the room model center point in the preset generation rule, wherein the second pipeline arrangement path comprises the following steps:
acquiring the position information of an ith distribution box model arranged on an ith floor and a maximum closed area formed by the enclosing lines of all room models in the ith floor according to the characteristic information of the distribution box model in the basic attribute information, and taking each line segment forming the maximum closed area as an ith floor outer wall line;
when the central point of the room model is determined to be in an i 'floor outer wall line and the central point of the room model and the i' distribution box model are not in the same target room model, moving the i 'distribution box model upwards along the z-axis for a set distance and projecting the i' distribution box model to the central line of the wall model, projecting the obtained projection point to a floor model with a layer of elevation falling for a set thickness on the elevation of the target room model to obtain a target projection point, moving the target projection point along a vertical wall model for a set distance along the direction of the corresponding room model to obtain a target moving point, and projecting the target moving point to the elevation of the target room model to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
A first coordinate system is established by taking the long side direction of a minimum circumscribed rectangle formed by all room models in an ith floor as an X axis and the short side direction of the minimum circumscribed rectangle as a Y axis;
acquiring a target distance from the central point of the room model to the enclosing line of the target room model in the first coordinate system, and taking the target distance as a datum line;
acquiring an intersection point P ' of the datum line and the i ' th floor outer wall line, and determining a target point P obtained after the intersection point P ' deviates from a set distance;
when the projection point P is taken as a starting point, the starting direction is taken as a Y-axis direction, and the Y-axis coordinate of the central point of the room model is larger than the Y-axis coordinate of the projection point P, determining the projection point P to acquire an intersection point D closest to the i' th floor outer wall line along the Y-axis positive direction, and obtaining an intersection point a after the intersection point D is offset by a set distance;
when the target point P is on a line segment between the projection point P and the intersection point a, taking a path formed after the projection point P, the target point P and the central point of the room model are connected as a path between the i' th distribution box model and the central point of the room model;
when the target point P is not on a line segment between the projection point P and the intersection point a, and the X-axis coordinate of the intersection point a is larger than that of the central point of the room model, determining an intersection point B closest to an i' th floor outer wall line along the X-axis negative direction by taking the intersection point a as a starting point, and obtaining an intersection point B after the intersection point B is offset by a set distance;
When the intersection point b is taken as a starting point and the Y-axis coordinate of the intersection point b is larger than the Y-axis coordinate of the central point of the room model, determining an intersection point C which is closest to the i' th floor outer wall line along the Y-axis negative direction by taking the intersection point b as the starting point, and obtaining the intersection point C after the intersection point C is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, and when the currently acquired intersection point is the intersection point I closest to the datum line, shifting the intersection point I by a set distance to acquire an intersection point I, connecting the projection point P, the intersection point a, the intersection points b, … …, the intersection point I, the target point P and the central point of the room model to acquire a first path, and moving the first path along the Z axis to a second path acquired when the projection point P in the first path is overlapped with the target moving point, wherein the second path is used as a path between the I' th distribution box and the central point of the room model;
and adding 1 to the value of i ', and repeating the step of executing the path between the i ' th distribution box model and the room model central point until the path between the 1 st distribution box and the room model central point and the path between the m ' th distribution box and the room model central point are obtained as the second pipeline arrangement path.
2. The method according to claim 1, wherein the feature information of the object model in the object to be pipelined comprises: the system comprises a power distribution box model, a floor model, a lamp model, a socket model, a surrounding line information, elevation information, position information of the power distribution box model, elevation information of the surrounding line information, thickness information of the floor model, position information of the lamp model, elevation information of the surrounding line information, room information of the surrounding line information, position information of the socket model, elevation information of the surrounding line information and room information of the surrounding line information.
3. The method according to claim 1, wherein the generating a third pipeline arrangement path between the lamp model and the distribution box model according to the feature information of the lamp model in the basic attribute information, the feature information of the distribution box model, and the connection rule between the lamp model and the distribution box model in the preset generation rule includes:
according to the characteristic information of the lamp models and the characteristic information of the distribution box models in the basic attribute information, the position information of the i ' distribution box models arranged on the i ' th floor and the positions of the lamp models in each room model in the i ' th floor are obtained;
when the j-th lamp model and the i-th distribution box model are both in the k-th room model, determining to establish a second coordinate system by taking the projection point P as an original point and taking the long side and the short side of the circumscribed rectangle of the k-th room model, determining a projection point Q of the j-th lamp model on the plane where the second coordinate system is located, determining a third path of the projection point Q and the projection point P according to a preset path generating operation, and moving the path between the third path and the j-th projection point and the j-th lamp model along the Z axis to a path which is obtained when the path is overlapped with a target moving point, wherein the projection point Q is positioned on the plane where the j-th lamp model is positioned;
When the jth lamp model and the ith distribution box model are not in the kth room model, downwards moving a central point of the room model by a set distance to generate a first central point, establishing a third coordinate system X ' O ' Y ' by taking the first central point as an original point and taking the long side and the short side of an external rectangle of the kth room model as a transverse axis and a longitudinal axis, and determining a jth projection point obtained after the jth lamp model is projected to a plane where the third coordinate system is located;
when two paths from the jth projection point to the first center point along the X 'axis direction and the Y' axis direction are in the kth room model enclosing line, determining that a path between one of the two paths and the jth projection point and the jth lamp model position moves along the Z axis to a path which is obtained when the path coincides with the target moving point, and determining that the path is a path of the jth lamp model and the ith distribution box model;
when the two paths are not in the kth room model, determining a fourth path between the jth projection point and the first center point according to the preset path generating operation, and moving the path between the fourth path and the jth projection point and between the jth lamp model position and the jth lamp model position along the Z axis to a path which is obtained when the path is overlapped with the target moving point, wherein the path is used as a path between the jth lamp model and the ith distribution box model;
Adding 1 to the value of J, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor according to the basic attribute information and the positions of the lamp models in each room model in the ith floor until the paths from the 1 st lamp model and the ith distribution model to the paths from the J th lamp model and the ith distribution box model are obtained and used as paths from the J th lamp model and the ith distribution box model in the kth room model; wherein J represents the number of luminaire models included in the kth room model;
adding 1 to the value of K, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the positions of the lamp models in each room model in the ith floor according to the basic attribute information until paths from J lamp models and the ith distribution box in the 1 st room model to paths from J lamp models and the ith distribution box in the K room model are obtained, and taking the paths as paths of all the lamp models and the ith distribution box in the ith floor; wherein K represents the number of room models included in the ith floor;
and adding 1 to the value of i ', and repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the positions of the lamp models in each room model in the i' th floor according to the basic attribute information until the paths of all the lamp models and the 1 st distribution box in the 1 st floor to all the lamp models and the m distribution box in the m th floor are obtained and used as the third pipeline arrangement path.
4. A method as claimed in claim 3, wherein the preset path generating operation comprises:
when the set projection point is taken as a starting point and the starting direction is taken as a Y 'axis direction, comparing the Y' coordinates of the set projection point and the set origin, if the Y 'axis coordinates of the set origin are larger than the Y' axis coordinates of the set projection point, determining to acquire an intersection point A 'closest to a room model enclosing line by the set projection point along the Y' axis positive direction, and obtaining an intersection point a 'after the intersection point A' is deviated by a set distance;
comparing the X ' coordinate of the intersection point a ' with the X ' coordinate of the central point of the room model, when the X ' axis coordinate of the intersection point a ' is larger than the X ' axis coordinate of the central point of the room model, determining an intersection point B ' which is closest to the enclosing line of the room model along the X ' axis negative direction by taking the intersection point a ' as a starting point, and obtaining an intersection point B ' after the intersection point B ' is offset by a set distance;
determining an intersection point b ' serving as a starting point, judging Y ' coordinates of the intersection point b ' and a central point of the room model, if the Y ' coordinates of the intersection point b ' are larger than the Y ' coordinates of the central point of the room model, determining an intersection point C ' closest to a surrounding line of the room model along the negative direction of a Y ' axis by taking the intersection point b ' as the starting point, and obtaining an intersection point C ' after the intersection point C ' is offset by a set distance;
continuing to alternately execute the step of acquiring the intersection point closest to the surrounding line of the room model to acquire a new intersection point, and shifting the intersection point I ' by a set distance to acquire the intersection point I ' until the intersection point I ' acquired at present is the intersection point I ' closest to the set datum line, and taking the set projection point, the intersection point a ', the intersection point b ', … …, the intersection point I ', the set origin point and the connecting path between the center points of the room model as the generated preset path;
The set projection points comprise a projection point P and a room model center point, the set origin comprises a projection point Q and a j-th projection point, and the set reference line represents a line closest to the set origin in a room model enclosing line.
5. The method according to claim 1, wherein the generating a fourth pipeline routing path between the socket model and the distribution box model according to the feature information of the socket model in the basic attribute information, the feature information of the distribution box model, and the connection rule between the socket model and the distribution box model in the preset generation rule includes:
acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model in the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information;
the method comprises the steps of moving an i 'th distribution box model downwards by a set distance to obtain a moving point i', projecting the moving point i 'to a center line of a wall model to obtain a projection point i', projecting the projection point i 'to a floor model with a set thickness at the elevation of a room model, obtaining a descending point i', and moving the descending point i 'by the set distance along a direction perpendicular to the wall model and into the room model to obtain a target moving point i';
The point obtained after the position of the f socket model is moved to the center line of the wall model is projected to the plane with the height of the target moving point i' to obtain a target projection point f, and the center line of the wall model where the f socket model is positioned is used as an f datum line;
a third coordinate system is established by taking a target moving point i' as an origin, and taking the long side direction and the short side of a minimum circumscribed rectangle formed by all room models of an ith floor as a transverse axis and a longitudinal axis;
when the y-axis coordinate of the central point of the room model is larger than the y-axis coordinate of the target moving point i ', the point which is closest to the wall model central line of the ith floor and is acquired by the target moving point i' along the positive y-axis direction is marked as an intersection point A '', and the point which is obtained by offsetting the intersection point A '' by a set distance is marked as an intersection point a '';
when the x-axis coordinate taking the intersection point a ' as a starting point and the x-axis coordinate of the intersection point a ' is larger than the x-axis coordinate of the central point of the room model, acquiring an intersection point B ' ' closest to the wall model central line of the ith floor along the x-axis negative direction by taking the intersection point a ' as the starting point, and obtaining an intersection point B ' ' after deviating the intersection point B ' ' from a set distance;
when the y-axis coordinate taking the intersection point b ' as a starting point and the y-axis coordinate of the intersection point b ' is larger than the y-axis coordinate of the central point of the room model, acquiring an intersection point C ' ' closest to the wall model central line of the ith floor along the y-axis negative direction by taking the intersection point b ' as the starting point, and obtaining the intersection point C ' ' by deviating the intersection point C ' ' from a set distance;
Continuing to alternately execute the step of acquiring the intersection point closest to the wall model center line of the ith floor to acquire a new intersection point until the currently acquired intersection point is the intersection point I ' ' closest to the ith datum line, and taking a line segment between the target moving point I ', the intersection point a ' ', the intersection point b ' ', … …, the intersection point I ' ', the target projection point f and the ith socket model as a path between the ith socket model and the ith distribution box model;
adding 1 to the value of F, and repeatedly executing the steps of acquiring the position information of the ith distribution box model set on the ith floor and the position of the socket model in each room model on the ith floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until the paths from the 1 st socket model and the ith distribution box model to the F-th socket model and the ith distribution box model are obtained, and taking the paths as the paths of all the socket models and the ith distribution box model on the ith floor; wherein F represents the number of socket models included in the i' th floor;
and adding 1 to the value of i ', repeatedly executing the steps of acquiring the position information of the i' distribution box model set on the i 'th floor and the position of the socket model in each room model on the i' th floor according to the characteristic information of the socket model and the characteristic information of the distribution box model in the basic attribute information until paths from all the socket models and the 1 st distribution box model on the 1 st floor to all the socket models and the m-th distribution box model on the m-th floor are obtained, and taking the paths as the fourth pipeline arrangement path.
6. The method according to any one of claims 1 to 5, wherein the determining a pipeline arrangement model of the object to be pipeline arranged according to the first pipeline arrangement path and the second pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, and the third pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, and the fourth pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path, and the fourth pipeline arrangement path, comprises:
deleting repeated line segments in the first pipeline arrangement path and the second pipeline arrangement path, or the first pipeline arrangement path, the second pipeline arrangement path and the third pipeline arrangement path, or the first pipeline arrangement path, the second pipeline arrangement path and the fourth pipeline arrangement path, or the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path and the fourth pipeline arrangement path, and generating all the remaining line segments into all the mutually connected electric tubes according to preset electric tube attribute information, so as to generate a pipeline arrangement model of the object to be pipeline arranged; and when the inflection point or the intersection point is detected during generation of each electric tube, a junction box is placed, and the electric tube attribute information comprises the category information, the diameter information and the material information of the electric tube.
7. The method according to claim 1, wherein the obtaining a room model center point corresponding to the room model includes:
and acquiring each room model in each floor corresponding to the object to be pipeline arranged, determining a minimum circumscribed rectangle formed by the surrounding lines of each room model, and taking the intersection point of the diagonals of the minimum circumscribed rectangle as the center point of the room model.
8. A device for generating a model of a pipeline arrangement, the device comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring basic attribute information of an object to be subjected to pipeline arrangement, the basic attribute information comprises characteristic information of a target model in the object to be subjected to pipeline arrangement, and the target model comprises a room model, a distribution box model, a floor slab model, a lamp model and a socket model;
the generating module is used for acquiring a room model center point corresponding to the room model and generating a pipeline arrangement model of the object to be pipeline arranged according to the basic attribute information and a preset generating rule;
the preset generation rules comprise connection rules of the distribution box model, connection rules of the distribution box model and a central point of the room model, connection rules of the lamp model and the distribution box model and connection rules of the socket model and the distribution box model;
The generation module comprises:
the first generation unit is used for generating a first pipeline arrangement path between the distribution box models of adjacent floors according to the characteristic information of the distribution box models in the basic attribute information and the connection rule of the distribution box models in the preset generation rule;
the second generation unit is used for generating a second pipeline arrangement path between the distribution box model and the room model center point according to the characteristic information of the distribution box model in the basic attribute information and the connection rule of the distribution box model and the room model center point in the preset generation rule;
the third generating unit is used for generating a third pipeline arrangement path between the lamp model and the distribution box model according to the characteristic information of the lamp model in the basic attribute information, the characteristic information of the distribution box model and the connection rule of the lamp model and the distribution box model in the preset generating rule;
a fourth generating unit, configured to generate a fourth pipeline arrangement path between the socket model and the distribution box model according to the feature information of the socket model in the basic attribute information, the feature information of the distribution box model, and the connection rule between the socket model and the distribution box model in the preset generating rule;
A determining unit configured to determine a pipeline arrangement model of the object to be pipeline-arranged according to the first pipeline arrangement path and the second pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, and the third pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, and the fourth pipeline arrangement path, or according to the first pipeline arrangement path, the second pipeline arrangement path, the third pipeline arrangement path, and the fourth pipeline arrangement path;
the first generation unit includes: the device comprises a first determining subunit, a first acquiring subunit, a second determining subunit and a first generating subunit;
the first determining subunit is used for determining the position of the ith 'distribution box model and the position of the ith' +1 distribution box model according to the characteristic information of the distribution box model in the basic attribute information when m is more than or equal to 2; wherein i' =1, 2, … …, m;
the first obtaining subunit is configured to move the i 'th distribution box model position up a preset distance along the z axis to obtain a moving point a, and move the i' +1 th distribution box model position down a preset distance along the z axis to obtain a moving point B;
The second obtaining subunit is configured to obtain a wall midpoint a 'and a wall midpoint B' obtained after the moving point a and the moving point B are projected onto the center line of the corresponding wall model, and obtain a projection point a″ and a projection point b″ obtained after the wall midpoint a 'and the wall midpoint B' are projected onto the floor model with the elevation descending set thickness, respectively;
the second determining subunit is configured to determine a shortest line segment between the projection point a″ and the projection point b″, and use a line segment between the i 'th distribution box model position and the movement point a, a line segment between the movement point a and the wall midpoint a', a line segment between the wall midpoint a 'and the projection point a″, a line segment between the i' +1 th distribution box position and the movement point B, a line segment between the movement point B and the wall midpoint B ', a line segment between the wall midpoint B' and the projection point b″ and the shortest line segment as a line arrangement path of the i 'th distribution box model and the i' +1 th distribution box model;
the first generating subunit is configured to add 1 to the value of i ', and repeatedly execute the steps of the pipeline arrangement paths of the i ' th block terminal model and the i ' +1th block terminal model until the pipeline arrangement paths of the 1 st block terminal model and the 2 nd block terminal model to the pipeline arrangement paths of the m-1 st block terminal model and the m-th block terminal model are obtained, as the first pipeline arrangement path;
The second generation unit includes: a third determination subunit, a fourth determination subunit, a first establishment subunit, a fifth determination subunit, a third acquisition subunit, a sixth determination subunit, a seventh determination subunit, an eighth determination subunit, a ninth determination subunit, a tenth determination subunit, and a second generation subunit;
the third determining subunit is configured to obtain, according to the feature information of the distribution box model in the basic attribute information, i 'th distribution box model position information set on the i' th floor, and a maximum closed area formed by surrounding lines of all room models in the i 'th floor, and use each line segment forming the maximum closed area as an i' th floor outer wall line;
the fourth determining subunit is configured to determine that, when the center point of the room model is in the i ' th floor outer wall line and the center point of the room model and the i ' th distribution box model are not in the same target room model, project the i ' th distribution box model position to the center line of the wall model after moving a set distance along the z axis, project the obtained projection point to a floor model with a layer of elevation falling by a set thickness on the elevation where the target room model is located, obtain a target projection point, move the target projection point along a vertical wall model by a set distance in a direction corresponding to the room model, obtain a target movement point, and project the target movement point to the elevation where the target room model is located, so as to obtain a projection point P; wherein the target model is one of the room models in the i' th floor;
The first establishing subunit is configured to establish a first coordinate system with a long side direction of a minimum circumscribed rectangle formed by all room models in an i' th floor as an X axis and a short side direction of the minimum circumscribed rectangle as a Y axis;
the fifth determining subunit is configured to obtain, in the first coordinate system, a target distance from the central point of the room model to the enclosing line of the target room model, and use the target distance as a reference line;
the third obtaining subunit is configured to obtain an intersection point P ' of the reference line and the i ' th floor outer wall line, and determine a target point P obtained after the intersection point P ' deviates from a set distance;
the sixth determining subunit is configured to determine, when the projection point P is taken as a starting point, an initial direction is taken as a Y-axis direction, and a Y-axis coordinate of a center point of the room model is greater than the Y-axis coordinate of the projection point P, obtain an intersection point D closest to an i' th floor outer wall line along a Y-axis positive direction, and offset the intersection point D by a set distance to obtain an intersection point a;
the seventh determining subunit is configured to, when the target point P is on a line segment between the projection point P and the intersection point a, take a path formed after connecting the projection point P, the target point P, and a central point of the room model as a path between the i' th distribution box model and the central point of the room model;
The eighth determining subunit is configured to determine, when the target point P is not on a line segment between the projection point P and the intersection point a and an X-axis coordinate of the intersection point a is greater than an X-axis coordinate of a central point of the room model, obtain an intersection point B closest to an i' th floor outer wall line along an X-axis negative direction with the intersection point a as a starting point, and obtain an intersection point B after the intersection point B is offset by a set distance;
the ninth determining subunit is configured to determine, when the intersection point b is taken as a starting point and a Y-axis coordinate of the intersection point b is greater than a Y-axis coordinate of a central point of the room model, obtain an intersection point C closest to an i' th floor outer wall line along a Y-axis negative direction with the intersection point b as the starting point, and offset the intersection point C by a set distance to obtain an intersection point C;
the tenth determination subunit is configured to continue to alternately perform the step of acquiring the intersection point closest to the I 'th floor outer wall line to acquire a new intersection point, until the currently acquired intersection point is the intersection point I closest to the reference line, shift the intersection point I by a set distance to obtain an intersection point I, connect the projection point P, the intersection point a, the intersection point b, … …, the intersection point I, the target point P, and the central point of the room model to obtain a first path, and move the first path along the Z axis to a second path obtained when the projection point P in the first path coincides with the target movement point, as a path between the I' th distribution box and the central point of the room model;
And the second generating subunit is configured to add 1 to the value of i ', and repeat the step of executing the path between the i ' th distribution box model and the central point of the room model until the path between the 1 st distribution box and the central point of the room model and the path between the m ' th distribution box and the central point of the room model are obtained, where the path is used as the second pipeline arrangement path.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010076350.1A CN113158281B (en) | 2020-01-23 | 2020-01-23 | Pipeline arrangement model generation method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010076350.1A CN113158281B (en) | 2020-01-23 | 2020-01-23 | Pipeline arrangement model generation method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113158281A CN113158281A (en) | 2021-07-23 |
CN113158281B true CN113158281B (en) | 2023-06-16 |
Family
ID=76881923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010076350.1A Active CN113158281B (en) | 2020-01-23 | 2020-01-23 | Pipeline arrangement model generation method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113158281B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114024258A (en) * | 2022-01-05 | 2022-02-08 | 深圳小库科技有限公司 | Automatic indoor wire arrangement method and device |
CN114818226B (en) * | 2022-06-27 | 2022-09-30 | 深圳小库科技有限公司 | Pipeline arrangement generating method, device, equipment and storage medium for plate building |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136540A (en) * | 2006-09-26 | 2008-03-05 | 杭州鸿雁电器有限公司 | Electric space preconstruction systems |
CN108319751A (en) * | 2017-12-22 | 2018-07-24 | 北京城建设计发展集团股份有限公司 | Subway station pipeline three dimensional device pipeline model automatic generation method |
CN108335356A (en) * | 2017-12-22 | 2018-07-27 | 北京城建设计发展集团股份有限公司 | Subway station threedimensional model automatic generation method |
CN109614723A (en) * | 2018-12-14 | 2019-04-12 | 中建二局第建筑工程有限公司 | A kind of comprehensive construction method based on BIM technology |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363867B (en) * | 2018-02-09 | 2021-04-20 | 广州大学 | Building automatic modeling method based on building drawing |
-
2020
- 2020-01-23 CN CN202010076350.1A patent/CN113158281B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136540A (en) * | 2006-09-26 | 2008-03-05 | 杭州鸿雁电器有限公司 | Electric space preconstruction systems |
CN108319751A (en) * | 2017-12-22 | 2018-07-24 | 北京城建设计发展集团股份有限公司 | Subway station pipeline three dimensional device pipeline model automatic generation method |
CN108335356A (en) * | 2017-12-22 | 2018-07-27 | 北京城建设计发展集团股份有限公司 | Subway station threedimensional model automatic generation method |
CN109614723A (en) * | 2018-12-14 | 2019-04-12 | 中建二局第建筑工程有限公司 | A kind of comprehensive construction method based on BIM technology |
Also Published As
Publication number | Publication date |
---|---|
CN113158281A (en) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109359351B (en) | Three-dimensional modeling method for pipeline and pipeline design method | |
CN113158281B (en) | Pipeline arrangement model generation method and device, computer equipment and storage medium | |
US9477790B2 (en) | Automated MEP design | |
WO2024109959A1 (en) | Three-dimensional automatic design method and apparatus for trays and bearers in gallery, and medium and device | |
CN112231874A (en) | Method and device for establishing underground pipeline model, computer equipment and storage medium | |
CN111950061A (en) | BIM model-based space illumination design method, system, device and medium | |
CN113705019A (en) | Cable laying design system based on digital design process | |
CN110188151A (en) | A kind of method and electronic device generating indoor map based on CAD and GIS | |
WO2024139114A1 (en) | Decoration design restoration method and apparatus, and storage medium | |
CN113096251B (en) | Model processing method, device, equipment and storage medium based on CIM | |
CN117077271B (en) | Automatic generation method and device for garage lamp component, storage medium and equipment | |
CN111985014B (en) | Modeling method and system based on standard atlas | |
CN115935457A (en) | Building ventilation system design method and device, computer equipment and storage medium | |
CN117271500A (en) | Data restoration method and related device for gas pipe network node | |
JP2013097489A (en) | Processor, processing method, processing program and recording medium for point group data | |
CN113221499B (en) | Mask layout generation method and device, computer equipment and storage medium | |
CN110727975B (en) | MEP loop acquisition method, MEP template library construction method, device, equipment and storage medium | |
CN109391947A (en) | A kind of network node dispositions method and device | |
CN103714494B (en) | Power circuit method for building up and device | |
CN113505558B (en) | Automatic connection method for power grid monitoring system equipment elements based on graph algorithm technology | |
US9846758B2 (en) | Method of designing an integrated circuit and computer program product | |
CN114167320B (en) | Method, device, computer equipment and storage medium for determining magnetic field | |
WO2015016394A1 (en) | Information processor, information processing method and computer-readable storage medium for designing an electronic system | |
CN116579111A (en) | Three-dimensional component model generation method, device, equipment, medium and product | |
CN108564873A (en) | Ground drawing generating method and device for power distribution network Business Process System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |