CN112199753A - Shear wall generation method and device, electronic equipment and storage medium - Google Patents
Shear wall generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112199753A CN112199753A CN202011191860.XA CN202011191860A CN112199753A CN 112199753 A CN112199753 A CN 112199753A CN 202011191860 A CN202011191860 A CN 202011191860A CN 112199753 A CN112199753 A CN 112199753A
- Authority
- CN
- China
- Prior art keywords
- line
- line segment
- positioning
- positioning line
- end point
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Civil Engineering (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Architecture (AREA)
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the invention discloses a shear wall generation method, a shear wall generation device, electronic equipment and a storage medium, wherein a first positioning line of a simulation wall and a second positioning line of a simulation shear wall are obtained; determining a coincident line segment of the first locating line and the second locating line; acquiring a target line segment, wherein the target line segment is a part of the first positioning line from which the overlapped line segment is removed; and forming the simulated shear wall on the simulated wall according to the target line segment, thereby reducing the development time and improving the development efficiency.
Description
Technical Field
The invention relates to the technical field of computer aided design, in particular to a shear wall generation method and device, electronic equipment and a storage medium.
Background
In the field of wall body design of building design, the design of a shear wall is of great importance, and the shear wall (shear wall) is also called as a wind-resistant wall or an earthquake-resistant wall and a structural wall, and is a wall body which mainly bears horizontal load and vertical load caused by wind load or earthquake action in a house or a structure, so that the shear damage of the structure is prevented. In the research and practice process of the prior art, the inventors of the present invention found that, when a shear wall is generated, developers must design one by one according to the wall position to generate a line segment set capable of forming the shear wall, and the developers may have problems of leaks, low execution efficiency, and the like in the design process, so that the working time of the developers is increased, and the development efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a shear wall generation method and device, computer equipment and a storage medium. .
The embodiment of the invention provides a shear wall generation method, which comprises the following steps:
acquiring a first positioning line of the simulation wall and a second positioning line of the simulation shear wall;
determining a coincident line segment of the first locating line and the second locating line;
acquiring a target line segment, wherein the target line segment is a part of the first positioning line from which the overlapped line segment is removed;
and forming the simulated shear wall on the simulated wall according to the target line segment.
Correspondingly, an embodiment of the present invention further provides a shear wall generating device, including:
the initial line segment acquisition unit is used for acquiring a first positioning line of the simulation wall and a second positioning line of the simulation shear wall;
a coincident line segment acquisition unit for determining a coincident line segment of the first positioning line and the second positioning line;
a target line segment obtaining unit, configured to obtain a target line segment, where the target line segment is a portion of the first positioning line from which the overlapped line segment is removed;
and the forming unit is used for forming the simulated shear wall on the simulated wall according to the target line segment.
Optionally, the coincident line segment obtaining unit may be further configured to determine a direction of the first positioning line and a direction of the second positioning line;
if the direction of the first positioning line is different from that of the second positioning line and the direction of the first positioning line is different from that of the second positioning line, determining that the first positioning line does not comprise the superposed line segment and forming a first line segment;
if the direction of the first positioning line is the same as that of the second positioning line or the direction of the first positioning line is the same as that of the second positioning line, obtaining a first position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the first position relation;
the target line segment obtaining unit may be further configured to obtain the first line segment as the target line segment if it is determined that the coincident line segment is not included on the first positioning line.
Optionally, the overlapped line segment obtaining unit may be further configured to obtain an endpoint coordinate of the first positioning line and an endpoint coordinate of the second positioning line based on the first position relationship;
if the endpoint coordinates of the first positioning line and the second positioning line are correspondingly the same, determining the first positioning line as the coincident line segment to form a second line segment;
if the end point coordinates of the first positioning line and the second positioning line are different, obtaining a second position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the second position relation;
the target line segment obtaining unit may be further configured to determine that the target line segment does not exist on the second line segment if it is determined that the first positioning line is the overlapped line segment.
Optionally, the shear wall generation device may be further configured to determine that a starting point of the first positioning line is a first end point, and an end point of the first positioning line is a second end point;
if the direction of the first positioning line is the same as that of the second positioning line, determining that the starting point of the second positioning line is a third end point and the end point of the second positioning line is a fourth end point;
if the direction of the first positioning line is the same as the reverse direction of the second positioning line, determining that the end point of the second positioning line is a third end point, and the starting point of the second positioning line is a fourth end point;
the coincident line segment obtaining unit may be further configured to determine, based on the second positional relationship, that the third end point and the fourth end point are located outside the first positioning line;
if the first end point and the second end point are located outside the second positioning line, determining that the coincident line segment is not included on the first positioning line, and forming the first line segment;
if the first end point and the second end point are located in the second positioning line, determining the first positioning line as the coincident line segment to form the second line segment;
the target line segment obtaining unit may be further configured to obtain the first line segment as the target line segment if the first positioning line does not include the overlapping line segment;
and if the first positioning line is the overlapped line segment, determining that the target line segment does not exist on the second line segment.
Optionally, the coincident line segment obtaining unit may be further configured to determine, based on the second position relationship, that the third endpoint is located inside the first positioning line and the fourth endpoint is located outside the first positioning line;
determining a line segment formed by the third endpoint and the second endpoint as the coincident line segment;
the target line segment obtaining unit may be further configured to obtain a line segment with the first endpoint as a starting point and the third endpoint as an end point as the target line segment.
Optionally, the overlapped line segment obtaining unit may be further configured to determine, based on the second position relationship, that the third endpoint is located outside the first positioning line and the fourth endpoint is located inside the first positioning line;
determining a line segment formed by the first end point and the fourth end point as the coincident line segment;
the target line segment obtaining unit may be further configured to obtain a line segment with the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
Optionally, the coincident line segment obtaining unit may be further configured to determine that the third endpoint and the fourth endpoint are located in the first positioning line;
determining a line segment formed by the third end point and the fourth end point as the coincident line segment;
the target line segment obtaining unit may be further configured to obtain a line segment with the first endpoint as a starting point and the third endpoint as an end point as the target line segment; and
and acquiring a line segment taking the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
Similarly, an embodiment of the present invention further provides an electronic device, including:
the shear wall generating method comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps of the shear wall generating method.
In addition, the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the shear wall generation method.
When the simulated shear wall is generated, a user inputs a first positioning line of the simulated wall and a second positioning line of the simulated shear wall into the electronic device, the electronic device obtains the first positioning line and the second positioning line, determines the directions and end point coordinates of the first positioning line and the second positioning line, and judges the position relationship of the first positioning line and the second positioning line according to the directions and the end point coordinates, such as intersection, complete superposition, parallel superposition, partial superposition and the like, so as to obtain a superposed line segment of the first positioning line and the second positioning line, remove the superposed line segment included on the first positioning line, form a target line segment, and finally enable the target line segment to form the simulated shear wall. The method provided by the embodiment of the invention is to encapsulate the function of generating the simulated shear wall in the electronic equipment in advance, the electronic equipment receives the first positioning line and the second positioning line input by the developer, then the function is called to generate the target line segment, and the simulated shear wall is formed by utilizing the target line segment, but the developer needs to analyze the position relation of the first positioning line and the second positioning line to generate the simulated shear wall every time the simulated shear wall is generated, so that the development time is reduced, and the development efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application environment diagram of a shear wall generation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a shear wall generation method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a simulated wall and a simulated shear wall according to an embodiment of the invention;
FIG. 4 is a diagram illustrating a relative position relationship between a first alignment line and a second alignment line according to an embodiment of the present invention;
FIG. 5 is a flow chart of another shear wall generation method provided by an embodiment of the invention;
fig. 6 is a schematic structural diagram of a shear wall generation device provided by an embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and in the claims of the embodiments of the application and in the drawings described above 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 the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprise" and "have," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules expressly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus, such that the division of modules presented in the present application is merely a logical division and may be implemented in a practical application in a different manner, such that multiple modules may be combined or integrated into another system or some features may be omitted or not implemented, and such that couplings or direct couplings or communicative connections shown or discussed may be through interfaces, indirect couplings or communicative connections between modules may be electrical or the like, the embodiments of the present application are not limited. Moreover, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
The embodiment of the application provides a shear wall generation method which is mainly applied to a curtain wall design scene and adopts building design software to design a curtain wall. According to the method, the terminal is used for executing the object generation method, or the object generation device running on the terminal is used for executing the shear wall generation method. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a smart television, a smart robot, a desktop computer, a server computer, and the like.
Referring to fig. 1, an application environment diagram of the shear wall generation method according to the embodiment of the present disclosure is shown in fig. 1. The terminal 100 in the figure includes a memory, a processor, and a display screen, the processor may run a building design software, the building design software may be stored in the memory in the form of a computer program, the memory also provides an operating environment for the building design software, and the memory may store operating information of the building design software. Specifically, the display screen may display a panel editing interface of the building design software, on which a drawing component, a panel object, a hollow model and a cut object list are displayed, and the user may input information through the drawing component provided by the panel editing interface to perform building design or may cut the panel object through the hollow model and the cut object list. Optionally, the architectural design software may invoke the mapped model data through a software interface, the invoked model data including, but not limited to, model data of the architectural design software.
A method for generating a shear wall in the present application is introduced below by a specific embodiment, please refer to fig. 2, and fig. 2 is a flowchart of a method for generating a shear wall provided in the embodiment of the present application, where the embodiment of the present application at least includes the following steps:
For example, the first positioning line and the second positioning line are directed line segments, and when the shear wall is generated, the computer device obtains a first relevant parameter of at least one first positioning line of the simulated wall, which is input by a user, where the first relevant parameter includes two end point coordinates of the first positioning line, and/or a direction of the first positioning line, and the like, and a second relevant parameter of a second positioning line of the at least one simulated shear wall, where the second relevant parameter includes two end point coordinates of the second positioning line, and/or a direction of the second positioning line, and the like.
The shear wall is also called as a wind-resistant wall or an earthquake-resistant wall or a structural wall, is a wall body which mainly bears horizontal load and vertical load caused by wind load or earthquake action, namely gravity, in a house or a structure and is divided into a plane shear wall and a cylinder shear wall. The plane shear wall is used in a reinforced concrete frame structure, and/or a riser structure, and/or a flat slab system. The cylinder shear wall is used in high-rise buildings, high-rise structures and suspension structures.
In some embodiments, please refer to fig. 3, fig. 3 is a schematic diagram of a simulated wall and a simulated shear wall according to an embodiment of the present disclosure. The simulated wall shown in fig. 3 may be a complete simulated wall system, which includes four walls, wherein the four walls are formed by 12 line segments, each wall is formed by 4 line segments, and each two walls may share one line segment. The first positioning line of the simulation wall may be a set of 12 line segments shown in fig. 3, may be a set of any partial line segments of the 12 line segments, and may also be any one of the 12 line segments.
In one embodiment, the second positioning line of the simulated shear wall is a line segment divided in any one of the simulated walls, such as the line segment CH, the line segment ID, the line segment GJ, and the line segment KH in fig. 3, that is, two end points of the second positioning line can be set on the simulated wall, so as to generate the second positioning line. The number of the second positioning lines is not limited, and the second positioning lines can be flexibly arranged according to actual conditions.
For example, when the computer device acquires the coordinates and the direction of the two end points of the first positioning line and the coordinates and the direction of the two end points of the second positioning line, the relative positional relationship between the first positioning line and the second positioning line is determined, and thus the coincident line segments of the first positioning line and the second positioning line are determined.
In one embodiment, the computer device receives one end point of the first positioning line set by the user as a starting point and the other end point of the first positioning line as an end point, and determines the direction of the first positioning line according to the starting point and the end point of the first positioning line.
In an embodiment, coordinates of two end points of the first positioning line and the second positioning line are not limited, and the first positioning line and the second positioning line can be flexibly set, and the two end points of the first positioning line and the second positioning line can be arbitrarily specified as a starting point or an end point, so that directions of the first positioning line and the second positioning line can be determined to be not limited, and the first positioning line and the second positioning line can be flexibly set.
In some embodiments, referring to fig. 4, the relative position relationship between the first positioning line and the second positioning line includes that the first positioning line and the second positioning line intersect, or the extension line of the first positioning line and the extension line of the second positioning line intersect, as shown in result 1 in fig. 4, specifically, the direction of the first positioning line is different from the direction of the second positioning line, and the direction of the first positioning line is also different from the opposite direction of the second positioning line, the electronic device may determine that the first positioning line does not include the overlapped line segment, and define the first positioning line that does not include the overlapped line segment as the first line segment. If the direction of the first positioning line is the same as the direction of the second positioning line, or the direction of the first positioning line is the same as the opposite direction of the second positioning line, a first positional relationship of the first positioning line and the second positioning line is obtained, that is, the first positional relationship includes a partial relative positional relationship of the first positioning line and the second positioning line, and the partial relative positional relationship is a condition excluding intersection of the first positioning line and the second positioning line, or intersection of an extension line of the first positioning line and an extension line of the second positioning line.
In an embodiment, referring to fig. 4 together, the relative position relationship between the first positioning line and the second positioning line includes that the first positioning line and the second positioning line coincide with each other, or the first positioning line and the second positioning line coincide with each other in opposite directions, as shown in result 2 in fig. 4, specifically, the direction of the first positioning line is the same as the direction of the second positioning line, or the first positioning line and the second positioning line are the same in opposite directions, and meanwhile, the coordinates of two end points of the first positioning line are respectively the same as the coordinates of two end points of the second positioning line, the electronic device may determine that the first positioning line is a coincident line segment, and define the first positioning line as the coincident line segment as the second line segment.
In some embodiments, the electronic device determines that a starting point of the first positioning line is a first end point, an end point of the first positioning line is a second end point, if the direction of the first positioning line is the same as the direction of the second positioning line, the starting point of the second positioning line is a third end point, and the end point of the second positioning line is a fourth end point, if the direction of the first positioning line is the same as the reverse direction of the second positioning line, the end point of the second positioning line is a third end point, and the starting point of the second positioning line is a fourth end point, that is, the electronic device sorts the two end points of the first positioning line, sorts the two end points of the second positioning line according to the direction of the first positioning line, fixes the relative positions of the first end point and the second end point of the first positioning line, and fixes the relative positions of the third end point and the fourth end point, so that the direction of the line segment of the third end point pointing to the fourth end point is the same as the direction of the line segment of the first end point pointing to, therefore, the overlapped line segments of the first positioning line and the second positioning line can be determined more conveniently and orderly, and therefore the efficiency of obtaining the target line segment and generating the simulation shear wall is improved.
Specifically, if the direction of the first positioning line is from left to right, the starting point of the first positioning line is used as a first end point, the end point of the first positioning line is a second end point, if the direction of the second positioning line is also from left to right, the starting point of the second positioning line is a third end point, and the end point of the second positioning line is a fourth end point.
In some embodiments, referring to fig. 4 together, the relative position relationship between the first positioning line and the second positioning line includes that the first positioning line and the second positioning line are parallel, as shown in result 3 of fig. 4, specifically, after it is determined that the first positioning line and the second positioning line do not intersect, or that the extension line of the first positioning line and the extension line of the second positioning line do not intersect, the third endpoint and the fourth endpoint are located outside the first positioning line, and the first endpoint and the second endpoint are located outside the second positioning line, the electronic device determines that the first positioning line does not include a coincident line segment, and defines the first positioning line that does not include a coincident line segment as the first line segment.
In an embodiment, referring to fig. 4 together, the relative position relationship between the first position line and the second position line includes that the second position line includes the first position line, as shown in result 4 of fig. 4, specifically, after it is determined that the first position line and the second position line do not intersect, or the extension line of the first position line and the extension line of the second position line do not intersect, the third end point and the fourth end point are located outside the first position line, and the first end point and the second end point are located inside the second position line, it is determined that the first position line is a coincident line segment.
In some embodiments, referring to fig. 4, the relative position relationship between the first positioning line and the second positioning line includes that the first positioning line and the second positioning line are partially overlapped, as shown in result 5 of fig. 4, specifically, if the third endpoint Y is located inside the first positioning line and the fourth endpoint Z is located outside the first positioning line, the electronic device determines that the line segment formed by the third endpoint and the second endpoint is an overlapped line segment.
In one embodiment, referring to fig. 4, the relative position relationship between the first positioning line and the second positioning line includes that the first positioning line and the second positioning line partially overlap, as shown in result 6 of fig. 4, specifically, the third end point Y is located outside the first positioning line, and the fourth end point Z is located inside the first positioning line, so that the electronic device determines that the line segment formed by the first end point and the fourth end point is the overlapped line segment.
In some embodiments, referring to fig. 4, the relative position relationship between the first alignment line and the second alignment line includes that the first alignment line includes the second alignment line, as shown in result 7 of fig. 4, specifically, if the third endpoint and the fourth endpoint are located in the first alignment line, the electronic device determines that the line segment formed by the third endpoint and the fourth endpoint is a coincident line segment.
For example, after the electronic device acquires the overlapped line segment, the line segment on the first positioning line from which the overlapped line segment is removed is determined as a target line segment for forming the simulated shear wall.
In some embodiments, if the electronic device determines that the first alignment line does not include a coincident line segment, then the electronic device may determine that the first line segment is the target line segment without removing a portion of the line segment on the first alignment line.
In one embodiment, if the electronic device determines that the first positioning line is a coincident line segment, the entire first positioning line needs to be removed, and it may be determined that the target line segment does not exist on the second line segment.
In some embodiments, if the electronic device determines that the line segment formed between the third endpoint and the second endpoint is a coincident line segment, removing a portion between the third endpoint and the second endpoint on the first positioning line, and determining whether a distance between the first endpoint and the third endpoint is greater than a preset threshold, if so, determining that the line segment with the first endpoint as a starting point and the third endpoint as an end point is a target line segment, and if not, not generating the target line segment, which indicates that the distance between the first endpoint and the third endpoint does not meet the shortest distance standard for the building design software to form the line segment. The value of the preset threshold is not limited, and can be flexibly set according to actual conditions, for example, the value can be 0.8 mm.
In one embodiment, if the electronic device determines that a line segment formed between the first end point and the fourth end point is a coincident line segment, it determines whether a distance between the first end point and the fourth end point is greater than a preset threshold, if so, it determines that the line segment with the fourth end point as a starting point and the second end point as an end point is a target line segment, and if not, it does not generate the target line segment, which indicates that the distance between the fourth end point and the second end point does not meet the shortest distance standard of the building design software for forming the line segment.
In one embodiment, if the electronic device determines that a line segment formed by a third end point and a fourth end point is a coincident line segment, determining whether a distance between the first end point and the third end point is greater than a preset threshold, if so, acquiring a line segment with the first end point as a starting point and the third end point as an end point as a target line segment, if not, not generating the target line segment, indicating that the distance between the first end point and the third end point does not satisfy the shortest distance standard for forming the line segment by the building design software, and determining whether a distance between the fourth end point and the second end point is greater than the preset threshold, if so, acquiring a line segment with the fourth end point as a starting point and the second end point as a target line segment, and if not, not generating the target line segment, indicating that the distance between the fourth end point and the second end point does not satisfy the shortest distance standard for forming the line segment by the building design software.
And 204, forming a simulated shear wall on the simulated wall according to the target line segment.
For example, after the electronic device cuts the first positioning line on any wall of the simulation wall, the remaining line segment after the first positioning line is cut is obtained, namely the target line segment, and the simulation shear wall is enclosed on the simulation wall according to the target line segment.
In one embodiment, as shown in fig. 3, a second positioning line CH and a second positioning line ID are provided on a first positioning line CD, a second positioning line GJ and a second positioning line KH are provided on a first positioning line GH, and after the first positioning line is cut, target line segments HI, JK, HJ, and IK are generated, so that the target line segments form a simulated shear wall.
Referring to fig. 5, fig. 5 is a flowchart illustrating another shear wall generating method according to an embodiment of the present disclosure. Taking the application of the shear wall generation method to a terminal as an example, the specific scene application of the shear wall generation method can be as follows:
the terminal obtains the end point coordinate and the direction of a first positioning line, obtains the end point coordinate and the direction of a second positioning line, judges whether the direction of the first positioning line is different from the direction of the second positioning line, if the direction of the first positioning line is different from the direction of the second positioning line and the direction of the first positioning line is different from the reverse direction of the second positioning line, determines that the first positioning line does not comprise a superposed line segment to form a first line segment, and takes the first line segment as a target line segment, if the direction of the first positioning line is the same as the direction of the second positioning line or the direction of the first positioning line is the same as the reverse direction of the second positioning line, the first position relation of the first positioning line and the second positioning line is obtained.
The terminal judges whether the first positioning line segment and the second positioning line are overlapped or not based on the first position relation, if the end point coordinate of the first positioning line segment is correspondingly the same as the end point coordinate of the second positioning line, the first positioning line segment is determined to be the overlapped line segment, the second line segment is formed, the target line segment does not exist on the second line segment, and if the end point coordinate of the first positioning line segment is different from the end point coordinate of the second positioning line segment, the second position relation of the first positioning line segment and the second positioning line segment is obtained.
The terminal can select to determine that the third end point and the fourth end point are located outside the first positioning line based on a second position relationship, if the first end point and the second end point are located outside the second positioning line, it is determined that the first positioning line does not include the coincident line segment, the first line segment is formed, the first line segment is used as a target line segment, if the first end point and the second end point are located inside the second positioning line, it is determined that the first positioning line is the coincident line segment, the second line segment is formed, and it is determined that the target line segment does not exist on the second line segment.
And the terminal can select to determine that the third endpoint is positioned in the first positioning line and the fourth endpoint is positioned outside the first positioning line based on the second position relation, and obtain a line segment taking the first endpoint as a starting point and the third endpoint as an end point as a target line segment.
And the terminal can select to determine that a third endpoint is positioned outside the first positioning line and a fourth endpoint is positioned inside the first positioning line based on the second position relation, and obtain a line segment taking the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
The terminal can selectively determine that a third endpoint and the fourth endpoint are located in the first positioning line based on the second position relation, obtain a line segment taking the first endpoint as a starting point and the third endpoint as an end point as a target line segment, and obtain a line segment taking the fourth endpoint as a starting point and the second endpoint as a target line segment.
And finally, forming a simulation shear wall on the simulation wall by the terminal based on the obtained target line segment.
The embodiment of the application provides a shear wall generation method, when a simulation shear wall is generated, a user inputs a first positioning line of a simulation wall and a second positioning line of the simulation shear wall into an electronic device, the electronic device obtains the first positioning line and the second positioning line, determines the direction and the end point coordinates of the first positioning line and the second positioning line, and judges the position relationship of the first positioning line and the second positioning line according to the direction and the end point coordinates, such as intersection, complete superposition, parallel superposition, partial superposition and the like, so as to obtain a superposed line segment of the first positioning line and the second positioning line, remove a superposed line segment included on the first positioning line, form a target line segment, and finally enable the target line segment to form the simulation shear wall. The method provided by the embodiment of the invention is to encapsulate the function of generating the simulated shear wall in the electronic equipment in advance, the electronic equipment receives the first positioning line and the second positioning line input by the developer, then the function is called to generate the target line segment, and the simulated shear wall is formed by utilizing the target line segment, but the developer needs to analyze the position relation of the first positioning line and the second positioning line to generate the simulated shear wall every time the simulated shear wall is generated, so that the development time is reduced, and the development efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a shear wall generating device according to an embodiment of the present disclosure. The device includes:
an initial line segment obtaining unit 601, configured to obtain a first positioning line of a simulation wall and a second positioning line of a simulation shear wall;
a coincident line segment obtaining unit 602, configured to determine a coincident line segment of the first positioning line and the second positioning line;
a target line segment obtaining unit 603, configured to obtain a target line segment, where the target line segment is a portion of the first positioning line from which the overlapped line segment is removed;
a forming unit 604, configured to form the simulated shear wall on the simulated wall according to the target line segment.
A coincident line segment obtaining unit 602, further configured to determine a direction of the first positioning line and a direction of the second positioning line;
if the direction of the first positioning line is different from that of the second positioning line and the direction of the first positioning line is different from that of the second positioning line, determining that the first positioning line does not comprise the superposed line segment and forming a first line segment;
if the direction of the first positioning line is the same as that of the second positioning line or the direction of the first positioning line is the same as that of the second positioning line, obtaining a first position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the first position relation;
the target line segment obtaining unit 603 may be further configured to obtain the first line segment as the target line segment if it is determined that the coincident line segment is not included on the first positioning line.
A coincident line segment obtaining unit 602, further configured to obtain an endpoint coordinate of the first positioning line and an endpoint coordinate of the second positioning line based on the first positional relationship;
if the endpoint coordinates of the first positioning line and the second positioning line are correspondingly the same, determining the first positioning line as the coincident line segment to form a second line segment;
if the end point coordinates of the first positioning line and the second positioning line are different, obtaining a second position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the second position relation;
the target line segment obtaining unit 603 may be further configured to determine that the target line segment does not exist on the second line segment if the first positioning line is determined as the overlapped line segment.
The shear wall generation device may be further configured to determine that a starting point of the first positioning line is a first end point, and an end point of the first positioning line is a second end point;
if the direction of the first positioning line is the same as that of the second positioning line, determining that the starting point of the second positioning line is a third end point and the end point of the second positioning line is a fourth end point;
if the direction of the first positioning line is the same as the reverse direction of the second positioning line, determining that the end point of the second positioning line is a third end point, and the starting point of the second positioning line is a fourth end point;
a coincident line segment obtaining unit 602, further configured to determine, based on the second position relationship, that the third end point and the fourth end point are located outside the first positioning line;
if the first end point and the second end point are located outside the second positioning line, determining that the coincident line segment is not included on the first positioning line, and forming the first line segment;
if the first end point and the second end point are located in the second positioning line, determining the first positioning line as the coincident line segment to form the second line segment;
a target line segment obtaining unit 603, further configured to obtain the first line segment as the target line segment if the first positioning line does not include the overlapped line segment;
and if the first positioning line is the overlapped line segment, determining that the target line segment does not exist on the second line segment.
The coincident line segment obtaining unit 602 may be further configured to determine, based on the second positional relationship, that the third endpoint is located inside the first positioning line and the fourth endpoint is located outside the first positioning line;
determining a line segment formed by the third endpoint and the second endpoint as the coincident line segment;
the target line segment obtaining unit 603 may be further configured to obtain a line segment with the first endpoint as a starting point and the third endpoint as an end point as the target line segment.
The coincident line segment obtaining unit 602 may be further configured to determine, based on the second positional relationship, that the third endpoint is located outside the first positioning line and the fourth endpoint is located inside the first positioning line;
determining a line segment formed by the first end point and the fourth end point as the coincident line segment;
the target line segment obtaining unit 603 may be further configured to obtain a line segment with the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
A coincident line segment obtaining unit 602, further configured to determine that the third endpoint and the fourth endpoint are located in the first positioning line;
determining a line segment formed by the third end point and the fourth end point as the coincident line segment;
a target line segment obtaining unit 603, further configured to obtain a line segment with the first endpoint as a starting point and the third endpoint as an end point as the target line segment; and
and acquiring a line segment taking the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
The embodiment of the application discloses a shear wall generation device, which comprises an initial line segment acquisition unit 601, a first positioning line acquisition unit and a second positioning line acquisition unit, wherein the initial line segment acquisition unit is used for acquiring a first positioning line of a simulation wall and a second positioning line of a simulation shear wall; a coincident line segment obtaining unit 602, configured to determine a coincident line segment of the first positioning line and the second positioning line; a target line segment obtaining unit 603, configured to obtain a target line segment, where the target line segment is a portion of the first positioning line from which the overlapped line segment is removed; a forming unit 604, configured to form the simulated shear wall on the simulated wall according to the target line segment. Thereby reducing the development time and improving the development efficiency.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: acquiring a first positioning line of a simulation wall and a second positioning line of a shear wall; determining a coincident line segment where the first positioning line and the second positioning line are coincident; acquiring a target line segment on the first positioning line, wherein the overlapped line segment is removed; and forming the shear wall according to the target line segment.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the method provided by the foregoing embodiments, for example, including: acquiring a first positioning line of a simulation wall and a second positioning line of a shear wall; determining a coincident line segment where the first positioning line and the second positioning line are coincident; acquiring a target line segment on the first positioning line, wherein the overlapped line segment is removed; and forming the shear wall according to the target line segment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A shear wall generation method is characterized by comprising the following steps:
acquiring a first positioning line of the simulation wall and a second positioning line of the simulation shear wall;
determining a coincident line segment of the first locating line and the second locating line;
acquiring a target line segment, wherein the target line segment is a part of the first positioning line from which the overlapped line segment is removed;
and forming the simulated shear wall on the simulated wall according to the target line segment.
2. The method of claim 1, wherein the first and second positioning lines are directed line segments;
the determining a coincident line segment where the first locating line and the second locating line coincide includes:
determining a direction of the first alignment line and a direction of the second alignment line;
if the direction of the first positioning line is different from that of the second positioning line and the direction of the first positioning line is different from that of the second positioning line, determining that the first positioning line does not comprise the superposed line segment and forming a first line segment;
if the direction of the first positioning line is the same as that of the second positioning line or the direction of the first positioning line is the same as that of the second positioning line, obtaining a first position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the first position relation;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
and if the first positioning line does not comprise the overlapped line segment, acquiring the first line segment as the target line segment.
3. The method of claim 2, wherein said determining a coincident line segment of the first and second positioning lines based on the first positional relationship comprises:
acquiring the endpoint coordinates of the first positioning line and the endpoint coordinates of the second positioning line based on the first position relation;
if the endpoint coordinates of the first positioning line and the second positioning line are correspondingly the same, determining the first positioning line as the coincident line segment to form a second line segment;
if the end point coordinates of the first positioning line and the second positioning line are different, obtaining a second position relation of the first positioning line and the second positioning line, and determining a superposed line segment of the first positioning line and the second positioning line based on the second position relation;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
and if the first positioning line is determined to be the overlapped line segment, determining that the target line segment does not exist on the second line segment.
4. The method of claim 3, further comprising:
determining a starting point of the first positioning line as a first end point, and determining an end point of the first positioning line as a second end point;
if the direction of the first positioning line is the same as that of the second positioning line, determining that the starting point of the second positioning line is a third end point and the end point of the second positioning line is a fourth end point;
if the direction of the first positioning line is the same as the reverse direction of the second positioning line, determining that the end point of the second positioning line is a third end point, and the starting point of the second positioning line is a fourth end point;
the determining a coincident line segment of the first positioning line and the second positioning line based on the second positional relationship includes:
determining, based on the second positional relationship, that the third endpoint and the fourth endpoint are located outside of the first location line;
if the first end point and the second end point are located outside the second positioning line, determining that the coincident line segment is not included on the first positioning line, and forming the first line segment;
if the first end point and the second end point are located in the second positioning line, determining the first positioning line as the coincident line segment to form the second line segment;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
if the first positioning line does not comprise the superposed line segment, acquiring the first line segment as the target line segment;
and if the first positioning line is the overlapped line segment, determining that the target line segment does not exist on the second line segment.
5. The method of claim 4, wherein said determining a coincident line segment of the first and second positioning lines based on the second positional relationship comprises:
determining, based on the second positional relationship, that the third endpoint is located within the first location line and the fourth endpoint is located outside the first location line;
determining a line segment formed by the third endpoint and the second endpoint as the coincident line segment;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
and acquiring a line segment taking the first endpoint as a starting point and the third endpoint as an end point as the target line segment.
6. The method of claim 4, wherein said determining a coincident line segment of the first and second positioning lines based on the second positional relationship comprises:
determining, based on the second positional relationship, that the third endpoint is located outside of the first location line and the fourth endpoint is located within the first location line;
determining a line segment formed by the first end point and the fourth end point as the coincident line segment;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
and acquiring a line segment taking the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
7. The method of claim 4, wherein said determining a coincident line segment of the first and second positioning lines based on the second positional relationship comprises:
determining that the third endpoint and the fourth endpoint are located within the first positioning line;
determining a line segment formed by the third end point and the fourth end point as the coincident line segment;
the obtaining of the target line segment, where the target line segment is a portion of the first positioning line where the overlapped line segment is removed, includes:
acquiring a line segment taking the first endpoint as a starting point and the third endpoint as an end point as the target line segment; and
and acquiring a line segment taking the fourth endpoint as a starting point and the second endpoint as an end point as the target line segment.
8. A shear wall generation device, comprising:
the initial line segment acquisition unit is used for acquiring a first positioning line of the simulation wall and a second positioning line of the simulation shear wall;
a coincident line segment acquisition unit for determining a coincident line segment of the first positioning line and the second positioning line;
a target line segment obtaining unit, configured to obtain a target line segment, where the target line segment is a portion of the first positioning line from which the overlapped line segment is removed;
and the forming unit is used for forming the simulated shear wall on the simulated wall according to the target line segment.
9. An electronic device, comprising:
comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps of the shear wall generation method of any of claims 1 to 7.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the shear wall generation method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011191860.XA CN112199753B (en) | 2020-10-30 | 2020-10-30 | Shear wall generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011191860.XA CN112199753B (en) | 2020-10-30 | 2020-10-30 | Shear wall generation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112199753A true CN112199753A (en) | 2021-01-08 |
CN112199753B CN112199753B (en) | 2022-06-28 |
Family
ID=74012106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011191860.XA Active CN112199753B (en) | 2020-10-30 | 2020-10-30 | Shear wall generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112199753B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010955A (en) * | 2021-04-29 | 2021-06-22 | 久瓴(江苏)数字智能科技有限公司 | Curtain wall model generation method and system and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110738219A (en) * | 2019-10-15 | 2020-01-31 | 腾讯科技(深圳)有限公司 | Method and device for extracting lines in image, storage medium and electronic device |
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-10-30 CN CN202011191860.XA patent/CN112199753B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110738219A (en) * | 2019-10-15 | 2020-01-31 | 腾讯科技(深圳)有限公司 | Method and device for extracting lines in image, storage medium and electronic device |
CN111275820A (en) * | 2020-01-15 | 2020-06-12 | 深圳市华橙数字科技有限公司 | Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010955A (en) * | 2021-04-29 | 2021-06-22 | 久瓴(江苏)数字智能科技有限公司 | Curtain wall model generation method and system and storage medium |
CN113010955B (en) * | 2021-04-29 | 2022-06-17 | 久瓴(江苏)数字智能科技有限公司 | Curtain wall model generation method and system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112199753B (en) | 2022-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112199751B (en) | Wall model generation method and device, electronic equipment and storage medium | |
JP2019501446A (en) | Test method, test system, test apparatus, and readable recording medium | |
CN112348954A (en) | Building model processing method and device, computer equipment and storage medium | |
CN105224163B (en) | interface display method and device | |
CN113268303A (en) | Interface element configuration method and device, storage medium and electronic equipment | |
CN112818456A (en) | Layer configuration method, electronic equipment and related product | |
CN103399873A (en) | Database dynamic loading management method and device of virtual reality system | |
CN104881888B (en) | Picture clipping method and device | |
CN114253557A (en) | Cloud platform application deployment method and device, electronic equipment and storage medium | |
CN112199753B (en) | Shear wall generation method and device, electronic equipment and storage medium | |
CN107122104B (en) | Data display method and device | |
CN114186306A (en) | Customizable reinforcement learning for post placement in structural design | |
CN105787568A (en) | IDC machine room equipment presentation method | |
CN112966256A (en) | Equipment management method based on building information model and related device | |
CN106548501B (en) | Image drawing method and device | |
CN107729686B (en) | Building model component display method and device, electronic equipment and storage medium | |
CN112287443B (en) | Method and device for generating structural floor slab, electronic equipment and storage medium | |
CN116310040A (en) | Drawing processing method and device of three-dimensional model, electronic equipment and storage medium | |
CN106547528B (en) | Interface layout method and device | |
CN113126866B (en) | Object determination method, device, electronic equipment and storage medium | |
CN115454431A (en) | Page construction method, device, equipment and storage medium | |
CN112015401A (en) | Information acquisition method and device, electronic equipment and readable storage medium | |
CN114061593A (en) | Navigation method based on building information model and related device | |
CN111858987A (en) | Problem checking method of CAD (computer-aided design) image, electronic equipment and related product | |
CN111310393A (en) | Simulation clock generation method and related product |
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 |