CN112199751A - Wall model generation method and device, electronic equipment and storage medium - Google Patents

Wall model generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112199751A
CN112199751A CN202011191735.9A CN202011191735A CN112199751A CN 112199751 A CN112199751 A CN 112199751A CN 202011191735 A CN202011191735 A CN 202011191735A CN 112199751 A CN112199751 A CN 112199751A
Authority
CN
China
Prior art keywords
line segment
end point
wall model
original
segmentation
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
Application number
CN202011191735.9A
Other languages
Chinese (zh)
Other versions
CN112199751B (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 CN202011191735.9A priority Critical patent/CN112199751B/en
Publication of CN112199751A publication Critical patent/CN112199751A/en
Application granted granted Critical
Publication of CN112199751B publication Critical patent/CN112199751B/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 application discloses a wall model generation method and device, electronic equipment and a storage medium. The method for generating the wall model comprises the following steps: the method comprises the steps of displaying a specified simulation wall model in an editing area of a drawing interface, receiving drawing operation aiming at the simulation wall model, obtaining segmentation line segments corresponding to the drawing operation, obtaining a first line segment set, obtaining original line segments of the simulation wall model, obtaining a second line segment set, conducting exclusive OR processing on the second line segment set and the first line segment set, determining a target line segment, and generating the target wall model based on the target line segment. According to the embodiment of the application, the original line segments and the segmentation line segments of the simulation wall are obtained, the XOR processing is carried out on the original line segments and the segmentation line segments, the shear wall models are automatically generated on the simulation wall according to the processing results, designers are not required to manually design each shear wall model, the workload of the designers can be reduced, and therefore the design efficiency is improved.

Description

Wall model generation method and device, electronic equipment and storage medium
Technical Field
The application relates to the field of computer aided design, in particular to a wall model generation method and device, electronic equipment and a storage medium.
Background
At present, when a wall body is designed in a building, a shear wall model needs to be generated. The shear wall model is also called as a wind-resistant wall or a seismic wall, and a structural wall. The wall body of the house or the structure mainly bears horizontal load and vertical load (gravity) caused by wind load or earthquake action.
The existing mode for generating the shear wall model is as follows: the designer designs the position of the shear wall model one by one according to the position of the curtain wall, but the mode can consume a large amount of time of the designer, the efficiency is reduced, and errors possibly exist in the position of manually designing the shear wall model by the designer, so that the design accuracy is poor.
Disclosure of Invention
The embodiment of the application provides a wall model generation method and device, electronic equipment and a storage medium, and design efficiency can be improved.
The embodiment of the application provides a method for generating a wall model, which comprises the following steps:
displaying a specified simulation wall model in an editing area of the drawing making interface;
receiving a drawing operation for the simulated wall model;
obtaining a segmentation line segment corresponding to the drawing operation to obtain a first line segment set;
acquiring an original line segment of the simulation wall model to obtain a second line segment set;
performing XOR processing on the second line segment set and the first line segment set to determine a target line segment;
and generating a target wall model based on the target line segment.
The target wall model is the shear wall model.
Correspondingly, the embodiment of the present application further provides a device for generating a wall model, including:
the display unit is used for displaying the specified simulation wall model in the editing area of the drawing making interface;
a receiving unit, configured to receive a drawing operation for the simulated wall model;
a first obtaining unit, configured to obtain a segment corresponding to the drawing operation, and obtain a first segment set;
the second acquisition unit is used for acquiring the original line segment of the simulation wall model to obtain a second line segment set;
the processing unit is used for carrying out XOR processing on the second line segment set and the first line segment set to determine a target line segment;
and the generating unit is used for generating a target wall model based on the target line segment.
Correspondingly, the embodiment of the present application 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 perform the steps of the method for generating a wall model as described above.
Correspondingly, the embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps of the method for generating a wall model as described above.
According to the embodiment of the application, the original line segments and the segmentation line segments of the simulation wall are obtained, the XOR processing is carried out on the original line segments and the segmentation line segments, the shear wall models are automatically generated on the simulation wall according to the processing results, designers are not required to manually design each shear wall model, the workload of the designers can be reduced, and therefore the design efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, 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 method for generating a wall model according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a method for generating a wall model according to an embodiment of the present disclosure.
Fig. 3 is a drawing interface schematic diagram of a method for generating a wall model according to an embodiment of the present application.
Fig. 4 is a schematic view of a simulation wall model according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a segmentation line segment generated on a simulation wall model according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a line segment xor processing according to an embodiment of the present application.
Fig. 7 is a schematic flow chart of another wall model generation method according to an embodiment of the present disclosure.
Fig. 8 is a block diagram of a wall model generation apparatus according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Based on the above problems, embodiments of the present application provide a method and an apparatus for generating a wall model, an electronic device, and a storage medium, which can improve design efficiency. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment of the application provides a method for generating a wall model, which is mainly applied to simulating a wall model design scene, and the wall model is designed by adopting building design software. The embodiment of the application executes the method for generating the wall model through the terminal. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like.
Referring to fig. 1, an application environment diagram of a method for generating a wall model provided by the present application may be shown, where fig. 1 is an application environment diagram of a method for generating a wall model provided by the present application. The terminal 100 in the figure includes a memory, a processor and a display screen, the processor can run architectural design software, the architectural design software can be stored in the memory in the form of a computer program, the memory also provides an operating environment for the architectural design software, and the memory can store the operating information of the architectural design software. Specifically, the display screen can display a design interface of the building design software, and a user can input information through the design interface to design a building.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for generating a wall model according to an embodiment of the present application, and the method is described with reference to fig. 1. The specific process of the wall model generation method can be as follows:
101. and displaying the specified simulation wall model in an editing area of the drawing making interface.
In the embodiment of the application, the drawing interface can be a graphical drawing interface of the used architectural design software. In practical application, the adopted Building design software can be Revit software, the Revit software is constructed for a Building Information Modeling (BIM), and the Revit software can help architects to design, build and maintain buildings with better quality and higher energy efficiency.
Referring to fig. 3, fig. 3 is a drawing interface schematic diagram of a method for generating a wall model according to an embodiment of the present disclosure. In the charting interface shown in fig. 3, a function area, a tool area, a view property area, and an editing area may be included. Wherein the functional area can be used for designing different building models; the tool area may provide different building structures; the view property area may set a display mode, such as a display size, of a currently drawn graphic, and the editing area may be used to draw the building model.
In addition, the simulated wall model refers to a wall structure model drawn by the architectural design software. The user may draw the wall model in the editing area of the mapping interface shown in fig. 3. For example, a user may open building design software, create a drawing file, select a building model to be drawn in a functional area, select a building structure in a tool area, and add the selected building structure to an editing area, so as to obtain a drawn simulated wall model.
Referring to fig. 4, fig. 4 is a schematic view of a simulated wall model according to an embodiment of the present application. The simulated wall model shown in fig. 4 may be a complete simulated wall model system, including four wall models, where the four wall models are composed of 12 line segments, each wall model is composed of 4 line segments, and each two wall models may share one line segment.
Wherein, the original line segments refer to all the line segments constituting the simulation wall, that is, 12 line segments in fig. 3 are the original line segments of the simulation wall, and then the second line segment set can be obtained to include 12 line segments.
102. A drawing operation for a wall model is received.
The drawing operation refers to an operation performed by a user on a drawing interface showing the simulated wall model, for example, the user may select a drawing tool on the drawing interface, and draw a line segment on the simulated wall model in the editing area through the drawing tool.
In some embodiments, in order to facilitate the user to view the drawn segmentation line segments, after receiving the drawing operation for the simulated wall model, the method may further include:
obtaining drawing parameters corresponding to the drawing operation;
and generating a line segment mark on the simulation wall model according to the drawing parameters.
The drawing parameter refers to information corresponding to a drawing operation of a user, for example, the drawing operation of the user may be a sliding track, the sliding track may be a line segment, and the information of the drawing operation may be a line segment and a position of the line segment in the editing area.
After determining the drawing parameters corresponding to the drawing operation of the user, marking the simulated wall model in the editing area according to the drawing parameters, for example, the drawing parameters include a line segment and the position of the line segment in the editing area, and then marking the position where the simulated wall model and the line segment overlap in the editing area according to the position of the line segment, that is, the marked line segment can be obtained.
103. And obtaining a segmentation line segment corresponding to the drawing operation to obtain a first line segment set.
The segmentation line segment refers to a line segment which is generated in each simulated wall model and divides the simulated wall model. Referring to fig. 5, fig. 5 is a schematic diagram of a segmentation line segment generated on a simulated wall model according to an embodiment of the present application. The simulated wall model may be formed from: the end point A, the end point B, the end point C, the end point D, the end point E, the end point F, the end point G and the end point H. For example, the line segment formed by the end point a and the end point B may be the line segment AB or the line segment BA.
The designer can design an end point on any original line segment of the simulated wall model according to actual requirements, and generate a segmentation line segment through the designed end point, for example, in fig. 5, an end point H and an end point I are designed on a line segment CD, and an end point J and an end point K are designed on a line segment GH, so that the segmentation line segment can be determined as follows: and obtaining a first line segment set by the line segment HI, the line segment JK, the line segment HJ and the line segment IK.
104. And acquiring an original line segment of the simulation wall model to obtain a second line segment set.
In fig. 5, the simulated wall model may be represented by: the simulation wall model comprises a line segment AB, a line segment EF, a line segment AE, a line segment BF, a line segment AC, a line segment EG, a line segment CG, a line segment CD, a line segment GH, a line segment DH, a line segment BD and a line segment FH, wherein each line segment is also an original line segment of the simulation wall model, and a second line segment set can be obtained.
105. And performing exclusive-OR processing on the second line segment set and the first line segment set to determine a target line segment.
Where xor processing refers to taking disjoint parts of line segments for two line segments. For example, there are two line segments: and the line segment 1 and the line segment 2 are subjected to exclusive-or processing, namely, a line segment of a part where the line segment 1 and the line segment 2 do not intersect is taken from the line segment 1.
When different line segments are subjected to exclusive-or processing, different processing results can be obtained according to different positions of the different line segments. Referring to fig. 6, fig. 6 is a schematic diagram illustrating a segment xor processing according to an embodiment of the present disclosure. Fig. 6 shows the processing results for three different cases of xoring different line segments. The method comprises the following steps: in case 1, the position relationship between the line segment 1 and the line segment 2 may be a parallel relationship, and at this time, the line segment 1 and the line segment 2 do not intersect, so that the line segment 1 and the line segment 2 are subjected to xor processing, and an obtained result may be the line segment 1; 2, the line segment 1 and the line segment 2 are collinear, and one end point of the line segment 1 is superposed with one end point of the line segment 2, at this time, the line segment 1 and the line segment 2 have an overlapped part which is a line segment XY, and then the line segment 1 and the line segment 2 are subjected to exclusive or processing to obtain a processing result which is a line segment YZ; in case 3, the line segment 1 is collinear with the line segment 2, the line segment 1 includes the line segment 2, and the end points of the line segment 1 and the line segment 2 are not overlapped, then the line segment 1 and the line segment 2 are subjected to xor processing, and the obtained processing results are the line segment XY and the line segment WZ.
In the current development and design, when a simulation wall model is designed through design software and a shear wall model is generated on the simulation wall model, a designer needs to manually cut an initial line segment of the simulation wall model according to a dividing line on the simulation wall model, and the shear wall model is obtained based on the cut line segment. Since the design is performed manually by the designer, the designer needs to spend more time in the design process, and the manual design may have errors, thereby causing an increase in the workload of the designer. Therefore, the application provides a technique for completing calculation of the exclusive or of two line segments based on a computer language, when a designer designs a simulation wall model to generate a shear wall model, the technique can be used for automatically generating the shear wall model on the simulation wall model, so that a large amount of time is saved, and the working efficiency is improved.
The wall can be divided into a bearing wall and a shear wall according to the stress characteristics, wherein the bearing wall mainly bears vertical load, such as a masonry wall; the latter is mainly to bear horizontal loads. In earthquake-proof shelters, horizontal loads are primarily generated by horizontal seismic action, and shear walls are sometimes referred to as earthquake-proof walls. The shear wall can be divided into a steel plate shear wall, a reinforced concrete shear wall and a reinforced block shear wall according to structural materials. Among them, the reinforced concrete shear wall is most commonly used.
In an embodiment, in order to improve the efficiency of wall design, the step of xoring the second segment set and the first segment set to determine a target segment may include:
performing exclusive-or processing on each original line segment in the second line segment set and the segmentation line segments in the first line segment set to obtain a third line segment set;
and cutting the simulation wall model based on the line segments in the third line segment set to obtain the target line segment.
The third line segment set is a set of the original line segments and the segment line segments in the simulated wall model, which are not overlapped, for example, the line segments in the second line segment set and the line segments in the first set are subjected to pairwise line segment exclusive or processing to obtain the line segments in the first set which are not overlapped with the line segments in the second set, and the third line segment set is further obtained.
Specifically, the step of performing xor processing on each original line segment in the second line segment set and the segmentation line segment in the first line segment set to obtain a third line segment set may include:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
and intercepting line segments which are not overlapped with the segmentation line segments from the original line segments according to the first position information and the second position information to obtain the third line segment set.
The first position information comprises a first endpoint and a second endpoint of the original line segment, and the second position information comprises a third endpoint and a fourth endpoint of the segmentation line segment; each original line segment may include two endpoints, i.e., a first endpoint and a second endpoint, and each segmentation line segment may include two endpoints, i.e., a third endpoint and a fourth endpoint.
After determining the positions of the two end points of the original line segment and the positions of the two end points of the segment, it can be determined whether there is an overlapping line segment between each original line segment and each segment according to the positions of the end points of the original line segment and the end points of the segment. If there is an overlapping segment between the original segment and the segmentation segment, a third set of segments may be determined based on the overlapping segment.
In an embodiment, the step of intercepting a segment that is not overlapped with the segmentation segment from the original segment according to the first position information and the second position information may include:
if the third end point and the fourth end point are located on the original line segment, judging whether the first end point is coincided with the third end point or the fourth end point, and whether the second end point is coincided with the third end point or the fourth end point;
if the first end point is not overlapped with the third end point and the second end point is overlapped with the fourth end point, generating an overlapped line segment based on the second end point and the third end point;
and cutting off the overlapped line segment from the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
After determining the positions of the two end points of the original line segment, namely the positions of the first end point and the second end point, and the positions of the two end points of the segmentation line segment, namely the positions of the third end point and the fourth end point, whether the third end point is in the original line segment can be judged, and a first judgment result is obtained; judging whether the fourth end point is in the original line segment or not to obtain a second judgment result; judging whether the first end point is in the segmentation line segment or not to obtain a third judgment result; and judging whether the second endpoint is in the segmentation line segment or not to obtain a fourth judgment result.
In some embodiments, if the first endpoint and the second endpoint are not located on the segmentation line segment, and the third endpoint and the fourth endpoint are not located on the original line segment, intercepting the original line segment to obtain a line segment that does not overlap with the segmentation line segment in the original line segment may include:
according to the above steps, if the first judgment result is: the third endpoint is not in the original line segment, and the second judgment result is as follows: the fourth endpoint is not in the original line segment, and the third judgment result is as follows: the first endpoint is not in the segmentation line segment, and the fourth judgment result is as follows: the second endpoint is not within the segment. It can be determined that there is no overlapped segment between the original segment and the segment, and the result of the exclusive or processing of the original segment and the segment is the original segment.
For example, referring to fig. 5, in fig. 5, if the original line segment is the line segment AB and the divided line segment is the line segment HI, the line segment AB and the line segment HI are subjected to xor processing, and the judgment is performed according to the above steps, so that the line segment AB and the line segment HI are determined not to intersect, and the xor processing result of the line segment AB and the line segment HI is the line segment AB.
In some embodiments, if the first determination result is: the third endpoint is in the original line segment, and the second judgment result is as follows: if the fourth endpoint is in the original line segment, whether the first endpoint is coincident with the third endpoint or not can be judged, and a fifth judgment result is obtained; judging whether the first end point is superposed with the fourth end point or not to obtain a sixth judgment result; judging whether the second end point is coincided with the third end point or not to obtain a seventh judgment result; and judging whether the second end point is coincided with the fourth end point or not to obtain an eighth judgment result.
Further, if the fifth determination result is: the first end point is not overlapped with the third end point, and the sixth judgment result is that: the first end point is not superposed with the fourth end point, and the seventh judgment result is that: the second endpoint is not overlapped with the third endpoint, and the eighth judgment result is that: and the second endpoint is overlapped with the fourth endpoint, and the overlapped line segment can be determined according to the second endpoint of the original line segment and the third endpoint of the segmentation line segment. This situation may correspond to situation 2 in fig. 6, please refer to the description in the above embodiments, which is not described herein.
In some embodiments, if the first determination result is: the third endpoint is in the original line segment, and the second judgment result is as follows: the fourth endpoint is in the original line segment, and the fifth judgment result is: the first end point is not overlapped with the third end point, and the sixth judgment result is that: the first end point is not superposed with the fourth end point, and the seventh judgment result is that: the second end point is not coincident with the third end point, and the eighth judgment result is that: if the second end point does not coincide with the fourth end point, a first overlapped line segment may be determined according to the first end point of the original line segment and the third end point of the segment, and a second overlapped line segment may be determined according to the second end point of the original line segment and the fourth end point of the segment.
For example, in fig. 5, if the original line segment is a line segment CD and the segmentation line segment is a line segment HI, then the line segment CD and the line segment HI are subjected to xor processing, and according to the above steps, it can be determined that the end point H and the end point I of the segmentation line segment are on the original line segment CD, and the end point of the original line segment is not overlapped with the end point of the segmentation line segment, and then it can be determined that the overlapped line segment is a line segment CH and a line segment ID, so as to obtain a third line segment set.
After the third line segment set is obtained, the cutting process can be performed in the simulation wall model according to the line segments in the third line segment set, and the remaining line segments after the cutting process, that is, the target line segments, are obtained.
For example, in fig. 5, the second set of segments may include: segment AB, segment EF, segment AE, segment BF, segment AC, segment EG, segment CG, segment CD, segment GH, segment DH, segment BD, segment FH, the first set of segments may include: the line segment HI, the line segment JK, the line segment HJ and the line segment IK carry out XOR processing on the second line segment set and the first line segment set to obtain a third line segment set as follows: line segment AB, line segment AE, line segment BF, line segment EF, line segment AC, line segment EG, line segment CG, line segment CH, line segment GJ, line segment ID, line segment KH, line segment DH, line segment BD, line segment FH, then cut out the line segment in the third set from the line segment in the second line segment set, obtain the remaining line segment, also the target line segment: line segment HI, line segment JK, line segment HJ, and line segment IK.
In some embodiments, in order to avoid an abnormality of the design software when creating the segment from the original segment and the segment, the length of the shortest segment may be preset. Then, before generating the overlapped line segment based on the second endpoint and the third endpoint, the method may further include:
judging whether the distance between the second end point and the third end point is greater than or equal to a preset distance or not;
if the distance between the second end point and the third end point is greater than or equal to a preset distance, executing a step of generating an overlapped line segment based on the second end point and the third end point.
And if the distance between the second end point and the third end point is smaller than a preset distance, determining a line segment which is not overlapped with the segmentation line segment in the original line segment based on the original line segment.
The preset distance is also the shortest line length of the design software when creating the line segment, and when the length of the created line segment is greater than the length of the shortest line segment, the corresponding line segment can be created.
For example, the first endpoint and the second endpoint of the original line segment and the third endpoint of the segmentation line segment are judged according to the position of the fourth endpoint, when the second endpoint of the original line segment and the third endpoint of the segmentation line segment can be established, whether the length value between the second endpoint and the third endpoint is greater than or equal to a preset distance is judged, and if the length value between the second endpoint and the third endpoint is greater than or equal to the preset distance, the line segment can be established according to the second endpoint of the original line segment and the third endpoint of the segmentation line segment; if the length value between the second end point and the third end point is smaller than the preset distance, the original line segment and the segmentation line segment can be judged to be intersected but not overlapped, so that no overlapped line segment exists, the original line segment and the segmentation line segment are subjected to XOR processing, and the obtained result is the original line segment.
106. And generating a target wall model based on the target line segment.
The target wall model may be a plurality of wall models, for example, the target wall model may be a shear wall model.
And after the original line segment of the simulation wall model is cut through the third line segment set, obtaining the residual line segment after cutting, namely the target line segment.
For example, in fig. 5, through the above steps, the target line segment is obtained as: and then generating a rectangle according to the line segment HI, the line segment JK, the line segment HJ and the line segment IK to obtain a rectangle HIKJ, wherein the rectangle HIKJ is also a target wall model generated on the current simulation wall model.
The embodiment of the application discloses a method for generating a wall model, which comprises the following steps: the method comprises the steps of displaying a specified simulation wall model in an editing area of a drawing interface, receiving drawing operation aiming at the simulation wall model, obtaining segmentation line segments corresponding to the drawing operation, obtaining a first line segment set, obtaining original line segments of the simulation wall model, obtaining a second line segment set, conducting exclusive OR processing on the second line segment set and the first line segment set, determining a target line segment, and generating the target wall model based on the target line segment. According to the embodiment of the application, the original line segments and the segmentation line segments of the simulation wall are obtained, the XOR processing is carried out on the original line segments and the segmentation line segments, the shear wall models are automatically generated on the simulation wall according to the processing results, designers are not required to manually design each shear wall model, the workload of the designers can be reduced, and therefore the design efficiency is improved.
Referring to fig. 7, fig. 7 is a schematic flowchart of another wall model generation method according to an embodiment of the present disclosure. Taking the application of the method for generating the wall model to the terminal as an example, the specific scene application of the method for generating the wall model can be as follows:
201. and the terminal draws a simulation wall model according to the graphic information input by the user.
In the embodiment of the application, a user can install the building design software through a terminal, and the building design software can be used for drawing various graphs or building models and the like.
The graphic information refers to patterns formed by various geometric figures, and when a user starts the building design software, the graphic information can be input on a drawing interface of the building design software. For example, the user may draw the pattern directly on the drawing interface, or draw the pattern through a drawing tool of the architectural design software, or other ways.
The simulation wall model is a plurality of wall models formed by a plurality of rectangles, so that a group of wall models, namely the simulation wall model, is formed.
202. The terminal obtains all line segments of the simulation wall model to obtain a first line segment set.
After the user draws the simulation wall model on the drawing interface, the terminal can obtain the line segments of the simulation wall model, namely the edges of each rectangular wall model forming the simulation wall model.
For example, if the simulated wall model drawn by the user includes a wall, all the line segments of the simulated wall model are four edges of the wall model, and four line segments are obtained, so that the first line segment set is obtained.
203. And the terminal generates a segmentation line segment on the simulation wall model according to the user operation to obtain a second line segment set.
The segmentation line segment refers to a line segment which divides a rectangular wall model in the simulation wall model into a plurality of polygons, and two end points of the segmentation line segment can be on any side of the rectangular wall model.
Specifically, the user can design the segmentation line segment on the drawn simulation wall model according to the actual situation, and then the terminal can acquire the segmentation line segment drawn on the simulation wall model by the user, so as to obtain the second line segment set.
204. And the terminal carries out XOR processing according to the first line segment set and the second line segment set to obtain a processed line segment.
In the embodiment of the present application, the exclusive-or processing may refer to taking a non-overlapping portion of two line segments. Then, performing xor processing on the first line segment set and the second line segment set is to take the non-overlapping portions of the line segments in the first line segment set and the line segments in the second set, that is, to cut out the overlapping line segments of the first line segment set and the second line segment set from the line segments in the first line segment set, so as to obtain the remaining line segments, thereby obtaining the third line segment set.
For example, the first set of segments may include: segment a, segment b, segment c, and segment d, and the second set of segments may include: the line segment a, the line segment e, the line segment f and the line segment g perform exclusive or processing on the first line segment set and the second line segment set, and the processing result can be obtained as follows: the line segment b, the line segment c and the line segment d are also included after processing. For a specific xor processing manner, reference may be made to the above embodiments, which are not described herein in detail.
205. And the terminal cuts off the processed line segment from the first line segment set of the simulation wall to obtain the target line segment.
The line segments in the simulation wall comprise four line segments of each rectangular wall surface and a segmentation line segment generated on each rectangular wall surface, and after the processed line segment is determined, the processed line segment can be cut from the line segment in the simulation wall, so that a target lower line segment can be obtained.
For example, the line segments of the simulated wall may include rectangular wall segments: line segment a, line segment b, line segment c and line segment d; line segment segmentation: segment a, segment e, segment f, segment g, the processed segments may include: line segment b, line segment c, line segment d, then cut off the line segment after handling from the line segment of simulation wall, can obtain the target line segment and include: line a, line e, line f, line g.
206. And the terminal constructs a rectangle according to the target line segment to generate a shear wall model.
After the processed line segments are cut from the simulated wall, the remaining line segments may be segmentation line segments, and since the finally generated shear wall model may be a rectangle, at least 4 segmentation line segments may be designed on the rectangular wall surface of each simulated wall, for example, the target line segment obtained by the processing of the previous step is: the shear wall model is displayed on a drawing interface of building design software, a user can quickly obtain the shear wall model of the simulation wall, and the design accuracy is improved in a mode that the shear wall model is automatically generated through the software.
The embodiment of the application discloses a method for generating a wall model, which comprises the following steps: the method comprises the steps that a terminal draws a simulation wall according to graphic information input by a user, acquires all line segments of the simulation wall to obtain a first line segment set, then generates segmentation line segments on the simulation wall according to user operation to obtain a second line segment set, carries out XOR processing according to the first line segment set and the second line segment set to obtain processed line segments, cuts off the processed line segments from the first line segment set of the simulation wall to obtain target line segments, constructs a rectangle according to the target line segments, and generates a shear wall model of the simulation wall. The terminal design efficiency can be improved.
In order to better implement the method for generating the wall model provided by the embodiment of the present application, the embodiment of the present application further provides a device for generating the wall model based on the above. The meaning of the noun is the same as that in the above-mentioned method for generating the wall model, and the details of the implementation can refer to the description in the method embodiment.
Referring to fig. 8, fig. 8 is a block diagram of a device for generating a wall model according to an embodiment of the present disclosure, where the device includes:
the display unit 301 is configured to display the specified simulation wall model in the editing area of the drawing making interface;
a receiving unit 302, configured to receive a drawing operation for the simulated wall model;
a first obtaining unit 303, configured to obtain a segment corresponding to the drawing operation, so as to obtain a first segment set;
a second obtaining unit 304, configured to obtain an original line segment of the simulated wall model, to obtain a second line segment set;
a processing unit 305, configured to perform xor processing on the second line segment set and the first line segment set, and determine a target line segment;
a generating unit 306, configured to generate a target wall model based on the target line segment.
In an embodiment, the processing unit 305 may include:
the first processing subunit is configured to perform xor processing on each original line segment in the second line segment set and the segmentation line segments in the first line segment set, so as to obtain a third line segment set;
and the second processing subunit is used for cutting the simulation wall model based on the line segments in the third line segment set to obtain the target line segment.
In an embodiment, the first processing subunit may be specifically configured to:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
and intercepting line segments which are not overlapped with the segmentation line segments from the original line segments according to the first position information and the second position information to obtain the third line segment set.
In an embodiment, the first processing subunit may further be specifically configured to:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
if the third end point and the fourth end point are located on the original line segment, judging whether the first end point is coincided with the third end point or the fourth end point, and whether the second end point is coincided with the third end point or the fourth end point; if the first end point is not overlapped with the third end point and the second end point is overlapped with the fourth end point, generating an overlapped line segment based on the second end point and the third end point; and cutting off the overlapped line segment from the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
In an embodiment, the first processing subunit may further be specifically configured to:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
if the third end point and the fourth end point are located on the original line segment, judging whether the first end point is coincided with the third end point or the fourth end point, and whether the second end point is coincided with the third end point or the fourth end point; if the first end point is not overlapped with the third end point and the second end point is overlapped with the fourth end point, judging whether the distance between the second end point and the third end point is larger than or equal to a preset distance or not; if the distance between the second end point and the third end point is greater than or equal to a preset distance, executing the step if the distance between the second end point and the third end point is less than the preset distance. And if the distance between the second end point and the third end point is smaller than a preset distance, determining a line segment which is not overlapped with the segmentation line segment in the original line segment based on the original line segment. Generating an overlapping line segment based on the second endpoint and the third endpoint; and cutting off the overlapped line segment from the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
In an embodiment, the first processing subunit may further be specifically configured to:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
if the first endpoint and the second endpoint are not located on the segmentation line segment, and the third endpoint and the fourth endpoint are not located on the original line segment, intercepting the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
In an embodiment, the apparatus for generating a wall model may further include:
a third obtaining unit, configured to obtain a drawing parameter corresponding to the drawing operation;
and the operation unit is used for generating a line segment mark on the simulation wall model according to the drawing parameters.
In an embodiment, the first obtaining unit 303 may include:
and the first obtaining subunit is configured to determine, according to the line segment mark generated on the simulated wall model, a segment corresponding to the drawing operation.
The embodiment of the application discloses a generation device of a wall model, which comprises: the display unit 301 displays a specified simulation wall model in an editing area of a drawing interface, the receiving unit 302 receives a drawing operation for the simulation wall model, the first obtaining unit 303 obtains a segmentation line segment corresponding to the drawing operation to obtain a first line segment set, the second obtaining unit 304 obtains an original line segment of the simulation wall model to obtain a second line segment set, the processing unit 305 performs exclusive or processing on the second line segment set and the first line segment set to determine a target line segment, and the generating unit 306 generates a target wall model based on the target line segment. According to the embodiment of the application, the original line segments and the segmentation line segments of the simulation wall are obtained, the XOR processing is carried out on the original line segments and the segmentation line segments, the shear wall models are automatically generated on the simulation wall according to the processing results, designers are not required to manually design each shear wall model, the workload of the designers can be reduced, and therefore the design efficiency is improved.
An electronic device according to an embodiment of the present application is further provided, as shown in fig. 9, which shows a schematic structural diagram of the electronic device according to an embodiment of the present application, specifically: the electronic device may include: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform the following method: the method comprises the steps of displaying a specified simulation wall model in an editing area of a drawing interface, receiving drawing operation aiming at the simulation wall model, obtaining segmentation line segments corresponding to the drawing operation, obtaining a first line segment set, obtaining original line segments of the simulation wall model, obtaining a second line segment set, conducting exclusive OR processing on the second line segment set and the first line segment set, determining a target line segment, and generating the target wall model based on the target line segment.
In addition, the logic instructions in the memory 503 may 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 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.
On the other hand, the embodiments of the present application also provide a storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided by the foregoing embodiments when executed by a processor, for example, the method includes: the method comprises the steps of displaying a specified simulation wall model in an editing area of a drawing interface, receiving drawing operation aiming at the simulation wall model, obtaining segmentation line segments corresponding to the drawing operation, obtaining a first line segment set, obtaining original line segments of the simulation wall model, obtaining a second line segment set, conducting exclusive OR processing on the second line segment set and the first line segment set, determining a target line segment, and generating the target wall model based on 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.
The wall model generation method, the wall model generation device, the electronic device and the storage medium provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for generating a wall model, comprising:
displaying a specified simulation wall model in an editing area of the drawing making interface;
receiving a drawing operation for the simulated wall model;
obtaining a segmentation line segment corresponding to the drawing operation to obtain a first line segment set;
acquiring an original line segment of the simulation wall model to obtain a second line segment set;
performing XOR processing on the second line segment set and the first line segment set to determine a target line segment;
and generating a target wall model based on the target line segment.
2. The method of claim 1, wherein the xoring the second set of line segments and the first set of line segments to determine a target line segment comprises:
performing exclusive-or processing on each original line segment in the second line segment set and the segmentation line segments in the first line segment set to obtain a third line segment set;
and cutting the simulation wall model based on the line segments in the third line segment set to obtain the target line segment.
3. The method of claim 2, wherein said xoring each original line segment in the second set of line segments with the segmented line segments in the first set of line segments to obtain a third set of line segments comprises:
acquiring first position information of an original line segment and second position information of a segmentation line segment;
and intercepting line segments which are not overlapped with the segmentation line segments from the original line segments according to the first position information and the second position information to obtain the third line segment set.
4. The method of claim 3, wherein the first location information comprises a first endpoint and a second endpoint of an original line segment, and the second location information comprises a third endpoint and a fourth endpoint of a segmentation line segment;
the intercepting, from the original line segment, a line segment that is not overlapped with the segmentation line segment according to the first position information and the second position information includes:
if the third end point and the fourth end point are located on the original line segment, judging whether the first end point is coincided with the third end point or the fourth end point, and whether the second end point is coincided with the third end point or the fourth end point;
if the first end point is not overlapped with the third end point and the second end point is overlapped with the fourth end point, generating an overlapped line segment based on the second end point and the third end point;
and cutting off the overlapped line segment from the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
5. The method of claim 4, further comprising, prior to generating an overlapping line segment based on the second endpoint and the third endpoint:
judging whether the distance between the second end point and the third end point is greater than or equal to a preset distance or not;
if the distance between the second end point and the third end point is greater than or equal to a preset distance, executing the step if the distance between the second end point and the third end point is less than the preset distance;
and if the distance between the second end point and the third end point is smaller than a preset distance, determining a line segment which is not overlapped with the segmentation line segment in the original line segment based on the original line segment.
6. The method of claim 4, further comprising:
if the first endpoint and the second endpoint are not located on the segmentation line segment, and the third endpoint and the fourth endpoint are not located on the original line segment, intercepting the original line segment to obtain a line segment which is not overlapped with the segmentation line segment in the original line segment.
7. The method of any of claims 1 to 6, further comprising, after receiving the drawing operation for the simulated wall model:
obtaining drawing parameters corresponding to the drawing operation;
generating a line segment mark on the simulation wall model according to the drawing parameters;
the obtaining of the segmentation line segment corresponding to the drawing operation includes:
and determining the segmentation line segment corresponding to the drawing operation according to the line segment mark generated on the simulation wall model.
8. An apparatus for generating a wall model, comprising:
the display unit is used for displaying the specified simulation wall model in the editing area of the drawing making interface;
a receiving unit, configured to receive a drawing operation for the simulated wall model;
a first obtaining unit, configured to obtain a segment corresponding to the drawing operation, and obtain a first segment set;
the second acquisition unit is used for acquiring the original line segment of the simulation wall model to obtain a second line segment set;
the processing unit is used for carrying out XOR processing on the second line segment set and the first line segment set to determine a target line segment;
and the generating unit is used for generating a target wall model based on the target line segment.
9. An electronic device comprising a processor and a memory, said memory storing a plurality of instructions, said processor loading said instructions to perform the steps of the method of generating a wall model according to any of claims 1 to 7.
10. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method of generating a wall model according to any one of claims 1 to 7.
CN202011191735.9A 2020-10-30 2020-10-30 Wall model generation method and device, electronic equipment and storage medium Active CN112199751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191735.9A CN112199751B (en) 2020-10-30 2020-10-30 Wall model generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191735.9A CN112199751B (en) 2020-10-30 2020-10-30 Wall model generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112199751A true CN112199751A (en) 2021-01-08
CN112199751B CN112199751B (en) 2022-06-17

Family

ID=74012201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191735.9A Active CN112199751B (en) 2020-10-30 2020-10-30 Wall model generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112199751B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN115098957A (en) * 2022-08-25 2022-09-23 玛斯特轻量化科技(天津)有限公司 Method and device for generating connection point of vehicle body part and electronic equipment
CN117252869A (en) * 2023-11-15 2023-12-19 江西少科智能建造科技有限公司 CAD drawing wall path information extraction method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190251209A1 (en) * 2018-02-09 2019-08-15 Guangzhou University Method for Automatic Modeling of an Architecture Based on an Architectural Drawing
CN110334390A (en) * 2019-05-22 2019-10-15 郑州轻工业学院 Exterior wall recognition methods, device, storage medium and processor in CAD
CN111474946A (en) * 2020-05-27 2020-07-31 苏州高之仙自动化科技有限公司 Edge detection method and device and control method and device for robot edge cleaning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190251209A1 (en) * 2018-02-09 2019-08-15 Guangzhou University Method for Automatic Modeling of an Architecture Based on an Architectural Drawing
CN110334390A (en) * 2019-05-22 2019-10-15 郑州轻工业学院 Exterior wall recognition methods, device, storage medium and processor in CAD
CN111474946A (en) * 2020-05-27 2020-07-31 苏州高之仙自动化科技有限公司 Edge detection method and device and control method and device for robot edge cleaning

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN115098957A (en) * 2022-08-25 2022-09-23 玛斯特轻量化科技(天津)有限公司 Method and device for generating connection point of vehicle body part and electronic equipment
CN117252869A (en) * 2023-11-15 2023-12-19 江西少科智能建造科技有限公司 CAD drawing wall path information extraction method and system
CN117252869B (en) * 2023-11-15 2024-03-12 江西少科智能建造科技有限公司 CAD drawing wall path information extraction method and system

Also Published As

Publication number Publication date
CN112199751B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN112199751B (en) Wall model generation method and device, electronic equipment and storage medium
US10095817B2 (en) Determining wind loading of structures through wind flow simulation
CN106296779A (en) A kind of threedimensional model rendering indication method and system
US9817639B2 (en) Computational design method and interface
CN113010945A (en) BIM model linkage method and system
EP3989175A1 (en) Illumination probe generation method, apparatus, storage medium, and computer device
US20230020885A1 (en) Automatic conversion of 2d schematics to 3d models
CN103970518A (en) 3D rendering method and device for logic window
CN104407779A (en) Arrangement display method and device for graphical interface
CN109145359B (en) Steel structure material preparation method based on BIM system and CAD software
US9177418B1 (en) System and method for converting computer aided design data into a three dimensional model
Chen et al. Improvements in the reliability and element quality of parallel tetrahedral mesh generation
CN103870636A (en) Gridding processing method for mass discrete data based on geographical fragmentation
Oyekan et al. A 3D immersive discrete event simulator for enabling prototyping of factory layouts
CN112199753A (en) Shear wall generation method and device, electronic equipment and storage medium
CN112001018A (en) Efficient virtual simulation experiment platform testing method based on cloud rendering
CN108597025B (en) Artificial intelligence-based virtual reality-oriented rapid model construction method and device
CN113987652A (en) Wall model generation method and device
CN106547528B (en) Interface layout method and device
CN106548501B (en) Image drawing method and device
US20140375646A1 (en) Dynamic alteration of guides based on resolution changes
CN116541938B (en) Canal engineering building modeling method, system, electronic equipment and medium
Govori et al. A Comprehensive Performance Evaluation of Procedural Geometry Workloads on Resource-Constrained Devices
KR101496691B1 (en) Grid line maintenance based spreadsheet document display apparatus and method
CN112685871B (en) Lightning protection range simulation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant