CN112199754A - 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
CN112199754A
CN112199754A CN202011194020.9A CN202011194020A CN112199754A CN 112199754 A CN112199754 A CN 112199754A CN 202011194020 A CN202011194020 A CN 202011194020A CN 112199754 A CN112199754 A CN 112199754A
Authority
CN
China
Prior art keywords
vector
point
origin
building
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011194020.9A
Other languages
Chinese (zh)
Other versions
CN112199754B (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 and a building profile of the first object in the target display interface, wherein the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile comprises: the original point of the building section and the 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 origin; acquiring 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; 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 displaying the target mapping point in the target display interface according to the coordinate information of the target mapping point. The invention solves the technical problem that the labeled coordinates of the building profile cannot be accurately obtained in the related technology.

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 design assistance, a cross-sectional view of a building is generally used, which is used to show the structure or construction mode of the interior of a house, such as the form of a roof (building and floor), the layering condition, materials, practice, height dimension, and the relation of each part. The method for acquiring the cross-sectional view generally adopts the steps of projecting the roof to a certain cross-sectional view, mainly obtaining the projection of a line segment through the projection of points, and obtaining the projection of the whole roof view according to the projection of the line segment, so that the data such as the thickness, the width and the height of the roof in a house can be further acquired. In the related technology, when the coordinate positioning is carried out after the roof is cut, a large amount of data calculation is needed, and the accuracy of the positioning result is not high, so that certain errors exist when the integral roof (building and ground) is positioned and labeled; in addition, when building design is carried out, data such as the form, height and size of a roof (building and ground), and the relation among all parts cannot be accurately obtained, so that the engineering quantity cannot be accurately determined, and the problem of low working efficiency is caused when the construction of floors and roofs at all layers, the installation of doors and windows and the interior decoration are guided.
Aiming at the problem that the coordinate positioning of the building profile cannot be accurately obtained, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a coordinate positioning method and device, a storage medium and electronic equipment, and aims to at least solve the technical problem that the coordinate positioning of a building profile cannot be accurately known in the related art.
According to an aspect of an embodiment of the present invention, there is provided a coordinate locating method, including: 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 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, a 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 original point; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of the first vector and an 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 the unit normal vector determined by a preset rule; 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 displaying the target mapping point on the target display interface according to the coordinate information of the target mapping point.
According to another aspect of the embodiments of the present invention, there is also provided a coordinate locating apparatus, including: a first display unit, configured to display an original point of a first object and a building profile in a target display interface, where the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile includes: an origin of the building section, 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 original point, and a second vector from the origin of coordinates to the original point; 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, which is determined by a predetermined rule to be an offset vector of the first vector and the second vector on the unit normal vector, and use the sum of the first vector and the offset vector as a target vector; a first specifying unit configured to specify, based on coordinate information of the target vector, coordinate information of a target mapping point of the original point on the building cross section; and a second display unit for displaying the object mapping point on the object display interface according to the coordinate information of the object mapping point.
According to a further aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above coordinate locating method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the coordinate positioning method through the computer program.
In the embodiment of the present invention, an original point and a building profile 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 profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the 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 origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of a first vector and an offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is the offset vector of the first vector and a second vector on a unit normal vector determined by a preset rule; 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; a method of displaying a target mapping point in a target display interface according to coordinate information of the target mapping point.
Acquiring the sum of the first vector and the offset vector by acquiring a first vector from the coordinate origin to the original point and a second vector from the coordinate origin to the origin, and taking the sum of the first vector and the offset vector as a target vector; then, determining the coordinate information of the target mapping point of the original point on the building profile based on the coordinate information of the target vector; the target mapping point is displayed in the target display interface according to the coordinate information of the target mapping point, so that the section parameter information of a building can be accurately obtained, the engineering quantity can be accurately determined, and the working efficiency is improved when the building is designed. The technical problem that the coordinate positioning of the building profile cannot be accurately obtained in the related technology 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative coordinate locating method according to an embodiment of the invention;
FIG. 2 is a schematic illustration of the flow of an alternative coordinate locating method according to an embodiment of the invention;
FIG. 3 is a schematic illustration of a building section of an alternative coordinate locating method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a target display interface of an alternative coordinate locating method according to an embodiment of the invention;
FIG. 5 is a schematic view of a target display interface of an alternative coordinate locating method according to an embodiment of the invention;
FIG. 6 is a schematic view of a target display interface of yet another alternative coordinate locating method according to an embodiment of the present invention;
FIG. 7 is a schematic illustration of a target display interface of yet another alternative coordinate locating method according to an embodiment of the invention;
FIG. 8 is a schematic structural diagram of an alternative coordinate locating apparatus in accordance with embodiments of the invention;
fig. 9 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 an embodiment of the present invention, there is provided a coordinate locating method, which may be, but is not limited to, applied to the environment shown in fig. 1 as an alternative implementation.
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 an origin and a building profile of the first object. Electronic terminal 104 may interact with backend server 114 via network 112. Server 114 includes a database 116 and a processing engine 118. The electronic terminal 104 determines the coordinate information of the target mapping point of the original point of the first object on the building section; the object mapping point is displayed on the display 110 of the electronic terminal 104 according to the coordinate information of the object mapping point.
Optionally, in this embodiment, the electronic terminal 104 may be a terminal device configured with a target server, and the electronic terminal 104 may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, etc. The target server can be a video server, an instant messaging server, a browser server, an education server, and the like. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. 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 this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the coordinate locating method includes:
s202, displaying an original point of the first object and a building profile in the target display interface, where the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the unit normal vector of the building section;
s204, acquiring a first vector from the origin of coordinates to the original point and a second vector from the origin of coordinates to the original point; 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 the offset vector of the first vector and the second vector on a unit normal vector determined by a preset rule;
s208, determining the coordinate information of the target mapping point of the original point on the building section based on the coordinate information of the target vector;
and S210, displaying the target mapping point in the target display interface according to the coordinate information of the target mapping point.
In step S202, in practical 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, an MID (Mobile Internet Devices), a PAD, a desktop computer, an intelligent television, etc., which is not limited herein; the first object may be an outline of a building constructed in the target display interface, and the first object is composed of a plurality of 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 point, the building section 302 includes the original point planeOri of the plane, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane on which the first object comprises the point to be mapped.
In step S204, in actual application, as shown in fig. 4, in the target display interface 401, the origin of coordinates in the three-dimensional coordinate system is O, and a first vector from the origin of coordinates to the original point is a vector OP (the starting point is O, and the end point 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, and the second vector from the origin of coordinates to the original point is a vector OO' (the starting point is O, and the end point is planeOri).
In step S206, in actual application, the offset vector is an offset vector in which the first vector and the second vector are determined on the unit normal vector 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, the origin of coordinates in the three-dimensional coordinate system is O, and a first vector from the origin of coordinates to the original point is a vector OP (the starting point is O, and the end point is point); the offset vector is PP ', and point P' is the projection point of point on the building profile 602, so the vector PP 'is perpendicular to the building profile 602, and the vector OP + vector PP' is the vector OP 'according to the calculation principle of the vectors, so the target vector is the vector OP'.
In step S208, in practical application, the coordinate information of the target mapping point of the original point on the building profile 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 target vector OP' is the projection coordinates of the point in the building section 602.
Step S210, in practical application, as shown in fig. 6, displaying the target mapping point in the target display interface according to the coordinate information of the target mapping point; the specific location of point in building profile 602 can be displayed on the target display interface.
In the embodiment of the present invention, an original point and a building profile 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 profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the 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 origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of a first vector and an offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is the offset vector of the first vector and a second vector on a unit normal vector determined by a preset rule; 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; a method of displaying a target mapping point in a target display interface according to coordinate information of the target mapping point. Acquiring the sum of the first vector and the offset vector by acquiring a first vector from the coordinate origin to the original point and a second vector from the coordinate origin to the origin, and taking the sum of the first vector and the offset vector as a target vector; then, determining the coordinate information of the target mapping point of the original point on the building profile based on the coordinate information of the target vector; the target mapping point is displayed in the target display interface according to the coordinate information of the target mapping point, so that the section 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 profile cannot be accurately obtained in the related technology is solved.
In an embodiment, step S202 further includes: acquiring coordinate information of an original point of a first object and data information of a building profile; 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 with the coordinate origin as a starting point and an original point as an end point based on the coordinate origin of the three-dimensional space; based on the origin of coordinates, a second vector is generated with the origin of coordinates as a starting point and the origin of the building cross-section as an end point.
As shown in fig. 3, in the target display interface 301, one of the original points included in the first object is point, the building section 302 includes the original point planeOri of the plane, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane on which the first object comprises the point to be mapped. The data information of the building section 302 includes the origin planeOri of the plane, the unit normal vector normal of the building section 302; as shown in fig. 4, in the target display interface 401, a first vector is generated by using a computer program, wherein an origin of coordinates in the three-dimensional coordinate system is O, and the first vector from the origin of coordinates to an original point is a vector OP (the starting point is O, and the end point 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, and the second vector from the origin of coordinates to the original point is a vector OO' (the starting point is O, and the end point is planeOri).
In an embodiment, in step S206, determining an offset vector of the first vector and the second vector on the unit normal vector according to a preset rule includes the following steps: obtaining a first length value based on the 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 between the first length value and the second length value as a target offset; acquiring 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 (starting point is O, end point is point) and a unit normal vector normal of the building section; as shown in fig. 5, a first length value L ' is obtained by a dot product of a second vector OO ' (the starting point is O, the end point is planeOri) and a unit normal vector normal of the building section, and then the target offset is | L-L ' |; the offset vector is the dot product of | L-L' | and the unit normal vector normal.
In an embodiment, after step S208, the method further includes: acquiring a coordinate set of a target mapping point of the original line segment on the building section to obtain a second object; the first object may here be a roof of a building. Wherein the second object is a projection of the first object on the building section; as shown in fig. 7, in the target display interface 701, the first object is projected on the building section to obtain the second object 702, 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 plate width of the first object, for example, the roof, can be obtained according to the length AB, the beam width of the roof can be obtained according to the length CD, and the beam height of the roof and other building construction information can be obtained according to the length EF. Therefore, the embodiment of the invention can accurately acquire data such as the form, height and size of the roof (building and ground), the relation of all parts and the like, can accurately determine the engineering quantity, and improves the working efficiency when guiding the construction of floors and roofs at all layers, the installation of doors and windows and the interior decoration.
In one embodiment, the distance from an original point to a 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 profile 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 construction parameters include at least one of: the thickness of the building roof is thick, the building beam is wide, and the building beam is high. As shown in fig. 7, in the target display interface 701, the first object is projected on the building section to obtain the second object 702, 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 plate width of the first object, for example, the roof, can be obtained according to the length AB, the beam width of the roof can be obtained according to the length CD, and the beam height of the roof and other building construction information can be obtained according to the length EF.
In the embodiment of the present invention, an original point and a building profile 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 profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the 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 origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of a first vector and an offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is the offset vector of the first vector and a second vector on a unit normal vector determined by a preset rule; 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; a method of displaying a target mapping point in a target display interface according to coordinate information of the target mapping point. Acquiring the sum of the first vector and the offset vector by acquiring a first vector from the coordinate origin to the original point and a second vector from the coordinate origin to the origin, and taking the sum of the first vector and the offset vector as a target vector; then, determining the coordinate information of the target mapping point of the original point on the building profile based on the coordinate information of the target vector; the target mapping point is displayed in the target display interface according to the coordinate information of the target mapping point, so that the section 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 profile cannot be accurately obtained in the related technology is solved.
Based on the above embodiments, the following describes a coordinate positioning method with reference to specific embodiments:
(1) application scenario
Scene: the roof cutting function and the roof cutting effect are shown in fig. 7, and the roof is projected to a certain cutting plane of the target display interface. The projection of the line segment is obtained mainly 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), origin coordinates planeOri of the plane (building section), unit normal vector normal of the plane (building section);
2. and returning a result: the point (origin) is mapped to the mapped point coordinates on the plane (building profile).
3. The implementation process comprises the following steps:
3.1 get the dot product of the vector point (first vector) and the vector normal (unit normal vector of the building profile).
3.2 dot product of vector planeOri (second vector) and vector normal (unit normal vector for building section).
3.3 subtracting the dot product of the vector planeOri and the vector normal from the dot product of the vector point and the vector normal to obtain a length, which is the length to be shifted. This length is multiplied by the normal vector (unit normal vector of the building profile) to obtain the value at which point needs to be shifted in normal, and this 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 mapped by the point on the plane (building section), namely the target mapping point, such as the point P' shown in FIG. 6.
In the embodiment of the present invention, an original point and a building profile 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 profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the 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 origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of a first vector and an offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is the offset vector of the first vector and a second vector on a unit normal vector determined by a preset rule; 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; a method of displaying a target mapping point in a target display interface according to coordinate information of the target mapping point. Acquiring the sum of the first vector and the offset vector by acquiring a first vector from the coordinate origin to the original point and a second vector from the coordinate origin to the origin, and taking the sum of the first vector and the offset vector as a target vector; then, determining the coordinate information of the target mapping point of the original point on the building profile based on the coordinate information of the target vector; the target mapping point is displayed in the target display interface according to the coordinate information of the target mapping point, so that the section 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 profile cannot be accurately obtained in the related technology is solved.
According to another aspect of the embodiments 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:
a first receiving unit 802, configured to be used in a first display unit, and configured to display an original point and a building profile of a first object in a target display interface, where the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the unit normal vector of the building section;
a first obtaining unit 804, configured to obtain a first vector from an origin of coordinates to an original point, and a second vector from the origin of coordinates to the origin of coordinates; 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 an offset vector, where the offset vector is an offset vector determined by a preset rule that the first vector and the second vector are on a unit normal vector, and use the sum of the first vector and the offset vector as a target vector;
a first determining unit 808, configured to determine, based on the coordinate information of the target vector, coordinate information of a target mapping point of the original point on the building profile;
and a second display unit 810 for displaying 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), a PAD, a desktop computer, an intelligent television, etc., which is not limited herein; the first object may be an outline of a building constructed in the target display interface, and the first object is composed of a plurality of 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 point, the building section 302 includes the original point planeOri of the plane, and the unit normal vector normal of the building section 302; then the building profile 302 is the plane on which the first object comprises the point to be mapped.
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 a first vector from the origin of coordinates to an original point is a vector OP (the starting point is O, and the end point 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, and the second vector from the origin of coordinates to the original point is a vector OO' (the starting point is O, and the end point is planeOri).
In the embodiment of the invention, the offset vector is an offset vector of a first vector and a second vector on a unit normal vector determined by 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 used as a target vector; as shown in fig. 6, the origin of coordinates in the three-dimensional coordinate system is O, and a first vector from the origin of coordinates to the original point is a vector OP (the starting point is O, and the end point is point); the offset vector is PP ', and the point P' is a projection point of the point on the building profile 602, so that the vector PP 'is perpendicular to the building profile 602, and the vector OP + vector PP' is obtained according to the calculation principle of the vector OP; the target vector is thus the vector OP'.
In the embodiment of the invention, the coordinate information of the target mapping point of the original point on 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 target vector OP' is the projection coordinates 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; a point can be shown in the target display interface at a particular location within the building profile 602.
In the embodiment of the present invention, an original point and a building profile 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 profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the 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 origin; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface; acquiring the sum of a first vector and an offset vector, and taking the sum of the first vector and the offset vector as a target vector, wherein the offset vector is the offset vector of the first vector and a second vector on a unit normal vector determined by a preset rule; 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; a method of displaying a target mapping point in a target display interface according to coordinate information of the target mapping point. Acquiring the sum of the first vector and the offset vector by acquiring a first vector from the coordinate origin to the original point and a second vector from the coordinate origin to the origin, and taking the sum of the first vector and the offset vector as a target vector; then, determining the coordinate information of the target mapping point of the original point on the building profile based on the coordinate information of the target vector; the target mapping point is displayed in the target display interface according to the coordinate information of the target mapping point, so that the section 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 profile cannot be accurately obtained in the related technology is solved.
For other examples of this embodiment, reference may be made to the above embodiments, which are not described herein again.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the coordinate positioning method, as shown in fig. 9, the electronic device includes a memory 902, and a processor 904, the memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, displaying an original point of the first object and a building profile in the target display interface, where the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the unit normal vector of the building section;
s2, acquiring a first vector from the origin of coordinates to the original point and a second vector from the origin of coordinates to the original point; 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 the offset vector of the first vector and the second vector on a unit normal vector determined by a preset rule;
s4, determining the coordinate information of the 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 point on the target display interface according to the coordinate information of the target mapping point.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, 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 palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 does not limit the structure of the electronic device. 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 configured to store software programs and modules, such as program instructions/modules corresponding to the coordinate positioning method and apparatus in the embodiment of the present invention, and the processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, so as to implement 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 located remotely from the processor 904, which may be connected to the terminal over 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 is not limited to, specifically configured to store information such as attributes 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 obtaining unit 804, a second obtaining unit 806, a first determining unit 808, and a second display unit 810 in the coordinate positioning apparatus. In addition, other module units in the coordinate positioning apparatus may also be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmitting device 906 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 906 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 906 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 908 for displaying coordinate positioning information in the coordinate positioning apparatus; and a connection bus 910 for connecting the respective module components in the above-described electronic apparatus.
In other embodiments, the electronic device or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of determining device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the steps in any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying an original point of the first object and a building profile in the target display interface, where the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile includes: the original point of the building section and the unit normal vector of the building section;
s2, acquiring a first vector from the origin of coordinates to the original point and a second vector from the origin of coordinates to the original point; 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 the offset vector of the first vector and the second vector on a unit normal vector determined by a preset rule;
s4, determining the coordinate information of the 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 point on the target display interface according to the coordinate information of the target mapping point.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A coordinate positioning method, comprising:
displaying an original point and a building profile of a first object in a target display interface, wherein the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile comprises: the origin of the building profile, the unit normal vector of the building profile;
acquiring a first vector from a coordinate origin to the original point and a second vector from the coordinate origin to the original point; the coordinate origin is the origin of a three-dimensional coordinate system displayed in the target display interface;
acquiring the sum of the first vector and an 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 the unit normal vector determined by a preset rule;
determining the coordinate information of the target mapping point of the original point on the building section based on the coordinate information of the target vector;
and displaying the target mapping point in the target display interface according to the coordinate information of the target mapping point.
2. The method of claim 1, wherein prior to obtaining a first vector of origin of coordinates to the origin point and a second vector of origin of coordinates to the origin point, further comprising:
acquiring coordinate information of an original point of a first object and data information of a building profile; wherein the data information comprises coordinate information of an origin of the building profile and a unit normal vector of the building profile;
generating a first vector with the coordinate origin as a starting point and the original point as an end point based on the coordinate origin of the three-dimensional space;
and generating a second vector taking the coordinate origin as a starting point and the origin of the building section as an end point based on the coordinate origin.
3. The method according to 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 the 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 an absolute value of a difference between the first length value and the second length value as a target offset;
and acquiring 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 origin point at the target mapping point of the building profile further comprises:
acquiring a coordinate set of a target mapping point of the original line segment on the building section to obtain a second object; wherein the second object is a projection of the first object on the architectural profile;
displaying the second object in the target display interface.
5. The method of claim 3, further comprising:
obtaining the distance from the original point to the building profile based on the target offset;
and displaying the distance in the target display interface.
6. The method of claim 4, further comprising:
determining a building parameter for the second object based on the set of coordinates in the second object;
displaying the building parameters in the target display interface;
the construction parameters include at least one of: the thickness of the building roof is thick, the building beam is wide, and the building beam is high.
7. A coordinate positioning apparatus, the apparatus comprising:
the first display unit is used for displaying an original point and a building profile of a first object in a target display interface, wherein the original point is any point in an original line segment included in the first object, the building profile is a plane to be mapped by the first object, and the building profile comprises: the origin of the building profile, the unit normal vector of the building profile;
the first acquisition unit is used for acquiring a first vector from a coordinate origin to the original point and a second vector from the coordinate origin to the original point; 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 use the sum of the first vector and the offset vector as a target vector, where the offset vector is an offset vector obtained by determining, according to a preset rule, that both the first vector and the second vector are on the unit normal vector;
a first determining unit, configured to determine, based on coordinate information of the target vector, coordinate information of a target mapping point of the original point on the building cross section;
and the second display unit is used for displaying the target mapping point in the target display interface according to the coordinate information of the target mapping point.
8. The apparatus of claim 7, further comprising:
a third acquisition unit for acquiring coordinate information of an original point of the first object and data information of a building profile; wherein the data information comprises coordinate information of an origin of the building profile and a unit normal vector of the building profile;
the device comprises a first generating unit, a second generating unit and a third generating unit, wherein the first generating unit is used for generating a first vector by taking a coordinate origin of a three-dimensional space as a starting point and the original point as an end point;
and the second generating unit is used for generating a second vector taking the coordinate origin as a starting point and the origin of the building section as an end point on the basis of the coordinate origin.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any 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 of any of 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 true CN112199754A (en) 2021-01-08
CN112199754B 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
CN112199754B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN109461199B (en) Picture rendering method and device, storage medium and electronic device
CN108733713B (en) Data query method and device in data warehouse
CN106843828B (en) Interface display and loading method and device
US10863310B2 (en) Method, server and terminal for information interaction
CN105828292A (en) Position detecting method and device based on geo-fencing
CN105338537B (en) A kind of method and terminal of the shared analysis of newly-increased base station site
CN111324275B (en) Broadcasting method and device for elements in display picture
US20170330384A1 (en) Product Image Processing Method, and Apparatus and System Thereof
CN109635422A (en) Joint modeling method, device, equipment and computer readable storage medium
CN115482340A (en) Three-dimensional scene modeling method and device, computer equipment and storage medium
CN112506465B (en) Method and device for switching scenes in panoramic roaming
CN113064689A (en) Scene recognition method and device, storage medium and electronic equipment
CN105022730A (en) Method and system generating geography network according to browser
CN112200861B (en) Method and device for determining column type, storage medium and electronic equipment
CN112199754A (en) Coordinate positioning method and device, storage medium and electronic equipment
CN106445154A (en) Method and device for providing AR content, AR equipment and server
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN110648402A (en) Method, device and equipment for placing virtual object along curve
CN113872798A (en) Method and device for constructing space network topological graph, storage medium and electronic equipment
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN112530013B (en) Intersection region determination method and device, storage medium and electronic device
CN106611100B (en) User behavior analysis method and device
CN114061593A (en) Navigation method based on building information model and related device
CN110602639B (en) Positioning method, positioning platform and positioning system
CN112860725A (en) SQL automatic generation method and device, storage medium and electronic equipment

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