CN112199754B - Coordinate positioning method and device, storage medium and electronic equipment - Google Patents

Coordinate positioning method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112199754B
CN112199754B CN202011194020.9A CN202011194020A CN112199754B CN 112199754 B CN112199754 B CN 112199754B CN 202011194020 A CN202011194020 A CN 202011194020A CN 112199754 B CN112199754 B CN 112199754B
Authority
CN
China
Prior art keywords
vector
origin
target
building section
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011194020.9A
Other languages
Chinese (zh)
Other versions
CN112199754A (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 CN202011194020.9A priority Critical patent/CN112199754B/en
Publication of CN112199754A publication Critical patent/CN112199754A/en
Application granted granted Critical
Publication of CN112199754B publication Critical patent/CN112199754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Civil Engineering (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Architecture (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a coordinate positioning method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: displaying an original point of the first object and a building section in the target display interface, wherein the original point is any point in an original line segment contained in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points. The method solves the technical problem that the labeling coordinates of the building section cannot be accurately known in the related art.

Description

Coordinate positioning method and device, storage medium and electronic equipment
Technical Field
The invention relates to the field of building aided design, in particular to a coordinate positioning method and device, a storage medium and electronic equipment.
Background
In the field of building assistance design, a cross-sectional view of a building is generally used, which is used to represent the structure or construction of the interior of a house, such as roof (building, floor) form, layering, materials, practices, height dimensions, and connection of various locations. The cross-sectional view is generally obtained by projecting the roof onto a certain cross-sectional plane, and the projection of the line segment is mainly obtained by projecting points, and the projection of the whole roof view is obtained according to the projection of the line segment, so that the data such as the thickness of the roof, the width of the beam, the height of the beam and the like in the house can be further obtained. In the related art, when the coordinate positioning is performed after the roof is cut, a large amount of data calculation is required, and the accuracy of the positioning result is not high, so that certain errors exist in the positioning marking of the whole roof (building and ground); in addition, when building design is performed, data such as roof (building and ground) forms, height dimensions and connection of all parts cannot be accurately known, so that engineering quantity cannot be accurately determined, and the problem of low working efficiency is caused when floor and roof construction, door and window installation and interior decoration of all layers are guided.
Aiming at the problem that the coordinate positioning of the building section cannot be accurately known, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a coordinate positioning method and device, a storage medium and electronic equipment, which at least solve the technical problem that the coordinate positioning of a building section cannot be accurately known in the related art.
According to an aspect of an embodiment of the present invention, there is provided a coordinate positioning method including: displaying an original point of a first object and a building section on a target display interface, wherein the original point is any point of an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: an origin of the building section, and a unit normal vector of the building section; acquiring a first vector from a coordinate origin to an original point and a second vector from the coordinate origin to the original point; the origin of coordinates is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector on the unit normal vector for determining the first vector and the second vector through a preset rule; determining the coordinate information of the target mapping point of the building section of the original point based on the coordinate information of the target vector; and displaying the target mapping points on the target display interface according to the coordinate information of the target mapping points.
According to another aspect of the embodiment of the present invention, there is also provided a coordinate positioning apparatus including: the first display unit is configured to display, on a target display interface, an origin of a first object and a building section, where the origin is any one of original line segments included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building section, and a unit normal vector of the building section; a first obtaining unit configured to obtain a first vector from an origin of coordinates to the origin, and a second vector from the origin of coordinates to the origin; the origin of coordinates is the origin of a three-dimensional coordinate system displayed in the target display interface; a second obtaining unit configured to obtain a sum of the first vector and an offset vector, and take the sum of the first vector and the offset vector as a target vector, where the offset vector is an offset vector that determines, by a preset rule, that the first vector and the second vector are both on the unit normal vector; a first determining unit, configured to determine coordinate information of a target mapping point of the original point on the building section based on coordinate information of the target vector; and the second display unit is used for displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described coordinate positioning method when run.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the coordinate positioning method described above by the computer program.
In the embodiment of the present invention, an original point and a building section of a first object are displayed in a target display interface, where the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
Obtaining the sum of the first vector and the offset vector by obtaining the first vector from the origin of coordinates to the original point and the second vector from the origin of coordinates to the origin of coordinates, and taking the sum of the first vector and the offset vector as a target vector; then, based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; the target mapping points are displayed in the target display interface according to the coordinate information of the target mapping points, so that the profile parameter information of a building can be accurately obtained when the building is designed, the engineering quantity can be accurately determined, and the working efficiency is improved. The technical problem that the coordinate positioning of the building section cannot be accurately known in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative coordinate positioning method according to embodiments of the present invention;
FIG. 2 is a schematic illustration of a flow of an alternative coordinate positioning method according to embodiments of the present invention;
FIG. 3 is a schematic illustration of a building section of an alternative coordinate positioning method according to embodiments of the present invention;
FIG. 4 is a schematic diagram of an alternative coordinate positioning method object display interface according to embodiments of the present invention;
FIG. 5 is a schematic diagram of a target display interface of another alternative coordinate positioning method according to embodiments of the present invention;
FIG. 6 is a schematic diagram of a target display interface for yet another alternative coordinate positioning method according to embodiments of the present invention;
FIG. 7 is a schematic diagram of a target display interface for yet another alternative coordinate positioning method according to embodiments of the present invention;
FIG. 8 is a schematic diagram of an alternative coordinate positioning apparatus according to embodiments of the present invention;
fig. 9 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a coordinate positioning method, optionally, as an alternative implementation, the above-mentioned coordinate positioning method may be applied, but not limited to, in the environment as shown in fig. 1.
In fig. 1, the electronic terminal 104 is responsible for human-computer interaction with the user 102, and the electronic terminal 104 includes a memory 106, a processor 108 and a display 110; the memory 106 stores the origin of the first object and the building profile. The electronic terminal 104 may interact with a background server 114 through a network 112. Server 114 includes a database 116 and a processing engine 118. The electronic terminal 104 determines coordinate information of a target mapping point of an original point of the first object on the building section; the target map point is displayed in the display 110 of the electronic terminal 104 according to the coordinate information of the target map point.
Alternatively, in this embodiment, the electronic terminal 104 may be a terminal device configured with a target service end, and the electronic terminal 104 may include, but is not limited to, at least one of the following: a mobile phone (e.g., an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, and the like. The target server may be a video server, an instant messaging server, a browser server, an educational server, etc. The network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communications. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and is not limited in any way in the present embodiment.
Optionally, as an optional embodiment, as shown in fig. 2, the above coordinate positioning method includes:
S202, displaying an original point and a building section of a first object in a target display interface, wherein the original point is any point in an original line segment contained in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: an origin of the building profile, a unit normal vector of the building profile;
s204, a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin are obtained; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
s206, obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector which determines the unit normal vector of the first vector and the second vector through a preset rule;
s208, determining coordinate information of a target mapping point of the original point on the building section based on the coordinate information of the target vector;
s210, displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
In step S202, in actual application, the target display interface may be an electronic display interface of a mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc., which is not limited herein; the first object may be a contour of a building constructed in the target display interface, the first object being composed of a plurality of original line segments, the original line segments including a plurality of original points. As shown in fig. 3, in the target display interface 301, one of the original points included in the first object is a point, the origin planori of the plane is included in the building section 302, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane to be mapped for which the first object includes point points.
In step S204, in actual application, as shown in fig. 4, in the target display interface 401, the coordinate origin is O, the first vector from the coordinate origin to the origin is a vector OP (the origin is O, and the end is point); as shown in fig. 5, the target display interface is 501, the origin of coordinates in the three-dimensional coordinate system is O, the second vector from the origin of coordinates to the original point is the vector OO' (the starting point is O, and the end point is planoroi).
In step S206, during actual application, the offset vector is an offset vector of the first vector and the second vector on the unit normal vector determined by a preset rule, a sum of the first vector and the offset vector is obtained, and the sum of the first vector and the offset vector is used as a target vector; as shown in fig. 6, in the three-dimensional coordinate system, the origin of coordinates is O, the first vector from the origin of coordinates to the origin is a vector OP (the origin is O, and the end is point); the offset vector is PP ', the point P' is the projection point of the point on the building section 602, so the vector is PP 'perpendicular to the building section 602, and it can be derived from the calculation principle of the vector, vector op+vector PP' =vector OP ', so the target vector is vector OP'.
In step S208, during actual application, the coordinate information of the original point at the target mapping point of the building section can be determined through the coordinate information of the target vector; for example, in fig. 6, since the point O is the origin of coordinates of the three-dimensional coordinate system, the coordinate information of the coordinate point of the object vector OP' is the projected coordinate of the point in the building section 602.
Step S210, in actual application, as shown in FIG. 6, displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points; the specific location of point in building profile 602 can be displayed at the target display interface.
In the embodiment of the present invention, an original point and a building section of a first object are displayed in a target display interface, where the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points. Obtaining the sum of the first vector and the offset vector by obtaining the first vector from the origin of coordinates to the original point and the second vector from the origin of coordinates to the origin of coordinates, and taking the sum of the first vector and the offset vector as a target vector; then, based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; the target mapping points are displayed in the target display interface according to the coordinate information of the target mapping points, so that the profile parameter information of a building can be accurately obtained when the building is designed, the engineering quantity can be accurately determined, and the working efficiency is improved. The technical problem that the coordinate positioning of the building section cannot be accurately known in the related art is solved.
In one embodiment, step S202 further includes: acquiring coordinate information of an original point of a first object and data information of a building section; the data information comprises coordinate information of an origin of the building section and a unit normal vector of the building section; generating a first vector which takes the origin of coordinates as a starting point and takes the original point as an end point based on the origin of coordinates in the three-dimensional space; based on the origin of coordinates, a second vector is generated that has the origin of coordinates as a starting point and the origin of the building profile as an ending point.
As shown in fig. 3, in the target display interface 301, one of the original points included in the first object is a point, the origin planori of the plane is included in the building section 302, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane to be mapped for which the first object includes point points. The data information for the building profile 302 contains the origin planorei of the plane, the unit normal vector normal for the building profile 302; as shown in fig. 4, in the target display interface 401, a first vector is generated by a computer program, wherein, in the three-dimensional coordinate system, the origin of coordinates is O, and the first vector from the origin of coordinates to the origin is a vector OP (the origin is O, and the end is point); as shown in fig. 5, the target display interface is 501, the origin of coordinates in the three-dimensional coordinate system is O, the second vector from the origin of coordinates to the original point is the vector OO' (the starting point is O, and the end point is planoroi).
In one embodiment, in step S206, an offset vector of both the first vector and the second vector on a unit normal vector is determined by a preset rule, which specifically includes the following steps: obtaining a first length value based on a dot product of the first vector and the unit normal vector; obtaining a second length value based on the dot product of the second vector and the unit normal vector; taking the absolute value of the difference value between the first length value and the second length value as a target offset; obtaining a dot product of the target offset and the unit normal vector, and taking the dot product of the target offset and the unit normal vector as an offset vector; as shown in fig. 4, a first length value L is obtained by a dot product of a first vector OP (the starting point is O and the end point is point) and a unit normal vector normal of the building section; as shown in fig. 5, the target offset is |l-L ' | by obtaining the first length value L ' from the dot product of the second vector OO ' (starting point is O and end point is planori) and the unit normal vector normal of the building section; the offset vector is the dot product of L-L' and the unit normal vector normal.
In one embodiment, after step S208, the method further includes: acquiring a coordinate set of a target mapping point of an original line segment on a building section to obtain a second object; the first object may here be a roof of a building. The second object is the projection of the first object on the building section; as shown in fig. 7, in the target display interface 701, the first object obtains the second object 702 through projection in the building section, and in the target display interface 701, the coordinate information of the point A, B, C, D, E, F is included in the coordinate set of the second object, so that the roof width of the first object, for example, the roof, can be obtained according to the length of AB, the beam width of the roof can be obtained according to the length of CD, and the beam height of the roof can be obtained according to the length of EF. Therefore, the embodiment of the invention can accurately acquire data such as roof (building and ground) forms, height dimensions, connection of all parts and the like, can accurately determine engineering quantity, and improves working efficiency when guiding construction of all floors and roofs, door and window installation and interior decoration.
In one embodiment, a distance from the origin to the building profile is obtained based on the target offset; the distance is displayed in the target display interface. As shown in fig. 6, the distance of point to building section 602 may be displayed at the target display interface.
In an embodiment, building parameters of the second object are determined based on a set of coordinates in the second object; displaying the building parameters in a target display interface; the building parameters include at least one of: building roof plate, wide building beam and high building beam. As shown in fig. 7, in the target display interface 701, the first object obtains the second object 702 through projection in the building section, and in the target display interface 701, the coordinate information of the point A, B, C, D, E, F is included in the coordinate set of the second object, so that the roof width of the first object, for example, the roof, can be obtained according to the length of AB, the beam width of the roof can be obtained according to the length of CD, and the beam height of the roof can be obtained according to the length of EF.
In the embodiment of the present invention, an original point and a building section of a first object are displayed in a target display interface, where the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points. Obtaining the sum of the first vector and the offset vector by obtaining the first vector from the origin of coordinates to the original point and the second vector from the origin of coordinates to the origin of coordinates, and taking the sum of the first vector and the offset vector as a target vector; then, based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; the target mapping points are displayed in the target display interface according to the coordinate information of the target mapping points, so that the profile parameter information of a building can be accurately obtained when the building is designed, the engineering quantity can be accurately determined, and the working efficiency is improved. The technical problem that the coordinate positioning of the building section cannot be accurately known in the related art is solved.
Based on the above examples, the following describes the positioning method of the seat in conjunction with the specific embodiments:
(1) Applicable scene
Scene: roof sectioning function, the roof sectioning effect is shown in fig. 7, and the roof is projected to a certain section of the target display interface. The projection of the line segment is mainly obtained through the projection of the point, and the projection of the whole roof map is obtained according to the projection of the line segment.
(2) Algorithm implementation
1. And (3) inputting parameters: point (origin point), origin coordinates planori of plane (building section), unit normal vector normal of plane (building section);
2. and (5) returning a result: point (original point) maps to mapped point coordinates on a plane (building section).
3. The implementation process comprises the following steps:
3.1 obtain the dot product of vector point (first vector) and vector normal (unit normal vector of the building section).
3.2 dot product of vector planorei (second vector) and vector normal (unit normal vector of building section).
3.3 the value obtained by subtracting the dot product of vector planori and vector normal from the value obtained by subtracting the dot product of vector point and vector normal yields a length, and the length of the required offset is obtained. The length is multiplied by the vector normal (the unit normal vector of the building section) to obtain the value of the point that needs to be offset on normal, and the value is multiplied by the normal vector to obtain a target vector. The vector point is added to the target vector to obtain the point of the point on the plane (building section) mapping, namely the target mapping point, namely the point P' shown in figure 6.
In the embodiment of the present invention, an original point and a building section of a first object are displayed in a target display interface, where the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points. Obtaining the sum of the first vector and the offset vector by obtaining the first vector from the origin of coordinates to the original point and the second vector from the origin of coordinates to the origin of coordinates, and taking the sum of the first vector and the offset vector as a target vector; then, based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; the target mapping points are displayed in the target display interface according to the coordinate information of the target mapping points, so that the profile parameter information of a building can be accurately obtained when the building is designed, the engineering quantity can be accurately determined, and the working efficiency is improved. The technical problem that the coordinate positioning of the building section cannot be accurately known in the related art is solved.
According to another aspect of the embodiment of the present invention, there is also provided a coordinate positioning apparatus for implementing the above coordinate positioning method. As shown in fig. 8, the apparatus includes:
the first receiving unit 802 is configured to display, in the target display interface, an origin point of the first object and a building section, where the origin point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile;
a first obtaining unit 804, configured to obtain a first vector from the origin of coordinates to the original point, and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
a second obtaining unit 806, configured to obtain a sum of the first vector and the offset vector, and take the sum of the first vector and the offset vector as a target vector, where the offset vector is an offset vector that determines, by a preset rule, that the first vector and the second vector are on a unit normal vector;
a first determining unit 808, configured to determine coordinate information of a target mapping point of the original point on the building section based on coordinate information of the target vector;
The second display unit 810 is configured to display the target mapping point in the target display interface according to the coordinate information of the target mapping point.
In the embodiment of the present invention, the target display interface may be an electronic display interface of a mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, an intelligent television, etc., which is not limited herein; the first object may be a contour of a building constructed in the target display interface, the first object being composed of a plurality of original line segments, the original line segments including a plurality of original points. As shown in fig. 3, in the target display interface 301, one of the original points included in the first object is a point, the origin planori of the plane is included in the building section 302, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane to be mapped for which the first object includes point points.
In the embodiment of the present invention, in the target display interface 401, the origin of coordinates in the three-dimensional coordinate system is O, and the first vector from the origin of coordinates to the origin is a vector OP (the origin is O, and the end is point); as shown in fig. 5, the target display interface is 501, the origin of coordinates in the three-dimensional coordinate system is O, the second vector from the origin of coordinates to the original point is the vector OO' (the starting point is O, and the end point is planoroi).
In the embodiment of the invention, the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule, the sum of the first vector and the offset vector is obtained, and the sum of the first vector and the offset vector is taken as a target vector; as shown in fig. 6, in the three-dimensional coordinate system, the origin of coordinates is O, the first vector from the origin of coordinates to the origin is a vector OP (the origin is O, and the end is point); the offset vector is PP ', the point P ' is the projection point of the point on the building section 602, so the vector is PP ' perpendicular to the building section 602, and it can be obtained according to the calculation principle of the vector, vector op+vector PP ' =vector OP '; the target vector is thus vector OP'.
In the embodiment of the invention, the coordinate information of the original point at the target mapping point of the building section can be determined through the coordinate information of the target vector; for example, in fig. 6, since the point O is the origin of coordinates of the three-dimensional coordinate system, the coordinate information of the coordinate point of the object vector OP' is the projected coordinate of the point in the building section 602.
In the embodiment of the present invention, as shown in fig. 6, a target mapping point is displayed in a target display interface according to coordinate information of the target mapping point; the point can be displayed at a specific location in the architectural profile 602 at the target display interface.
In the embodiment of the present invention, an original point and a building section of a first object are displayed in a target display interface, where the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: an origin of the building profile, a unit normal vector of the building profile; acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector of the first vector and the second vector on a unit normal vector determined through a preset rule; based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points. Obtaining the sum of the first vector and the offset vector by obtaining the first vector from the origin of coordinates to the original point and the second vector from the origin of coordinates to the origin of coordinates, and taking the sum of the first vector and the offset vector as a target vector; then, based on the coordinate information of the target vector, determining the coordinate information of the target mapping point of the original point on the building section; the target mapping points are displayed in the target display interface according to the coordinate information of the target mapping points, so that the profile parameter information of a building can be accurately obtained when the building is designed, the engineering quantity can be accurately determined, and the working efficiency is improved. The technical problem that the coordinate positioning of the building section cannot be accurately known in the related art is solved.
Other examples of this embodiment can be found in the above embodiments, and will not be described here.
According to a further aspect of the embodiments of the present invention there is also provided an electronic device for implementing the above-described coordinate positioning method, as shown in fig. 9, the electronic device comprising a memory 902, a processor 904, the memory 902 having stored therein a computer program, the processor 904 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying an original point and a building section of a first object in a target display interface, wherein the original point is any point in an original line segment contained in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: an origin of the building profile, a unit normal vector of the building profile;
s2, acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
S3, obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector which determines the unit normal vector of the first vector and the second vector through a preset rule;
s4, determining coordinate information of a target mapping point of the original point on the building section based on the coordinate information of the target vector;
and S5, displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 9 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 9 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 902 may be used to store software programs and modules, such as program instructions/modules corresponding to the coordinate positioning method and apparatus according to the embodiments of the present invention, and the processor 904 executes the software programs and modules stored in the memory 902, thereby performing various functional applications and data processing, that is, implementing the coordinate positioning method described above. The memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 902 may further include memory remotely located relative to the processor 904, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 902 may be, but not limited to, used for storing information such as an attribute of an internet of things device. As an example, as shown in fig. 9, the memory 902 may include, but is not limited to, a first display unit 802, a first acquisition unit 804, a second acquisition unit 806, a first determination unit 808, and a second display unit 810 in the coordinate positioning apparatus. In addition, other module units in the coordinate positioning apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 906 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 906 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 906 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 908 for displaying the coordinate positioning information in the coordinate positioning apparatus; and a connection bus 910 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the electronic device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. The nodes may form a Peer-To-Peer (P2P) network, and any type of determining device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying an original point and a building section of a first object in a target display interface, wherein the original point is any point in an original line segment contained in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: an origin of the building profile, a unit normal vector of the building profile;
s2, acquiring a first vector from the origin of coordinates to an original point and a second vector from the origin of coordinates to the origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
s3, obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector which determines the unit normal vector of the first vector and the second vector through a preset rule;
S4, determining coordinate information of a target mapping point of the original point on the building section based on the coordinate information of the target vector;
and S5, displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A coordinate positioning method, comprising:
displaying an original point of a first object and a building section in a target display interface, wherein the original point is any point in an original line segment included in the first object, the building section is a plane to be mapped by the first object, and the building section comprises: the origin of the building section is a unit normal vector of the building section, and the origin of the building section is a starting point of the unit normal vector of the building section;
Acquiring a first vector from a coordinate origin to the original point and a second vector from the coordinate origin to the origin of the building section; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
obtaining the sum of the first vector and the offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is an offset vector on the unit normal vector for determining the first vector and the second vector through a preset rule;
based on the coordinate information of the target vector, determining the coordinate information of the original point at a target mapping point of the building section;
and displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
2. The method of claim 1, wherein prior to the obtaining the first vector of origin of coordinates to the original point and the second vector of origin of coordinates to the origin, further comprising:
acquiring coordinate information of an original point of a first object and data information of a building section; wherein the data information includes coordinate information of an origin of the building section and a unit normal vector of the building section;
Generating a first vector which takes the origin of coordinates as a starting point and the original point as an end point based on the origin of coordinates of a three-dimensional space;
and generating a second vector which takes the origin of coordinates as a starting point and takes the origin of the building section as an ending point based on the origin of coordinates.
3. The method of claim 1, wherein the determining, by a preset rule, an offset vector of both the first vector and the second vector on the unit normal vector comprises:
obtaining a first length value based on a dot product of the first vector and the unit normal vector; obtaining a second length value based on a dot product of the second vector and the unit normal vector;
taking the absolute value of the difference value between the first length value and the second length value as a target offset;
and obtaining a dot product of the target offset and the unit normal vector, and taking the dot product of the target offset and the unit normal vector as the offset vector.
4. The method of claim 1, wherein said determining the coordinate information of the original point after the target mapping point of the building section further comprises:
acquiring a coordinate set of the original line segment at a target mapping point of the building section to obtain a second object; wherein the second object is a projection of the first object on the building section;
And displaying the second object in the target display interface.
5. A method according to claim 3, characterized in that the method further comprises:
obtaining the distance from the original point to the building section based on the target offset;
and displaying the distance in the target display interface.
6. The method according to claim 4, wherein the method further comprises:
determining a building parameter of the second object based on the set of coordinates in the second object;
displaying the building parameters in the target display interface;
the building parameters include at least one of: building roof plate, wide building beam and high building beam.
7. A coordinate positioning apparatus, the apparatus comprising:
the first display unit is configured to display an origin of a first object and a building section in a target display interface, where the origin is any one of original line segments included in the first object, the building section is a plane to be mapped by the first object, and the building section includes: the origin of the building section is a unit normal vector of the building section, and the origin of the building section is a starting point of the unit normal vector of the building section;
A first obtaining unit, configured to obtain a first vector from an origin of coordinates to the original point, and a second vector from the origin of coordinates to an origin of the building section; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
a second obtaining unit, configured to obtain a sum of the first vector and an offset vector, and take the sum of the first vector and the offset vector as a target vector, where the offset vector is an offset vector that determines, by a preset rule, that the first vector and the second vector are both on the unit normal vector;
the first determining unit is used for determining the coordinate information of the original point at the target mapping point of the building section based on the coordinate information of the target vector;
and the second display unit is used for displaying the target mapping points in the target display interface according to the coordinate information of the target mapping points.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a third acquisition unit for acquiring coordinate information of an original point of the first object and data information of a building section; wherein the data information includes coordinate information of an origin of the building section and a unit normal vector of the building section;
The first generation unit is used for generating a first vector which takes the origin of coordinates as a starting point and takes the original point as an end point based on the origin of coordinates of a three-dimensional space;
and a second generation unit configured to generate a second vector having the origin of coordinates as a start point and the origin of the building section as an end point, based on the origin of coordinates.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
CN202011194020.9A 2020-10-30 2020-10-30 Coordinate positioning method and device, storage medium and electronic equipment Active CN112199754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194020.9A CN112199754B (en) 2020-10-30 2020-10-30 Coordinate positioning method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194020.9A CN112199754B (en) 2020-10-30 2020-10-30 Coordinate positioning method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112199754A CN112199754A (en) 2021-01-08
CN112199754B true CN112199754B (en) 2023-05-09

Family

ID=74010570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194020.9A Active CN112199754B (en) 2020-10-30 2020-10-30 Coordinate positioning method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112199754B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103114732A (en) * 2013-02-06 2013-05-22 陕西建工集团机械施工有限公司 Cast steel penetration pipe node space positioning method
CN107447668A (en) * 2017-08-27 2017-12-08 贵州新联爆破工程集团有限公司 A kind of automatic lifting positions tapered pier template
TWM565860U (en) * 2018-02-27 2018-08-21 國立臺灣大學 Smart civil engineering information system
US10260232B1 (en) * 2017-12-02 2019-04-16 M-Fire Supression, Inc. Methods of designing and constructing Class-A fire-protected multi-story wood-framed buildings
CN110162856A (en) * 2019-05-13 2019-08-23 南昌大学 A kind of beam stirrup intelligent generation method based on dynamo
CN110781536A (en) * 2019-09-06 2020-02-11 久瓴(上海)智能科技有限公司 Building flat skylight node generation method and system, computer equipment and storage medium
CN111055278A (en) * 2019-12-06 2020-04-24 深圳赛动生物自动化有限公司 Robot coordinate self-positioning method and device based on VAL3 language, computer equipment and storage medium
CN111192321A (en) * 2019-12-31 2020-05-22 武汉市城建工程有限公司 Three-dimensional positioning method and device for target object
CN111489288A (en) * 2019-01-28 2020-08-04 北京初速度科技有限公司 Image splicing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103114732A (en) * 2013-02-06 2013-05-22 陕西建工集团机械施工有限公司 Cast steel penetration pipe node space positioning method
CN107447668A (en) * 2017-08-27 2017-12-08 贵州新联爆破工程集团有限公司 A kind of automatic lifting positions tapered pier template
US10260232B1 (en) * 2017-12-02 2019-04-16 M-Fire Supression, Inc. Methods of designing and constructing Class-A fire-protected multi-story wood-framed buildings
TWM565860U (en) * 2018-02-27 2018-08-21 國立臺灣大學 Smart civil engineering information system
CN111489288A (en) * 2019-01-28 2020-08-04 北京初速度科技有限公司 Image splicing method and device
CN110162856A (en) * 2019-05-13 2019-08-23 南昌大学 A kind of beam stirrup intelligent generation method based on dynamo
CN110781536A (en) * 2019-09-06 2020-02-11 久瓴(上海)智能科技有限公司 Building flat skylight node generation method and system, computer equipment and storage medium
CN111055278A (en) * 2019-12-06 2020-04-24 深圳赛动生物自动化有限公司 Robot coordinate self-positioning method and device based on VAL3 language, computer equipment and storage medium
CN111192321A (en) * 2019-12-31 2020-05-22 武汉市城建工程有限公司 Three-dimensional positioning method and device for target object

Also Published As

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

Similar Documents

Publication Publication Date Title
US11030709B2 (en) Method and system for automatically creating and assigning assembly labor activities (ALAs) to a bill of materials (BOM)
CN109461199B (en) Picture rendering method and device, storage medium and electronic device
CN106843828B (en) Interface display and loading method and device
CN110383274B (en) Method, device, system, storage medium, processor and terminal for identifying equipment
CN108090959B (en) Indoor and outdoor integrated modeling method and device
CN110222407B (en) BIM data fusion method and device
CN104575096A (en) Parking space sharing method and system based on crowdsourcing mode
CN112053440A (en) Method for determining individualized model and communication device
CN109344294B (en) Feature generation method and device, electronic equipment and computer-readable storage medium
CN112199754B (en) Coordinate positioning method and device, storage medium and electronic equipment
CN113500604A (en) Robot control method, device, equipment and storage medium
CN105022730A (en) Method and system generating geography network according to browser
CN112506465A (en) Method and device for switching scenes in panoramic roaming
CN102411575A (en) Method and system for displaying webpage, and server
CN114061593B (en) Navigation method and related device based on building information model
CN109993834B (en) Positioning method and device of target object in virtual space
CN110648402A (en) Method, device and equipment for placing virtual object along curve
CN106611100B (en) User behavior analysis method and device
CN113872798A (en) Method and device for constructing space network topological graph, storage medium and electronic equipment
CN112200861A (en) Method and device for determining point-to-line position relationship, storage medium and electronic device
CN115908117B (en) Two-dimensional building model image generation method and system
CN114463499A (en) Building three-dimensional modeling method and device
CN113160419A (en) Building facade model building method and device
CN112747733A (en) Navigation method, navigation device, storage medium and electronic device
CN114205748B (en) Network configuration method and device, electronic 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
CB02 Change of applicant information

Address after: Room 701, East Building, innovation and Research Center, 8 Yanzheng West Avenue, Wujin District, Changzhou City, Jiangsu Province, 213100

Applicant after: Jiuling (Jiangsu) Digital Intelligent Technology Co.,Ltd.

Address before: Room d1-9999, 58 Fumin Branch Road, Hengsha Township, Chongming District, Shanghai, 201914 (Shanghai Hengtai Economic Development Zone)

Applicant before: Jiuling (Jiangsu) Digital Intelligent Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant