CN117077271B - Automatic generation method and device for garage lamp component, storage medium and equipment - Google Patents

Automatic generation method and device for garage lamp component, storage medium and equipment Download PDF

Info

Publication number
CN117077271B
CN117077271B CN202311317799.2A CN202311317799A CN117077271B CN 117077271 B CN117077271 B CN 117077271B CN 202311317799 A CN202311317799 A CN 202311317799A CN 117077271 B CN117077271 B CN 117077271B
Authority
CN
China
Prior art keywords
lamp
lamps
arrangement
arrangement area
target arrangement
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
Application number
CN202311317799.2A
Other languages
Chinese (zh)
Other versions
CN117077271A (en
Inventor
汪从超
张一丁
杨洪伟
何楂
李家胤
何威
宫佑民
张银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zwcad Software Co ltd
Original Assignee
Zwcad Software Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zwcad Software Co ltd filed Critical Zwcad Software Co ltd
Priority to CN202311317799.2A priority Critical patent/CN117077271B/en
Publication of CN117077271A publication Critical patent/CN117077271A/en
Application granted granted Critical
Publication of CN117077271B publication Critical patent/CN117077271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application provides a garage lamp component automatic generation method, device, storage medium and equipment. The method comprises the following steps: identifying a fireproof partition in a civil model and acquiring boundary information of the fireproof partition; determining a coverage area of the fire partition based on boundary information of the fire partition; acquiring the type and corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition; acquiring a corresponding lamp arrangement rule based on the type of each target arrangement area; calculating plane coordinates of lamp arrangement points in each target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area; acquiring a preset installation height corresponding to each target arrangement area; and adding lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height. The method and the device can automatically generate the lamp components in the garage in various space areas.

Description

Automatic generation method and device for garage lamp component, storage medium and equipment
Technical Field
The application relates to the technical field of building design, in particular to a method, a device, a storage medium and equipment for automatically generating garage lamp components.
Background
When the building design of the basement public garage is carried out, electrical designs such as illumination are required, and a designer needs to add lamp components according to the information such as the structure of the garage, the space positions of the roadway and the parking space. In the garage design of the space region rule at present, can help the designer to carry out the component through appurtenance and add, but relate to irregular region, still need manual design and add, information processing is great, design inefficiency, and easily makes mistakes.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and equipment for automatically generating a lamp component of a garage, which can realize the automatic generation of the lamp component in the garage in various spatial areas.
In a first aspect, the present application provides a method for automatically generating a garage light component, the method comprising:
identifying a fireproof partition in a civil model and acquiring boundary information of the fireproof partition;
determining a coverage area of the fire partition based on boundary information of the fire partition;
acquiring the type and corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition;
acquiring a corresponding lamp arrangement rule based on the type of each target arrangement area;
calculating plane coordinates of lamp arrangement points in each target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area;
acquiring a preset installation height corresponding to each target arrangement area;
and adding lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
In one embodiment, the calculating, according to the luminaire arrangement rule and the coordinate information corresponding to each target arrangement area, the plane coordinates of the luminaire arrangement points in the target arrangement area includes:
calculating the size of the target arrangement area based on the coordinate information of the target arrangement area;
determining a lamp arrangement mode and a lamp arrangement interval according to a lamp arrangement rule corresponding to the target arrangement area;
and calculating the plane coordinates of the lamp arrangement points according to the size of the target arrangement area, the lamp arrangement mode and the lamp arrangement interval.
In one embodiment, the adding the lamp component based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height includes:
determining the type of the lamp component according to the type of each target arrangement area; the type of the lamp component comprises a parking space lamp and a lane lamp;
and adding corresponding types of lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
In one embodiment, if the target arrangement area is a roadway, the lamps are arranged in a double-sided arrangement or a single-sided arrangement along the travelling direction.
In one embodiment, if the target arrangement area is a common parking space, the lamp arrangement mode is that the lamp is arranged on a single end of the parking space;
if the target arrangement area is a primary parking space and a secondary parking space, the lamps are arranged at two ends of the parking space or respectively arranged at the middle part of the primary parking space and one end of the primary parking space and the secondary parking space.
In one embodiment, the method further comprises:
obtaining the total number of lamp components of each lamp component type in the fireproof partition;
calculating the number of lamp loops and the number of lamps in a single loop based on preset constraint conditions of the lamp loops and the total number of lamp components;
and traversing all lamps in sequence along a preset direction by taking the set starting point lamp as a starting point lamp, and adding numbers to the lamps in each lamp loop according to the loops to which the lamps belong on the basis of a preset numbering rule.
In one embodiment, the calculating the number of lamp loops and the number of lamps in a single loop based on the preset constraint condition of the lamp loops and the total number of lamp components includes:
the number of luminaire loops and the number of luminaires in a single loop are calculated based on the following expression:
wherein,Stotal number of lamp components for a single type;nas the number of the loops of the lamp,ais thatnThe number of lamps in one of the loops;S、n、aare all integers of the total number of the two,Pfor a lower limit value of the number of luminaires in a single loop,Qan upper limit value for the number of lamps in a single loop;
if a plurality of groups of calculation results are obtained, calculating the difference degree among the lamp numbers in each single loop in each group of calculation results;
and determining a group of calculation results with the lowest difference degree as the number of lamp loops corresponding to the type of the lamp components and the number of lamps in a single loop.
In one embodiment, if the types of the lamp components are multiple, traversing all lamps sequentially along a predetermined direction with the set starting point lamp as the starting point, and adding numbers to the lamps in each lamp loop according to the loop to which each lamp belongs based on a preset numbering rule, wherein the method comprises the following steps:
selecting one of the lamp component types;
determining a starting point lamp of the type of the currently selected lamp component;
sequentially traversing all lamps of the type of the currently selected lamp component along a preset direction by taking the starting lamp as a starting lamp, and respectively adding numbers to the lamp components in each loop based on the traversed loop sequence;
selecting the next lamp component type, determining the corresponding starting point lamp for traversing, and adding numbers to the lamp components in each loop based on the traversing loop sequence after the numbering sequence based on the last lamp component type is in order until the numbering of all lamp component types is completed.
In a second aspect, the present application provides an automatic garage light component generating device, including:
the first acquisition module is used for identifying fireproof subareas in the civil engineering model and acquiring boundary information of the fireproof subareas;
the area determining module is used for determining the coverage area of the fireproof subarea based on the boundary information of the fireproof subarea;
the second acquisition module is used for acquiring the type and the corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition;
the third acquisition module is used for acquiring corresponding lamp arrangement rules based on the type of each target arrangement area;
the coordinate calculation module is used for calculating plane coordinates of lamp arrangement points in each target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area;
a fourth obtaining module, configured to obtain a preset installation height corresponding to each target arrangement area;
and the component adding module is used for adding lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
In a third aspect, the present application provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the garage light fixture component auto-generation method as described in any one of the preceding claims.
In a fourth aspect, the present application provides a computer device comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the garage light fixture component auto-generation method of any of the above.
From the above technical solutions, the embodiments of the present application have the following advantages:
according to the garage lamp component automatic generation method, device, storage medium and equipment, boundary information of a fireproof partition is identified and obtained based on a civil model, a covered space area is determined, types of target arrangement areas needing to be arranged for lamp components in the covered area of the fireproof partition and corresponding coordinate information are obtained, planar coordinates of lamp arrangement points are calculated according to lamp arrangement rules corresponding to different types of target arrangement areas set by a designer in combination with the coordinate information, lamp components are automatically added based on the planar coordinates of the lamp arrangement points and lamp preset installation heights corresponding to the target arrangement areas, the internal building information of the garage is identified by utilizing design data in the civil model, automatic lamp component addition is achieved according to the arrangement rules defined for the different types of areas, limitation of the space area is avoided, and design efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flow chart of a method for automatically generating a garage light fixture component in one embodiment;
FIG. 2 is a flowchart of a step of calculating planar coordinates of light fixture placement points in the target placement areas according to the light fixture placement rules and the coordinate information corresponding to each target placement area in one embodiment;
FIG. 3 is a schematic flow chart of a method for automatically generating a garage light component according to an embodiment;
fig. 4 is a schematic flow chart of a step of sequentially traversing all lamps along a predetermined direction with a set starting point lamp as a starting point, and adding numbers to lamps in each lamp loop according to loops to which the lamps belong based on a preset numbering rule;
FIG. 5 is a block diagram of an automated garage light fixture component generation apparatus, in one embodiment;
FIG. 6 is an internal block diagram of a computer device, in one embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The underground parking garage needs to consider fireproof safety when designing, divide into a plurality of fireproof subareas with the parking garage and carry out fireproof management and control to can effective control when the conflagration breaks out, can set up the wall facilities such as preventing fires between the different fireproof subareas. The method and the device are applied to a BIM model design platform, and automatic generation of lamp components is carried out based on a BIM civil engineering model of the underground parking garage. In the embodiment of the application, the method for automatically generating the lamp components is described by taking a single fireproof partition as an example, and the method provided by the embodiment of the application can simultaneously execute automatic addition of the lamp components to each fireproof partition in the parking garage.
As shown in fig. 1, an embodiment of the present application provides a method for automatically generating a garage light component, where the method includes steps S101 to S107, where:
step S101, identifying fireproof subareas in the civil engineering model and acquiring boundary information of the fireproof subareas.
The relevant information of the fireproof subareas and the internal facilities thereof can be obtained through the information such as the component attribute, the primitive attribute and the like of the civil model, and the fireproof subareas of the garage and the boundary information of each fireproof subarea are identified.
Step S102, a coverage area of the fireproof subarea is determined based on the boundary information of the fireproof subarea.
And determining the coverage area of each fireproof subarea according to the acquired boundary information of each fireproof subarea.
Step S103, the type and the corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition are obtained.
The target arrangement areas are areas which need to be subjected to illumination design in the fireproof subareas, the areas can be divided into a plurality of independent target arrangement areas according to functions or positions, and the addition of the lamp components is performed based on the divided target arrangement areas, so that the limitation of whether the fireproof subarea space is regular or not is avoided. For example, the area to be illuminated may be divided into a lane line area and a parking space area, and further, the lane line area may be subdivided into a plurality of small areas according to the position and the traveling direction, and the parking space area may be divided into one small area with a single or a plurality of parking spaces. Based on the partition mode set by the person skilled in the art, the target arrangement area is divided into a plurality of target arrangement areas. The types of the target arrangement areas are divided according to functions, and in one embodiment, the types of the target arrangement areas are determined according to the component names of the corresponding areas. The coordinate information of the target arrangement region includes boundary line coordinate information, vertex coordinate information, center point coordinate information, and the like.
Step S104, acquiring a corresponding lamp arrangement rule based on the type of each target arrangement area.
In order to improve the flexibility of automatically adding the lamp components, the lamp arrangement rules can be defined according to the types of the target arrangement areas, and the corresponding lamp arrangement rules can be obtained after the types of the target arrangement areas are determined. In some embodiments, the luminaire arrangement rules may be modified as desired.
Step S105, calculating the plane coordinates of the lamp arrangement points in the target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area.
Based on the lamp arrangement rules, the plane coordinates of the lamp arrangement points in each target arrangement area can be calculated by taking the coordinate information of the target arrangement areas as a reference.
Step S106, obtaining a preset installation height corresponding to each target arrangement area.
The preset installation height is the installation height of the lamp, and the three-dimensional coordinate is determined together with the plane coordinate. The mounting height may be set as desired for different target placement areas, in some embodiments different preset mounting heights may be set according to the type of target placement area, in another embodiment different preset mounting heights may be set according to the location of the target placement area in the fire partition or the location of the fire partition to which it belongs.
Step S107, adding a lamp member based on the plane coordinates of the lamp arrangement points in each target arrangement area and a preset installation height.
Adding the luminaire component includes inserting the component in the BIM model and adding the corresponding component attribute in the build attribute table.
In one embodiment, the adding the lamp component based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height includes: determining the type of the lamp component according to the type of each target arrangement area; adding corresponding types of lamp components based on plane coordinates of lamp arrangement points in each target arrangement area and a preset installation height; the lamp component comprises a parking space lamp and a lane lamp.
According to the embodiment of the application, boundary information of a fireproof partition is identified and acquired based on a civil model, a covered space area is determined, types and corresponding coordinate information of each target arrangement area needing to be arranged for lamp components in the covered area of the fireproof partition are acquired, planar coordinates of lamp arrangement points are calculated according to lamp arrangement rules corresponding to different types of target arrangement areas set by a designer and combined with the coordinate information, the lamp components are automatically added based on the planar coordinates of the lamp arrangement points and lamp preset installation heights corresponding to each target arrangement area, the internal building information of a garage is identified by utilizing design data in the civil model, the automatic addition of the lamp components is realized according to the arrangement rules defined for the different types of areas, the limitation of the space area is avoided, and the design efficiency is improved.
As shown in fig. 2, in one embodiment, the calculating the plane coordinates of the luminaire arrangement points in the target arrangement area according to the luminaire arrangement rule and the coordinate information corresponding to each target arrangement area includes steps S201 to S203, where:
step S201, the size of the target arrangement area is calculated based on the coordinate information of the target arrangement area.
Step S202, determining a lamp arrangement mode and a lamp arrangement interval according to a lamp arrangement rule corresponding to the target arrangement area.
In different target placement areas, there may be differences in lighting patterns and lighting areas, and the lighting patterns may be defined by defining lighting placement rules. In one embodiment, if the target placement area is a roadway, the light fixtures are placed in a double-sided or single-sided arrangement along the direction of travel. In one embodiment, if the target arrangement area is a common parking space, the lamp arrangement mode is that the lamp is arranged on one end of the parking space; if the target arrangement area is the primary parking space, the lamp arrangement mode is that the two ends of the parking space are arranged, or lamps are respectively arranged in the middle of the primary parking space and one end of the primary parking space. The primary parking space and the secondary parking space are formed by combining two large parking spaces and the small parking spaces and are longitudinally arranged, so that lamps can be respectively arranged at two ends of the parking spaces, namely one end of the large parking space, which is away from the small parking space, and one end of the small parking space, which is away from the large parking space; in some embodiments, a group of lamps can be arranged in the middle of the primary parking space and the secondary parking space, namely, at the joint of the big parking space and the small parking space, and a group of lamps are arranged at one end of the big parking space deviating from the small parking space or one end of the small parking space deviating from the big parking space, so that a better illumination effect is realized.
The luminaire arrangement pitch may comprise an arrangement pitch between adjacent luminaires within the same target arrangement area and an arrangement pitch between adjacent luminaires in different target arrangement areas, and in some embodiments also an arrangement pitch between borderlines of luminaires and target arrangement areas.
Step S203, calculating the plane coordinates of the lamp arrangement points according to the size of the target arrangement area, the lamp arrangement mode and the lamp arrangement interval.
After the lamp arrangement mode and the lamp arrangement interval are determined, the lamp arrangement quantity in each target arrangement area can be determined by combining the sizes of the target arrangement areas, the icon sizes of the lamp components are preset values, and the plane coordinates of the lamp arrangement points can be calculated by taking the coordinate information of the target arrangement areas as a reference according to the icon sizes of the lamp components.
As shown in fig. 3, in one embodiment, the garage light component automatic generation method further includes steps S301 to S303, wherein:
step S301, obtaining the total number of lamp components of each lamp component type in the fireproof partition.
Counting component attributes to obtain the total number of lamp components of each lamp component type in the fireproof partition, and when only one lamp component type exists in the fireproof partition, only obtaining the number of one lamp component type; when a plurality of lamp component types exist, the total number of lamp components of each lamp component type is acquired respectively.
Step S302, calculating the number of lamp loops and the number of lamps in a single loop based on preset constraint conditions of the lamp loops and the total number of lamp components.
Step S303, sequentially traversing all lamps along a preset direction by taking the set starting point lamp as a starting point, and adding numbers to the lamps in each lamp loop according to the loops to which the lamps belong based on a preset numbering rule.
The set starting point luminaire is a luminaire component selected by a designer among automatically added luminaire components for use as a numbered traversal starting point.
In the embodiment, on the basis of automatically adding the lamp components, automatic distribution of the lamp electrical circuits is performed, and numbers are automatically added according to the distributed circuits and a preset numbering rule, so that the efficiency and accuracy of model design are further improved.
In one embodiment, the calculating the number of lamp loops and the number of lamps in a single loop based on the preset constraint condition of the lamp loops and the total number of lamp components includes:
the number of luminaire loops and the number of luminaires in a single loop are calculated based on the following expression:
wherein,Stotal number of lamp components for a single type;nas the number of the loops of the lamp,ais thatnThe number of lamps in one of the loops;S、n、aare all integers of the total number of the two,Pfor a lower limit value of the number of luminaires in a single loop,Qan upper limit value for the number of lamps in a single loop;
if a plurality of groups of calculation results are obtained, calculating the difference degree among the lamp numbers in each single loop in each group of calculation results;
and determining a group of calculation results with the lowest difference degree as the number of lamp loops corresponding to the type of the lamp components and the number of lamps in a single loop.
In this embodiment, the difference degree may be a variance or standard deviation of the number of lamps in each loop, and the difference degree is used to determine whether the number of lamps in each loop is uniformly distributed, and a set of calculation results with the most uniform distribution mode is selected to determine the loop distribution mode of the lamps.
As shown in fig. 4, in one embodiment, if the types of the lamp components are multiple, the sequentially traversing all lamps in a predetermined direction with the set starting point lamp as the starting point, adding numbers to the lamps in each lamp loop according to the loop to which each lamp belongs based on a preset numbering rule, including:
step S401, selecting one of the lamp component types;
step S402, determining a starting point lamp of the type of the currently selected lamp component;
step S403, sequentially traversing all lamps of the currently selected lamp component type along a predetermined direction with the starting lamp as a starting lamp, and adding numbers to the lamp components in each loop based on the traversed loop sequence.
In some embodiments, the lamp components in the same circuit are numbered identically, e.g., are all N 1 . In other embodiments, the light fixture components in each loop are numbered sequentially according to a traversal order, e.g., 3 light fixture components in the first loop are N in sequence 11 ,N 12 ,N 13
If at the current selected lampThe numbering of the other luminaire component types has been completed before the component type, the numbering proceeding start order of the currently selected luminaire component type is the next order of the last luminaire component type. For example, the first type of light fixture component includes 3 loops, and the number of the first type of light fixture component is N in turn according to the sequence of the loops traversed 1 、N 2 、N 3 The second type of lamp comprises 4 loops, and the numbers of the lamp components of the second type are N in turn according to the sequence of the loops traversed 4 ,N 5 ,N 6 ,N 7
If the numbering of all the lamp component types is not completed, returning to the step S401, and continuing to number the lamp component of the next lamp component type until the numbering of all the lamp component types is completed.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order 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 the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The following describes the automatic generation device of the garage lamp component provided by the embodiment of the application, and the automatic generation device of the garage lamp component and the automatic generation method of the garage lamp component described in the following can be correspondingly referred to each other.
As shown in fig. 5, an embodiment of the present application provides an automatic generating device 500 for a garage light fixture component, including:
a first obtaining module 501, configured to identify a fireproof partition in a civil model and obtain boundary information of the fireproof partition;
a region determination module 502 configured to determine a coverage region of the fireproof partition based on boundary information of the fireproof partition;
a second obtaining module 503, configured to obtain types of each target placement area and corresponding coordinate information in the coverage area of the fireproof partition;
a third obtaining module 504, configured to obtain a corresponding luminaire arrangement rule based on a type of each target arrangement area;
the coordinate calculation module 505 is configured to calculate plane coordinates of the luminaire arrangement points in each target arrangement area according to the luminaire arrangement rule and the coordinate information corresponding to each target arrangement area;
a fourth obtaining module 506, configured to obtain a preset installation height corresponding to each target arrangement area;
the component adding module 507 adds the lamp components based on the planar coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
In one embodiment, the coordinate calculation module is configured to perform the steps of:
calculating the size of the target arrangement area based on the coordinate information of the target arrangement area;
determining a lamp arrangement mode and a lamp arrangement interval according to a lamp arrangement rule corresponding to the target arrangement area;
and calculating the plane coordinates of the lamp arrangement points according to the size of the target arrangement area, the lamp arrangement mode and the lamp arrangement interval.
In one embodiment, the component adding module is configured to perform the steps of:
determining the type of the lamp component according to the type of each target arrangement area; the type of the lamp component comprises a parking space lamp and a lane lamp;
and adding corresponding types of lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
In one embodiment, the garage light fixture component automatic generation apparatus further includes:
a fifth obtaining module, configured to obtain a total number of lamp components of each lamp component type in the fireproof partition;
the loop distribution module is used for calculating the number of the loops of the lamps and the number of the lamps in a single loop based on preset constraint conditions of the loops of the lamps and the total number of the components of the lamps;
the numbering module is used for traversing all lamps in a preset direction by taking the set starting point lamp as a starting point, and numbering the lamps in each lamp loop according to the loop to which each lamp belongs based on a preset numbering rule.
In one embodiment, the loop allocation module is configured to perform the steps of:
the number of luminaire loops and the number of luminaires in a single loop are calculated based on the following expression:
wherein,Stotal number of lamp components for a single type;nas the number of the loops of the lamp,ais thatnThe number of lamps in one of the loops;S、n、aare all integers of the total number of the two,Pfor a lower limit value of the number of luminaires in a single loop,Qan upper limit value for the number of lamps in a single loop;
if a plurality of groups of calculation results are obtained, calculating the difference degree among the lamp numbers in each single loop in each group of calculation results;
and determining a group of calculation results with the lowest difference degree as the number of lamp loops corresponding to the type of the lamp components and the number of lamps in a single loop.
In one embodiment, when the luminaire component types are multiple, the numbering module is configured to perform the steps of:
selecting one of the lamp component types;
determining a starting point lamp of the type of the currently selected lamp component;
sequentially traversing all lamps of the type of the currently selected lamp component along a preset direction by taking the starting lamp as a starting lamp, and respectively adding numbers to the lamp components in each loop based on the traversed loop sequence;
selecting the next lamp component type, determining the corresponding starting point lamp for traversing, and adding numbers to the lamp components in each loop based on the traversing loop sequence after the numbering sequence based on the last lamp component type is in order until the numbering of all lamp component types is completed.
The division of each module in the automatic garage light component generating device is only used for illustration, and in other embodiments, the automatic garage light component generating device can be divided into different modules according to the needs, so that all or part of functions of the automatic garage light component generating device can be completed. All or part of the modules in the automatic generation device of the garage lamp component can be realized 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, the present application also provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the garage light fixture component auto-generation method as described in any of the embodiments above.
In one embodiment, the present application further provides a computer device, where computer readable instructions are stored in the computer device, and when the one or more processors execute the computer readable instructions, the steps of the garage light component automatic generation method according to any one of the foregoing embodiments are executed.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. 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, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method for automatically generating a garage light fixture component. 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. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be 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.
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, database, or other medium used in the various 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, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. 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 processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and may be combined according to needs, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. An automatic generation method of garage lamp components is characterized by comprising the following steps:
identifying a fireproof partition in a civil model and acquiring boundary information of the fireproof partition;
determining a coverage area of the fire partition based on boundary information of the fire partition;
acquiring the type and corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition;
acquiring a corresponding lamp arrangement rule based on the type of each target arrangement area;
calculating plane coordinates of lamp arrangement points in each target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area;
acquiring a preset installation height corresponding to each target arrangement area;
adding lamp components based on plane coordinates of lamp arrangement points in each target arrangement area and a preset installation height;
obtaining the total number of lamp components of each lamp component type in the fireproof partition;
the number of luminaire loops and the number of luminaires in a single loop are calculated based on the following expression:
wherein,Stotal number of lamp components for a single type;nas the number of the loops of the lamp,ais thatnThe number of lamps in one of the loops;S、n、aare all integers of the total number of the two,Pfor a lower limit value of the number of luminaires in a single loop,Qan upper limit value for the number of lamps in a single loop;
if a plurality of groups of calculation results are obtained, calculating the difference degree among the lamp numbers in each single loop in each group of calculation results;
determining a group of calculation results with the lowest difference degree as the number of lamp loops corresponding to the type of the lamp component and the number of lamps in a single loop;
and traversing all lamps in sequence along a preset direction by taking the set starting point lamp as a starting point lamp, and adding numbers to the lamps in each lamp loop according to the loops to which the lamps belong on the basis of a preset numbering rule.
2. The method for automatically generating a garage light fixture component according to claim 1, wherein calculating the plane coordinates of the light fixture arrangement points in each target arrangement area according to the light fixture arrangement rule and the coordinate information corresponding to each target arrangement area comprises:
calculating the size of the target arrangement area based on the coordinate information of the target arrangement area;
determining a lamp arrangement mode and a lamp arrangement interval according to a lamp arrangement rule corresponding to the target arrangement area;
and calculating the plane coordinates of the lamp arrangement points according to the size of the target arrangement area, the lamp arrangement mode and the lamp arrangement interval.
3. The automatic garage light fixture component generation method according to claim 1 or 2, wherein adding the light fixture component based on the planar coordinates of the light fixture arrangement points in each target arrangement area and the preset installation height comprises:
determining the type of the lamp component according to the type of each target arrangement area; the type of the lamp component comprises a parking space lamp and a lane lamp;
and adding corresponding types of lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height.
4. The automatic generation method of garage light fixture component according to claim 2, wherein if the target arrangement area is a roadway, the light fixture arrangement manner is a double-sided arrangement or a single-sided arrangement along the traveling direction.
5. The automatic generation method of garage lamp components according to claim 2, wherein if the target arrangement area is a common parking space, the lamp arrangement mode is that the garage lamp components are arranged on a single end of the parking space;
if the target arrangement area is a primary parking space and a secondary parking space, the lamps are arranged at two ends of the parking space or respectively arranged at the middle part of the primary parking space and one end of the primary parking space and the secondary parking space.
6. The automatic garage lamp component generating method according to claim 1, wherein if the lamp component types are plural, traversing all lamps in a predetermined direction sequentially with a set starting point lamp as a starting point, adding numbers to the lamps in each lamp loop according to the loop to which each lamp belongs based on a preset numbering rule, respectively, including:
selecting one of the lamp component types;
determining a starting point lamp of the type of the currently selected lamp component;
sequentially traversing all lamps of the type of the currently selected lamp component along a preset direction by taking the starting lamp as a starting lamp, and respectively adding numbers to the lamp components in each loop based on the traversed loop sequence;
selecting the next lamp component type, determining the corresponding starting point lamp for traversing, and adding numbers to the lamp components in each loop based on the traversing loop sequence after the numbering sequence based on the last lamp component type is in order until the numbering of all lamp component types is completed.
7. An automatic generating device for a garage lamp component is characterized by comprising:
the first acquisition module is used for identifying fireproof subareas in the civil engineering model and acquiring boundary information of the fireproof subareas;
the area determining module is used for determining the coverage area of the fireproof subarea based on the boundary information of the fireproof subarea;
the second acquisition module is used for acquiring the type and the corresponding coordinate information of each target arrangement area in the coverage area of the fireproof partition;
the third acquisition module is used for acquiring corresponding lamp arrangement rules based on the type of each target arrangement area;
the coordinate calculation module is used for calculating plane coordinates of lamp arrangement points in each target arrangement area according to the lamp arrangement rules and the coordinate information corresponding to each target arrangement area;
a fourth obtaining module, configured to obtain a preset installation height corresponding to each target arrangement area;
the component adding module is used for adding lamp components based on the plane coordinates of the lamp arrangement points in each target arrangement area and the preset installation height;
a fifth obtaining module, configured to obtain a total number of lamp components of each lamp component type in the fireproof partition;
the loop distribution module is used for calculating the number of the loops of the lamps and the number of the lamps in a single loop based on preset constraint conditions of the loops of the lamps and the total number of the components of the lamps;
the numbering module is used for traversing all lamps in a preset direction by taking a set starting point lamp as a starting point, and adding numbers to the lamps in each lamp loop according to the loops to which the lamps belong respectively based on a preset numbering rule;
wherein the loop allocation module is configured to perform the steps of:
the number of luminaire loops and the number of luminaires in a single loop are calculated based on the following expression:
wherein,Stotal number of lamp components for a single type;nas the number of the loops of the lamp,ais thatnThe number of lamps in one of the loops;S、n、aare all integers of the total number of the two,Pfor a lower limit value of the number of luminaires in a single loop,Qan upper limit value for the number of lamps in a single loop;
if a plurality of groups of calculation results are obtained, calculating the difference degree among the lamp numbers in each single loop in each group of calculation results;
and determining a group of calculation results with the lowest difference degree as the number of lamp loops corresponding to the type of the lamp components and the number of lamps in a single loop.
8. A storage medium, characterized by: the storage medium has stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the garage light component automatic generation method of any of claims 1 to 6.
9. A computer device, comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the garage light fixture component auto-generation method of any of claims 1 to 6.
CN202311317799.2A 2023-10-12 2023-10-12 Automatic generation method and device for garage lamp component, storage medium and equipment Active CN117077271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311317799.2A CN117077271B (en) 2023-10-12 2023-10-12 Automatic generation method and device for garage lamp component, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311317799.2A CN117077271B (en) 2023-10-12 2023-10-12 Automatic generation method and device for garage lamp component, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN117077271A CN117077271A (en) 2023-11-17
CN117077271B true CN117077271B (en) 2024-02-09

Family

ID=88711920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311317799.2A Active CN117077271B (en) 2023-10-12 2023-10-12 Automatic generation method and device for garage lamp component, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN117077271B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117454496B (en) * 2023-12-25 2024-03-22 合肥坤颐建筑科技合伙企业(有限合伙) Fire control broadcast arrangement method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015195084A (en) * 2014-03-31 2015-11-05 マイクロコントロールシステムズ株式会社 Lighting system suitable for passage and motion region of passage body, lighting lamp and lighting method
FR3061341A1 (en) * 2016-12-23 2018-06-29 Eiffage Construction SYSTEM AND METHOD FOR LIGHTING AND COMMUNICATING INFORMATION IN PARKING FOR MOTOR VEHICLES.
CN113966058A (en) * 2021-11-30 2022-01-21 永馨智慧科技(杭州)有限公司 Intelligent garage system based on intelligent lamp
CN115292781A (en) * 2022-07-22 2022-11-04 上海品览数据科技有限公司 Lighting lamp loop dividing method, device, equipment and storage medium
CN115455615A (en) * 2022-06-24 2022-12-09 合肥坤颐建筑科技合伙企业(有限合伙) Automatic emergency lamp arrangement method, device, equipment and storage medium
CN115510519A (en) * 2022-06-20 2022-12-23 合肥坤颐建筑科技合伙企业(有限合伙) Lane lamp planning method, device, equipment and storage medium
CN115758543A (en) * 2022-11-30 2023-03-07 上海天华建筑设计有限公司 Automatic layout method for underground garage lane illumination

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015195084A (en) * 2014-03-31 2015-11-05 マイクロコントロールシステムズ株式会社 Lighting system suitable for passage and motion region of passage body, lighting lamp and lighting method
FR3061341A1 (en) * 2016-12-23 2018-06-29 Eiffage Construction SYSTEM AND METHOD FOR LIGHTING AND COMMUNICATING INFORMATION IN PARKING FOR MOTOR VEHICLES.
CN113966058A (en) * 2021-11-30 2022-01-21 永馨智慧科技(杭州)有限公司 Intelligent garage system based on intelligent lamp
CN115510519A (en) * 2022-06-20 2022-12-23 合肥坤颐建筑科技合伙企业(有限合伙) Lane lamp planning method, device, equipment and storage medium
CN115455615A (en) * 2022-06-24 2022-12-09 合肥坤颐建筑科技合伙企业(有限合伙) Automatic emergency lamp arrangement method, device, equipment and storage medium
CN115292781A (en) * 2022-07-22 2022-11-04 上海品览数据科技有限公司 Lighting lamp loop dividing method, device, equipment and storage medium
CN115758543A (en) * 2022-11-30 2023-03-07 上海天华建筑设计有限公司 Automatic layout method for underground garage lane illumination

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
地下车库照明节能设计探讨;刘力红 等;《绿色建筑电气节能技术》;第10卷(第3期);第19-22页 *

Also Published As

Publication number Publication date
CN117077271A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN117077271B (en) Automatic generation method and device for garage lamp component, storage medium and equipment
CN108228986B (en) Automatic generation method of three-dimensional building model of subway station
CN108335356B (en) Automatic generation method of three-dimensional model of subway station
KR101320221B1 (en) Method and apparatus for copying objects in an object-oriented environment using a multiple-transaction technique
US10950046B1 (en) Generating two-dimensional views with gridline information
US20130125078A1 (en) Interactive Routing Editor with Symbolic and Geometric Views for Integrated Circuit Layout
AU2018204650A1 (en) Node placement planning
CN115879189A (en) Underground garage ventilation system design method based on BIM platform and related equipment
US20210117596A1 (en) Dynamic Adjustment of Cross-Sectional Views
JP5194909B2 (en) Maintenance inspection support program, maintenance inspection support device, and maintenance inspection support method
CN113158281A (en) Pipeline arrangement model generation method and device, computer equipment and storage medium
JPWO2016088335A1 (en) Light environment design support device, light environment design support system, program
CN103745072A (en) Method for automatically expanding defect pattern library
JP6818567B2 (en) Piping route creation device, piping route creation method and program
JP2018136664A (en) Graphic data processing device and graphic data processing method and graphic data processing program
JP5731335B2 (en) Object extraction system and program for two-dimensional CAD data
CN115292781A (en) Lighting lamp loop dividing method, device, equipment and storage medium
CN113962182A (en) Circuit design scheme generation method and device, computer equipment and storage medium
CN114730347A (en) Computer-implemented techniques for creating a layout of a physical space
CN114329681A (en) Method and device for generating smoke exhaust path model
CN117436399B (en) Automatic layout method and device of circuit schematic diagram device and electronic equipment
CN113836615B (en) Intelligent matching method and system for house type modules in standard layer
CN117093737A (en) Visual method, device and equipment for underground pipe gallery and storage medium
JP2013054567A (en) Method and device for layout of semiconductor integrated circuit, and program
CN113553685B (en) Lighting device arrangement method and device and electronic equipment

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