CN114139268A - Method and device for determining area contour, electronic equipment and medium - Google Patents

Method and device for determining area contour, electronic equipment and medium Download PDF

Info

Publication number
CN114139268A
CN114139268A CN202111509019.5A CN202111509019A CN114139268A CN 114139268 A CN114139268 A CN 114139268A CN 202111509019 A CN202111509019 A CN 202111509019A CN 114139268 A CN114139268 A CN 114139268A
Authority
CN
China
Prior art keywords
boundary line
determining
boundary
type
space
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.)
Pending
Application number
CN202111509019.5A
Other languages
Chinese (zh)
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.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space Technology 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 Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202111509019.5A priority Critical patent/CN114139268A/en
Publication of CN114139268A publication Critical patent/CN114139268A/en
Pending legal-status Critical Current

Links

Images

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
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Structural Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a method and a device for determining an area contour, electronic equipment and a medium, and belongs to the technical field of software. The method comprises the following steps: acquiring a space contour of a space module; determining the boundary type of a boundary line in the space outline of the space module and the space attributes on two sides of the boundary line; determining an offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line; and shifting the boundary line of the space outline of the space module based on the shifting parameter of the boundary line so as to obtain the area outline of the area object corresponding to the space module. Based on the technical scheme provided by the embodiment of the disclosure, the problem of high error rate of drawing of the area boundary line can be solved.

Description

Method and device for determining area contour, electronic equipment and medium
Technical Field
The disclosure belongs to the technical field of software, and particularly relates to a method and a device for determining an area contour, electronic equipment and a medium.
Background
Currently, as software technology develops, more and more processes can be processed based on software, for example, drawing of a building model can be processed based on professional drawing software such as CAD, Revit and the like.
Generally, in the process of designing a building drawing, a boundary line of an area is drawn in a building information model mainly through manual software, and drawing personnel are required to determine the position of each line segment according to the design drawing and manually draw the line segment in the model.
However, according to the above processing method, the manual drawing workload is extremely large, and the drawing details are complicated, so that the error rate of drawing the area boundary line is high.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus, an electronic device, and a medium for determining an area contour, which can solve the problem of a high error rate of drawing an area boundary line.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides a method for determining an area profile, where the method includes: acquiring a space contour of a space module; determining the boundary type of a boundary line in the space outline of the space module and the space attributes on two sides of the boundary line; determining the offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line; and shifting the boundary line of the space contour of the space module based on the shifting parameter of the boundary line to obtain the area contour of the area object of the space module.
In a second aspect, an embodiment of the present disclosure provides an apparatus for area profiling, the apparatus including: the device comprises an acquisition module, a determination module and a deviation module; the acquisition module is used for acquiring the space outline of the space module; the determining module is used for determining the boundary type of the boundary line in the space outline of the space module and the space attributes on two sides of the boundary line; determining an offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line; and the offset module is used for offsetting the boundary line of the space outline of the space module based on the offset parameter of the boundary line so as to obtain the area outline of the area object of the space module.
In a third aspect, the disclosed embodiments provide an electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, the embodiments of the present disclosure provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the disclosed embodiments provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the method according to the first aspect.
In the embodiment of the present disclosure, first, a spatial profile of a spatial module may be obtained in advance; secondly, determining the boundary type of the boundary line in the space module and the space attributes at two sides of the boundary line; then, determining the offset parameter of the boundary line in the space module according to the boundary type of the boundary line of the space module and the space attributes on the two sides of the boundary line; and finally, according to the deviation parameter of the boundary line, deviating the boundary line of the space outline of the space module to obtain the area outline of the area object of the space module. That is, the boundary parameter of the boundary may be determined based on the boundary type of the boundary line of the spatial profile of one spatial module and the spatial attributes on both sides of the boundary line, and the boundary line of the spatial profile of the spatial module may be shifted based on the boundary parameter of the boundary line, so as to obtain the area profile of the area object of the spatial module. Compared with the prior art, the area contour automatic judging method has the advantages that the condition that a plurality of line segments are drawn and connected into the area line based on drawing judgment is not needed manually, the condition that the area object is placed after the area line is drawn is not needed, the condition that each boundary line deviates to the corresponding side can be judged automatically directly based on the attribute of each boundary line in the space contour of each space module and the space attributes on the two sides of each boundary line, the area contour of the area object of each space module is generated automatically according to the deviated boundary line connection, the operation steps of obtaining the area contour of the area object by a user are simplified, and the precision and the speed of obtaining the area contour are improved.
Drawings
Fig. 1 is a schematic flow chart of a method for determining an area profile according to an embodiment of the present disclosure;
fig. 2 is a second schematic flow chart of a method for determining an area profile according to an embodiment of the present disclosure;
FIG. 3 is a schematic view of an offset direction provided by an embodiment of the present disclosure;
fig. 4 is a third schematic flowchart of a method for determining an area profile according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of a dividing line provided by an embodiment of the present disclosure;
fig. 6 is a fourth schematic flowchart of a method for determining an area profile according to an embodiment of the present disclosure;
FIG. 7 is a schematic illustration of an area profile of an area object provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a possible structure of an apparatus for determining an area profile according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the disclosure may be practiced other than those illustrated or described herein, and that the objects identified as "first," "second," etc. are generally a class of objects and do not limit the number of objects, e.g., a first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The area contour determination method provided by the embodiments of the present disclosure is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a method for determining an area profile according to an embodiment of the present disclosure, and as shown in fig. 1, the method may include the following steps S101 to S104:
and S101, acquiring a space contour of the space module.
Illustratively, one space module may indicate one room module in one floor. The spatial profile may be the contour of a spatial module, for example a room module.
For example, in the embodiment of the present disclosure, the space module may be a space module in Revit mapping software, and may also be a space module in other mapping software, which is not specifically limited in the embodiment of the present disclosure.
S102, determining the boundary type of the boundary line in the space outline of the space module and the space attributes on two sides of the boundary line.
Wherein, the boundary type of the boundary line may include: walls and parting lines.
It can be understood that, in the actual engineering design, for two adjacent space modules, boundary lines of different boundary types can be used to divide two functional areas according to the service requirements.
For example, the space module may be divided by a wall, or may be divided by a dividing line. For example, for a living room module and a bedroom module, the partition of the areas can be performed through walls; for the living room module and the balcony module, the areas can be divided through the dividing lines, namely, no wall exists between the living room module and the balcony module, the areas can also be divided through the wall and the dividing lines, and specifically, boundary lines of different boundary types are adopted to divide the functional area modules according to actual business requirements.
The spatial attributes on both sides of the boundary line may be information such as classification, usage, and number of the spatial module, for example. Such as the purpose of the room module, the type of room module, etc.
S103, determining the offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line.
The offset parameter may include an offset amount and an offset direction.
It can be understood that, for the same boundary type and the same spatial attributes on both sides of the boundary line, if the corresponding regions are different, the values of the offset parameter may be the same or different, and are specifically determined according to the service specifications of each region.
And S104, shifting the boundary line of the space contour of the space module based on the shift parameter of the boundary line to obtain the area contour of the area object corresponding to the space module.
It is understood that a space module may include a plurality of boundary lines, the offset parameter of each boundary line in the space module may be determined according to the above method, each boundary line in the space profile is offset based on the offset parameter of each boundary line, and finally the area profile of the area object of the space module is obtained.
After the boundary line of each space module is shifted, the shifted boundary line of each space module may be automatically connected to form a closed contour, and the shifted contour is used as an area contour of the area object.
Specifically, in the embodiment of the present disclosure, an area plane template may be created, a wall centerline area plane corresponding to a floor or an outer wall line area plane corresponding to the floor may be created in the area plane template, and each room module of the floor may be generated according to the wall centerline area plane corresponding to the floor or the outer wall line area plane corresponding to the floor. For each room module in each type of area plane, the area contour of the area object of each room module can be obtained by adopting the flow of the method for determining the area contour provided by the embodiment of the disclosure.
It should be noted that different types of area planes are area objects generated based on different business requirements, in the embodiment of the present disclosure, at least one of a wall centerline area plane and an outer wall centerline area plane of one floor may be generated, and this is not specifically limited in the embodiment of the present disclosure.
Area lines for each area object can be automatically drawn based on the spatially offset contours, creating fill objects, creating contour model lines, contour detail lines.
The method for determining the area contour provided by the embodiment of the disclosure includes the steps that firstly, the space contour of a space module can be obtained in advance; secondly, determining the boundary type of the boundary line in the space module and the space attributes at two sides of the boundary line; then, determining the offset parameter of the boundary line in the space module according to the boundary type of the boundary line of the space module and the space attributes on the two sides of the boundary line; and finally, according to the deviation parameter of the boundary line, deviating the boundary line of the space outline of the space module to obtain the area outline of the area object of the space module. That is, the boundary parameter of the boundary may be determined based on the boundary type of the boundary line of the spatial profile of one spatial module and the spatial attributes on both sides of the boundary line, and the boundary line of the spatial profile of the spatial module may be shifted based on the boundary parameter of the boundary line, so as to obtain the area profile of the area object of the spatial module. Compared with the prior art, the area contour automatic judging method has the advantages that the condition that a plurality of line segments are drawn and connected into the area line based on drawing judgment is not needed manually, the condition that the area object is placed after the area line is drawn is not needed, the condition that each boundary line deviates to the corresponding side can be judged automatically directly based on the attribute of each boundary line in the space contour of each space module and the space attributes on the two sides of each boundary line, the area contour of the area object of each space module is generated automatically according to the deviated boundary line connection, the operation steps of obtaining the area contour of the area object by a user are simplified, and the precision and the speed of obtaining the area contour are improved.
Alternatively, with reference to fig. 1, as shown in fig. 2, in the method for determining an area profile provided in the embodiment of the present disclosure, the above S103 may be specifically performed by the following S13a and S13 b:
and S13a, determining the offset of the boundary line according to the boundary type of the boundary line.
For example, the offset amount of the boundary line in the spatial profile of the spatial module may be determined according to the offset rule and the boundary type of the boundary line.
Alternatively, the offset rules of different regions may be the same or different, and the offset rules may indicate specific values of parameters for calculating the offset amounts of different regions.
Specifically, assuming that the first boundary line in the first space module is a boundary line of the first boundary type, if the first deviation rule of the first region is acquired, the deviation amount of the first boundary line in the first space module is a first deviation amount, and if the second deviation rule of the second region is acquired, the deviation amount of the first boundary line in the first space module is a second deviation amount.
For example, for the same boundary line a, the offset amount determined according to the offset rule for region 1 is a wall thickness value of 0.8 times, and the offset amount determined according to the offset rule for region 2 is a wall thickness value of 0.5 times. For the space module of the same size, if the space module is the space module in the building model constructed for region 1, the offset of the boundary line a in the space module is a wall thickness value of 0.8 times, and if the space module is the space module in the building model constructed for region 2, the offset of the boundary line a in the space module is a wall thickness value of 0.5 times.
And S13b, determining the offset direction of the boundary line according to the space attributes of the two sides of the boundary line.
It should be noted that the spatial attribute may be used to indicate the priority of the offset of the spatial modules on both sides of the boundary line.
Illustratively, if the offset priority of room 1 is higher than the offset priority of room 2, the boundary line of room 1 and room 2 is offset toward room 2.
For example, the offset direction of the boundary line in the space module may be determined according to an offset rule and spatial attributes of both sides of the boundary line.
Optionally, the offset rules of different regions may be the same or different, and this is not specifically limited in this disclosure.
It should be noted that fig. 2 is an exemplary illustration of the execution sequence of S13a and S13b in this disclosure, and S13a may be executed before S13b, after S13b, or together with the execution sequence.
Based on the scheme, the offset of the boundary line can be determined based on the boundary type of the boundary line, the offset direction of the boundary line is determined based on the space attributes on the two sides of the boundary line, therefore, the electronic equipment can accurately determine the offset data of one boundary line, the outline of the area object of the space module obtained by offset based on the offset data can reflect the area region and the area value of each area object more accurately.
Optionally, in the method for determining an area profile provided in the embodiment of the present disclosure, the above S13b may be specifically executed through the following S13b 1:
s13b1, if the priority of the deviation indicated by the spatial attribute of the first spatial module is higher than the priority of the deviation indicated by the spatial attribute of the second spatial module, it is determined that the deviation direction of the boundary line is directed toward the second spatial module.
It is understood that the direction of the deviation of the boundary line towards the second space module may indicate that the boundary line of the first space module deviates outwards and the boundary line of the second space module deviates inwards, the boundary line being the boundary line dividing the first space module and the second space module.
It is understood that if the offset priority of one spatial module is higher than that of the adjacent spatial module, the boundary of the spatial module with the higher offset priority is shifted outward and the boundary of the spatial module with the lower offset priority is shifted inward.
Exemplarily, fig. 3 is a schematic diagram of an offset direction provided by an embodiment of the present disclosure, as shown in (a) of fig. 3, the a region and the B region are divided by a boundary line L1, and assuming that the offset priority of the a region is higher than that of the B region, the boundary line is offset to the B region, as shown in (B) of fig. 3, L1 is offset to a position where L2 is located.
Based on the scheme, the offset direction of the boundary line of the space module can be determined based on the offset priority indicated by the space attribute of the space module, so that the boundary position of the area line of the area object corresponding to the space module can be accurately determined.
Optionally, in the method for determining an area profile provided in the embodiment of the present disclosure, before the above S102, as shown in fig. 4, the following S105 to S107 may also be included:
and S105, acquiring a boundary line of the space outline, and determining the boundary type of the boundary line.
Optionally, the two space modules may be divided by a dividing line, a wall object, or a wall object and a dividing line. It should be noted that the boundary line of the space module is the boundary line of the space contour of the space module.
For example, a door is arranged between a living room and a balcony, walls are arranged on two sides and above the door, the position of the door between the living room and the balcony corresponds to the partition line, the type of the wall is determined, and if no wall is arranged between the living room and the balcony, the partition line between the living room and the balcony does not have the corresponding wall.
Exemplarily, fig. 5 is a schematic diagram of a dividing line provided by an embodiment of the present disclosure, as shown in (a) of fig. 5, a region 1 and a region 2 are divided by boundary lines L1, L2, and L3, where a boundary type of L1 and a boundary type of L2 are both walls, and a boundary type of L3 is a dividing line; as shown in fig. 5 (b), the region 1 and the region 2 are divided by a boundary line L4, and the boundary type of the boundary line L4 is a dividing line.
It is understood that for the parting line in fig. 5, there may or may not be a corresponding wall.
And S106, if the boundary type of the boundary line is a wall, determining the wall type of the boundary line.
Wherein, the wall type is any one of the following: interior wall, outer wall, face empty wall.
And S107, if the boundary type of the boundary line is the dividing line, acquiring the wall type of the wall corresponding to the dividing line.
It can be understood that if a boundary line is a dividing line, if the dividing line may or may not correspond to a wall, if a dividing line has a corresponding wall, the wall type of the wall corresponding to the dividing line is determined, and if the dividing line does not correspond to a wall, the next boundary line is processed continuously.
Illustratively, the partition line may be a room partition line.
It should be noted that, in the embodiment of the present disclosure, the wall types including the inner wall, the outer wall, and the temporary hollow wall are taken as an example for description, in practical applications, the wall types may further include other wall types, and the corresponding offset may also be calculated based on the wall thicknesses of the other wall types and other service-related parameters, which is not specifically limited in this embodiment of the present disclosure.
Based on the scheme, the boundary type of the boundary line can be obtained firstly, then whether the boundary type is a wall body is judged, if the boundary line is the wall body, the wall body type is determined, if the boundary line is not a dividing line, whether the boundary line has a corresponding wall body can be determined, if the boundary line has the corresponding wall body, the wall body type corresponding to the boundary line is determined, so that the offset is determined according to the wall body type, if the boundary line does not have the corresponding wall body, the boundary line does not need to be offset, and therefore the offset of the outline can be accurately determined based on the wall type corresponding to the boundary line.
Optionally, in the method for determining an area profile provided in the embodiment of the present disclosure, the above-mentioned S13a may be specifically executed by a1 or a2 as follows:
and A1, if the wall type of the boundary line is an inner wall, determining the thickness value of the inner wall of the first preset multiple as the offset of the boundary line.
It should be noted that the first preset multiple may be flexibly adjusted according to requirements, and this is not specifically limited in the embodiment of the present disclosure.
Illustratively, if the boundary line 1 indicates the inner wall 1, the offset of the boundary line is equal to 0.5 times the thickness value of the inner wall 1.
It should be noted that the above-mentioned inner wall thickness of 0.5 times is only an exemplary illustration, and in practical applications, the specific offset may be flexibly adjusted according to business requirements, and this is not specifically limited in the embodiment of the present disclosure.
And A2, if the wall type of the boundary line is an adjacent hollow wall, determining the offset of the boundary line according to the thickness value of the adjacent hollow wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
Illustratively, the offset of the boundary line of the adjacent empty wall is K11 + the thickness value of the adjacent empty wall + K21 + the thickness value of the insulating layer + K31 + the thickness value of the paint layer, wherein K11, K21 and K31 are offset weight coefficients.
It should be noted that, when the wall type of the boundary line is a temporary empty wall, the offset coefficient may be flexibly adjusted according to the service requirement, and this is not specifically limited in the embodiment of the present disclosure.
For example, assuming that the boundary line 2 indicates the adjacent cavity wall 2, the offset of the boundary line is equal to the thickness value of the adjacent cavity wall 2 + the thickness value of the insulating layer + the thickness value of the paint layer, i.e., K11K 21K 31 is 1.
Based on the scheme, the offset corresponding to various walls can be flexibly determined according to the specific wall type and the calculation mode of the offset corresponding to the wall type, and different service requirements can be adapted.
Optionally, in the method for determining an area profile provided in the embodiment of the present disclosure, the above S13a may be specifically executed by the following B1:
and B1, determining the offset of the boundary line according to the boundary type and the area plane type of the boundary line.
For example, in the case where the offset amount of the boundary line cannot be accurately determined according to the type of the boundary line, the offset amount of the boundary line may also be determined based on the boundary type of the boundary line and the created area plane type.
Specifically, if the boundary type of the boundary line is an outer wall, the offset of the area line needs to be determined in combination with the area plane type.
It should be noted that, in the case where different types of area planes are created based on the space module, the offset of the boundary line may be determined based on the type of the area plane and the type of the wall of the boundary line.
Based on the scheme, the offset of the boundary line can be determined based on the wall type and the area plane type corresponding to the boundary line, so that the offset of the boundary lines of different types is more accurate, the actual business requirements are met, and the problem that the determination of the area outline of the area object is not accurate enough due to a single determination mode is solved.
Optionally, in the method for determining an area profile provided in the embodiment of the present disclosure, the B1 may specifically include the following B11 and B12 or B11 and B13:
and B11, if the wall type of the boundary line is an outer wall, determining the area plane type.
And B12, if the area plane type is the first preset type, determining the thickness value of the outer wall of the second preset multiple as the offset of the boundary line.
Optionally, the second preset multiple may be flexibly adjusted according to a service requirement, and the specific value of the second preset multiple is not specifically limited in the embodiment of the present disclosure.
It should be noted that the first preset multiple and the second preset multiple may be the same, and may be different, and this is not specifically limited in this disclosure.
And B13, if the area plane type is a second preset type, determining the offset of the boundary line according to the thickness value of the outer wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
Illustratively, the offset of the boundary line of the outer wall in the area plane of the second preset type is K12 + the thickness value of the outer wall + K22 + the thickness value of the insulating layer + K32 + the thickness value of the paint layer, wherein K12, K22 and K32 are offset weight coefficients.
It should be noted that the offset coefficient may be flexibly adjusted according to the service requirement, and this is not specifically limited in the embodiment of the present disclosure.
Illustratively, the first preset type of area plane may be a wall centerline area plane and the second preset type of area plane may be an exterior wall centerline area plane. The wall centerline area plane and the outer wall centerline area plane are both view planes that carry all area objects of the current layer.
Illustratively, in the case where the wall type of the first boundary line is an exterior wall, if the created area plane is a wall center line area plane, the offset amount of the first boundary line is 0.5 times the exterior wall thickness, if the created area plane is an exterior wall line area plane, the offset amount of the first boundary line is the exterior wall thickness + insulation thickness + paint thickness, and if the first boundary line is another wall, the offset amount of the boundary line coincides with the wall center line area plane.
Based on the scheme, under the condition that the wall type of the boundary line is determined to be the outer wall, the offset of the boundary line can be determined according to the created area plane type, so that the offset of the boundary line can be accurately calculated according to different types of boundary lines in a corresponding calculation mode, and the acquired area outline of the area object is more accurate.
Example (c):
fig. 6 is a flowchart illustrating a method of determining an area profile according to an embodiment of the present disclosure. As shown in fig. 6, the steps of the method of area profile determination provided by the embodiments of the present disclosure may be performed according to the execution flow described below.
And S600, selecting a room module.
After S600, two parts may be included, and the processing flow of the first part (for determining the boundary shift direction) includes S601 to S603 described below. The second part of the process flow (for determining the boundary offset) includes: s604 to S612 described below.
S601, determining the type of the room module.
And S602, determining the room offset priority according to the type of the room.
And S603, determining the boundary offset direction according to the room offset priority.
S604, acquiring a room boundary line, and then determining the type of the boundary line.
And S605, if the boundary type is the dividing line, determining whether a wall corresponding to the dividing line exists.
And S606, if the wall corresponding to the partition line exists, determining the wall type corresponding to the partition line.
And if the wall corresponding to the dividing line does not exist, the boundary line does not deviate, and other boundary lines are obtained again for processing.
And S607, if the boundary type is the wall, determining the wall type.
S608, if the wall is an inner wall, the offset is 0.5 × the thickness of the inner wall.
And S609, if the wall is an adjacent hollow wall, the offset is equal to the thickness of the adjacent hollow wall, the thickness of the heat preservation layer and the thickness of the coating layer.
S610, determining the template type of the area plane where the wall is located under the condition that the wall is the outer wall.
S611, if the created area plane is the wall centerline area plane, the offset is 0.5 × the outer wall thickness.
And S612, if the created area plane is the first area plane of the outer wall, the offset is equal to the thickness of the outer wall, the thickness of the heat preservation layer and the thickness of the coating layer.
After passing through the above two processing flows, the offset direction and the offset amount of the boundary line may be acquired, and further S613 and S614 described below may be performed.
And S613, generating a new contour according to the offset direction and the offset of the boundary line.
And S614, generating an area object of the room according to the new outline.
Fig. 7 is a schematic diagram of an area object according to an embodiment of the disclosure. In the area plane shown in fig. 7, spatial profiles of a plurality of spatial modules may be included, based on each of which an offset of a boundary of each spatial profile may be determined, 71 in fig. 7 being an area profile of an area object created based on one of the spatial profiles.
It should be noted that, according to the method for determining an area profile provided by the embodiment of the present disclosure, the execution subject may be an apparatus for determining an area profile, or a control module in the apparatus for determining an area profile, which is used for executing the method for determining an area profile. The method for determining the area profile performed by the apparatus for determining the area profile in the embodiment of the present disclosure is taken as an example, and the apparatus for determining the area profile provided by the embodiment of the present disclosure is explained.
Fig. 8 is a schematic structural diagram of an area profile determining apparatus according to an embodiment of the present disclosure, and as shown in fig. 8, the area profile determining apparatus 800 includes: an acquisition module 801, a determination module 802, and an offset module 803; an obtaining module 801, configured to obtain a spatial profile of a spatial module; the determining module 802 is configured to determine a boundary type of a boundary line and spatial attributes on two sides of the boundary line in a spatial profile of the spatial module, and determine an offset parameter of the boundary line according to the boundary type of the boundary line and the spatial attributes on two sides of the boundary line; the shifting module 803 is configured to shift the boundary line of the spatial profile of the spatial module based on the shift parameter of the boundary line, so as to obtain the area profile of the area object corresponding to the spatial module.
Optionally, the determining module is specifically configured to: determining the offset of the boundary line according to the boundary type of the boundary line; and determining the offset direction of the boundary line according to the spatial attributes of the two sides of the boundary line.
Optionally, the determining module is specifically configured to: and if the deviation priority indicated by the spatial attribute of the first spatial module is higher than the deviation priority indicated by the spatial attribute of the second spatial module, determining that the deviation direction of the boundary line faces the second spatial module.
Optionally, the obtaining module is further configured to: before the determining module determines the offset of the boundary line according to the boundary type of the boundary line, acquiring a space contour boundary line and determining the boundary type of the boundary line; the determining module is further used for determining the wall type of the boundary line if the boundary type of the boundary line is a wall; the obtaining module is further configured to obtain a wall type of the wall corresponding to the partition line if the boundary type of the boundary line is the partition line.
Optionally, the determining module is specifically configured to: if the wall type of the boundary line is an inner wall, determining the thickness value of the inner wall of the first preset multiple as the offset of the boundary line; and if the wall type of the boundary line is the adjacent hollow wall, determining the offset of the boundary line according to the thickness value of the adjacent hollow wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
Optionally, the determining module is specifically configured to: and determining the offset of the boundary line according to the boundary type of the boundary line and the area plane type of the boundary line.
Optionally, the determining module is specifically configured to: if the wall type of the boundary line is an outer wall, determining the area plane type; if the area plane type is a first preset type, determining the thickness value of the outer wall of a second preset multiple as the offset of the boundary line; or if the area plane type is the second preset type, determining the offset of the boundary line according to the thickness value of the outer wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
The device for determining the area profile provided by the embodiment of the disclosure can firstly acquire the space profile of a space module in advance; secondly, determining the boundary type of the boundary line in the space module and the space attributes at two sides of the boundary line; then, determining the offset parameter of the boundary line in the space module according to the boundary type of the boundary line of the space module and the space attributes on the two sides of the boundary line; and finally, according to the deviation parameter of the boundary line, deviating the boundary line of the space outline of the space module to obtain the area outline of the area object of the space module. That is, the boundary parameter of the boundary may be determined based on the boundary type of the boundary line of the spatial profile of one spatial module and the spatial attributes on both sides of the boundary line, and the boundary line of the spatial profile of the spatial module may be shifted based on the boundary parameter of the boundary line, so as to obtain the area profile of the area object of the spatial module. Compared with the prior art, the area contour automatic judging method has the advantages that the condition that a plurality of line segments are drawn and connected into the area line based on drawing judgment is not needed manually, the condition that the area object is placed after the area line is drawn is not needed, the condition that each boundary line deviates to the corresponding side can be judged automatically directly based on the attribute of each boundary line in the space contour of each space module and the space attributes on the two sides of each boundary line, the area contour of the area object of each space module is generated automatically according to the deviated boundary line connection, the operation steps of obtaining the area contour of the area object by a user are simplified, and the precision and the speed of obtaining the area contour are improved.
The device for determining the area contour in the embodiment of the present disclosure may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook, a PDA (personal digital assistant), or the like, and the non-mobile electronic device may be a server, a NAS (Network Attached Storage), a PC (personal computer), a TV (television), a teller machine, a self-service machine, or the like, and the disclosed embodiments are not limited in particular.
The device for determining an area profile provided by the embodiment of the present disclosure can implement each process implemented by the method embodiments of fig. 1 to 7, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in an embodiment of the present disclosure, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the above method for determining an area contour, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
It is to be understood that, in the embodiment of the present disclosure, the input Unit 1004 may include a GPU (Graphics Processing Unit) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
It should be noted that the electronic device is configured to run a program or an instruction to implement each process of the above method for determining an area contour, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present disclosure further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the method for determining an area contour, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above method for determining an area contour, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (10)

1. A method of area profiling, the method comprising:
acquiring a space contour of a space module;
determining the boundary type of a boundary line in the space outline of the space module and the space attributes on two sides of the boundary line;
determining an offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line;
and shifting the boundary line of the space outline of the space module based on the shifting parameter of the boundary line so as to obtain the area outline of the area object corresponding to the space module.
2. The method according to claim 1, wherein the determining the deviation parameter of the boundary line according to the boundary type of the boundary line and the spatial attributes of the two sides of the boundary line comprises:
determining the offset of the boundary line according to the boundary type of the boundary line;
and determining the offset direction of the boundary line according to the space attributes on the two sides of the boundary line.
3. The method of claim 2, wherein determining the offset direction of the boundary line based on the spatial attributes of the two sides of the boundary line comprises:
and if the deviation priority indicated by the spatial attribute of the first spatial module is higher than the deviation priority indicated by the spatial attribute of the second spatial module, determining that the deviation direction of the boundary line faces the second spatial module.
4. The method according to claim 2, wherein before determining the offset of the border line according to the border type of the border line, the method further comprises:
acquiring a boundary line of the space outline, and determining the boundary type of the boundary line;
if the boundary type of the boundary line is a wall, determining the wall type of the boundary line; alternatively, the first and second electrodes may be,
and if the boundary type of the boundary line is a dividing line, acquiring the wall type of the wall corresponding to the dividing line.
5. The method of claim 4, wherein determining the offset of the border line according to the border type of the border line comprises:
if the wall type of the boundary line is an inner wall, determining the thickness value of the inner wall of a first preset multiple as the offset of the boundary line;
and if the wall type of the boundary line is the adjacent hollow wall, determining the offset of the boundary line according to the thickness value of the adjacent hollow wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
6. The method of claim 4, wherein determining the offset of the border line according to the border type of the border line comprises:
and determining the offset of the boundary line according to the boundary type and the area plane type of the boundary line.
7. The method of claim 6, wherein determining the offset of the boundary line according to the boundary type of the boundary line and the area plane type of the boundary line comprises:
if the wall type of the boundary line is an outer wall, determining the area plane type;
if the area plane type is a first preset type, determining the thickness value of the outer wall of a second preset multiple as the offset of the boundary line; alternatively, the first and second electrodes may be,
and if the area plane type is a second preset type, determining the offset of the boundary line according to the thickness value of the outer wall, the thickness value of the heat insulation layer and the thickness value of the coating layer.
8. An apparatus for area profiling, the apparatus comprising: the device comprises an acquisition module, a determination module and a deviation module;
the acquisition module is used for acquiring the space outline of the space module;
the determining module is used for determining the boundary type of the boundary line in the space module and the space attributes on two sides of the boundary line; determining an offset parameter of the boundary line according to the boundary type of the boundary line and the space attributes on the two sides of the boundary line;
the migration module is used for migrating the space contour boundary line of the space module based on the migration parameter of the boundary line so as to obtain the area contour of the area object of the space module.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of area profiling according to any of claims 1 to 7.
10. A readable storage medium, on which a program or instructions are stored which, when executed by a processor, carry out the steps of the method of area profile determination according to any one of claims 1 to 7.
CN202111509019.5A 2021-12-10 2021-12-10 Method and device for determining area contour, electronic equipment and medium Pending CN114139268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111509019.5A CN114139268A (en) 2021-12-10 2021-12-10 Method and device for determining area contour, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111509019.5A CN114139268A (en) 2021-12-10 2021-12-10 Method and device for determining area contour, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114139268A true CN114139268A (en) 2022-03-04

Family

ID=80385945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111509019.5A Pending CN114139268A (en) 2021-12-10 2021-12-10 Method and device for determining area contour, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114139268A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116563473A (en) * 2023-07-03 2023-08-08 成都云中楼阁科技有限公司 Wall contour drawing method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116563473A (en) * 2023-07-03 2023-08-08 成都云中楼阁科技有限公司 Wall contour drawing method and device, storage medium and electronic equipment
CN116563473B (en) * 2023-07-03 2023-10-10 成都云中楼阁科技有限公司 Wall contour drawing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US8868002B2 (en) System and method for conducting wireless site surveys
Stipanović et al. Monotone approximations of minimum and maximum functions and multi-objective problems
CN110648363A (en) Camera posture determining method and device, storage medium and electronic equipment
CN114139268A (en) Method and device for determining area contour, electronic equipment and medium
CN112035320A (en) Service monitoring method and device, electronic equipment and readable storage medium
KR20200098586A (en) Recommended method, device, storage medium and terminal device
CN116958515B (en) Fitting positioning method and device for workpiece contour and storage medium
CN109348260A (en) A kind of direct broadcasting room recommended method, device, equipment and medium
CN109344458A (en) Method and apparatus based on REVIT design software statistical engineering amount
CN111797993A (en) Evaluation method and device for deep learning model, electronic equipment and storage medium
CN106126217A (en) A kind of apply the information getting method of window, device and calculating equipment
CN113473118B (en) Data timestamp alignment method, device, equipment and storage medium
CN105335267A (en) Server temperature prediction method, apparatus and system
CN115221576A (en) Sump design method, sump design device and computer-readable storage medium
KR102239355B1 (en) Image correction method and system through correction pattern analysis
CN113126866A (en) Object determination method and device, electronic equipment and storage medium
EP3848778A1 (en) Fingertip detection method, fingertip detection means, fingertip detection device, and medium
CN114692252A (en) Floor slab generation method and device based on BIM and storage medium
CN113297652A (en) Construction drawing generation method, device and equipment
CN114092497A (en) Area contour segmentation method and device and electronic equipment
CN110648400A (en) Model space quantization method, mapping relation establishment method, device and equipment
CN113469364B (en) Reasoning platform, method and device
CN114780870B (en) Order quantity prediction method, system, device, server, terminal and storage medium
JP7011994B2 (en) Information processing equipment, programs and information processing methods
CN114241507A (en) Area contour determination method and device, electronic equipment and medium

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