CN112287434B - Building line segment generation method and device, computer equipment and storage medium - Google Patents

Building line segment generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112287434B
CN112287434B CN202011069597.7A CN202011069597A CN112287434B CN 112287434 B CN112287434 B CN 112287434B CN 202011069597 A CN202011069597 A CN 202011069597A CN 112287434 B CN112287434 B CN 112287434B
Authority
CN
China
Prior art keywords
building
line segment
roof
data
processing logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011069597.7A
Other languages
Chinese (zh)
Other versions
CN112287434A (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 CN202011069597.7A priority Critical patent/CN112287434B/en
Publication of CN112287434A publication Critical patent/CN112287434A/en
Application granted granted Critical
Publication of CN112287434B publication Critical patent/CN112287434B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a building line segment generation method, a building line segment generation device, computer equipment and a storage medium. The method comprises the following steps: receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; determining the position relation between the building roof and the building support column according to the roof data and the straight line data; acquiring processing logic corresponding to the position relation; and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support column in the building roof. By adopting the method, the generation efficiency of the building line segment can be improved.

Description

Building line segment generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a building line segment generation method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, it is becoming more and more important how to better apply computer technology to construction projects to improve the efficiency of construction projects.
In a conventional building project, an engineer needs to manually analyze and calculate building data and determine a building line segment corresponding to a building pillar according to experience in order to map the building pillar to a building roof corresponding to the building roof to draw building pillar mapping data such as a building line segment in the building roof or to generate the building pillar under the building roof.
Thus, the generation efficiency of the building line segment is low by a mode of manually analyzing the building data to obtain the building line segment.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium capable of improving the building line segment generation efficiency.
A building line segment generation method comprises the following steps:
receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support;
determining the position relation between the building roof and the building support column according to the roof data and the straight line data;
acquiring processing logic corresponding to the position relation;
and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support in the building roof.
In one embodiment, determining the positional relationship between the building roof and the building support column according to the roof data and the straight line data comprises:
acquiring the linear direction corresponding to the building support column from the linear data, and acquiring the facing quantity corresponding to the building roof from the roof data;
determining the number product of the linear direction and the surface vector;
and determining the position relation between the building roof and the building support column according to the quantity product.
In one embodiment, obtaining processing logic corresponding to the positional relationship comprises:
acquiring a building type identifier carried in a building line segment generation request;
and determining corresponding processing logic according to the building line segment type identifier and the position relation.
In one embodiment, the positional relationship comprises at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship; determining corresponding processing logic according to the building type identifier and the position relationship, wherein the processing logic comprises the following steps:
when the building type identification corresponds to a building strut generation identification and the position relationship corresponds to an intersection position relationship, acquiring building strut processing logic associated with the building strut generation identification;
and when the building type identifier corresponds to the mapping line segment generation identifier, respectively acquiring mapping processing logics associated with the mapping line segment generation identifier according to the position relationship.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building pillar in the building roof includes:
when the processing logic corresponds to the building pillar processing logic, extracting a position line end point from the straight line data;
acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point;
and obtaining a building line segment corresponding to the building pillar in the building roof according to the connecting line determined by the intersection point of the end point of the position line and the position of the intersection point.
In one embodiment, the determining of the position of the intersection includes:
extracting a first reference point from the straight line data, and determining a first line segment based on the first reference point and the intersection point;
extracting a second reference point from the roof data, and determining a second line segment based on the second reference point and the intersection point;
and extracting the vector corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the vector are consistent.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building pillar in the building roof includes:
when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the coplanar position relationship, taking the line segment corresponding to the straight line as the building line segment corresponding to the building roof;
when the processing logic corresponds to mapping processing logic and the position relationship corresponds to an intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and a position line endpoint and a plane vector;
and when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a parallel non-coplanar position relationship, acquiring a point on the building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and a position line end point and a plane vector, wherein the building roof comprises a house building section.
A building line segment generation method comprises the following steps:
acquiring building data to be processed;
and calling a preset functional interface to enable the functional interface to process the building data to be processed according to any one building line segment generation method to obtain the building line segment.
A building line segment generation apparatus, the apparatus comprising:
the receiving module is used for receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support;
the determining module is used for determining the position relation between the building roof and the building support column according to the roof data and the straight line data;
the acquisition module is used for acquiring processing logic corresponding to the position relation;
and the processing module is used for processing the linear data according to the processing logic to obtain a building line segment corresponding to the building pillar in the building roof.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the building line segment generation method in any of the above embodiments when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the building line segment generation method of any one of the above embodiments.
The building line segment generation method, the building line segment generation device, the computer equipment and the storage medium comprise the following steps: acquiring a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; determining the position relationship between the building roof and the building support column in the computer according to the roof data and the straight line data, and selecting corresponding processing logic according to the position relationship; and furthermore, the linear data can be subjected to adaptive processing according to processing logics corresponding to different position relations, so that the accuracy of processing the linear data is improved, and further, a building line segment corresponding to the building roof is generated according to the linear data. The final required building line segment is obtained through automatic computer processing and analysis in the whole process, and the efficiency of obtaining the building line segment is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for building line segment generation in one embodiment;
FIG. 2 is a flow diagram of a method for building line segment generation in one embodiment;
FIG. 3 is a schematic diagram of a method for determining the positional relationship of a straight line to a building roof according to one embodiment;
FIG. 4 is a schematic view of an under-roof building column according to one embodiment;
FIG. 5 is a schematic diagram of building line segments generated in a coplanar relationship provided in one embodiment;
FIG. 6 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the first embodiment;
FIG. 7 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the second embodiment;
FIG. 8 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the third embodiment;
FIG. 9 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the fourth embodiment;
FIG. 10 is a schematic diagram of building line segments generated in an intersecting position relationship as provided in the fifth embodiment;
FIG. 11 is a block diagram of a construction line segment generation apparatus in one embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an 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 building line segment generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 stores library files, the terminal 102 can call corresponding library files from the server 104 in the process of implementing the building line segment generating method, and specifically, corresponding building data to be processed can be input through a functional interface corresponding to the library files, so that the building data to be processed is automatically analyzed and processed according to an algorithm packaged in advance in the library files and output for generating corresponding building line segments, and the building line segment generating efficiency is greatly improved. For example, the terminal 102 receives a building segment generation request sent by a target object (which may be a user), where the building segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; automatically analyzing and processing the roof data and the linear data according to a library file introduced by the terminal 102 to determine the position relationship between the building roof and the building pillar; acquiring processing logic corresponding to the position relation; and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof, and generating a building support column under the building roof according to the building line segment or drawing corresponding building mapping data in a profile of the building roof. 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.
It should be noted that, in other embodiments, the building line segment generation method may also be implemented in a server, specifically, the server 104 receives a building line segment generation request, processes the acquired data according to an algorithm preset in the server, further determines a building line segment, and uses the building line segment to generate a building support under a building roof or draw corresponding building mapping data in a cross-sectional view of the building roof.
In an embodiment, as shown in fig. 2, a building line segment generating method is provided, which is described by taking an example that the method is applied to a terminal 102 in fig. 1, and specifically is implemented by a library file called in the terminal, and includes the following steps:
step S202, a building line segment generation request is received, and the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support.
Specifically, when the terminal receives a building line segment generation request sent by a user, the building line segment generation request is extracted from the building line segment generation request, and the building line segment generation request carries building data. The building data comprises roof data corresponding to the building roof and straight line data corresponding to the building support columns. Specifically, the building roof may include a house roof, the building pillars may include house cylinders, house walls, and the like, and accordingly, the roof data may correspond to a profile of the house roof, the line data may correspond to a cylinder mapping line corresponding to the house cylinders, and the line data may also correspond to a wall mapping line corresponding to the house walls, and the like.
And S204, determining the position relation between the building roof and the building support column according to the roof data and the straight line data.
Specifically, the roof data includes building roof attribute parameters, and the building roof attribute parameters may specifically be at least one or more of attribute parameters such as a position coordinate of the building roof, a direction vector of the building roof, a normal vector of the building roof, and any point on the building roof. The straight line data may include straight line attribute parameters, and the straight line attribute parameters may specifically be at least one or more of a position line endpoint corresponding to the straight line, a straight line direction, and the like, which are not limited herein.
Specifically, the terminal judges the position relation between the building roof and the building support column according to the roof data and the straight line data. The position relationship between the building roof and the building support column can comprise at least one of an intersecting position relationship, a parallel non-coplanar position relationship, a coplanar position relationship and the like. In a specific embodiment, the terminal can automatically judge the position relation between the building roof and the building support column according to a preset algorithm.
In one embodiment, the building roof is a cutting plane of a house roof, the straight line is a building pillar, and when the terminal determines that the cutting plane of the building pillar and the cutting plane of the house roof are in an intersecting position relationship, the intersection point position corresponding to the corresponding intersection point can be obtained.
In step S206, a processing logic corresponding to the positional relationship is acquired.
The processing logic refers to preset algorithm logic for processing the linear data to realize corresponding functions. For example, the processing logic may specifically include logic for processing how the line data is processed to implement the corresponding function, and for example, the processing logic may specifically be processing logic for converting the line data into the mapping data.
And, the terminal is associated with the processing logic corresponding to different position relations in advance, for example, the corresponding relation between the intersection position relation and the intersection processing logic, the corresponding relation between the parallel non-coplanar position relation and the parallel non-coplanar processing logic and the corresponding relation between the coplanar position relation and the coplanar processing logic are associated in advance. It is to be understood that the processing algorithms corresponding to different processing logics may be the same or different, and are not limited herein.
And S208, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof.
Specifically, the terminal obtains the current determined position relationship, obtains processing logic associated with the position relationship in advance, and processes the linear data according to the obtained processing logic to obtain a building line segment corresponding to the building roof. And the building line segment corresponding to the building roof is obtained by processing the linear data according to the processing logic. In one embodiment, the building line segment may be a mapping line segment obtained by mapping the linear data, such as a line segment on a cross-sectional view of a building roof that maps the building pillars. In another embodiment, the intersection point and the intersection point coordinates of the straight line in the straight line data and the building roof in the roof data can be obtained according to the processing logic, a target line segment is obtained according to the initial position point in the straight line data and the intersection point determined according to the processing logic, and the target line segment is used as the building line segment. The method can particularly correspond to a scene of generating a cylinder under a house building profile according to the building line segment.
The building line segment generation method comprises the following steps: acquiring a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; determining the position relationship between the building roof and the building support column in the computer according to the roof data and the straight line data, and selecting corresponding processing logic according to the position relationship; and furthermore, the linear data can be subjected to adaptive processing according to processing logics corresponding to different position relations, so that the accuracy of processing the linear data is improved, and further, a building line segment corresponding to the building roof is generated according to the linear data. The final required building line segment is obtained through automatic processing and analysis of the computer in the whole process, and the efficiency of obtaining the building line segment is improved.
In one embodiment, determining the positional relationship between the building roof and the building support column according to the roof data and the straight line data comprises: acquiring the linear direction corresponding to the building support column from the linear data, and acquiring the facing quantity corresponding to the building roof from the roof data; determining the number product of the linear direction and the surface vector; and determining the position relation between the straight line and the building roof according to the quantity product.
The linear direction may be a linear direction vector, and the orientation vector may be a normal vector of a building roof. Specifically, the terminal determines the position relation between the straight line and the building roof through the numerical value of the quantity product by calculating the quantity product of the straight line direction and the surface vector. Specifically, when the number product is corresponding to 0, the straight line and the building roof are judged to be perpendicular to each other, and then the position relationship between the straight line and the building roof is corresponding to an intersecting position relationship, otherwise, when the number product is not 0, the straight line and the building roof are judged to be in a parallel position relationship, wherein the parallel position relationship comprises a parallel non-coplanar position relationship and a coplanar position relationship.
Specifically, the terminal randomly takes one point in the building roof as s, randomly takes one point from the straight line as a second reference point, then judges the position relation between the connecting line from the first reference point to the second reference point and the facing quantity, if the position relation is vertical, the position relation between the straight line and the building roof is judged to be a coplanar position relation, and if not, the position relation between the straight line and the building roof is judged to be a parallel non-coplanar position relation.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating an embodiment of determining a positional relationship between a straight line and a building roof, in fig. 3, first, it is determined whether a normal vector (faceNormal) of the building roof is perpendicular to a direction vector (linedirection) of a building pillar, that is, whether a product of numbers (faceNormal and linedirection) is 0. If the straight line is vertical, the straight line and the building roof have certain intersection points, and if the straight line is not vertical, the straight line is judged to be parallel to the building roof. And then judging whether a vector from one point on the building roof, such as a first reference point, to a point on the straight line, such as a second reference point, and a plane normal vector are vertical, if so, judging that the straight line is in a coplanar position relation in the building roof, otherwise, judging that the straight line is parallel to the building roof and is not in a plane, namely, the straight line is in a non-coplanar position relation.
In one embodiment, the determining of the position of the intersection includes: extracting a first reference point from the straight line data, and determining a first line segment based on the first reference point and the intersection point; extracting a second reference point from the roof data, and determining a second line segment based on the second reference point and the intersection point; and extracting the facing quantity corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the facing quantity are consistent.
With continued reference to FIG. 3, in FIG. 3, a relational equation is constructed using the projection of the line segment pl-plts to the normal vector (faceNormal) of the building roof, which is equal to the normal vector (faceNormal) of the line segment p1-pfOri to the reference plane, both being the length of the line segment pl-pf. Specifically, the equation is plplplpts. faceNormal/| faceNormal | ═ plpfOri. faceNormal/| faceNormal |, and then the equation is multiplied by | faceNormal |, so that the quantity product of pl-plts and faceNormal is equal to the quantity product of pl-pfOri and faceNormal. Let the length of line segment pl-plts be t, then t is linear direction & face normal (pl-pfOri & face normal), t is p1-pfOri & face normal/(linear direction & face normal), and because plts is p1+ t linear direction, the available plts is substituted into pl + ((pfOri-pl) face/linear direction & face normal).
In one embodiment, obtaining processing logic corresponding to the positional relationship includes: acquiring a building type identifier carried in a building line segment generation request; and determining corresponding processing logic according to the building line segment type identifier and the position relation.
The building type identifier is used for uniquely identifying a request type, specifically, the building type identifier may include a building support generation identifier and a mapping line segment generation identifier, where the building support generation identifier is an identifier for requesting generation of a support, and specifically, may be a request for generating a building support in a building roof according to straight line data. The mapping line segment generation identifier is an identifier for generating a mapping line segment, and specifically may be a request for generating a mapping line segment in a building roof according to the straight line data.
Specifically, different building type identifiers and corresponding relations between different position relations and processing logics are associated in advance in the terminal, and then in the subsequent steps, the corresponding processing logics can be directly searched according to the specific building type identifiers and the position relations, and processing of straight line data is achieved according to the corresponding processing logics, so that building line segments corresponding to the building roof are generated from straight lines.
In one embodiment, the positional relationship includes at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship. Determining corresponding processing logic according to the building type identifier and the position relationship, wherein the processing logic comprises the following steps: when the building type identification corresponds to a building strut generation identification and the position relationship corresponds to an intersection position relationship, acquiring building strut processing logic associated with the building strut generation identification; and when the building type identifier corresponds to the mapping line segment generation identifier, respectively acquiring mapping processing logics associated with the mapping line segment generation identifier according to the position relationship.
Specifically, when the building type identifier corresponds to a building strut generation identifier and the position relationship corresponds to an intersection position relationship, the building strut processing logic associated with the building strut generation identifier is obtained. In one embodiment, when the building type identifier corresponds to the building support column generation identifier, the step of obtaining the building support column processing logic associated with the building support column generation identifier is performed only when the position relationship corresponds to the intersecting position relationship, and the step of obtaining the building support column processing logic associated with the building support column generation identifier is not performed when the position relationship corresponds to the other non-intersecting position relationship, or it can be understood that the building support column cannot be generated under the building roof in the state of the other non-intersecting position relationship, so that a prompt that the building support column generation does not meet the condition can be output. In other embodiments, if the positional relationship corresponds to a non-intersecting positional relationship, the building support column may be generated, and the building support column may be in the plane of the building roof or parallel to the building roof but not in the plane of the building roof.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof includes: when the processing logic corresponds to the building pillar processing logic, extracting a position line end point from the straight line data; acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point; and obtaining the building support corresponding to the straight line in the building roof according to the connecting line determined by the intersection point of the line end point and the intersection point position.
Referring to fig. 4, fig. 4 is a schematic diagram of a building support column generated under a building roof according to an embodiment, and as can be seen from fig. 4, a position line endpoint may specifically be a bottom endpoint of the building support column, and an intersection point is specifically an intersection point of the building support column and the building roof, when an intersection point position where the intersection point is located is obtained, a corresponding building line segment may be generated by connecting the position line endpoint and the intersection point, and the building line segment is used as a mapping line segment corresponding to the building support column.
A building line segment generation method comprises the following steps: acquiring building data to be processed; and calling a preset functional interface to enable the functional interface to process the building data to be processed according to the building line segment generation method in any one of the embodiments to obtain the building line segment.
In specific application scenario, in the current development and design, when the pillars are placed below the building roof, the intersection points of the pillars and the building roof need to be calculated, at the moment, developers need to think, design and implement by themselves, and the generation efficiency of the pillars is reduced. In addition, in the process, problems such as vulnerability and low execution efficiency may exist, and the working time of developers is increased and the development efficiency is reduced.
In the present application, a unified functional interface may also be provided, and an algorithm for determining a position relationship between a building roof and a building support is pre-packaged in the functional interface, so that each time a developer only needs to transmit building data into the interface, such as a bottom end point of a position line of the building support, an extending direction of the building support, a normal vector of the building roof, and a part or all of parameters at any point on the building roof, that is, corresponding building data may be automatically processed in the functional interface, and then a position relationship between the building roof and the building support may be output, where a specific position relationship between the building support and the roof may include: integer 0 corresponds to the case of one intersection, integer 1 corresponds to the building column being parallel to the building roof and not in the building roof, and integer 2 corresponds to the building column being in the building roof. Further, when the building column intersects the building roof, the output intersection point may be connected to the bottom end point of the location line of the building column to generate a location line segment of the column, and an instance of the building column may be generated from the location line segment. Through providing the crossing algorithm of judgement line face in this application to encapsulate to the interface in, make the developer only need spread into the parameter that this technical interface needs, can return line face relative position information, and generate specific building pillar, greatly improved the judgement efficiency of line face position relation, and the generation efficiency of building pillar.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof includes: and when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the coplanar position relationship, taking the line segment corresponding to the straight line as the building line segment corresponding to the building roof, wherein the building roof comprises a house building section.
Specifically, as shown in fig. 5, fig. 5 is a schematic diagram of building line segments generated under a coplanar position relationship provided in an embodiment. In fig. 5, p11 and p12 are the starting end point and the ending end point of the line segment corresponding to the straight line, respectively. When the request identifier carried in the building line segment generation request is the mapping line segment generation identifier, it indicates that the service requirement at this time is to map the building line segment into the building roof so as to draw a mapping map of the building line segment in the building roof, so that the terminal calls the mapping processing logic library at this time, and calls the processing logic of the corresponding position type from the mapping processing logic according to the position relationship between the building line segment and the building roof. In one embodiment, when the position relationship between the straight line and the building roof corresponds to a coplanar position relationship, the terminal calls the coplanar processing logic from the mapping processing logic library, and takes the line segment corresponding to the straight line as the building line segment corresponding to the building roof according to the coplanar processing logic, that is, the mapping data of the building roof in the house building section at this time is the building line segment.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof includes: and when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and the end point of the position line and a plane vector, wherein the building roof comprises a house building profile.
Specifically, when a graph is drawn on a house building sectioning surface, an algorithm that a straight line is projected to a building roof from the outside in the normal direction needs to be used, that is, all line segments on the graph are projected to the outside in the sectioning surface direction, and the obtained graph is the graph of the original graph projected to the surface.
Specifically, referring to fig. 6, fig. 6 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the first embodiment. In one embodiment, when the line segment has only one intersection point with the building roof, the intersection point is recorded as the pts, and the building line segment corresponding to the straight line on the building roof is determined by calculating the included angle between the vector from the pts to the origin-destination point (the origin and the terminal) of the line segment and the surface normal. Specifically, if the included angles α are all smaller than 90 degrees, which indicates that the origin-destination points of the line segments are all on the same side of the building roof, the projection of the line segment to the building roof is the line segment connecting the origin-destination points to the projection of the building roof, and specifically, the building line segment is pf2-pf1 in fig. 6.
In another embodiment, when the line segment has only one intersection point with the building roof, the intersection point is recorded as the pts, and the building line segment corresponding to the straight line on the building roof is determined by calculating the included angle between the vector from the pts to the origin-destination point (the origin and the terminal) of the line segment and the surface normal. Specifically, if the included angle β is greater than 90 degrees and the included angle α is smaller than 90 degrees, a line segment formed by connecting the projection of a point smaller than 90 degrees on the building roof and the hits is taken as a building line segment. As shown in fig. 7, fig. 7 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the second embodiment. In FIG. 7, the line segment corresponding to the line segment pITS-pf1 is a building line segment on the building roof.
In another embodiment, as shown in fig. 8, fig. 8 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the third embodiment. Specifically, when only one intersection point exists between the line segment and the building roof, the intersection point is recorded as the pITS, and the building line segment corresponding to the straight line on the building roof is determined by calculating the included angle between the vector from the pITS to the origin-destination point (the starting point and the terminal) of the line segment and the surface normal direction. Specifically, if both angles β are greater than 90 degrees, then this line segment is on the side where no projection is needed, and the result is discarded. In FIG. 8, the calculated line segments pf1-pf2 are truncated.
In one embodiment, processing the linear data according to the processing logic to obtain a building line segment corresponding to the building roof includes: and when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a parallel non-coplanar position relationship, acquiring a point on the building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and a position line end point and a plane vector, wherein the building roof comprises a house building section.
Fig. 9 is a schematic diagram of building line segments generated under an intersecting position relationship provided in the fourth embodiment. Fig. 10 is a schematic diagram of building line segments generated in an intersecting position relationship provided in the fifth embodiment. In fig. 9, when a line segment is parallel to the building roof but not in the building roof, the terminal determines an included angle between a vector from a first reference point on the building roof to a line segment origin-destination point and a normal vector of the building roof, if the included angles are all smaller than 90 degrees, a projection from the line segment to the building roof is a line segment connecting the projection from the origin-destination point to the building roof, and the line segment in fig. 9 specifically corresponds to building line segments pf1-pf 2. Otherwise, the segment is determined to be on the side where projection is not required, and the result is discarded, as shown in FIG. 10, where the calculated segment pf1-pf2 is discarded in FIG. 10.
A building line segment generation method comprises the following steps: acquiring building data to be processed; and calling a preset functional interface to enable the functional interface to process the building data to be processed according to the building line segment generation method in any one of the embodiments to obtain the building line segment.
In a specific application scenario, in the current development and design, a mapping line segment is often drawn in a building house profile, and the mapping line segment of the line segment in the profile needs to be calculated, so that a developer needs to think, design and implement the mapping line segment by himself or herself, and the efficiency of drawing the mapping line segment in the roof profile is reduced. In addition, there may be some problems such as bugs and low execution efficiency, and disadvantages such as increasing the working time of developers and reducing the development efficiency.
In the application, a unified functional interface can be further provided, and an algorithm for determining the position relationship between the line segment and the building roof is pre-packaged in the functional interface, so that developers only need to transmit building data into the interface at each time, such as any point (a starting point or an end point) on the line segment, one or more of a line segment direction vector, a sectioning plane normal vector and any point on the sectioning plane, and then corresponding building data can be automatically processed in the functional interface, and the position relationship between the building roof and the line segment is further output, and the specific position relationship between the building roof and the line segment can include: integer 0 corresponds to the case of one intersection, integer 1 corresponds to a line segment parallel to and not in the plane, and integer 2 corresponds to a line segment in the plane. Furthermore, the functional interface may be pre-packaged with an algorithm of mapping logic of corresponding line segments in the building roof under different position relationships, so that each time a developer needs to transmit building data into the interface, such as any point (starting point or end point) on the line segment, one or more of a line segment direction vector, a sectioning plane normal vector, and any point on the sectioning plane, the corresponding building data can be automatically processed in the functional interface, and further the position relationship between the building roof and the line segment can be output. And determining corresponding mapping processing logic according to the position relation, and mapping the line segments into the building roof according to the corresponding mapping processing logic so as to realize self-adaptive drawing of the corresponding mapping graph in the building roof. The judging efficiency of the line-surface position relation is greatly improved, and the efficiency of drawing the mapping line segment in the building roof is improved.
It should be understood that, although the steps in the flowchart of fig. 2 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 a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 11, there is provided a building line segment generating apparatus, which may be a part of a computer device using a software module or a hardware module, or a combination of the two, and specifically includes:
the receiving module 1102 is configured to receive a building line segment generation request, where the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building strut;
the determining module 1104 is configured to determine a position relationship between the building roof and the building support column according to the roof data and the straight line data;
an obtaining module 1106, configured to obtain processing logic corresponding to the position relationship;
and the processing module 1108 is configured to process the linear data according to the processing logic to obtain a building line segment corresponding to the building pillar in the building roof.
In one embodiment, the determining module 1104 is further configured to obtain a linear direction corresponding to the building support from the linear data, and obtain a facing quantity corresponding to the building roof from the roof data; determining the number product of the linear direction and the surface vector; and determining the position relation between the building roof and the building support column according to the quantity product.
In one embodiment, the obtaining module 1106 is further configured to obtain a building type identifier carried in the building segment generation request; and determining corresponding processing logic according to the building line segment type identifier and the position relation.
In one embodiment, the positional relationship comprises at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship; the obtaining module 1106 is further configured to obtain a building pillar processing logic associated with the building pillar generation identifier when the building type identifier corresponds to the building pillar generation identifier and the position relationship corresponds to an intersecting position relationship; and when the building type identifier corresponds to the mapping line segment generation identifier, respectively acquiring mapping processing logics associated with the mapping line segment generation identifier according to the position relationship.
In one embodiment, the processing module 1108 is further configured to extract the location line end points from the straight line data when the processing logic corresponds to building prop processing logic; acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point; and obtaining a building line segment corresponding to the building support in the building roof according to the connecting line determined by the intersection point of the end point of the position line and the position of the intersection point.
In one embodiment, the processing module 1108 is further configured to extract a first reference point from the straight line data, and determine a first line segment based on the first reference point and the intersection point; extracting a second reference point from the roof data, and determining a second line segment based on the second reference point and the intersection point; and extracting the facing quantity corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the facing quantity are consistent.
In one embodiment, the processing module 1108 is further configured to, when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the coplanar position relationship, take a line segment corresponding to the straight line as a building line segment corresponding to the building roof; when the processing logic corresponds to mapping processing logic and the position relationship corresponds to an intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and a position line endpoint and a plane vector; and when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a parallel non-coplanar position relationship, acquiring a point on the building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and a position line end point and a plane vector, wherein the building roof comprises a house building section.
A building line segment generation apparatus comprising:
and the data acquisition module is used for acquiring the building data to be processed.
And the interface calling module is used for calling a preset functional interface so that the functional interface processes the building data to be processed according to any one of the building line segment generation methods to obtain the building line segment.
For the specific definition of the building line segment generation device, reference may be made to the above definition of the building line segment generation method, which is not described herein again. The modules in the building line segment generation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from 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. 12. 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 operation of an operating system and computer programs in 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 implement a building line segment generation method. 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.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. 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 operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a building line segment generation method. 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 a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program implementing: receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; determining the position relation between the building roof and the building support column according to the roof data and the straight line data; acquiring processing logic corresponding to the position relation; and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support in the building roof.
In one embodiment, the processor when executing the computer program performs the step of determining the positional relationship between the building roof and the building support from the roof data and the line data further comprises: acquiring the linear direction corresponding to the building support column from the linear data, and acquiring the facing quantity corresponding to the building roof from the roof data; determining the number product of the linear direction and the surface vector; and determining the position relation between the building roof and the building support column according to the quantity product.
In one embodiment, the processor when executing the computer program further performs the step of obtaining processing logic corresponding to the position relationship: acquiring a building type identifier carried in a building line segment generation request; and determining corresponding processing logic according to the building line segment type identifier and the position relation.
In one embodiment, the positional relationship comprises at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship; when the processor executes the computer program, the processor is further configured to determine the corresponding processing logic according to the building type identifier and the position relationship: when the building type identification corresponds to a building strut generation identification and the position relationship corresponds to an intersection position relationship, acquiring building strut processing logic associated with the building strut generation identification; and when the building type identifier corresponds to the mapping line segment generation identifier, respectively acquiring mapping processing logics associated with the mapping line segment generation identifier according to the position relationship.
In one embodiment, the processor, when executing the computer program, performs the step of processing the linear data according to the processing logic, and obtaining the building line segment corresponding to the building support in the building roof, further performs the steps of: when the processing logic corresponds to the building pillar processing logic, extracting a position line end point from the straight line data; acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point; and obtaining a building line segment corresponding to the building support in the building roof according to the connecting line determined by the intersection point of the end point of the position line and the position of the intersection point.
In one embodiment, the processor when executing the computer program performs the determining of the location of the intersection in a manner further configured to: extracting a first reference point from the straight line data, and determining a first line segment based on the first reference point and the intersection point; extracting a second reference point from the roof data, and determining a second line segment based on the second reference point and the intersection point; and extracting the facing quantity corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the facing quantity are consistent.
In one embodiment, the processor, when executing the computer program, performs the step of processing the linear data according to the processing logic to obtain the corresponding building line segment of the building support on the building roof, and further: when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the coplanar position relationship, taking the line segment corresponding to the straight line as the building line segment corresponding to the building roof; when the processing logic corresponds to mapping processing logic and the position relationship corresponds to an intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and a position line endpoint and a plane vector; and when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a parallel non-coplanar position relationship, acquiring a point on the building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and a position line end point and a plane vector, wherein the building roof comprises a house building section.
In one embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program implementing: acquiring building data to be processed; and calling a preset functional interface to enable the functional interface to process the building data to be processed according to any one building line segment generation method to obtain the building line segment.
In one embodiment, a computer readable storage medium is provided, storing a computer program that when executed by a processor implements: receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support; determining the position relation between the building roof and the building support column according to the roof data and the straight line data; acquiring processing logic corresponding to the position relation; and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support in the building roof.
In one embodiment, the computer program when executed by the processor performs the step of determining the positional relationship between the building roof and the building columns based on the roof data and the line data further comprises: acquiring the linear direction corresponding to the building support column from the linear data, and acquiring the facing quantity corresponding to the building roof from the roof data; determining the number product of the linear direction and the surface vector; and determining the position relation between the building roof and the building support column according to the quantity product.
In one embodiment, the computer program when executed by the processor performs the step of obtaining processing logic corresponding to the positional relationship further comprising: acquiring a building type identifier carried in a building line segment generation request; and determining corresponding processing logic according to the building line segment type identification and the position relation.
In one embodiment, the positional relationship comprises at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship; the computer program, when executed by the processor, further performs the following steps when determining the corresponding processing logic according to the building type identifier and the location relationship: when the building type identification corresponds to a building strut generation identification and the position relationship corresponds to an intersection position relationship, acquiring building strut processing logic associated with the building strut generation identification; and when the building type identifier corresponds to the mapping line segment generation identifier, respectively acquiring mapping processing logics associated with the mapping line segment generation identifier according to the position relationship.
In one embodiment, the computer program when executed by the processor performs the step of processing the straight line data according to the processing logic, and obtaining the building line segment corresponding to the building pillar in the building roof further comprises: when the processing logic corresponds to the building pillar processing logic, extracting a position line end point from the straight line data; acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point; and obtaining a building line segment corresponding to the building support in the building roof according to the connecting line determined by the intersection point of the end point of the position line and the position of the intersection point.
In one embodiment, the computer program when executed by the processor performs the determining the location of the intersection by further: extracting a first reference point from the straight line data, and determining a first line segment based on the first reference point and the intersection point; extracting a second reference point from the roof data, and determining a second line segment based on the second reference point and the intersection point; and extracting the facing quantity corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the facing quantity are consistent.
In one embodiment, the computer program when executed by the processor performs the step of processing the straight line data according to the processing logic to obtain the corresponding building line segment of the building support on the building roof, and further: when the processing logic corresponds to the mapping processing logic and the position relationship corresponds to the coplanar position relationship, taking the line segment corresponding to the straight line as the building line segment corresponding to the building roof; when the processing logic corresponds to mapping processing logic and the position relationship corresponds to an intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and a position line endpoint and a plane vector; and when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a parallel non-coplanar position relationship, acquiring a point on the building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and a position line end point and a plane vector, wherein the building roof comprises a house building section.
In one embodiment, a computer readable storage medium is provided, storing a computer program that when executed by a processor implements: acquiring building data to be processed; and calling a preset functional interface to enable the functional interface to process the building data to be processed according to any one building line segment generation method to obtain the building line segment.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
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 can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can 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 storage, 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, which falls 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. A building line segment generation method, the method comprising:
receiving a building line segment generation request, wherein the building line segment generation request carries roof data corresponding to a building roof and straight line data corresponding to a building support;
determining the position relation between the building roof and the building support column according to the roof data and the straight line data;
acquiring processing logic corresponding to the position relation;
and processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support column in the building roof.
2. The method of claim 1, wherein said determining the positional relationship between said building roof and said building column from said roof data and said line data comprises:
acquiring a linear direction corresponding to the building support column from the linear data, and acquiring a corresponding orientation of the building roof from the roof data;
determining a number product of the linear direction and the surface vector;
and determining the position relation between the building roof and the building support column according to the quantity product.
3. The method of claim 1, wherein obtaining processing logic corresponding to the positional relationship comprises:
acquiring a building type identifier carried in the building line segment generation request;
and determining corresponding processing logic according to the building line segment type identifier and the position relation.
4. The method of claim 3, wherein the positional relationship comprises at least one of an intersecting positional relationship, a parallel non-coplanar positional relationship, and a coplanar positional relationship; the determining the corresponding processing logic according to the building type identifier and the position relationship includes:
when the building type identification corresponds to a building strut generation identification and the position relationship corresponds to an intersection position relationship, acquiring building strut processing logic associated with the building strut generation identification;
and when the building type identifier corresponds to a mapping line segment generation identifier, respectively acquiring mapping processing logic associated with the mapping line segment generation identifier according to the position relationship.
5. The method of claim 4, wherein said processing the line data according to the processing logic to obtain the corresponding building line segment of the building support in the building roof comprises:
when the processing logic corresponds to building pillar processing logic, extracting position line end points from the straight line data;
acquiring an intersection point corresponding to the straight line and the building roof and an intersection point position corresponding to the intersection point;
and obtaining a building line segment corresponding to the building support column in the building roof according to a connecting line determined by the intersection point of the line end point and the intersection point position.
6. The method of claim 5, wherein the determining the intersection location comprises:
extracting a first reference point from the straight line data, and determining a first line segment based on the first reference point and the intersection point;
extracting a second reference point from the roofing data, and determining a second line segment based on the second reference point and the intersection point;
and extracting the facing quantity corresponding to the building roof from the roof data, and determining the intersection point position corresponding to the intersection point based on the principle that the projections of the first line segment and the second line segment on the facing quantity are consistent.
7. The method of claim 4, wherein said processing said line data according to said processing logic to obtain a corresponding building line segment of said building column in said building roof comprises:
when the processing logic corresponds to mapping processing logic and the position relationship corresponds to a coplanar position relationship, taking the line segment corresponding to the straight line as a building line segment corresponding to the building roof;
when the processing logic corresponds to mapping processing logic and the position relationship corresponds to an intersection position relationship, acquiring an intersection point corresponding to the straight line and the building roof, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the intersection point and the position line end point and a plane vector;
and when the processing logic correspondence is mapping processing logic and the position relationship correspondence is a parallel non-coplanar position relationship, acquiring a point on a building roof as a reference point, and determining a building line segment corresponding to the straight line on the building roof according to an included angle between a connecting line of the reference point and the position line end point and the plane vector, wherein the building roof comprises a house building section.
8. A building line segment generation method, characterized by comprising:
acquiring building data to be processed;
calling a preset functional interface to enable the functional interface to process the building data to be processed according to the building line segment generation method of any one of claims 1 to 7 to obtain a building line segment.
9. A building line segment generation apparatus, the apparatus comprising:
the system comprises a receiving module, a generating module and a processing module, wherein the receiving module is used for receiving a building line segment generating request, and the building line segment generating request carries roof data corresponding to a building roof and straight line data corresponding to a building strut;
the determining module is used for determining the position relation between the building roof and the building support column according to the roof data and the straight line data;
the acquisition module is used for acquiring processing logic corresponding to the position relation;
and the processing module is used for processing the linear data according to the processing logic to obtain a building line segment corresponding to the building support column in the building roof.
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 7 or 8.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7 or 8.
CN202011069597.7A 2020-09-30 2020-09-30 Building line segment generation method and device, computer equipment and storage medium Active CN112287434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011069597.7A CN112287434B (en) 2020-09-30 2020-09-30 Building line segment generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011069597.7A CN112287434B (en) 2020-09-30 2020-09-30 Building line segment generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112287434A CN112287434A (en) 2021-01-29
CN112287434B true CN112287434B (en) 2022-05-27

Family

ID=74422095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011069597.7A Active CN112287434B (en) 2020-09-30 2020-09-30 Building line segment generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112287434B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737934A (en) * 2019-09-06 2020-01-31 久瓴(上海)智能科技有限公司 Method and device for generating tiger window roof truss nodes and storage medium
CN111079213A (en) * 2019-11-22 2020-04-28 久瓴(上海)智能科技有限公司 Roof structure generation method and device for building, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8977520B2 (en) * 2010-10-21 2015-03-10 Pictometry International Corp. Computer system for automatically classifying roof elements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737934A (en) * 2019-09-06 2020-01-31 久瓴(上海)智能科技有限公司 Method and device for generating tiger window roof truss nodes and storage medium
CN111079213A (en) * 2019-11-22 2020-04-28 久瓴(上海)智能科技有限公司 Roof structure generation method and device for building, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112287434A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN110445637B (en) Event monitoring method, system, computer device and storage medium
CN111079263A (en) Building main body structure generation method and device, computer equipment and storage medium
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
CN112287430B (en) Building wall generation method and device, computer equipment and storage medium
CN110837956A (en) Underground cable inspection task distribution method and device
CN112131331B (en) Map data processing method, map data processing device, computer equipment and storage medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN111161202A (en) Vehicle behavior information acquisition method and device, computer equipment and storage medium
CN110659092A (en) Webpage screenshot method and device, computer equipment and storage medium
CN108241516B (en) Embedded system program loading method and device, computer equipment and storage medium
CN111739136B (en) Rendering method, computer device, and storage medium
CN112182886A (en) Engineering model generation method and device, computer equipment and storage medium
CN112287434B (en) Building line segment generation method and device, computer equipment and storage medium
CN112287429A (en) Building target area determination method and device, computer equipment and storage medium
CN112287432A (en) Target area acquisition method and device, computer equipment and storage medium
CN110163183B (en) Target detection algorithm evaluation method and device, computer equipment and storage medium
CN111008311A (en) Complex network node importance evaluation method and device based on neighborhood weak connection
CN110659376A (en) Picture searching method and device, computer equipment and storage medium
CN110134475B (en) Method and device for displaying interface parameter configuration, computer equipment and storage medium
CN112287428B (en) Building wall generation method and device, computer equipment and storage medium
CN115933946A (en) Page jump method, device, computer equipment and storage medium
CN111145583A (en) Parking space model checking method and device, computer equipment and storage medium
CN109189273B (en) Touch event processing method and device, computer equipment and storage medium
CN111125809A (en) Building steel column generation method and device, computer equipment and storage medium
CN110544306A (en) three-dimensional terrain data acquisition method and device, computer equipment and storage medium

Legal Events

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