CN112287428A - Building wall generation method and device, computer equipment and storage medium - Google Patents
Building wall generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112287428A CN112287428A CN202011062798.4A CN202011062798A CN112287428A CN 112287428 A CN112287428 A CN 112287428A CN 202011062798 A CN202011062798 A CN 202011062798A CN 112287428 A CN112287428 A CN 112287428A
- Authority
- CN
- China
- Prior art keywords
- target
- building
- building wall
- line segment
- determining
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- Structural Engineering (AREA)
- Civil Engineering (AREA)
- Architecture (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to a building wall generation method, a building wall generation device, computer equipment and a storage medium. The method comprises the following steps: acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall; determining the position relation between the target building wall and a reference building based on the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating a target building wall according to the determined generation logic. By adopting the method, the generation efficiency of the target building wall can be improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a building wall generation method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, it is becoming more and more important how to better apply computer technology to construction projects to improve the efficiency of construction projects.
In the traditional building engineering, when a certain type of building wall is generated in a building, engineering personnel are required to analyze and calculate building model data, determine and select a logic method for generating the building wall according to experience, and therefore the generation efficiency of the building wall is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium capable of improving the building wall generation efficiency.
A method of building a wall, the method comprising:
acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall;
determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area;
determining a generation logic corresponding to the target building wall according to the position relation;
and generating the target building wall according to the determined generation logic.
In one embodiment, the target line segment includes a target endpoint, and determining the position relationship between the target building wall and the reference building based on the position relationship between the target line segment and the reference enclosed area includes:
acquiring a first target endpoint and a second target endpoint corresponding to the target line segment;
when at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, determining that the target building wall is outside the reference building;
and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the building wall and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
In one embodiment, determining the positional relationship of the target building wall and the reference building based on the positional relationship of the target endpoint and the reference enclosed area comprises:
determining a reference point in the reference enclosure region;
determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area;
determining a straight line according to the reference point and the target endpoint;
determining the position relation between a target end point and a reference enclosing area according to the position relation between a reference point and a straight line determined by the target end point and a reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
In one embodiment, determining the position relationship between a target end point and a reference enclosing area according to a reference point and the position relationship between a straight line determined by the target end point and a reference vector, and determining the position relationship between the target building wall and the reference building according to the position relationship between the target end point and the reference enclosing area comprises:
when the reference point and the straight line determined by the target endpoint are in a vertical relation with the reference vector, judging that the target endpoint and the reference enclosed area are in the same plane;
otherwise, judging that the target end point and the reference enclosed area are not on the same plane;
and determining the position relation between the target building wall and the reference building according to the position relations between a first target endpoint and a second target endpoint corresponding to the target line segment and the reference enclosing area respectively.
In one embodiment, when the reference point and the straight line determined by the target endpoint are in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, the method further includes:
traversing the enclosing line segment in the reference enclosing area, and judging whether the segment target endpoint is on the enclosing line segment;
when the target end point is on the enclosing line segment, judging that the target end point is on the boundary of the enclosing area;
and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
In one embodiment, when the reference point and the straight line determined by the target endpoint are in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, the method further includes:
acquiring a ray corresponding to a starting point which is a target endpoint;
determining the number of intersection points of the ray and the reference line segment in the reference enclosed area;
and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points.
In one embodiment, determining the position relationship between the target end point and the reference enclosing area and the position relationship between the target building wall and the reference building according to the number of the intersection points comprises:
when the number of the intersection points is odd, judging that the target endpoint is in the reference enclosing area;
otherwise, judging that the target endpoint is outside the reference enclosing area;
and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
In one embodiment, the logic for generating the target building wall according to the position relationship includes:
when the position relation corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is superposed with a bounding line segment in a bounding area corresponding to the reference building, determining the generation logic of the target building wall as mapping generation logic, wherein the mapping generation logic is to generate the target building wall according to the mapping of the reference building wall in the reference building;
when the position relation corresponds to that the target building wall is outside the reference building, determining that the generation logic of the target building wall is an outer wall generation logic, and determining the outer wall generation logic according to the building engineering standard;
and when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is not overlapped with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as the inner wall generation logic, wherein the inner wall generation logic is determined according to the building engineering standard.
A building wall generating method comprises the following steps:
acquiring building model data to be processed;
and calling a preset functional interface to enable the functional interface to process the building model data to be processed according to the building wall generation method in any one of the embodiments to generate the building wall.
A building wall generating apparatus, the apparatus comprising:
the acquisition module is used for acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall;
the first determining module is used for determining the position relation between the target building wall and the reference building based on the position relation between a target line segment and a reference enclosed area;
the second determining module is used for determining the generating logic corresponding to the target building wall according to the position relation;
and the third determining module is used for generating the target building wall according to the determined generating logic.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the building wall generation method of any one of the above embodiments when the computer program is executed by the processor.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the building wall generation method of any one of the above embodiments.
According to the building wall generation method, the building wall generation device, the computer equipment and the storage medium, a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall are obtained; determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating the building wall according to the determined generation logic. The building model data are abstracted into the geometric data, the geometric data are analyzed and processed in the computer according to a preset logic algorithm, the position relation between the target building wall and the reference building is further obtained, the corresponding wall generation logic is automatically selected according to the position relation, and the building wall generation efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for building a wall according to an embodiment;
FIG. 2 is a schematic flow chart of a method for creating a building wall according to one embodiment;
FIG. 3 is a diagram of a target line segment on a boundary of a reference bounding region in an embodiment;
FIG. 4 is a schematic diagram of a target line segment inside a reference bounding region as provided in one embodiment;
FIG. 5 is a schematic diagram of a target line segment outside a reference bounding region provided in one embodiment;
FIG. 6 is a schematic diagram of a target line segment outside a reference bounding region provided in one embodiment;
FIG. 7 is a schematic diagram of a target line segment outside a reference bounding region provided in one embodiment;
FIG. 8 is a diagram of a target line segment on a boundary of a reference bounding region as provided in one embodiment;
FIG. 9 is a schematic diagram of a target line segment outside a reference bounding region provided in one embodiment;
FIG. 10 is a schematic illustration of a target line segment inside a reference bounding region as provided in one embodiment;
FIG. 11 is a diagram illustrating an example of determining a location relationship between a target endpoint and a reference bounding region, according to an embodiment;
FIG. 12 is a diagram illustrating a target endpoint on a boundary of a reference bounding region, as provided in one embodiment;
FIG. 13 is a schematic diagram illustrating an embodiment of making a ray in any direction from a target endpoint;
FIG. 14 is a block diagram of the construction of the building wall creation apparatus in one embodiment;
FIG. 15 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The building wall generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 110 communicates with the server 120 through a network. The server 104 stores library files, the terminal 102 can call corresponding library files from the server 104 in the process of implementing the building wall generation method, and specifically, corresponding building model data to be processed can be input through a functional interface corresponding to the library files, so that the building model data to be processed can be automatically analyzed and processed according to an algorithm packaged in advance in the library files, and data for determining building wall generation can be output, and the building wall generation efficiency can be greatly improved. For example, the terminal 102 obtains a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall; determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating the target building wall according to the determined generation logic. The terminal 110 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
It should be noted that, in other embodiments, the building wall generation method may also be implemented in a server, specifically, the server 104 acquires a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall, and processes the acquired data according to an algorithm preset in the server, so as to determine a logic for generating the building wall, and generate a corresponding target building wall according to the corresponding processing logic.
In an embodiment, as shown in fig. 2, a building wall generation method is provided, which is described by taking an example that the method is applied to the terminal 102 in fig. 1, and specifically is implemented by a library file called in the terminal, and includes the following steps:
step S202, a reference enclosed area corresponding to the reference building and a target line segment corresponding to the target building wall are obtained.
The reference building may be an upper room; the target building wall may be a wall to be built, such as may be a wall to be built in an underlying room, in particular the target building wall may be a shear wall. The reference enclosing area is used for representing an area range corresponding to the reference building, and may be specifically determined according to a reference enclosing line segment corresponding to the reference building. The target line segment is a mapped line segment of the target building wall. The reference enclosed area refers to an enclosed polygonal closed area.
Specifically, the terminal may obtain a reference line segment set corresponding to the reference building, where the reference line segment set includes more than one reference line segment and a reference line segment attribute parameter corresponding to each reference line segment. The reference line segment attribute parameters comprise one or more of reference line segment starting points, reference line segment extending directions, reference line segment end points, reference line segment lengths and other attribute parameters corresponding to each reference line segment. And then the terminal determines a reference enclosed area corresponding to the reference building according to the peripheral line segment in the acquired reference line segment set.
And step S204, determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosed area.
Specifically, the positional relationship may include the target line segment being inside the reference bounding region, the target line segment being outside the reference bounding region, and the target line segment being on a boundary of the reference bounding region. And the position relation between the target building wall and the reference building can be determined in the library file corresponding to the terminal based on the position relation between the target line segment and the reference enclosed area. If the target line segment is judged to be in the reference enclosed area, simultaneously judging that the target building wall corresponding to the target line segment is in the reference building corresponding to the reference enclosed area; when the target line segment is judged to be outside the reference enclosed area, simultaneously judging that the target building wall corresponding to the target line segment is outside the reference building corresponding to the reference enclosed area; and when the target line segment is judged to be on the boundary of the reference enclosing area, simultaneously judging that the target building wall corresponding to the target line segment is on the boundary of the reference building corresponding to the reference enclosing area.
And step S206, determining the generation logic corresponding to the target building wall according to the position relation.
Specifically, target building wall generation logics corresponding to different position relationships are preset.
In one embodiment, the logic for generating the target building wall according to the position relationship includes: and when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is superposed with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as mapping generation logic, wherein the mapping generation logic is to generate the target building wall according to the mapping of the reference building wall in the reference building. And when the position relation corresponds to that the target building wall is outside the reference building, determining the generation logic of the target building wall as an outer wall generation logic, wherein the outer wall generation logic is determined according to the building engineering standard. And when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is not overlapped with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as the inner wall generation logic, wherein the inner wall generation logic is determined according to the building engineering standard.
And S208, generating a target building wall according to the determined generation logic.
Each generation logic corresponds to a building wall generation method. Specifically, the mapping generation logic is to map a reference building wall in the reference building into the target building to obtain a target building wall in the target building. The inner wall generation logic is to generate a target building wall body in a target building according to a certain building engineering standard, and the outer wall generation logic is to generate the target building body outside the target building according to a certain building engineering standard.
In a specific embodiment, for example, when an underground shear wall is generated on the inner wall and the outer wall of a basement, a shear wall on one floor needs to be referred to, and if a wall is located in the maximum enclosed graph enclosed by a room on the upper floor and at the same position on one floor, the mapping can be implemented by mapping the shear wall on the upper floor to the shear wall on the lower floor, that is, mapping generation logic is used correspondingly at this time. If the positions are other positions, the inner wall and the outer wall need to be distinguished, and the shear walls are respectively generated according to the shear wall logic generated by the inner wall or the shear wall logic generated by the outer wall.
Referring to fig. 3, fig. 3 is a schematic diagram of a target line segment on a boundary of a reference bounding region according to an embodiment. In fig. 3, F1 floor rooms correspond to the first floor room, i.e., the reference building, and F-1 floor rooms correspond to the next floor room, i.e., the target building, and the target building wall needs to be built in the target building. It can be seen from fig. 3 that the target building and the reference building are overlapped, and it can be understood that there is a reference building wall in the reference building completely overlapped with the target building wall to be constructed, that is, the target line segment corresponding to the target building wall can completely overlap with the reference line segment of the reference building wall in the reference building. Therefore, the corresponding relation is that the target line segment is on the boundary of the reference enclosing area, and the boundary is actually the reference line segment corresponding to the reference building wall. At this point, the mapping generation logic is employed to generate the target building wall in the target building.
Referring to fig. 4, fig. 4 is a schematic diagram of a target line segment inside a reference bounding region provided in an embodiment. In fig. 4, it can be seen that the target building wall is built in the range of the target enclosure area where the target building is located, but at this time, the reference building does not exist in the reference building corresponding to the target building wall, so that the target line segment corresponding to the target building wall at this time falls inside the reference enclosure area corresponding to the reference building. At this time, the target building wall is generated in the target building by adopting the internal generation logic.
Referring to fig. 5, fig. 5 is a schematic diagram of a target line segment outside a reference bounding region in one embodiment. As can be seen in fig. 5, the target building body, such as the building body in the rectangular frame, is outside the reference building F1, that is, there is no reference building corresponding to the target building body in the reference building, that is, the target line segment corresponding to the target building wall is outside the reference enclosed area at this time, and the target building wall is generated in the target building by using the external generation logic at this time.
The building wall generating method obtains a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall; determining the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating the building wall according to the determined generation logic. The building model data are abstracted into the geometric data, the geometric data are analyzed and processed in the computer according to a preset logic algorithm, the position relation between the target building wall and the reference building is further obtained, the corresponding wall generation logic is automatically selected according to the position relation, and the building wall generation efficiency is improved.
In one embodiment, the target line segment includes a target endpoint, and determining the position relationship between the target building wall and the reference building based on the position relationship between the target line segment and the reference enclosed area includes: acquiring a first target endpoint and a second target endpoint corresponding to the target line segment; when at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, determining that the target building wall is outside the reference building; and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the wall body of the target building and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
Referring to fig. 6, fig. 6 is a schematic diagram of a target line segment outside a reference bounding region in one embodiment. As can be seen from fig. 6, both end points of the target line segment line are outside the closed area corresponding to the reference enclosed area, so that it is determined that the target line segment is outside the reference enclosed area, and it is also determined that the target building wall is outside the reference building in the terminal.
Specifically, determining the position relationship between the target line segment and the reference enclosing area includes: and determining the position relation between the target line segment and the reference enclosing area according to the position relation between the target end point corresponding to the target line segment and the reference enclosing area.
In one embodiment, the terminal obtains a first target endpoint and a second target endpoint corresponding to the target line segment, and respectively determines the position relationship between the first target endpoint and the reference enclosing area and the position relationship between the second target endpoint and the reference enclosing area. Specifically, when the terminal determines that at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, it determines that the target line segment is outside the reference enclosed area, and meanwhile, it may also determine that the target building wall is outside the reference building in the terminal.
In one embodiment, when the terminal judges that the target line segment intersects with the enclosing line segment in the reference enclosing area, the position relation between the target line segment and the reference enclosing area and the position relation between the target building wall and the reference building are determined according to the position relations between the intersection point corresponding to the intersection and the first target endpoint and the second target endpoint.
In one embodiment, when the target line segment intersects with the enclosing line segment in the reference enclosing area, determining the position relationship between the target line segment and the reference enclosing area according to the position relationship between the intersection point corresponding to the intersection and the first target endpoint and the second target endpoint includes: and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, acquiring the position relation between an intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
Specifically, if the intersection of the terminal determination point and any one of the first target end point and the second target end point is not coincident, the target line segment is determined to be outside the reference enclosed area, and the target building wall may also be determined to be outside the reference building in the terminal.
Specifically, as shown in fig. 7, fig. 7 is a schematic diagram of a target line segment outside the reference enclosure area provided in an embodiment. It can be seen from fig. 7 that neither of the intersections of the target line segment with the reference bounding region is a target endpoint.
In one embodiment, the terminal traverses each enclosing line segment in the reference enclosing area, determines whether the target line segment is overlapped with any reference enclosing line segment, and determines that the target line segment is on the boundary of the reference enclosing area if the target line segment is overlapped with any reference enclosing line segment. As shown in fig. 8, fig. 8 is a schematic diagram of a target line segment on a boundary of a reference bounding region provided in an embodiment. In fig. 8, the target line segment line coincides with the reference enclosure area, specifically, is on the boundary of the reference enclosure area, and it can be determined that the target building wall is on the boundary of the reference building in the terminal.
In one embodiment, if the terminal determines that the intersection point coincides with both of the first target endpoint and the second target endpoint, the position relationship between a center point corresponding to the two adjacent intersection points and the reference enclosed area is obtained, and if the terminal determines that the center point is not inside the reference enclosed area, the terminal determines that the target line segment is outside the reference enclosed area, and meanwhile, the terminal may also determine that the target building wall is outside the reference building.
Otherwise, if any condition is not met, the target line segment is judged to be in the reference enclosed area, and the target building wall is judged to be in the reference building.
Specifically, as shown in fig. 9, fig. 9 is a schematic diagram of a target line segment outside a reference bounding region provided in an embodiment. It can be seen from fig. 9 that the intersections of the two target line segments and the reference enclosing region are both target end points, but the center points of the connecting lines corresponding to the intersections are not located inside the reference enclosing region. And as shown in fig. 10, fig. 10 is a schematic diagram of a target line segment inside a reference enclosing region provided in an embodiment. As can be seen from fig. 10, the intersection points of the two target line segments and the reference enclosure area are both target end points, but the center point of the connection line corresponding to the intersection points is inside the reference enclosure area, and at this time, it is determined that the target line segment is inside the reference enclosure area and the target building wall is inside the reference building.
In one embodiment, determining the position relationship between the target building wall and the reference building based on the position relationship between the target endpoint and the reference enclosed area comprises: determining a reference point in the reference enclosure region; determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area; determining a straight line according to the reference point and the target endpoint; and determining the position relation between the target end point and the reference enclosing area according to the position relation between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
Specifically, the terminal extracts at least two non-parallel enclosing line segments from the reference enclosing area, and determines a reference vector corresponding to the reference enclosing area according to the two non-parallel enclosing line segments. In one embodiment, the terminal may calculate a vector product corresponding to two non-parallel bounding line segments in the reference bounding region, and determine the calculated vector product as a reference vector, e.g., the reference vector may correspond to a reference normal vector. And then the terminal extracts at least one reference point from the reference enclosing area, connects the reference point with the target endpoint to obtain a straight line, and judges the position relationship between the straight line determined according to the reference point and the target endpoint and the reference vector so as to determine the position relationship between the target endpoint and the reference enclosing area.
Further, the terminal obtains a first target endpoint and a second target endpoint corresponding to the target line segment, and determines the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the reference enclosed area and between the second target endpoint and the reference enclosed area. Specifically, when the first target endpoint and the second target endpoint are both outside the reference enclosed area, it is determined that the target building wall is outside the reference building.
In one embodiment, determining the position relationship between the target end point and the reference enclosing area according to the position relationship between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relationship between the target building wall and the reference building according to the position relationship between the target end point and the reference enclosing area comprises: when the reference point and the straight line determined by the target endpoint are in a vertical relation with the reference vector, judging that the target endpoint and the reference enclosed area are in the same plane; otherwise, judging that the target end point and the reference enclosed area are not on the same plane; and determining the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosure area.
As shown in fig. 11, fig. 11 is a schematic diagram for determining a position relationship between a target endpoint and a reference enclosing area according to an embodiment. In fig. 11, the terminal extracts at least two non-parallel reference enclosing line segments from the reference enclosing region, and calculates a cross product corresponding to the two reference enclosing line segments to obtain a reference normal vector of a plane where the reference enclosing region is located, which is denoted as fN. And then, randomly taking a point in the reference enclosed area or any enclosed line segment in the reference enclosed area to obtain a reference point, and marking as pOri. And recording one target endpoint of the target line segment as a p point, connecting the p point and the pOri to obtain a line segment p-pOri, judging whether the direction of the line segment p-pOri is vertical to the fN (whether alpha is equal to 90 degrees), if not, returning that the target endpoint p and the reference enclosure area are not in the same plane, otherwise, judging that the target endpoint and the reference enclosure area are in the same plane. Specifically, when the terminal determines that the first target endpoint and the second target endpoint corresponding to the target line segment are both on the same plane with the reference enclosed area, the terminal also determines that the target building wall is on the same plane with the reference building.
In one embodiment, when the reference point and the straight line determined by the target endpoint are in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, the method further includes: traversing the enclosing line segment in the reference enclosing area, and judging whether the segment target endpoint is on the enclosing line segment; when the target end point is on the enclosing line segment, judging that the target end point is on the boundary of the enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
Specifically, the terminal circularly traverses each reference enclosing line segment in the reference enclosing area, and judges whether the target endpoint is on the reference enclosing line segment, so as to judge whether the target endpoint is on the reference enclosing line segment. As shown in fig. 12, fig. 12 is a schematic diagram of a target endpoint on a boundary of a reference bounding region in one embodiment. In fig. 12 it can be seen that the target endpoint p is on the boundary of the reference bounding region. And when the terminal judges that the first target end point and the second target end point corresponding to the target line segment are both on the boundary of the reference enclosed area, judging that the target building wall is on the boundary of the reference building.
In one embodiment, when the reference point and the straight line determined by the target endpoint are in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, the method further includes: acquiring a ray corresponding to a starting point which is a target endpoint; determining the number of intersection points of the ray and the reference line segment in the reference enclosed area; and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points.
As shown in fig. 13, fig. 13 is a schematic diagram of making a ray from a target endpoint to an arbitrary direction according to an embodiment. It can be seen that the ray made in any direction starting from the target end point p in fig. 13 has an intersection with the reference bounding region.
In one embodiment, determining the position relationship between the target end point and the reference enclosing area and the position relationship between the target building wall and the reference building according to the number of the intersection points comprises: when the number of the intersection points is odd, judging that the target endpoint is in the reference enclosing area; otherwise, judging that the target endpoint is outside the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
A building wall generating method comprises the following steps: acquiring building model data to be processed; and calling a preset functional interface to enable the functional interface to process the building model data to be processed according to the building wall generation method in any one of the embodiments to generate the building wall.
Specifically, the building model data to be processed may include a set of enclosing line segments corresponding to a reference enclosing area and a target line segment corresponding to a target building wall, and the data to be processed is input into a preset functional interface, where the preset functional interface is preset with generation logic corresponding to the building model data to be processed for data processing so as to obtain the target building wall, and the target building is generated according to the generation logic. Specifically, the data types output by the functional interface may include: the target line segment is inside the reference bounding region, the target line segment is outside the reference bounding region, the target line segment is on the boundary of the reference bounding region, and so on. And then, according to the generated position relation, the corresponding generation logic can be adaptively selected, and the target building wall is generated according to the generation logic.
In the above embodiment, it is considered that in the current development design, a technical problem that a target building wall such as a shear wall is generated in a basement is often encountered, and a developer needs to manually determine whether the target building wall is in a reference enclosure area corresponding to an upper layer each time. If a unified interface is not provided for developers, the functions need to be used each time, and the developers need to think, design and respond to the functions. The problem of low execution efficiency caused by bugs may exist, the working time of developers is increased, and the development efficiency is reduced. The corresponding algorithm is packaged into the functional interface through the functional interface, so that the functional interface can process the building model data to be processed according to the provided building model data to be processed (input data) to directly obtain a corresponding output result, automatic determination of generation logic of the target building wall is achieved, and generation efficiency of the target building wall is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 14, there is provided a building wall generating apparatus, which may be a part of a computer device using a software module or a hardware module, or a combination of the two, the apparatus specifically includes:
an obtaining module 1402, configured to obtain a reference enclosure area corresponding to a reference building and a target line segment corresponding to a target building wall;
a first determining module 1404, configured to determine a location relationship between the target building wall and the reference building based on a location relationship between the target line segment and the reference enclosed area;
a second determining module 1406, configured to determine, according to the position relationship, a generation logic corresponding to the wall of the target building;
a third determination module 1408 for generating the target building wall according to the determined generation logic.
In one embodiment, the first determining module 1404 is further configured to obtain a first target endpoint and a second target endpoint corresponding to the target line segment; when at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, determining that the target building wall is outside the reference building; and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the wall body of the target building and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
In one embodiment, the building wall generation apparatus is further for determining a reference point in the reference enclosure area; determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area; determining a straight line according to the reference point and the target endpoint; and determining the position relation between the target end point and the reference enclosing area according to the position relation between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
In one embodiment, the first determining module 1404 is further configured to determine that the target endpoint and the reference enclosing region are in the same plane when the reference point and the straight line determined by the target endpoint are in a perpendicular relationship with the reference vector; otherwise, judging that the target end point and the reference enclosed area are not on the same plane; and determining the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosure area.
In one embodiment, the first determining module 1404 is further configured to traverse the bounding line segment in the reference bounding region to determine whether the segment target endpoint is on the bounding line segment; when the target endpoint is on the enclosing line segment, judging that the target endpoint is on the boundary of the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
In one embodiment, the first determining module 1404 is further configured to obtain a ray corresponding to the starting point of the target endpoint; determining the number of intersection points of the ray and the reference line segment in the reference enclosed area; and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points.
In one embodiment, the first determination module 1404 is further configured to determine that the target endpoint is inside the reference bounding region when the number of intersections is odd; otherwise, judging that the target endpoint is outside the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively. In one embodiment, the second determining module 1406 is further configured to determine that the generation logic of the target building wall is mapping generation logic when the position relationship corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is overlapped with a bounding line segment in a bounding area corresponding to the reference building, where the mapping generation logic is to generate the target building wall according to the mapping of the reference building wall in the reference building; when the position relation corresponds to that the target building wall is outside the reference building, determining that the generation logic of the target building wall is an outer wall generation logic, and determining the outer wall generation logic according to the building engineering standard; and when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is not overlapped with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as the inner wall generation logic, and determining the inner wall generation logic according to the building engineering standard. There is also provided in one embodiment a building wall generation apparatus, comprising:
and the data acquisition module is used for acquiring the data of the building model to be processed.
And the calling module is used for calling a preset functional interface so that the functional interface processes the building model data to be processed according to the building wall generation method in any one of the embodiments to generate the building wall.
For specific limitations of the building wall generation apparatus, reference may be made to the above limitations of the building wall generation method, and details are not described here. The modules in the building wall generating device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a building wall generation method. 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, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall; determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating the target building wall according to the determined generation logic.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring a first target endpoint and a second target endpoint corresponding to the target line segment; when at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, determining that the target building wall is outside the reference building; and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the wall body of the target building and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
In one embodiment, the processor, when executing the computer program, performs the steps of: determining a reference point in the reference enclosure region; determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area; determining a straight line according to the reference point and the target endpoint; and determining the position relation between the target end point and the reference enclosing area according to the position relation between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
In one embodiment, the processor, when executing the computer program, performs the steps of: when the reference point and the straight line determined by the target endpoint are in a vertical relation with the reference vector, judging that the target endpoint and the reference enclosed area are in the same plane; otherwise, judging that the target end point and the reference enclosed area are not on the same plane; and determining the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosure area.
In one embodiment, the processor, when executing the computer program, performs the steps of: traversing the enclosing line segment in the reference enclosing area, and judging whether the segment target endpoint is on the enclosing line segment; when the target endpoint is on the enclosing line segment, judging that the target endpoint is on the boundary of the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring a ray corresponding to a starting point which is a target endpoint; determining the number of intersection points of the ray and the reference line segment in the reference enclosed area; and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points.
In one embodiment, the processor, when executing the computer program, performs the steps of: when the number of the intersection points is odd, judging that the target endpoint is in the reference enclosing area; otherwise, judging that the target endpoint is outside the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
In one embodiment, the processor, when executing the computer program, performs the steps of: when the position relation corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is superposed with an enclosing line segment in an enclosing area corresponding to the reference building, determining the generation logic of the target building wall as mapping generation logic, wherein the mapping generation logic is to generate the target building wall according to the mapping of the reference building wall in the reference building; when the position relation corresponds to that the target building wall is outside the reference building, determining that the generation logic of the target building wall is an outer wall generation logic, and determining the outer wall generation logic according to the building engineering standard; and when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is not overlapped with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as the inner wall generation logic, and determining the inner wall generation logic according to the building engineering standard.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring building model data to be processed; and calling a preset functional interface to enable the functional interface to process the building model data to be processed according to the building wall generation method in any one of the embodiments to generate the building wall.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor performs the steps of: acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall; determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area; determining a generation logic corresponding to the target building wall according to the position relation; and generating the target building wall according to the determined generation logic. In one embodiment, the computer program when executed by the processor implements the steps of:
acquiring a first target endpoint and a second target endpoint corresponding to the target line segment; when at least one of the first target endpoint and the second target endpoint is located outside the reference enclosed area, determining that the target building wall is outside the reference building; and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the wall body of the target building and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
In one embodiment, the computer program when executed by the processor implements the steps of: determining a reference point in the reference enclosure region; determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area; determining a straight line according to the reference point and the target endpoint; and determining the position relation between the target end point and the reference enclosing area according to the position relation between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
In one embodiment, the computer program when executed by the processor implements the steps of: when the reference point and the straight line determined by the target endpoint are in a vertical relation with the reference vector, judging that the target endpoint and the reference enclosed area are in the same plane; otherwise, judging that the target end point and the reference enclosed area are not on the same plane; and determining the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosure area. In one embodiment, the computer program when executed by the processor implements the steps of: traversing the enclosing line segment in the reference enclosing area, and judging whether the segment target endpoint is on the enclosing line segment; when the target endpoint is on the enclosing line segment, judging that the target endpoint is on the boundary of the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively. In one embodiment, the computer program when executed by the processor implements the steps of: acquiring a ray corresponding to a starting point which is a target endpoint; determining the number of intersection points of the ray and the reference line segment in the reference enclosed area; and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points. In one embodiment, the processor, when executing the computer program, performs the steps of: when the number of the intersection points is odd, judging that the target endpoint is in the reference enclosing area; otherwise, judging that the target endpoint is outside the reference enclosing area; and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively. In one embodiment, the computer program when executed by the processor implements the steps of: when the position relation corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is superposed with an enclosing line segment in an enclosing area corresponding to the reference building, determining the generation logic of the target building wall as mapping generation logic, wherein the mapping generation logic is to generate the target building wall according to the mapping of the reference building wall in the reference building; when the position relation corresponds to that the target building wall is outside the reference building, determining that the generation logic of the target building wall is an outer wall generation logic, and determining the outer wall generation logic according to the building engineering standard; and when the position relation corresponds to that the target building wall is in the reference building and the target line segment corresponding to the target building wall is not overlapped with the enclosing line segment in the enclosing area corresponding to the reference building, determining the generation logic of the target building wall as the inner wall generation logic, and determining the inner wall generation logic according to the building engineering standard. In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor performs the steps of: acquiring building model data to be processed; and calling a preset functional interface to enable the functional interface to process the building model data to be processed according to the building wall generation method in any one of the embodiments to generate the building wall.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of building wall creation, the method comprising:
acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall;
determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosing area;
determining a generation logic corresponding to the target building wall according to the position relation;
and generating a target building wall according to the determined generation logic.
2. The method of claim 1, wherein the target line segment comprises a target endpoint, and wherein determining the positional relationship of the target building wall to the reference building based on the positional relationship of the target line segment to the reference enclosed area comprises:
acquiring a first target endpoint and a second target endpoint corresponding to the target line segment;
determining that the target building wall is outside the reference building when at least one of the first target endpoint and the second target endpoint is outside the reference enclosure area;
and when the target line segment is intersected with the enclosing line segment in the reference enclosing area, determining the position relation between the target building wall and the reference building according to the position relations between the intersection point corresponding to the intersection and the first target endpoint as well as the second target endpoint.
3. The method of claim 2, wherein determining the positional relationship of the target building wall to the reference building based on the positional relationship of the target endpoint to the reference enclosed area comprises:
determining a reference point in the reference enclosure region;
determining a reference vector of the reference enclosure area according to the enclosure line segment in the reference enclosure area;
determining a straight line according to the reference point and the target endpoint;
and determining the position relation between the target end point and the reference enclosing area according to the position relation between the reference point and the straight line determined by the target end point and the reference vector, and determining the position relation between the target building wall and the reference building according to the position relation between the target end point and the reference enclosing area.
4. The method of claim 3, wherein the determining the position relationship between the target end point and the reference enclosure area according to the position relationship between the reference point and the straight line determined by the target end point and the reference vector, and the determining the position relationship between the target building wall and the reference building according to the position relationship between the target end point and the reference enclosure area comprises:
when the reference point and the straight line determined by the target end point are in a vertical relation with the reference vector, judging that the target end point and the reference enclosed area are in the same plane;
otherwise, judging that the target end point and the reference enclosed area are not on the same plane;
and determining the position relation between the target building wall and the reference building according to the position relations between a first target endpoint and a second target endpoint corresponding to the target line segment and the reference enclosing area respectively.
5. The method according to claim 4, wherein when the straight line defined by the reference point and the target endpoint is in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, and the method further comprises:
traversing the enclosing line segment in the reference enclosing area, and judging whether the target endpoint is on the enclosing line segment;
when the target endpoint is on the enclosed line segment, determining that the target endpoint is on the reference enclosed area boundary;
and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
6. The method according to claim 5, wherein when the straight line defined by the reference point and the target endpoint is in a perpendicular relationship with the reference vector, it is determined that the target endpoint and the reference enclosing region are behind the same plane, and the method further comprises:
acquiring a ray corresponding to a starting point which is a target endpoint;
determining the number of intersection points of the ray and the reference line segment in the reference enclosing area;
and determining the position relation between the target end point and the reference enclosing area and the position relation between the target building wall and the reference building according to the number of the intersection points.
7. The method of claim 6, wherein determining the positional relationship of the target endpoint to the reference enclosure area and the positional relationship of the target building wall to the reference building from the number of intersections comprises:
when the number of the intersection points is an odd number, judging that the target endpoint is in the reference enclosing area;
otherwise, judging that the target endpoint is outside the reference enclosing region;
and judging the position relation between the target building wall and the reference building according to the position relations between the first target endpoint and the second target endpoint corresponding to the target line segment and the reference enclosed area respectively.
8. The method according to any one of claims 1 to 7, wherein the determining the generation logic corresponding to the target building wall according to the position relationship comprises:
when the position relation corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is overlapped with a bounding line segment in a bounding area corresponding to the reference building, determining that the generation logic of the target building wall is mapping generation logic, wherein the mapping generation logic is to generate the target building wall according to the reference building wall mapping in the reference building;
when the position relation corresponds to that the target building wall is outside the reference building, determining that the generation logic of the target building wall is an outer wall generation logic, wherein the outer wall generation logic is determined according to a building engineering standard;
and when the position relation corresponds to that the target building wall is in the reference building and a target line segment corresponding to the target building wall is not overlapped with a surrounding line segment in a surrounding area corresponding to the reference building, determining that the generation logic of the target building wall is an inner wall generation logic, and determining the inner wall generation logic according to the building engineering standard.
9. A building wall generation method is characterized by comprising the following steps:
acquiring building model data to be processed;
calling a preset functional interface to enable the functional interface to process the building model data to be processed according to the building wall generation method of any one of claims 1 to 8, and generating a building wall.
10. A building wall creation apparatus, the apparatus comprising:
the acquisition module is used for acquiring a reference enclosed area corresponding to a reference building and a target line segment corresponding to a target building wall;
the first determination module is used for determining the position relation between the target building wall and the reference building based on the position relation between the target line segment and the reference enclosed area;
the second determining module is used for determining the generating logic corresponding to the target building wall according to the position relation;
and the third determining module is used for generating the target building wall according to the determined generating logic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011062798.4A CN112287428B (en) | 2020-09-30 | 2020-09-30 | Building wall generation method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011062798.4A CN112287428B (en) | 2020-09-30 | 2020-09-30 | Building wall generation method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112287428A true CN112287428A (en) | 2021-01-29 |
CN112287428B CN112287428B (en) | 2022-06-17 |
Family
ID=74421731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011062798.4A Active CN112287428B (en) | 2020-09-30 | 2020-09-30 | Building wall generation method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112287428B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190251209A1 (en) * | 2018-02-09 | 2019-08-15 | Guangzhou University | Method for Automatic Modeling of an Architecture Based on an Architectural Drawing |
CN111079263A (en) * | 2019-11-22 | 2020-04-28 | 久瓴(上海)智能科技有限公司 | Building main body structure generation method and device, computer equipment and storage medium |
CN111275820A (en) * | 2020-01-15 | 2020-06-12 | 深圳市华橙数字科技有限公司 | Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane |
-
2020
- 2020-09-30 CN CN202011062798.4A patent/CN112287428B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190251209A1 (en) * | 2018-02-09 | 2019-08-15 | Guangzhou University | Method for Automatic Modeling of an Architecture Based on an Architectural Drawing |
CN111079263A (en) * | 2019-11-22 | 2020-04-28 | 久瓴(上海)智能科技有限公司 | Building main body structure generation method and device, computer equipment and storage medium |
CN111275820A (en) * | 2020-01-15 | 2020-06-12 | 深圳市华橙数字科技有限公司 | Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane |
Also Published As
Publication number | Publication date |
---|---|
CN112287428B (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111079263B (en) | Building main body structure generation method, device, computer equipment and storage medium | |
CN113094770B (en) | Drawing generation method and device, computer equipment and storage medium | |
CN110955418A (en) | Code generation method and device, computer equipment and storage medium | |
US20210406040A1 (en) | Creating default layout constraints for graphical interfaces | |
CN112287430B (en) | Building wall generation method and device, computer equipment and storage medium | |
CN113010945A (en) | BIM model linkage method and system | |
CN112583620B (en) | Network topology map generation method, device, electronic equipment and storage medium | |
CN111596911A (en) | Method and device for generating control, computer equipment and storage medium | |
CN109388843B (en) | Visualization system and method of truss antenna based on VTK (virtual terminal K), and terminal | |
CN110765507A (en) | Three-dimensional CAD (computer-aided design) modeling method, device and system based on cloud service technology | |
CN112287427B (en) | Building wall position determining method and device, computer equipment and storage medium | |
CN109448120B (en) | Processing method and device for three-dimensional building model and computer equipment | |
CN112287429B (en) | Building target area determination method and device, computer equipment and storage medium | |
CN110709891A (en) | Virtual reality scene model establishing method and device, electronic equipment and storage medium | |
CN112287428B (en) | Building wall generation method and device, computer equipment and storage medium | |
CN112287432A (en) | Target area acquisition method and device, computer equipment and storage medium | |
CN111008311A (en) | Complex network node importance evaluation method and device based on neighborhood weak connection | |
CN111258576A (en) | Interface generation method and device, electronic equipment and computer storage medium | |
CN112765716B (en) | Target steel bar obtaining method, device, equipment and medium | |
CN112287434B (en) | Building line segment generation method and device, computer equipment and storage medium | |
CN112199753B (en) | Shear wall generation method and device, electronic equipment and storage medium | |
CN111125809B (en) | Building steel column generation method and device, computer equipment and storage medium | |
CN113901914A (en) | Image recognition method and device, electronic equipment and readable storage medium | |
CN114168148A (en) | Method, device, medium and equipment for processing source file | |
CN113094052A (en) | Application construction method and device, computer equipment and storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |