CN112199753B - 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 PDF

Info

Publication number
CN112199753B
CN112199753B CN202011191860.XA CN202011191860A CN112199753B CN 112199753 B CN112199753 B CN 112199753B CN 202011191860 A CN202011191860 A CN 202011191860A CN 112199753 B CN112199753 B CN 112199753B
Authority
CN
China
Prior art keywords
line
positioning
line segment
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.)
Active
Application number
CN202011191860.XA
Other languages
Chinese (zh)
Other versions
CN112199753A (en
Inventor
尤勇敏
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Original Assignee
Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiuling Jiangsu Digital Intelligent Technology Co Ltd filed Critical Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Priority to CN202011191860.XA priority Critical patent/CN112199753B/en
Publication of CN112199753A publication Critical patent/CN112199753A/en
Application granted granted Critical
Publication of CN112199753B publication Critical patent/CN112199753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design 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 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 positioning line and the second positioning 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 development time and improving development efficiency.

Description

Shear wall generation method and device, electronic equipment and storage medium
Technical Field
The disclosure 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 very important, and the shear wall (shear wall) is also called 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 processes of the prior art, the inventor of the present invention finds that, when a shear wall is generated, developers must design one by one according to the wall position, so as 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 as to increase the working time of the developers and reduce the development efficiency.
Disclosure of Invention
Embodiments of the present invention provide a shear wall generation method and apparatus, a computer device, and a storage medium, where a preset computer algorithm is used to obtain a target line segment on a first positioning line, where a portion of the two line segments that overlap is removed, so that the target line segment forms a shear wall, thereby reducing development time and improving development efficiency. .
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 positioning line and the second positioning 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 end point is located outside the first positioning line and the fourth end point is located inside the first positioning line;
determining a line segment formed by the fourth end point and the second 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 fourth endpoint as an end point as the target line segment.
Optionally, the overlapped line segment obtaining unit may be further configured to determine that the third end point and the fourth end point 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 required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained 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 simulation 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 method for shear wall generation according to an embodiment of the present 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 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 implemented in other sequences than those 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 thereto. 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.
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:
Step 201, a first positioning line of the simulation wall and a second positioning line of the simulation shear wall are obtained.
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 a seismic-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 lifting plate 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 line segment CL, line segment ID, line segment GJ and 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.
Step 202, determining a coincident line segment of the first positioning line and the second positioning line.
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 segment of the first positioning line and the second positioning line is 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, the coordinates of the two end points of the first positioning line and the second positioning line are not limited, and the two end points can be flexibly set, and the two end points of the first positioning line and the second positioning line can be arbitrarily designated as a start point or an end point, so that the 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 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 intersect, or that an extension line of the first positioning line and an 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 a coincident line segment, and define the first positioning line that does not include the coincident 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 reverse direction of the second positioning line, a first positional relationship between the first positioning line and the second positioning line is obtained, that is, the first positional relationship includes a partial relative positional relationship between the first positioning line and the second positioning line, where 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 are overlapped, or the first positioning line and the second positioning line are overlapped 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 identical in opposite directions, and meanwhile, two end coordinates of the first positioning line are respectively corresponding to the two end coordinates of the second positioning line, the electronic device may determine that the first positioning line is an overlapped line segment, and define the first positioning line as the overlapped 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, fixes the relative positions of the third end point and the fourth end point, and makes a line segment direction in which the third end point points to the fourth end point and a line segment direction in which the first end point points to the second end point to the electronic device to the second positioning line to the second end point to the positioning line to the second end point to the electronic device to the second positioning line to the second end point to the second end, 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, the electronic device determines that the line segment formed by the fourth end point and the second end point is a 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.
Step 203, a target line segment is obtained, wherein the target line segment is the first positioning line of the removed overlapped 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, whether the distance between the first end point and the third end point is greater than a preset threshold value is judged, if yes, the line segment with the first end point as a starting point and the third end point as an end point is obtained as a target line segment, if not, the target line segment is not generated, the distance between the first end point and the third end point does not meet the shortest distance standard for forming the line segment by the building design software, and whether the distance between the fourth end point and the second end point is greater than the preset threshold value is judged, if yes, the line segment with the fourth end point as the starting point and the second end point as the end point is obtained as the target line segment, and if not, the target line segment is not generated, the distance between the fourth end point and the second end point does not meet the shortest distance standard for forming the line segment by the building design software is indicated.
And step 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 alignment line CL and a second alignment line ID are provided on a first alignment line CD, a second alignment line GJ and a second alignment line KH are provided on a first alignment line GH, and after the first alignment line is cut, target line segments LI, JK, LJ, and IK are generated, thereby forming a simulated shear wall surrounded by the target line segments.
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 may 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, takes the first line segment as a target line segment, and 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, obtains the first position relation of the first positioning line and the second positioning line.
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 relation, 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 overlapped 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, the first positioning line is determined to be the overlapped 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 end point is located in the first positioning line and the fourth end point is located outside the first positioning line based on the second position relation, and obtain a line segment taking the first end point as a starting point and the third end point as an end point as a target line segment.
And the terminal can select to determine that the third end point is positioned outside the first positioning line and the fourth end point is positioned inside the first positioning line based on the second position relation, and obtain a line segment taking the first end point as a starting point and taking the fourth end point as an end point as the target line segment.
The terminal can selectively determine that the third end point and the fourth end point are located in the first positioning line based on the second position relation, obtain a line segment taking the first end point as a starting point and the third end point as an end point as a target line segment, and obtain a line segment taking the fourth end point as a starting point and the second end point as an end point 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 electronic equipment, the electronic equipment acquires the first positioning line and the second positioning line, determines the direction 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 direction and the end point coordinates, such as intersection, complete superposition, parallel superposition, partial superposition and the like, so as to acquire 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 simulation shear wall. The method provided by the embodiment of the invention is that the function of the simulation shear wall is generated by packaging in the electronic equipment in advance, the electronic equipment receives the first positioning line and the second positioning line input by the developer and then calls the function to generate the target line segment, and the simulation shear wall is formed by utilizing the target line segment, instead of generating the simulation shear wall by analyzing the position relation of the first positioning line and the second positioning line every time the simulation shear wall is generated, the development time is shortened, 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 comprises:
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 acquisition 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 coincident line segment is not included in the first positioning line to form 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 in the first positioning line.
A coincident line segment obtaining unit 602, further configured to obtain an end point coordinate of the first positioning line and an end point coordinate of the second positioning line based on the first positional relationship;
if the end point coordinates of the first positioning line and the second positioning line are correspondingly the same, determining the first positioning line as the superposed line segment to form a second line segment;
if the end point coordinates of the first positioning line are different from the end point coordinates of the second positioning line, obtaining a second position relation between 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 that the third end point and the fourth end point are located outside the first positioning line based on the second position relationship;
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 fourth 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 fourth 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 logic instructions are sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several 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 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 position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this 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 may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various 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, and 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 (9)

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; the first positioning line and the second positioning line 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;
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;
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 is determined not to include the coincident line segment, acquiring the first line segment as the target line segment;
and forming the simulated shear wall on the simulated wall according to the target line segment.
2. The method of claim 1, 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.
3. The method of claim 2, 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 the coincident line segments of the first positioning line and the second positioning line based on the second positional relationship comprises:
determining, based on the second positional relationship, that the third end point and the fourth end point are located outside 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.
4. The method of claim 3, 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 end point is located within the first location line and the fourth end point 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.
5. The method of claim 3, 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 fourth 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 fourth endpoint as an end point as the target line segment.
6. The method of claim 3, 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.
7. 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;
the first positioning line and the second positioning line 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 coincident line segment is not included in the first positioning line to form 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;
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;
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 is determined not to include the coincident line segment, acquiring the first line segment as the target line segment;
and the forming unit is used for forming the simulated shear wall on the simulated wall according to the target line segment.
8. An electronic device, 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 6.
9. 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 6.
CN202011191860.XA 2020-10-30 2020-10-30 Shear wall generation method and device, electronic equipment and storage medium Active CN112199753B (en)

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 CN112199753A (en) 2021-01-08
CN112199753B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010955B (en) * 2021-04-29 2022-06-17 久瓴(江苏)数字智能科技有限公司 Curtain wall model generation method and system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN112199753A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
JP2019501446A (en) Test method, test system, test apparatus, and readable recording medium
CN112199751B (en) Wall model generation method and device, electronic equipment and storage medium
EP2871560B1 (en) Image processing method and apparatus
CN103176684B (en) A kind of method and device of multizone interface switching
CN112348954A (en) Building model processing method and device, computer equipment and storage medium
CN103559055A (en) Activity starting method and device applied to Android platform
CN114253557B (en) Cloud platform application deployment method and device, electronic equipment and storage medium
CN112287430B (en) Building wall generation method and device, computer equipment and storage medium
CN112199753B (en) Shear wall generation method and device, electronic equipment and storage medium
CN114117274A (en) Data rendering method and device, computer equipment and storage medium
CN111130834B (en) Method and device for processing network elasticity strategy
CN111111179A (en) Unity-based graphics resource loading method and device
CN116847365B (en) Deployment method, device, equipment and storage medium
CN112966256A (en) Equipment management method based on building information model and related device
CN110209462B (en) Window arrangement method, device and equipment
CN112287427A (en) Building wall position determining method and device, computer equipment and storage medium
CN106548501B (en) Image drawing method and device
CN112287443B (en) Method and device for generating structural floor slab, electronic equipment and storage medium
CN112015401A (en) Information acquisition method and device, electronic equipment and readable storage medium
CN111310393A (en) Simulation clock generation method and related product
CN111858987A (en) Problem checking method of CAD (computer-aided design) image, electronic equipment and related product
EP3018569A1 (en) Information processing device, information processing method and computer program
CN112860419A (en) Multi-instance task execution method and device, terminal equipment and computer storage medium
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
CN115562661A (en) Train operation display interaction generation method and device 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