CN113076589A - Curtain wall generation method and device and storage medium - Google Patents

Curtain wall generation method and device and storage medium Download PDF

Info

Publication number
CN113076589A
CN113076589A CN202110476619.XA CN202110476619A CN113076589A CN 113076589 A CN113076589 A CN 113076589A CN 202110476619 A CN202110476619 A CN 202110476619A CN 113076589 A CN113076589 A CN 113076589A
Authority
CN
China
Prior art keywords
curtain wall
sub
dimensional
dimensional sub
lines
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
CN202110476619.XA
Other languages
Chinese (zh)
Other versions
CN113076589B (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 CN202110476619.XA priority Critical patent/CN113076589B/en
Publication of CN113076589A publication Critical patent/CN113076589A/en
Application granted granted Critical
Publication of CN113076589B publication Critical patent/CN113076589B/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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Structural Engineering (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a curtain wall generation method, a device and a storage medium, wherein the generation method comprises the following steps: obtaining a current shaping instruction of the three-dimensional sub-curtain wall, wherein the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can be combined into a three-dimensional curtain wall; determining a current shaping instruction of the three-dimensional sub-curtain wall; when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a curved surface shaping instruction, acquiring the number of points of each three-dimensional sub-curtain wall; and constructing a three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall. According to the curtain wall generation method and device and the storage medium provided by the embodiment of the invention, the complicated process that a construction team needs to manually measure the sub-curtain wall is avoided by a mode of automatically generating the curtain wall, so that the labor cost is greatly reduced. Meanwhile, the invention provides various curtain wall generating modes, so that various actual requirements of users can be met.

Description

Curtain wall generation method and device and storage medium
Technical Field
The present application relates to the field of buildings, and in particular, to a method and an apparatus for generating a curtain wall, and a storage medium.
Background
When a curtain wall is built by a construction team, one curtain wall is generally divided into a plurality of sub-curtain walls in consideration of the construction difficulty and the construction cost, and the finished curtain wall is obtained by splicing the sub-curtain walls. Therefore, the dividing mode of the curtain wall directly determines whether the finally obtained finished curtain wall meets the actual construction requirements of construction teams.
Because the surface of some curtain walls has certain curvature, the design degree of difficulty of the sub-curtain walls for splicing the curtain walls is higher, and if each parameter of each sub-curtain wall is counted by manpower, the construction cost of construction teams is greatly increased.
Therefore, a method for generating a curtain wall is needed to solve the above problems.
Disclosure of Invention
The invention aims to provide a curtain wall generation method, a curtain wall generation device and a storage medium, and solves the problems of low curtain wall parameter statistical efficiency and high statistical cost.
In order to achieve the above object, an embodiment of the present invention provides a method for generating a curtain wall, where the method includes: obtaining a current shaping instruction of the three-dimensional sub-curtain wall, wherein the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can be combined into a three-dimensional curtain wall; determining a current shaping instruction of the three-dimensional sub-curtain wall; when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a curved surface shaping instruction, acquiring the number of points of each three-dimensional sub-curtain wall; and constructing a three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall.
Further, before the step of obtaining the current shaping instruction of the stereoscopic sub-curtain wall, the method includes: converting the three-dimensional curtain wall into a plane curtain wall through a preset dimension reduction model; dividing the plane curtain wall into a plurality of plane sub-curtain walls through a preset plane division model; and converting the plane sub-curtain wall into a three-dimensional sub-curtain wall through a preset dimension-increasing model.
Further, in the step of determining the current shaping instruction of the stereoscopic sub-curtain wall, when the current shaping instruction of the stereoscopic sub-curtain wall is determined to be the plane shaping instruction, the following steps are performed: obtaining an average central point and an average normal vector according to all points of the three-dimensional sub-curtain wall; and converting the three-dimensional sub-curtain wall into a non-curved sub-curtain wall according to the average central point and the average normal vector.
Further, in the step of determining the current shaping instruction of the stereoscopic sub-curtain wall, if the current shaping instruction of the stereoscopic sub-curtain wall is a curved surface shaping instruction, the following steps are performed: judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle or not; and if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within the preset angle, combining the two adjacent line segments.
Further, the step of constructing the three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall includes: calculating the number of points of the three-dimensional sub-curtain wall; generating three-dimensional sub-curtain wall models corresponding to the number of points of the three-dimensional sub-curtain wall according to a preset curtain wall model library; and adjusting the position of the three-dimensional sub-curtain wall model so as to enable the central point of the three-dimensional sub-curtain wall model to coincide with the central point of the three-dimensional sub-curtain wall.
Further, before the step of obtaining the current shaping instruction of the stereoscopic sub-curtain wall, the method includes: obtaining a shaft screen surface; and obtaining the three-dimensional sub-curtain wall according to the shaft net surface and preset segmentation parameters.
Further, after the step of obtaining the three-dimensional sub-curtain wall according to the shaft screen surface and the preset segmentation parameters, the method comprises the following steps: judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle or not; and if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within the preset angle, combining the two adjacent line segments.
Further, the step of obtaining the axicon surface comprises: acquiring two initial axis net lines of the three-dimensional curtain wall; acquiring all axis network lines between the two initial axis network lines; and generating a corresponding axicon surface according to the two initial axicon lines and all axicon lines between the two initial axicon lines.
Further, the step of acquiring all axis mesh lines between the two initial axis mesh lines comprises: acquiring central points of two initial axis net lines; generating an initial vector according to the central points of the two initial axis network lines; marking all the axis network cables as axis network cables to be judged, and acquiring the number of the axis network cables to be judged; judging whether the number of the axial network lines to be judged is zero or not; if the number of the axial network lines to be judged is zero, executing the step of generating corresponding axial network surfaces according to the two initial axial network lines and all axial network lines between the two initial axial network lines; if the number of the axial network lines to be judged is not zero, acquiring the axial network lines to be judged, and respectively connecting the central points of the axial network lines to be judged with the central points of the two initial axial network lines to generate a first vector and a second vector; judging whether the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are opposite signs or not; and if the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are judged to be the same number, marking the axial network line to be judged as an effective axial network line, and executing the step of judging whether the number of the axial network line to be judged is zero again.
Further, in the step of determining whether the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are opposite signs, if it is determined that the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are opposite signs, the axial line to be determined is marked as an invalid axial line, and the step of determining whether the number of the axial lines to be determined is zero is executed again.
Further, the step of generating a corresponding axicon surface according to the two initial axicon lines and all axicon lines between the two initial axicon lines includes: acquiring all effective axis network lines; and generating a corresponding axial network surface according to the respective preset point sets of the effective axial network line and the initial axial network line.
Further, the step of obtaining the three-dimensional sub-curtain wall according to the shaft screen surface and preset segmentation parameters comprises: acquiring preset segmentation parameters; inserting the axial mesh surfaces with the number corresponding to the dividing parameters between the adjacent axial mesh surfaces; acquiring an intersection line segment of the three-dimensional curtain wall and each axial mesh surface; obtaining a to-be-processed three-dimensional sub-curtain wall according to the vertexes of two adjacent intersecting line segments; and dividing the to-be-processed three-dimensional sub-curtain wall into a plurality of three-dimensional sub-curtain walls according to a preset transverse segmentation model.
Further, the step of obtaining the to-be-processed stereoscopic sub-curtain wall according to the vertexes of the two adjacent intersecting line segments includes: judging whether the directions of two adjacent crossed line segments are consistent; wherein the direction of the intersecting line segment is determined by the relative positions of the starting point and the ending point; and if the directions of the two adjacent intersected line segments are judged to be consistent, generating a line segment according to the respective starting points of the two intersected line segments, and generating a line segment according to the respective end points of the two intersected line segments.
Further, in the step of judging whether the directions of the two adjacent intersecting line segments are consistent, if the directions of the two adjacent intersecting line segments are different, the following steps are executed; rotating one of two adjacent intersecting line segments by 180 degrees; and connecting the respective starting points of the two intersecting line segments and connecting the respective end points of the two intersecting line segments.
The embodiment of the invention also provides a curtain wall generating device, which comprises: the system comprises an instruction acquisition unit, a shaping instruction processing unit and a control unit, wherein the instruction acquisition unit is used for acquiring a current shaping instruction of a three-dimensional sub-curtain wall, the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can be combined into a three-dimensional curtain wall; the instruction determining unit is used for determining a current shaping instruction of the three-dimensional sub-curtain wall; the point number obtaining unit is used for obtaining the number of points of each three-dimensional sub-curtain wall; and the model building unit is used for building the three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is read and operated by a processor, any step in the generation method is executed.
According to the curtain wall generation method and device and the storage medium provided by the embodiment of the invention, the complicated process that a construction team needs to manually measure the sub-curtain wall is avoided by a mode of automatically generating the curtain wall, so that the labor cost is greatly reduced. Meanwhile, the invention provides various curtain wall generating modes, so that various actual requirements of users can be met.
Drawings
The following detailed description of the embodiments with curved surfaces will make the technical solution and other advantages of the present application obvious with reference to the accompanying drawings.
Fig. 1 is a flowchart of a generation method provided in an embodiment of the present application.
Fig. 2 is a sub-flowchart of step S400 shown in fig. 1.
Fig. 3 is a front-end flowchart of a generating method according to an embodiment of the present disclosure.
Fig. 4 is a sub-flowchart of step S10 shown in fig. 3.
Fig. 5 is a sub-flowchart of step S12 shown in fig. 4.
Fig. 6 is a sub-flowchart of step S13 shown in fig. 4.
Fig. 7 is a sub-flowchart of step S20 shown in fig. 3.
Fig. 8 is a schematic structural diagram of a generating device according to an embodiment of the present application.
Embodiment with curved surface
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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.
Referring to fig. 1, the present embodiment provides a method for generating a curtain wall, which includes the following steps.
Step S100, obtaining a current shaping instruction of the three-dimensional sub-curtain wall, wherein the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can form the three-dimensional curtain wall. In this embodiment, the shaping instruction can be set as a curved-surface-free sub-curtain wall shaping instruction or a curved-surface sub-curtain wall shaping instruction according to the actual requirements of the user. The non-curved surface sub-curtain wall shaping instruction is used for adjusting at least one surface of each sub-curtain wall to be a plane, so that the manufacturing cost of manufacturers is reduced. The curved-surface sub-curtain wall shaping instruction is used for adjusting at least one surface of each sub-curtain wall to be a curved surface, so that the aesthetic feeling of the curtain wall is improved. Optionally, on the premise of comprehensively considering the manufacturing cost and the aesthetic feeling, the surface of the sub-curtain wall far away from the attaching surface can be manufactured into a curved surface, and the surface of the sub-curtain wall close to the attaching surface can be manufactured into a plane. Under certain circumstances, the manufacturer can also choose the position or the number of the curved surfaces.
And S200, determining a current shaping instruction of the stereoscopic sub-curtain wall.
Step S300, when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a curved surface shaping instruction, the number of points of each three-dimensional sub-curtain wall is obtained. In this embodiment, the three-dimensional sub-curtain wall is composed of a plurality of line segments with different angles, so that the line segments of the three-dimensional sub-curtain wall can be considered to form an approximate curved surface. Therefore, in consideration of saving the time consumption of the generation method, when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be the curved surface shaping instruction, the three-dimensional sub-curtain wall may not be adjusted. When the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a plane shaping instruction, executing the following steps: and obtaining an average central point and an average normal vector according to all points of the three-dimensional sub-curtain wall. In particular, the mean center point may be an average of coordinates of each point of the sub-curtain wall surface, and the mean normal vector may be an average of normal vectors of each point of the sub-curtain wall surface. And converting the three-dimensional sub-curtain wall into a non-curved sub-curtain wall according to the average central point and the average normal vector. Specifically, a projection plane is obtained by connecting the average center point and the average normal vector, and the stereoscopic sub-curtain wall is converted into the curtain wall without the curved surface by projecting all points on the curved surface of the stereoscopic sub-curtain wall to the projection plane.
Further, when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a curved surface shaping instruction, the following steps are executed: and judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle. And if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within the preset angle, combining the two adjacent line segments. When the plane curtain wall is converted into the three-dimensional curtain wall through the preset dimension-increasing model, a plurality of line segments can be generated to simulate a curved surface so as to accord with the real curvature of the three-dimensional curtain wall, and therefore the generation speed of the three-dimensional curtain wall can be very slow. In this embodiment, the operation load of the system is reduced by merging the points of two adjacent line segments. Specifically, the preset angle may be selected to be within 2 degrees, and the embodiment does not limit a specific value of the preset angle, where the higher the value is, the lower the accuracy of the finally constructed stereo sub-curtain wall model is.
And S400, constructing a three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall. In the embodiment, the corresponding three-dimensional sub-curtain wall model is constructed according to the number of points of the three-dimensional sub-curtain wall, so that the difference between the three-dimensional sub-curtain walls is reduced, and the purpose of batch production of manufacturers is further achieved. Further, referring to fig. 2, step S400 includes steps S410 to S430.
And S410, calculating the number of points of the stereoscopic sub-curtain wall.
And step S420, generating the three-dimensional sub-curtain wall models corresponding to the number of the points of the three-dimensional sub-curtain wall according to a preset curtain wall model library. Specifically, the preset curtain wall model library is a curtain wall panel set by a manufacturer. Further, the preset curtain wall model library comprises a plurality of point ranges, and when the number of the points of the three-dimensional sub-curtain wall falls into one of the point ranges, the three-dimensional sub-curtain wall model is generated according to the maximum value of the point range. For example: the preset point number range of the curtain wall model library comprises the following steps: 0 to 8, 8 to 16, 16 to 32, 32 to 64, 64 to 128. Illustratively, when the number of the points of the three-dimensional sub-curtain wall is 10, the sub-curtain wall model corresponding to 16 points in a preset curtain wall model library is used. Illustratively, when the number of the points of the stereoscopic sub-curtain wall is 130, the sub-curtain wall model corresponding to 128 points in a preset curtain wall model library is used.
And S430, adjusting the position of the three-dimensional sub-curtain wall model to enable the central point of the three-dimensional sub-curtain wall model to coincide with the central point of the three-dimensional sub-curtain wall. The mode that the central point of the three-dimensional sub-curtain wall model and the central point of the three-dimensional sub-curtain wall are adjusted to be coincident ensures that the three-dimensional curtain wall formed by splicing the three-dimensional sub-curtain wall model is more in accordance with the actual state.
Further, before step S100, the generating method further includes the following steps: converting the three-dimensional curtain wall into a plane curtain wall through a preset dimension reduction model; dividing the plane curtain wall into a plurality of plane sub-curtain walls through a preset plane division model; and converting the plane sub-curtain wall into a three-dimensional sub-curtain wall through a preset dimension-increasing model.
The dimension reduction model is used for unfolding the three-dimensional curtain wall into a plane curtain wall so as to facilitate subsequent segmentation operation. After the dimension of the three-dimensional curtain wall is reduced, the area of each plane of the three-dimensional curtain wall cannot be changed, so that after the three-dimensional curtain wall is divided into plane sub-curtain walls, the area of the plane sub-curtain walls is the area of the plane sub-curtain walls in the final actual manufacturing process, and the accuracy of curtain wall construction is guaranteed. The specific algorithm of the dimension reduction model is not limited herein, and the dimension reduction model may be a dimension reduction model in a CGAL external library (a computation set library) in C #, or a dimension reduction model obtained by machine learning (for example, a dimension reduction model obtained by a random forest algorithm).
The plane segmentation model is used for segmenting the plane curtain wall into a plurality of plane sub-curtain walls according to the axis or at fixed intervals. Since the distance between the axes is not fixed sometimes, but the axis segmentation has more practical building reference value, the plane segmentation model can provide two segmentation modes at the same time. The plane segmentation model can divide the plane curtain wall according to a horizontal segmentation parameter (horizontal fixed interval or horizontal uniform interval) and a vertical segmentation parameter (vertical fixed interval or vertical uniform interval) input by a user. Illustratively, the plane segmentation model adds a plurality of vertical lines according to the horizontal segmentation parameters, adds a plurality of horizontal lines according to the vertical segmentation parameters, and the vertical and horizontal interlaced meshes form the plane sub-curtain wall.
The dimension-increasing model is used for converting the plane sub-curtain wall into a three-dimensional sub-curtain wall. Specifically, the dimension reduction model divides each surface of the three-dimensional curtain wall into a plurality of triangles, and records the labels of the triangles where each point in the three-dimensional curtain wall is located. The shape of the triangle is adjusted to make the triangle adapt to the dimension reduction change, and a transformation matrix is established through the coordinate change before and after the triangle is adjusted. Preferably, the transformation matrix is also obtained by a machine learning method. And converting the divided plane curtain wall according to the transformation matrix so as to convert the plane curtain wall into a three-dimensional curtain wall. Since the plane curtain wall has been divided into a plurality of plane sub-curtain walls, the stereoscopic curtain wall transformed by the transformation matrix has also been divided into a plurality of stereoscopic sub-curtain walls.
Further, referring to fig. 3, before step S100, the following steps may be included: and step S10, acquiring the axle mesh surface. And S20, obtaining the three-dimensional sub-curtain wall according to the shaft screen surface and the preset segmentation parameters. The accuracy of the three-dimensional sub-curtain wall obtained through the shaft screen surface and the segmentation parameters is lower than that of the three-dimensional sub-curtain wall obtained through the dimension reduction model, the plane segmentation model and the dimension increasing model. However, the shaft screen surface is a coordinate system which is mainly referred to during construction, so that the three-dimensional sub-curtain wall obtained through the shaft screen surface and the segmentation parameters is more in line with the actual building environment.
Further, referring to fig. 4, step S10 includes steps S11 to S13.
And step S11, acquiring two initial axis net lines of the three-dimensional curtain wall. The two initial axis net lines may be selected by the user. And step S12, acquiring all axis network lines between the two initial axis network lines. And step S13, generating corresponding axis screen surfaces according to the two initial axis screen lines and all axis screen lines between the two initial axis screen lines. In the three-dimensional curtain wall, a user may not need to fully pave the whole three-dimensional curtain wall, so the generation method provided by the embodiment can generate the three-dimensional sub-curtain wall between two initial axis network lines.
Further, referring to fig. 5, step S12 includes steps S121 to S127.
And step S121, acquiring the central points of the two initial axis network lines.
And S122, generating an initial vector according to the central points of the two initial axis network lines.
And S123, marking all the axis network cables as axis network cables to be judged, and acquiring the number of the axis network cables to be judged.
And step S124, judging whether the number of the axial network lines to be judged is zero or not.
Step S125, if the number of the axial network lines to be judged is judged to be zero, step S20 is executed; if the number of the axial network lines to be judged is not zero, the axial network lines to be judged are obtained, and the central points of the axial network lines to be judged are respectively connected with the central points of the two initial axial network lines to generate a first vector and a second vector.
Step S126, determining whether the number product of the first vector and the initial vector is opposite to the number product of the second vector and the initial vector.
Step S127, if it is determined that the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are the same number, marking the axis to be determined as a valid axis, and re-executing step S124. The effective axis net lines are arranged between the two initial axis net lines, namely the effective axis net lines participate in the division of the three-dimensional sub-curtain wall. If the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are judged to be opposite signs, marking the axis network cable to be judged as an invalid axis network cable, and executing the step S124 again. The null axis net line is not between the two original axis net lines.
Further, referring to fig. 6, step S13 (i.e., the step of generating the corresponding axonometric plane from the two initial axonometric lines and all the axonometric lines between the two initial axonometric lines) includes steps S131 to S132.
And S131, acquiring all effective axis network cables. And S132, generating a corresponding axial screen surface according to the respective preset point sets of the effective axial screen line and the initial axial screen line. Illustratively, the preset point set is a starting point of the axis network line, a central point and an arbitrary point located in a vertical direction of the starting point. The preset point set comprises three non-collinear points, so that the axis network surface can be generated by the axis network line through the preset point set.
Further, referring to fig. 7, the step S20 (i.e. the step of obtaining the solid sub-curtain wall according to the axle mesh surface and the preset segmentation parameters) includes steps S21 to S25.
And step S21, acquiring preset segmentation parameters. The segmentation parameters may be input by a user according to actual requirements, and the embodiment does not limit specific values of the segmentation parameters.
Step S22 is to insert axial mesh surfaces corresponding to the number of division parameters between adjacent axial mesh surfaces. For example, if the division parameter is 5, 4 parallel axicon surfaces are inserted, so that 5 line segments (i.e. 5 sub-curtain walls) can be connected between 6 axicon surfaces.
And step S23, acquiring the intersection line segment of the three-dimensional curtain wall and each axial mesh surface.
And step S24, obtaining the solid sub-curtain wall to be processed according to the vertexes of the two adjacent intersecting line segments. The sub-curtain wall to be processed is divided subsequently to meet the actual requirements of users. Specifically, step S24 includes the steps of: and judging whether the directions of the two adjacent crossed line segments are consistent. Wherein the direction of the intersecting line segment is determined by the relative position of the starting point and the ending point. And if the directions of the two adjacent intersected line segments are judged to be consistent, generating a line segment according to the respective starting points of the two intersected line segments, and generating a line segment according to the respective end points of the two intersected line segments. And if the directions of the two adjacent intersecting line segments are different, rotating one of the two adjacent intersecting line segments by 180 degrees. The respective start points of the two intersecting line segments are connected and the respective end points of the two intersecting line segments are connected. And ensuring that the shape formed by four end points connecting two intersecting line segments is a single figure by judging whether the directions of the adjacent intersecting line segments are consistent. If the shape formed by connecting the four end points is two figures, the sub-curtain wall cannot be generated correctly.
And S25, dividing the to-be-processed three-dimensional sub-curtain wall into a plurality of three-dimensional sub-curtain walls according to the preset transverse segmentation model. Specifically, the transverse division model is used for dividing the to-be-processed sub-curtain wall through transverse lines, so that the size of the sub-curtain wall is more suitable for the actual requirement of a user, and the manufacture is convenient. For example, the transverse segmentation model can determine whether a transverse line segment is inserted between two adjacent intersecting line segments by calculating the lengths of the intersecting line segments of the axial mesh surface and the three-dimensional curtain wall.
Further, after step S20 in this embodiment, the following steps may be further included: and judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle. And if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within a preset angle, combining the two adjacent line segments. When the three-dimensional sub-curtain wall is obtained through the shaft screen surface and the preset segmentation parameters, a plurality of line segments can be generated to simulate a curved surface in order to accord with the real curvature of the three-dimensional curtain wall, and therefore the generation speed of the three-dimensional sub-curtain wall is very low. In this embodiment, the operation load of the system is reduced by combining two adjacent line segments. Specifically, the preset angle may be selected to be within 2 degrees, and the embodiment does not limit a specific value of the preset angle, where the higher the value is, the lower the accuracy of the finally constructed stereo sub-curtain wall model is.
According to the curtain wall generation method, the complex flow that a construction team needs to manually measure the sub-curtain wall is avoided through the automatic curtain wall generation mode, and therefore labor cost is greatly reduced. Meanwhile, the invention provides various curtain wall generating modes, so that various actual requirements of users can be met.
Referring to fig. 8, based on the same inventive concept, the present embodiment further provides a curtain wall generating apparatus 100, where the generating apparatus 100 includes: an instruction obtaining unit 110, an instruction determining unit 120, a point obtaining unit 130, and a model building unit 140.
The instruction obtaining unit 110 is configured to obtain a current shaping instruction of the stereoscopic sub-curtain wall, where the shaping instruction is used to instruct the stereoscopic sub-curtain wall to adjust to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the stereoscopic sub-curtain wall may form a stereoscopic curtain wall. The instruction determining unit 120 is configured to determine a current shaping instruction of the stereoscopic sub-curtain wall. The point number obtaining unit 130 is used for obtaining the number of points of each stereoscopic sub-curtain wall. The model building unit 140 is used for building a three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall.
The curtain that this embodiment provided generates the device has avoided the loaded down with trivial details flow that the construction team need the manual measurement sub-curtain through the mode of automatic generation curtain, and then the cost of labor that has significantly reduced. Meanwhile, the invention provides various curtain wall generating modes, so that various actual requirements of users can be met.
Based on the same inventive concept, the present embodiment further provides a storage medium, where a computer program is stored, and when the computer program is read and executed by a processor, the computer program performs any one of the steps of the above generation method.
The method, the device and the storage medium for generating the curtain wall provided by the embodiment of the application are described in detail, a single example with a curved surface is applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (16)

1. A curtain wall generation method is characterized by comprising the following steps:
obtaining a current shaping instruction of the three-dimensional sub-curtain wall, wherein the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can be combined into a three-dimensional curtain wall;
determining a current shaping instruction of the three-dimensional sub-curtain wall;
when the current shaping instruction of the three-dimensional sub-curtain wall is determined to be a curved surface shaping instruction, acquiring the number of points of each three-dimensional sub-curtain wall; and
and constructing a three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall.
2. The method according to claim 1, wherein the step of obtaining the current shaping instruction of the solid sub-curtain wall is preceded by:
converting the three-dimensional curtain wall into a plane curtain wall through a preset dimension reduction model;
dividing the plane curtain wall into a plurality of plane sub-curtain walls through a preset plane division model; and
and converting the plane sub-curtain wall into a three-dimensional sub-curtain wall through a preset dimension-increasing model.
3. The generation method of claim 1, wherein in the step of determining the current shaping instruction of the stereoscopic sub-curtain wall, when the current shaping instruction of the stereoscopic sub-curtain wall is determined to be a plane shaping instruction, the following steps are performed:
obtaining an average central point and an average normal vector according to all points of the three-dimensional sub-curtain wall;
and converting the three-dimensional sub-curtain wall into a non-curved sub-curtain wall according to the average central point and the average normal vector.
4. The generation method of claim 1, wherein in the step of determining the current shaping instruction of the stereoscopic sub-curtain wall, if the current shaping instruction of the stereoscopic sub-curtain wall is a curved surface shaping instruction, the following steps are performed:
judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle or not; and
and if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within the preset angle, combining the two adjacent line segments.
5. The method for generating as claimed in claim 1, wherein said step of constructing a solid sub-curtain wall model according to the number of points of each solid sub-curtain wall comprises:
calculating the number of points of the three-dimensional sub-curtain wall;
generating three-dimensional sub-curtain wall models corresponding to the number of points of the three-dimensional sub-curtain wall according to a preset curtain wall model library; and
and adjusting the position of the three-dimensional sub-curtain wall model so as to enable the central point of the three-dimensional sub-curtain wall model to coincide with the central point of the three-dimensional sub-curtain wall.
6. The method according to claim 1, wherein the step of obtaining the current shaping instruction of the solid sub-curtain wall is preceded by:
obtaining a shaft screen surface; and
and obtaining the three-dimensional sub-curtain wall according to the shaft screen surface and preset segmentation parameters.
7. The method for generating a three-dimensional sub-curtain wall according to the shaft screen surface and the preset segmentation parameters comprises the following steps:
judging whether the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is within a preset angle or not; and
and if the minimum included angle of two adjacent line segments in the same three-dimensional sub-curtain wall is judged to be within the preset angle, combining the two adjacent line segments.
8. The method of generating as defined in claim 6, wherein the step of obtaining an axicon surface comprises:
acquiring two initial axis net lines of the three-dimensional curtain wall;
acquiring all axis network lines between the two initial axis network lines; and
and generating a corresponding axicon surface according to the two initial axicon lines and all axicon lines between the two initial axicon lines.
9. The generation method of claim 8, wherein the step of obtaining all axis mesh lines between two initial axis mesh lines comprises:
acquiring central points of two initial axis net lines;
generating an initial vector according to the central points of the two initial axis network lines;
marking all the axis network cables as axis network cables to be judged, and acquiring the number of the axis network cables to be judged;
judging whether the number of the axial network lines to be judged is zero or not;
if the number of the axial network lines to be judged is zero, executing the step of generating corresponding axial network surfaces according to the two initial axial network lines and all axial network lines between the two initial axial network lines;
if the number of the axial network lines to be judged is not zero, acquiring the axial network lines to be judged, and respectively connecting the central points of the axial network lines to be judged with the central points of the two initial axial network lines to generate a first vector and a second vector;
judging whether the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are opposite signs or not;
and if the number product of the first vector and the initial vector and the number product of the second vector and the initial vector are judged to be the same number, marking the axial network line to be judged as an effective axial network line, and executing the step of judging whether the number of the axial network line to be judged is zero again.
10. The method according to claim 9, wherein in the step of determining whether the product of the number of the first vector and the initial vector and the product of the number of the second vector and the initial vector are opposite signs, if it is determined that the product of the number of the first vector and the initial vector and the product of the number of the second vector and the initial vector are opposite signs, the axial line to be determined is marked as an invalid axial line, and the step of determining whether the number of the axial lines to be determined is zero is executed again.
11. The method of generating as set forth in claim 8, wherein the step of generating a respective axicon surface from the two initial axicon lines and all axicon lines between the two initial axicon lines comprises:
acquiring all effective axis network lines; and
and generating a corresponding axial network surface according to the respective preset point sets of the effective axial network line and the initial axial network line.
12. The generation method of claim 6, wherein the step of obtaining the stereoscopic sub-curtain wall according to the shaft screen surface and preset segmentation parameters comprises:
acquiring preset segmentation parameters;
inserting the axial mesh surfaces with the number corresponding to the dividing parameters between the adjacent axial mesh surfaces;
acquiring an intersection line segment of the three-dimensional curtain wall and each axial mesh surface;
obtaining a to-be-processed three-dimensional sub-curtain wall according to the vertexes of two adjacent intersecting line segments; and
and dividing the to-be-processed three-dimensional sub-curtain wall into a plurality of three-dimensional sub-curtain walls according to a preset transverse segmentation model.
13. The method for generating a stereoscopic sub-curtain wall as claimed in claim 12, wherein the step of obtaining the stereoscopic sub-curtain wall to be processed according to the vertices of two adjacent intersecting line segments comprises:
judging whether the directions of two adjacent crossed line segments are consistent; wherein the direction of the intersecting line segment is determined by the relative positions of the starting point and the ending point; and
and if the directions of the two adjacent intersected line segments are judged to be consistent, generating a line segment according to the respective starting points of the two intersected line segments, and generating a line segment according to the respective end points of the two intersected line segments.
14. The generation method of claim 13, wherein in the step of determining whether the directions of two adjacent intersecting line segments are the same, if it is determined that the directions of two adjacent intersecting line segments are different, the following steps are performed;
rotating one of two adjacent intersecting line segments by 180 degrees; and
the respective start points of the two intersecting line segments are connected and the respective end points of the two intersecting line segments are connected.
15. A curtain wall generation device, comprising:
the system comprises an instruction acquisition unit, a shaping instruction processing unit and a control unit, wherein the instruction acquisition unit is used for acquiring a current shaping instruction of a three-dimensional sub-curtain wall, the shaping instruction is used for indicating the three-dimensional sub-curtain wall to be adjusted to a non-curved sub-curtain wall and/or a curved sub-curtain wall, and the three-dimensional sub-curtain wall can be combined into a three-dimensional curtain wall;
the instruction determining unit is used for determining a current shaping instruction of the three-dimensional sub-curtain wall;
the point number obtaining unit is used for obtaining the number of points of each three-dimensional sub-curtain wall; and
and the model building unit is used for building the three-dimensional sub-curtain wall model according to the number of the points of each three-dimensional sub-curtain wall.
16. A storage medium, characterized in that it stores a computer program which, when read and executed by a processor, performs the steps of the generation method according to any one of claims 1 to 14.
CN202110476619.XA 2021-04-29 2021-04-29 Curtain wall generation method and device and storage medium Active CN113076589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110476619.XA CN113076589B (en) 2021-04-29 2021-04-29 Curtain wall generation method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110476619.XA CN113076589B (en) 2021-04-29 2021-04-29 Curtain wall generation method and device and storage medium

Publications (2)

Publication Number Publication Date
CN113076589A true CN113076589A (en) 2021-07-06
CN113076589B CN113076589B (en) 2022-06-17

Family

ID=76616141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110476619.XA Active CN113076589B (en) 2021-04-29 2021-04-29 Curtain wall generation method and device and storage medium

Country Status (1)

Country Link
CN (1) CN113076589B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100271369A1 (en) * 2009-04-27 2010-10-28 HONG FU JIN PRECISION INDUSTRY (ShenZhen)., LTD. Curved surface rendering system and method
CN109165473A (en) * 2018-10-12 2019-01-08 深圳市三鑫科技发展有限公司 Curtain wall body warping Analysis method, apparatus, computer equipment and storage medium
CN110335345A (en) * 2019-07-02 2019-10-15 同济大学建筑设计研究院(集团)有限公司 Curtain wall joint rendering method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100271369A1 (en) * 2009-04-27 2010-10-28 HONG FU JIN PRECISION INDUSTRY (ShenZhen)., LTD. Curved surface rendering system and method
CN109165473A (en) * 2018-10-12 2019-01-08 深圳市三鑫科技发展有限公司 Curtain wall body warping Analysis method, apparatus, computer equipment and storage medium
CN110335345A (en) * 2019-07-02 2019-10-15 同济大学建筑设计研究院(集团)有限公司 Curtain wall joint rendering method, device, computer equipment and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110411464B (en) Three-dimensional point cloud map generation method, device, equipment and storage medium
US8805908B2 (en) Approximation processing method and approximation processing device
CN112419511B (en) Three-dimensional model file processing method and device, storage medium and server
CN112506476B (en) Method and device for quickly constructing digital twin workshop system
CN110084894B (en) Local amplification display method and device of three-dimensional model and electronic equipment
CN109697748B (en) Model compression processing method, model mapping processing method, model compression processing device, and storage medium
CN113221478A (en) Numerical analysis method and system for actively controlling rotor wing
TWI475511B (en) System and method for meshing curved surface
CN112070908B (en) Automatic splitting method for three-dimensional model, computer equipment and storage medium
JP3265879B2 (en) 3D orthogonal grid data generator
CN103679814A (en) Processing method and device for triangle mesh model
CN113076589B (en) Curtain wall generation method and device and storage medium
CN110675323A (en) Three-dimensional map semantic processing method, system, equipment and computer medium
CN116993955A (en) Three-dimensional model heavy topology method, device, equipment and storage medium
CN113160412B (en) Automatic software model generation method and system based on texture mapping
CN113076571B (en) Real-time simulation editing method and system for three-dimensional clothes
CN108733886A (en) Hemispherical dome Ship Structure setting out method, device and computer readable storage medium
CN112927351A (en) Three-dimensional scene local area dynamic flattening method and device based on flattening bounding ball
KR100433947B1 (en) Exact geometry based triangle mesh generating method
CN116229005B (en) Geodesic determining method and device for three-dimensional roadway model
CN117390775B (en) Viscous Cartesian grid generation method, viscous Cartesian grid generation equipment, viscous Cartesian grid medium and viscous Cartesian grid generation system
CN114937110B (en) GPU (graphics processing unit) -accelerated drainage wire modeling method, system, equipment and medium
CN111950071A (en) Solution method and equipment for realizing dynamic configuration of building AI
CN113538686B (en) Regional building 3D modeling method, device, equipment and storage medium
CN111179405B (en) 3D scene roaming collision detection method and device

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