CN115375700A - Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device - Google Patents

Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device Download PDF

Info

Publication number
CN115375700A
CN115375700A CN202110537548.XA CN202110537548A CN115375700A CN 115375700 A CN115375700 A CN 115375700A CN 202110537548 A CN202110537548 A CN 202110537548A CN 115375700 A CN115375700 A CN 115375700A
Authority
CN
China
Prior art keywords
point
special
curtain wall
original
points
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.)
Pending
Application number
CN202110537548.XA
Other languages
Chinese (zh)
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 CN202110537548.XA priority Critical patent/CN115375700A/en
Publication of CN115375700A publication Critical patent/CN115375700A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Generation (AREA)

Abstract

The application relates to an equidistant curve generation method in a special-shaped curtain wall, a special-shaped curtain wall segmentation method and a special-shaped curtain wall segmentation device. The method for generating equidistant curves in the special-shaped curtain wall comprises the following steps: acquiring a special-shaped curtain wall, an offset distance and a starting and laying line; sampling on the start laying line to obtain a plurality of original points; shifting the original point according to the shifting distance to obtain a plurality of points to be processed; and generating an equidistant curve according to the points to be processed. The method for segmenting the special-shaped curtain wall comprises the following steps: generating an equidistant curve according to an equidistant curve generation method in the special-shaped curtain wall; acquiring a transverse dividing line corresponding to the special-shaped curtain wall; and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line. By adopting the method, the special-shaped curtain wall cutting efficiency can be improved.

Description

Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device
Technical Field
The application relates to the technical field of buildings, in particular to a method for generating equidistant curves in a special-shaped curtain wall, a method for segmenting the special-shaped curtain wall and a device.
Background
Curtain walls (Curtain walls) are outer Wall enclosures of buildings and hung like curtains, so the Curtain walls are also called as hanging walls and are light Wall bodies with decoration effects commonly used in modern large and high-rise buildings. The building envelope structure consists of a structural frame and embedded plates and does not bear the load and the effect of a main structure. In future, due to the combination of curtain wall technology and science and technology, the intelligent curtain wall responds to the global call for energy conservation and emission reduction, and the unique charm of the building can be displayed if the intelligent curtain wall such as a solar photovoltaic curtain wall, an air duct breathing curtain wall, an induction wind and rain intelligent curtain wall and the like. The curtain wall mainly comprises an outer wall of a building, a daylighting roof (cover) and a rain tent.
In the traditional technology, a complete body size is generated when a curtain wall is generated, and then meshes are manually divided in the body size according to the needs of a user so as to realize the division of the curtain wall.
However, when the curtain wall is manually divided, especially the special-shaped curtain wall, a large amount of calculation is needed, so that the dividing efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a method for generating equidistant curves in a special-shaped curtain wall, a method for partitioning the special-shaped curtain wall and a device thereof, which can improve the partitioning efficiency, in order to solve the above technical problems.
A method for generating equidistant curves in a special-shaped curtain wall comprises the following steps:
acquiring a special-shaped curtain wall, an offset distance and a starting and laying line;
sampling on the start laying line to obtain a plurality of original points;
shifting the original point according to the shifting distance to obtain a plurality of points to be processed;
and generating an equidistant curve according to the points to be processed.
In one embodiment, the shifting the original point according to the shift distance to obtain a plurality of to-be-processed points includes:
acquiring a tangent plane of the original point;
mapping the original point to the tangent plane according to a preset mapping method to obtain a reference point, and enabling the distance between the original point and the reference point to be the offset distance;
acquiring adjacent original points of each original point, and determining the offset direction corresponding to the original points according to the adjacent original points;
and obtaining the point to be processed corresponding to the original point according to the offset direction and the offset distance.
In one embodiment, the determining, according to the adjacent original points, an offset direction corresponding to the original point includes:
obtaining a reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and a reference point corresponding to the adjacent original point;
and calculating the offset direction corresponding to the original point according to the reference vector.
In one embodiment, after the shifting the original point by the shift distance to obtain a plurality of to-be-processed points, the method further includes:
judging whether the points to be processed have self-intersection points or not;
when the point to be processed has a self-intersection point, acquiring a replacement point of the self-intersection point;
replacing the self-intersection point by the replacement point.
In one embodiment, the determining whether there is a self-intersection point in the points to be processed includes:
acquiring an original point corresponding to the point to be processed;
calculating a first vector of a current original point and a previous original point and a second vector of the current original point and a next original point;
calculating a first cross product of the first vector and the second vector, and calculating a first vector product of the first cross product and a normal vector of the original point;
calculating a third vector of a point to be processed and a previous point to be processed corresponding to the current original point, and a fourth vector of the point to be processed and a next point to be processed corresponding to the current original point;
calculating a second cross product of the third vector and the fourth vector, and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point;
and judging whether a self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
In one embodiment, the self-intersection points comprise a previous self-intersection point and a next self-intersection point; the obtaining of the replacement point of the self-intersection point comprises:
calculating a first connecting line of the previous self-intersection point and the last point to be processed, and a second connecting line of the next self-intersection point and the first point to be processed;
and taking the intersection point of the first connecting line and the second connecting line as a replacement point of the self-intersection point.
A method for cutting a special-shaped curtain wall comprises the following steps:
generating an equidistant curve according to the equidistant curve generation method in the special-shaped curtain wall in any one embodiment;
acquiring a transverse dividing line corresponding to the special-shaped curtain wall;
and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
The utility model provides an equidistance curve device in dysmorphism curtain, equidistance curve device includes in the dysmorphism curtain:
the data acquisition module is used for acquiring the special-shaped curtain wall, the offset distance and the laying starting line;
the sampling module is used for sampling on the laying line to obtain a plurality of original points;
the offset module is used for offsetting the original points according to the offset distance to obtain a plurality of points to be processed;
and the first equidistant curve generating module is used for generating an equidistant curve according to the points to be processed.
A special-shaped curtain wall cutting device comprises the following steps:
the second equidistant curve generation module is used for generating an equidistant curve according to the equidistant curve generation device of the special-shaped curtain wall in any one of the embodiments;
the transverse dividing line acquisition module is used for acquiring a transverse dividing line corresponding to the special-shaped curtain wall;
and the segmenting module is used for segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmenting line.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as described in any one of the above embodiments when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of the embodiments described above.
According to the method and the device for generating the equidistant curves in the special-shaped curtain wall, after the special-shaped curtain wall, the offset distance and the start laying line are obtained, the start laying line is sampled to obtain a plurality of original points, then the original points are offset according to the offset distance to obtain a plurality of to-be-processed points, the equidistant curves are generated according to-be-processed points with equal offset distances, manual participation is not needed, the processing efficiency is improved, and the special-shaped curtain wall is subsequently segmented through the equidistant curves, so that the efficiency of segmenting the special-shaped curtain wall is improved.
Drawings
Fig. 1 is an application environment diagram of a method for generating an equidistant curve in a special-shaped curtain wall and a method for dividing the special-shaped curtain wall in one embodiment;
FIG. 2 is a schematic flow chart of a method for generating equidistant curves in a profiled curtain wall according to an embodiment;
FIG. 3 is a flowchart of step S206 in the embodiment shown in FIG. 2;
FIG. 4 is a schematic drawing of a tangential plane in one embodiment;
FIG. 5 is a diagram illustrating the calculation of the original dot offset direction in one embodiment;
FIG. 6 is a schematic diagram of a self-intersection point in one embodiment;
FIG. 7 is a schematic flow chart of a method for partitioning a shaped curtain wall according to an embodiment;
FIG. 8 is a structural block diagram of a equidistant curve generating device in the special-shaped curtain wall in one embodiment;
FIG. 9 is a block diagram of a device for partitioning a shaped curtain wall according to an embodiment;
fig. 10 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for generating the equidistant curve in the special-shaped curtain wall and the method for dividing the special-shaped curtain wall can be applied to the application environment shown in figure 1. The terminal 102 communicates with the server 104 through a network. The server 104 may store a library file, the terminal 102 may introduce the library file into a project, transfer corresponding parameters of a functional interface, and call the encapsulated function to obtain a result quickly, where the library file may be a library file used in an equidistant curve generation method in a special-shaped curtain wall. The terminal acquires the special-shaped curtain wall, the offset distance and the laying line; sampling on a laying starting line to obtain a plurality of original points; shifting the original points according to the shifting distance to obtain a plurality of points to be processed; and generating an equidistant curve according to the points to be processed, so that the terminal can divide the special-shaped curtain wall according to the equidistant curve. Therefore, manual participation is not needed, the processing efficiency is improved, and the special-shaped curtain wall is cut off through the equidistant curves subsequently, so that the cutting efficiency of the special-shaped curtain wall is also improved.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for generating equidistant curves in a special-shaped curtain wall is provided, which is described by taking the method applied to the terminal in fig. 1 as an example, and includes the following steps:
s202: and acquiring the special-shaped curtain wall, the offset distance and the laying line.
In particular, a profiled curtain wall may refer to a curved curtain wall, i.e. a non-planar curtain wall, wherein optionally the bottom edge of the profiled curtain wall intersects the top edge such that it is not a curtain wall resembling a cylindrical side, but the way in which the profiled curtain wall is handled may also be applied to profiled curtain walls resembling a cylindrical side.
The offset distance refers to the geodesic distance between the equidistant curves.
The laying starting line refers to a position where construction starts when the special-shaped curtain wall is constructed.
The terminal can open a model, then select the special-shaped curtain wall therein, and process the special-shaped curtain wall, so that the terminal pops up a page, the offset distance can be set at the page terminal, and the paving line is designated.
S204: sampling is carried out on the laying starting line to obtain a plurality of original points.
Specifically, the original points are obtained by sampling on the start-laying line, and the start-laying line can be completely represented by the original points, that is, the start-laying line can be obtained by giving the end to the original points.
In practical application, the terminal can introduce an external library to sample the paving line to obtain a plurality of original points, namely the paving line is input, and the external library is directly called to obtain the plurality of original points, so that the code amount can be reduced by adopting the external library, and a part of processing can be placed outside, thereby reducing the local resource occupation.
S206: and shifting the original points according to the shift distance to obtain a plurality of points to be processed.
In particular, the offset may comprise a translation. The offset of the original point needs to determine an offset distance and an offset direction, wherein the offset distance can be calculated based on geodesic lines, and the offset direction is determined according to discrete exponential mapping. Therefore, the terminal determines the offset distance and the offset direction of each original point, and then offsets according to the offset distance and the offset direction to obtain a plurality of points to be processed.
It should be noted that, because the equidistant curves of the irregular curtain wall may be multiple, for the first equidistant curve, the terminal may sample a point on the starting paving line as an original point, and for the subsequent equidistant curve, the terminal may use a point to be processed on the previous equidistant curve as an original point, and then shift according to the above method.
S208: and generating an equidistant curve according to the points to be processed.
Specifically, if the offset distances are equal, the points are on the same equidistant curve, and therefore, the points are connected to obtain an equidistant curve.
Optionally, after obtaining an equidistant curve, the terminal takes the to-be-processed points of the equidistant curve as new original points, and continues to perform offset processing on the new original points to obtain new to-be-processed points, so as to generate a new equidistant curve.
It should be noted that, after the point to be processed deviates from the special-shaped curtain wall, the point to be processed is not used as a new original point, so as to reduce the data processing amount. The terminal judges whether the point to be processed deviates from the special-shaped curtain wall or not according to the coordinates.
According to the method for generating the equidistant curve in the special-shaped curtain wall, after the special-shaped curtain wall, the offset distance and the laying line are obtained, the laying line is sampled to obtain a plurality of original points, then the original points are offset according to the offset distance to obtain a plurality of to-be-processed points, the equidistant curve is generated according to the to-be-processed points, manual participation is not needed, the processing efficiency is improved, and the special-shaped curtain wall is divided through the equidistant curves subsequently, so that the efficiency of dividing the special-shaped curtain wall is improved.
In one embodiment, as shown in fig. 3, fig. 3 is a flowchart of step S206 in the embodiment shown in fig. 2, and the step S206 is to offset the original point by an offset distance to obtain a plurality of to-be-processed points, including:
s302: and acquiring a tangent plane of the original point.
Specifically, the tangent plane is a plane passing through the original point and having a normal phase of the original point as a normal vector.
The terminal obtains a tangent plane through calculation according to the normal of the original point and the original point, which may be specifically shown in fig. 4, where the original point is P, and the tangent plane is Cp, v, where v is a normal vector of the tangent plane.
S304: and mapping the original point to a tangent plane according to a preset mapping method to obtain a reference point, and enabling the distance between the original point and the reference point to be an offset distance.
Specifically, the preset mapping method may be a discrete exponential mapping method, in which the original point is mapped to the tangent plane to obtain a reference point on the premise of ensuring the geodesic distance, i.e. ensuring the offset distance, taking fig. 4 as an example, which is the reference point P i T
S306: and acquiring adjacent original points of each original point, and determining the offset direction corresponding to the original points according to the adjacent original points.
Specifically, the adjacent original points of the original points refer to a previous original point and a next original point of the original points, and the offset direction of the original points is determined according to a reference point corresponding to the previous original point and a reference point corresponding to the next original point.
Optionally as shown in FIG. 5, wherein the origin is P i The previous origin point is P i-1 The latter origin point is P i+1 Wherein the original point P i The corresponding reference point is P i T Previous origin point P i-1 The corresponding reference point is P i-1 T Next original point P i+1 The corresponding reference point is P i+1 T
Thus according to the previous origin point P i-1 And its reference point is P i-1 T The next origin point P i+1 And its reference point is P i+1 T To determine the direction of the offset.
Optionally, determining the offset direction corresponding to the original point according to the adjacent original points includes: obtaining a reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and a reference point corresponding to the adjacent original point; and calculating the offset direction of the corresponding original point according to the reference vector.
Therefore, the terminal first follows the previous origin point P i-1 And a reference point P i-1 T Obtain a vector P i P i-1 T According to the next originP i-1 And a reference point P i+1 T Obtain a vector P i P i+1 T . Wherein the sum of the two vectors is the offset direction, i.e. P i P i-1 T +P i P i+1 T And P i P i ' parallel. And due to the origin point P i And the point P after offset i ' the distances are geodesic distances, i.e. offset distances, so that an offset angle θ can be obtained i Wherein
Figure BDA0003070336470000071
Figure BDA0003070336470000072
It should be noted that, for the first original point and the last original point, since there are only 1 neighboring point, the offset direction can be determined only by the neighboring point and the corresponding reference point.
S308: and obtaining the point to be processed corresponding to the original point according to the offset direction and the offset distance.
Wherein the terminal further calculates the offset distance according to the offset direction and the offset distance, specifically, the offset distance d of the original point along the offset direction i =d/sinθ i Wherein d is the offset distance.
Therefore, the terminal shifts the original point according to the calculated shifting direction and the shifting distance to obtain the point to be processed.
In the above embodiment, the deviation direction and the deviation distance are calculated by a discrete exponential mapping method and keeping the geodesic distance, and finally the deviation is performed to obtain the point to be processed.
In one embodiment, after the original point is shifted according to the shift distance to obtain a plurality of points to be processed, the method further includes: judging whether a self-intersection point exists in the points to be processed; when the point to be processed has a self-intersection point, acquiring a replacement point of the self-intersection point; the self-intersection point is replaced by a replacement point.
Specifically, the self-intersection point is the offset direction and the original directionPoints of inconsistency. Referring to FIG. 6, the self-intersections include a preceding self-intersection and a succeeding self-intersection, and a point q i And point q i+1 For example, the replacement point corresponding to the self-intersection point is calculated from the first point and the last point of all the points.
Optionally, the terminal calculates a first connection line between the previous self-intersection point and the last point to be processed, and a second connection line between the next self-intersection point and the first point to be processed; and taking the intersection point of the first connecting line and the second connecting line as a replacement point of the self-intersection point.
Terminal passing point q i And point q i+1 The intersection point of the connecting line of the former point and the last point of all the points and the connecting line of the latter point and the first point of all the points is used to obtain the replacement point of the self-intersection point, and the point q is replaced by the replacement point i And point q i+1 . The corresponding shifted points, namely the points to be processed, are respectively the points q i ' and q i+1 ' Point.
Take fig. 6 as an example, where the first point of all points is q i-1 The last point of all the points is q i+2 The corresponding shifted points, i.e. the points to be processed, are respectively the points q i-1 ' and Point q i+2 ’。
Thus by calculating the point q i ' and Point q i+2 ' and point q i+1 ' and Point q i-1 ' intersection of lines, see FIG. 6 for point I i The point is used as a replacement point to replace the shifted point q i ' and Point q i+1 ’。
In one embodiment, the determining whether there is a self-intersection in the points to be processed includes: acquiring an original point corresponding to a point to be processed; calculating a first vector of a current original point and a previous original point and a second vector of the current original point and a next original point; calculating a first cross product of the first vector and the second vector, and calculating a first vector product of the first cross product and a normal vector of the original point; calculating a third vector of a point to be processed and a previous point to be processed corresponding to the current original point, and a fourth vector of the point to be processed and a next point to be processed corresponding to the current original point; calculating a second cross product of the third vector and the fourth vector, and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point; and judging whether the self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
Specifically, the terminal first obtains an original point corresponding to the point to be processed, and the original point is assumed to be P i Its normal vector is nq, the current origin point P i And a previous origin point P i-1 Is L i-1 . Current origin point P i And a subsequent origin point P i+1 Second vector L of i . Calculating a first cross product w of the first vector and the second vector i First cross product w i The first vector product with the normal vector nq of the origin is denoted g.
Likewise, the terminal obtains the offset point P, then the second vector G, the first vector G and the sign of the latter are determined to be identical to determine whether a self-intersection point exists, for example if they are identical, then no self-intersection point exists, if they are not identical, then the current point P is indicated i And a subsequent origin point P i+1 Is a self-intersection point.
In one embodiment, as shown in fig. 7, a method for partitioning a shaped curtain wall is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
s702: according to the method for generating the equidistant curve in the special-shaped curtain wall in any one embodiment, the equidistant curve is generated.
Specifically, the equidistant curves may be generated as described above, and are not described herein again.
S704: and acquiring a transverse dividing line corresponding to the special-shaped curtain wall.
S706: and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
Specifically, the transverse dividing line may be obtained through an axle net of the model, where the axle net is a net formed by an axle net of the model and a building axis, and the direction of the axle net is a u direction (horizontal direction), and the axle net and an equidistant curve in a v direction together divide the special-shaped curtain wall. Wherein the u direction and the v direction are the coordinate directions of the curved surface of the special-shaped curtain wall.
In other embodiments, the horizontal dividing line may be obtained by a horizontal dividing pitch, for example, a starting point of the paving line is obtained first, where the starting point of the paving line is a starting point of the bottom curve, and the horizontal dividing line is generated in the vertical direction by moving several horizontal dividing pitches along the paving line according to the horizontal dividing pitch to obtain several dividing points, and using the dividing points as starting points. Wherein the vertical direction is the direction perpendicular to the ground. In this way, several transverse dividing lines are obtained, so that longitudinal dividing lines are subsequently generated from the transverse dividing lines.
In the above embodiment, after the special-shaped curtain wall, the offset distance and the laying starting line are obtained, the laying starting line is sampled to obtain the plurality of original points, and then the original points are offset according to the offset distance to obtain the plurality of to-be-processed points, so that the equidistant curves are generated according to the to-be-processed points with the equal offset distances, manual participation is not needed, the processing efficiency is improved, and the special-shaped curtain wall is subsequently segmented through the equidistant curves, so that the efficiency of segmenting the special-shaped curtain wall is also improved.
It should be understood that although the steps in the flowcharts of fig. 2, 3 and 7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3, and 7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 8, there is provided an equidistant curve generating device in a profiled curtain wall, including: a data acquisition module 801, a sampling module 802, and a first equidistant curve generation module 804, wherein:
the data acquisition module 801 is used for acquiring a special-shaped curtain wall, an offset distance and a laying line;
a sampling module 802, configured to sample on a start laying line to obtain a plurality of original points;
the offset module 803 is configured to offset the original point according to the offset distance to obtain a plurality of to-be-processed points;
a first equidistant curve generating module 804, configured to generate an equidistant curve according to the points to be processed.
In one embodiment, the shifting module 803 may include:
the tangent plane acquisition unit is used for acquiring the tangent plane of the original point;
the mapping unit is used for mapping the original point to the tangent plane according to a preset mapping method to obtain a reference point, and the distance between the original point and the reference point is an offset distance;
the offset direction acquisition unit is used for acquiring adjacent original points of each original point and determining the offset direction corresponding to the original points according to the adjacent original points;
and the offset unit is used for obtaining the point to be processed corresponding to the original point according to the offset direction and the offset distance.
In one embodiment, the offset direction obtaining unit includes:
the reference vector generating subunit is used for obtaining the reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and the reference point corresponding to the adjacent original point;
and the offset direction calculating subunit is used for calculating the offset direction corresponding to the original point according to the reference vector.
In one embodiment, the equidistant curve generating device in the special-shaped curtain wall may further include:
the judging module is used for judging whether the self-intersection points exist in the points to be processed;
the replacement point generating module is used for acquiring a replacement point of the self-intersection point when the self-intersection point exists in the points to be processed;
and the replacing module is used for replacing the self-intersection point by the replacing point.
In one embodiment, the determining module may include:
an original point obtaining unit, configured to obtain an original point corresponding to the to-be-processed point;
the first vector calculation unit is used for calculating first vectors of a current original point and a previous original point and second vectors of the current original point and a next original point;
the first vector product calculating unit is used for calculating a first cross product of the first vector and the second vector and calculating a first vector product of the first cross product and a normal vector of an original point;
the second vector calculation unit is used for calculating a third vector of a point to be processed corresponding to the current original point and a point to be processed before the current original point, and a fourth vector of the point to be processed corresponding to the current original point and a point to be processed after the current original point;
the second vector product calculating unit is used for calculating a second cross product of the third vector and the fourth vector and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point;
and the judging unit is used for judging whether the self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
In one embodiment, the self-intersection points include a preceding self-intersection point and a succeeding self-intersection point; the replacement point generating module includes:
the connecting line calculating unit is used for calculating a first connecting line of a previous self-intersection point and a last point to be processed, and a second connecting line of a next self-intersection point and a first point to be processed;
and the replacement point generating unit is used for taking the intersection point of the first connecting line and the second connecting line as the replacement point of the self-intersection point.
In one embodiment, as shown in fig. 9, there is provided a profiled curtain wall partitioning device, including: a second equidistant curve generation module 901, a transverse dividing line acquisition module 902 and a dividing module 903, wherein:
a second equidistant curve generating module 901, configured to generate an equidistant curve according to the equidistant curve generating device in the special-shaped curtain wall in any one of the above embodiments;
a transverse dividing line obtaining module 902, configured to obtain a transverse dividing line corresponding to the special-shaped curtain wall;
and the segmenting module 903 is used for segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmenting line.
For specific limitations of the equidistant curve generation device and the special-shaped curtain wall segmentation device in the special-shaped curtain wall, reference may be made to the limitations of the equidistant curve generation method and the special-shaped curtain wall segmentation method in the special-shaped curtain wall, and details are not repeated here. All modules in the equidistant curve generation in the special-shaped curtain wall can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to realize an equidistant curve generation method and a special-shaped curtain wall segmentation method in the special-shaped curtain wall. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring a special-shaped curtain wall, an offset distance and a laying starting line; sampling on a start laying line to obtain a plurality of original points; shifting the original points according to the shifting distance to obtain a plurality of points to be processed; and generating an equidistant curve according to the points to be processed.
In one embodiment, the shifting the original point by the shift distance to obtain the plurality of points to be processed, which is implemented when the processor executes the computer program, includes: acquiring a tangent plane of an original point; mapping the original point to a tangent plane according to a preset mapping method to obtain a reference point, and enabling the distance between the original point and the reference point to be an offset distance; acquiring adjacent original points of each original point, and determining the offset direction of the corresponding original point according to the adjacent original points; and obtaining the point to be processed corresponding to the original point according to the offset direction and the offset distance.
In one embodiment, the determining the offset direction of the corresponding original point according to the adjacent original points, which is realized when the processor executes the computer program, comprises: obtaining a reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and a reference point corresponding to the adjacent original point; and calculating the offset direction corresponding to the original point according to the reference vector.
In one embodiment, after the processor shifts the original point by the shift distance to obtain a plurality of to-be-processed points when executing the computer program, the method further includes: judging whether a self-intersection point exists in the points to be processed; when the point to be processed has the self-intersection point, acquiring a replacement point of the self-intersection point; the self-intersection point is replaced by a replacement point.
In one embodiment, the determining whether the self-intersection point exists in the points to be processed, which is implemented when the processor executes the computer program, includes: acquiring an original point corresponding to a point to be processed; calculating first vectors of a current original point and a previous original point and second vectors of the current original point and a next original point; calculating a first cross product of the first vector and the second vector, and calculating a first vector product of the first cross product and a normal vector of the original point; calculating a third vector of a point to be processed and a previous point to be processed corresponding to the current original point, and a fourth vector of the point to be processed and a next point to be processed corresponding to the current original point; calculating a second cross product of the third vector and the fourth vector, and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point; and judging whether the self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
In one embodiment, the self-intersection points involved in the execution of the computer program by the processor include a preceding self-intersection point and a succeeding self-intersection point; a replacement point obtained from the intersection point, implemented by the processor when executing the computer program, comprising: calculating a first connecting line of the previous self-intersection point and the last point to be processed, and a second connecting line of the next self-intersection point and the first point to be processed; and taking the intersection point of the first connecting line and the second connecting line as a replacement point of the self-intersection point.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: generating an equidistant curve according to the equidistant curve generation method in the special-shaped curtain wall in any one embodiment; acquiring a transverse dividing line corresponding to the special-shaped curtain wall; and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a special-shaped curtain wall, an offset distance and a laying starting line; sampling on a laying starting line to obtain a plurality of original points; shifting the original points according to the shifting distance to obtain a plurality of points to be processed; and generating an equidistant curve according to the points to be processed.
In one embodiment, the shifting the original point by the shift distance to obtain the plurality of points to be processed, when the computer program is executed by the processor, includes: acquiring a tangent plane of an original point; mapping the original point to a tangent plane according to a preset mapping method to obtain a reference point, and enabling the distance between the original point and the reference point to be an offset distance; acquiring adjacent original points of each original point, and determining the offset direction of the corresponding original point according to the adjacent original points; and obtaining the point to be processed corresponding to the original point according to the offset direction and the offset distance.
In one embodiment, the determination of the offset direction of the corresponding origin point from neighboring origin points, as performed by the computer program when executed by the processor, comprises: obtaining a reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and a reference point corresponding to the adjacent original point; and calculating the offset direction corresponding to the original point according to the reference vector.
In one embodiment, after the original point is shifted by the shift distance to obtain a plurality of points to be processed, when the computer program is executed by the processor, the method further includes: judging whether a self-intersection point exists in the points to be processed; when the point to be processed has a self-intersection point, acquiring a replacement point of the self-intersection point; the self-intersection point is replaced by a replacement point.
In one embodiment, the determining whether the self-intersection point exists in the points to be processed, which is realized when the computer program is executed by the processor, comprises: acquiring an original point corresponding to a point to be processed; calculating a first vector of a current original point and a previous original point and a second vector of the current original point and a next original point; calculating a first cross product of the first vector and the second vector, and calculating a first vector product of the first cross product and a normal vector of the original point; calculating a third vector of a point to be processed and a previous point to be processed corresponding to the current original point, and a fourth vector of the point to be processed and a next point to be processed corresponding to the current original point; calculating a second cross product of the third vector and the fourth vector, and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point; and judging whether the self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
In one embodiment, the self-intersection points involved in the execution of the computer program by the processor include a previous self-intersection point and a next self-intersection point; a replacement point obtained from the intersection point, the computer program when executed by the processor, comprising: calculating a first connecting line of the previous self-intersection point and the last point to be processed, and a second connecting line of the next self-intersection point and the first point to be processed; and taking the intersection point of the first connecting line and the second connecting line as a replacement point of the self-intersection point.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of: generating an equidistant curve according to the equidistant curve generation method in the special-shaped curtain wall in any one embodiment; acquiring a transverse dividing line corresponding to the special-shaped curtain wall; and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. The method for generating the equidistant curve in the special-shaped curtain wall is characterized by comprising the following steps of:
acquiring a special-shaped curtain wall, an offset distance and a laying starting line;
sampling on the laying starting line to obtain a plurality of original points;
shifting the original point according to the shifting distance to obtain a plurality of points to be processed;
and generating an equidistant curve according to the points to be processed.
2. The method for generating equidistant curves in a special-shaped curtain wall according to claim 1, wherein the step of offsetting the original points according to the offset distance to obtain a plurality of points to be processed comprises the steps of:
acquiring a tangent plane of the original point;
mapping the original point to the tangent plane according to a preset mapping method to obtain a reference point, and enabling the distance between the original point and the reference point to be the offset distance;
acquiring adjacent original points of each original point, and determining the offset direction corresponding to the original points according to the adjacent original points;
and obtaining a point to be processed corresponding to the original point according to the offset direction and the offset distance.
3. The method for generating equidistant curves in a special-shaped curtain wall according to claim 2 is characterized in that said determining the offset direction of the corresponding original points according to said adjacent original points comprises:
obtaining a reference vector corresponding to the corresponding adjacent original point according to the adjacent original point and a reference point corresponding to the adjacent original point;
and calculating the offset direction corresponding to the original point according to the reference vector.
4. The method for generating an equidistant curve in a special-shaped curtain wall according to any one of claims 1 to 3, wherein after the original point is shifted according to the shift distance to obtain a plurality of points to be processed, the method further comprises:
judging whether the points to be processed have self-intersection points or not;
when the point to be processed has a self-intersection point, acquiring a replacement point of the self-intersection point;
replacing the self-intersection point by the replacement point.
5. The method for generating equidistant curves in a special-shaped curtain wall according to claim 4, wherein said determining whether there is a self-intersection point in said points to be processed comprises:
acquiring an original point corresponding to the point to be processed;
calculating first vectors of a current original point and a previous original point and second vectors of the current original point and a next original point;
calculating a first cross product of the first vector and the second vector, and calculating a first vector product of the first cross product and a normal vector of the original point;
calculating a third vector of a point to be processed and a previous point to be processed corresponding to the current original point, and a fourth vector of the point to be processed and a next point to be processed corresponding to the current original point;
calculating a second cross product of the third vector and the fourth vector, and calculating a second vector product of the second cross product and a normal vector of the point to be processed corresponding to the original point;
and judging whether a self-intersection point exists in the points to be processed according to the first vector product and the second vector product.
6. The method for generating equidistant curves in a profiled curtain wall as claimed in claim 4, wherein said self-intersection points comprise a previous self-intersection point and a subsequent self-intersection point; the obtaining of the replacement point of the self-intersection point includes:
calculating a first connecting line of the previous self-intersection point and the last point to be processed, and a second connecting line of the next self-intersection point and the first point to be processed;
and taking the intersection point of the first connecting line and the second connecting line as a replacement point of the self-intersection point.
7. The special-shaped curtain wall cutting method is characterized by comprising the following steps:
the equidistant curve generation method in the special-shaped curtain wall as claimed in any one of claims 1 to 6 generates an equidistant curve;
acquiring a transverse dividing line corresponding to the special-shaped curtain wall;
and segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
8. The utility model provides an equidistance curve device in special-shaped curtain, its characterized in that, equidistance curve device includes in the special-shaped curtain:
the data acquisition module is used for acquiring the special-shaped curtain wall, the offset distance and the laying line;
the sampling module is used for sampling on the starting and laying line to obtain a plurality of original points;
the offset module is used for offsetting the original points according to the offset distance to obtain a plurality of points to be processed;
and the first equidistant curve generating module is used for generating an equidistant curve according to the points to be processed.
9. The special-shaped curtain wall cutting device is characterized in that the special-shaped curtain wall cutting method comprises the following steps:
the second equidistant curve generation module is used for generating an equidistant curve according to the equidistant curve generation device of the special-shaped curtain wall as claimed in any one 8 of claims 1 to 6;
the transverse dividing line acquisition module is used for acquiring a transverse dividing line corresponding to the special-shaped curtain wall;
and the segmentation module is used for segmenting the special-shaped curtain wall according to the equidistant curve and the transverse segmentation line.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6 or 7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6 or 7.
CN202110537548.XA 2021-05-18 2021-05-18 Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device Pending CN115375700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110537548.XA CN115375700A (en) 2021-05-18 2021-05-18 Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110537548.XA CN115375700A (en) 2021-05-18 2021-05-18 Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device

Publications (1)

Publication Number Publication Date
CN115375700A true CN115375700A (en) 2022-11-22

Family

ID=84059453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110537548.XA Pending CN115375700A (en) 2021-05-18 2021-05-18 Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device

Country Status (1)

Country Link
CN (1) CN115375700A (en)

Similar Documents

Publication Publication Date Title
CN110543716B (en) Three-dimensional overhead cable hierarchical power grid optimization method, device and computer equipment
CN104535254B (en) A kind of external surface of buildings wind pressure measurement method
CN110263493A (en) A kind of room construction area calculation method and device based on REVIT
CN110363303B (en) Memory training method and device for intelligent distribution model and computer readable storage medium
CN112985413A (en) Scenic spot path planning method and device based on improved A-x algorithm
WO2020233063A1 (en) Intelligent path planning method and device, and computer readable storage medium
CN109388843B (en) Visualization system and method of truss antenna based on VTK (virtual terminal K), and terminal
WO2020233083A1 (en) Image restoration method and apparatus, storage medium, and terminal device
CN112991161A (en) Method and device for processing and dividing special-shaped curtain wall, computer equipment and storage medium
CN111368915A (en) Drawing verification method, device, equipment and storage medium
US10410386B2 (en) Table cell validation
CN113791425A (en) Radar P display interface generation method and device, computer equipment and storage medium
CN115375700A (en) Equidistant curve generation method in special-shaped curtain wall, and special-shaped curtain wall segmentation method and device
CN110968946B (en) Method and device for generating aluminous gusset plate suspended ceiling, computer equipment and storage medium
CN115049028B (en) Construction area partitioning method, system, terminal and medium based on unsupervised learning
CN111857627A (en) Graphic processing method, apparatus, device and storage medium
CN111210442A (en) Drawing image positioning and correcting method and device and electronic equipment
CN113962025B (en) Wing section optimization method and device for ultra-flat tail-free supersonic aircraft
CN112288759B (en) Boundary extraction method, device, equipment and storage medium
WO2020233052A1 (en) Intelligent path planning method, apparatus and device, and storage medium
CN113139218A (en) Method and device for drawing outer diameter side line of shield segment and computer equipment
CN114969872A (en) Drawing data processing method, device, equipment and medium
CN111159796A (en) Method and device for generating beam of building, computer equipment and storage medium
CN110704897A (en) Method for placing connecting node between wall keel model and bottom guide beam model and product
CN108021331B (en) Gap eliminating 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