[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112199760B - Structure size labeling method and device, terminal equipment and storage medium - Google Patents

Structure size labeling method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112199760B
CN112199760B CN202011196545.6A CN202011196545A CN112199760B CN 112199760 B CN112199760 B CN 112199760B CN 202011196545 A CN202011196545 A CN 202011196545A CN 112199760 B CN112199760 B CN 112199760B
Authority
CN
China
Prior art keywords
target
model
straight line
view
determining
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
CN202011196545.6A
Other languages
Chinese (zh)
Other versions
CN112199760A (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 CN202011196545.6A priority Critical patent/CN112199760B/en
Publication of CN112199760A publication Critical patent/CN112199760A/en
Application granted granted Critical
Publication of CN112199760B publication Critical patent/CN112199760B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for marking structure dimensions, a mobile terminal and a storage medium, wherein the method comprises the following steps: responding to a model creating request of the model to be annotated, and triggering a three-dimensional view of the model to be annotated, which corresponds to the model creating request, to be displayed on a graphical user interface; in response to a target selection request input on a graphical user interface, determining a target structure corresponding to the target selection request from a plurality of structures forming a model to be labeled; responding to a profile creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a profile view of the model to be labeled; screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points existing between the target straight line and the profile view; and dimensioning the target structure in the cross-sectional view based on the coordinates of the plurality of intersection points.

Description

Structural dimension marking method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for labeling a structure size, a terminal device, and a storage medium.
Background
At present, when a house is designed, a three-dimensional stereo diagram of the house is drawn in advance, then a plane view of the house is determined from different directions, and part or all of house structures in the plane view are marked to inform a construction square structure size.
In the related art, after determining the plane view, a designer needs to find a corresponding position of a part or all of structures of a house in the three-dimensional perspective view in the plane view, and then manually label the corresponding position. However, because the corresponding position is determined manually, the position determination error and the labeling efficiency are low.
Disclosure of Invention
The embodiment of the application provides a method for marking a structure size, which can avoid position determination errors and improve marking efficiency.
The embodiment of the application provides a method for marking structure size, which is characterized in that the method is applied to terminal equipment, the terminal equipment is deployed with an application for model creation, and when the terminal equipment runs the application, a graphical user interface is provided, and the method comprises the following steps:
responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model establishing request;
responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled;
responding to a section creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a section view of the model to be labeled;
screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view;
determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view;
and carrying out size marking on the target structure in the section view based on the plurality of intersection point coordinates.
The embodiment of the present application further provides a structure size labeling device, which is characterized in that:
the structure size labeling device is characterized by being applied to terminal equipment, the terminal equipment is deployed with an application for model creation, a graphical user interface is provided when the terminal equipment runs the application, and the structure size labeling device comprises:
the display unit is used for responding to a model establishing request of a model to be annotated and triggering the graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model establishing request;
the first determination unit is used for responding to a target selection request input on a graphical user interface and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be annotated;
the segmentation unit is used for responding to a profile creation request input on a graphical user interface and carrying out segmentation processing on the three-dimensional view to obtain a profile view of the model to be marked;
the screening unit is used for screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view;
the second determining unit is used for determining a plurality of intersection point coordinates according to the coordinates of intersection points existing between the target straight line and the section view;
and the labeling unit is used for labeling the size of the target structure in the section view based on the coordinates of the plurality of intersection points.
The embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and is characterized in that the processor implements the steps of the method for labeling the structure size as described above when executing the program.
An embodiment of the present application further provides a storage medium, which is characterized in that it includes instructions, when it is executed on a computer, to make the computer execute the steps of the method for labeling the structure size as described above.
The method for marking the structure size provided by the embodiment of the application comprises the following steps: responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model establishing request; responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled; responding to a section creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a section view of the model to be labeled; screening out a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view; and carrying out size marking on the target structure in the section view based on the plurality of intersection point coordinates. The target structure is subjected to size marking in a mode of determining the intersection point coordinates of the target straight line and the profile view, so that the corresponding position of the target structure on the profile view is prevented from being manually determined, the size marking can be automatically performed, and the size marking efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a first flowchart of a method for marking a structure dimension according to an embodiment of the present disclosure.
Fig. 1b is a three-dimensional schematic diagram of a house model provided in the embodiment of the present application.
Fig. 1c is a schematic cross-sectional view of a model to be labeled according to an embodiment of the present disclosure.
Fig. 1d is a schematic structural diagram of a target line and a cross-sectional view provided in an embodiment of the present application.
Fig. 2 is a second flowchart of a method for labeling a structure dimension according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a structure dimension marking device provided in an embodiment of the present application.
Fig. 4 is a specific structural diagram of a terminal device provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method for marking structure dimensions, which is mainly applied to dimension marking of house line legs, line leg design is carried out by adopting Building design software, generally, Revit software can be adopted, the Revit software is constructed for a Building Information Model (BIM), and the method can help architects to design, build and maintain buildings with better quality and higher energy efficiency. According to the embodiment of the application, the terminal equipment is used for executing the labeling method of the structure size, or the labeling device of the structure size running on the terminal equipment is used for executing the labeling method of the structure size. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a smart television, a smart robot, a desktop computer, a server computer, and the like.
Referring to fig. 1a, fig. 1a is a first flowchart illustrating a method for marking a structure dimension according to an embodiment of the present disclosure. The structure size labeling method comprises the following steps:
step 101, responding to a model creating request of a model to be annotated, and triggering a graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model creating request.
The architectural design software such as Revit software can be deployed in the terminal equipment, and when a user starts the architectural design software on the terminal equipment, a graphical user interface is displayed on a screen of the terminal equipment. The model creation request may be displayed on the graphical user interface for the user by loading a document already stored on the terminal device, or by a drawing operation drawn on the graphical user interface.
Specifically, the model to be labeled may be a house model. For example: the user loads the house model, which has been stored in the terminal device, by using the building design software, thereby displaying a three-dimensional view of the house model on a graphical user interface of the building design software.
As shown in fig. 1b, fig. 1b is a three-dimensional schematic view of a house model provided in the embodiment of the present application, where the house model is formed by combining a plurality of different types of structures, for example, the house model in fig. 1b is formed by combining a plurality of structures such as a top shelter structure, a step structure, a stitch structure, and a fence structure.
Step 102, in response to a target selection request input on a graphical user interface, determining a target structure corresponding to the target selection request from a plurality of structures forming a model to be labeled.
The target selection request input on the graphical user interface can be used for selecting a certain structure or certain structures from a three-dimensional view of the model to be marked displayed on the graphical user interface by a user; or drawing a preset structure on the graphical user interface, and automatically identifying a structure similar to the drawn preset structure in the three-dimensional view by software.
For the above two different target selection requests, the ways of determining the target structure are also divided into two types.
In some embodiments, the step of determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled includes:
(1) and acquiring the similarity of each structure in a plurality of structures forming the model to be marked in the three-dimensional view and the preset structure.
(2) And determining the structure with the similarity larger than the preset similarity as the target structure.
The method comprises the steps of obtaining the similarity between each structure and a preset structure by matching the similarity of all the structures forming a model to be marked with a preset structure aiming at a target selection request for drawing the preset structure on a graphical user interface, setting a preset similarity, and determining the structure as the structure to be selected by a user if the similarity of one structure is greater than the preset similarity.
In some embodiments, the step of determining the target structure from a plurality of structures constituting the model to be annotated comprises:
(1) and responding to the target selection request, and determining the structure selected by the target selection request as a target structure.
The structure selected by the target selection request may be determined as the target structure.
Specifically, a display effect may be set, for example, when a user places a cursor of the terminal device on a certain structure of the model to be labeled, a display color of the corresponding structure is changed, so that the user can visually recognize the selected structure.
And 103, responding to a section creation request input on the graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a section view of the model to be labeled.
As shown in fig. 1c, fig. 1c is a schematic cross-sectional view of a model to be labeled according to an embodiment of the present disclosure. The profile creation request may be a request for a user to input a segmentation direction and/or a segmentation angle for segmenting the model to be labeled in the three-dimensional view. When the section creating request is received, the model to be labeled is segmented based on the segmentation direction and/or the segmentation angle included in the section creating request, and therefore a two-dimensional section view of the model to be labeled is obtained.
And 104, screening a plurality of target straight lines from the candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view.
Taking fig. 1b as an example, the leg 10 in fig. 1b includes 11 line segments, which are a first line segment a, a second line segment b, a third line segment c, a fourth line segment d, a fifth line segment e, a sixth line segment f, a seventh line segment g, an eighth line segment h, a ninth line segment i, a tenth line segment j, and an eleventh line segment k, respectively. The essence of the filtering of the target line is to determine whether the line in which the plurality of candidate line segments are located has an intersection with the sectional view.
In some embodiments, the step of selecting at least one target straight line from the candidate straight lines in the three-dimensional view, where each line segment constituting the target structure is located, based on the three-dimensional view, the target structure and the cross-sectional view, includes:
(1) determining a direction vector of a candidate straight line where each line segment forming the target structure is located in the three-dimensional view and a normal vector of the sectional view;
(2) and screening at least one target straight line from the candidate straight lines based on the direction vector and the normal vector of each candidate straight line.
It can be known from the vector theorem that if the product of the direction vector of a straight line and the normal vector of the plane is 0, the straight line is parallel to the plane or is located in the plane, so that the product of the direction vector of each candidate straight line and the normal vector of the cross-sectional view can be obtained according to the theorem, and the candidate straight line whose product result is not 0 is determined as the target straight line. Therefore, it is necessary to obtain a direction vector of each candidate line and a normal vector of the sectional view in the three-dimensional view.
In some embodiments, the step of screening at least one target line from the candidate lines based on the direction vector and the normal vector of each candidate line comprises:
(1.1) calculating the product of the direction vector of each candidate straight line and the normal vector to obtain the product corresponding to each candidate straight line;
and (1.2) determining the corresponding candidate straight line of which the product is not equal to zero in each candidate straight line as the target straight line.
The candidate straight line whose multiplication result is not 0 is determined as the target straight line, for example, the first line segment a, the third line segment c, the fifth line segment e, and the ninth line segment i of the line leg in fig. 1b all have intersections with the cross-sectional view in fig. 1c, so that the straight lines where the first line segment a, the third line segment c, and the fifth line segment e are located are the target straight lines.
In some embodiments, the method further comprises:
(1.1) determining the candidate straight line with the product equal to zero in each candidate straight line as the other straight line, wherein the other straight line is parallel to the section view or the other straight line is in the plane of the section view.
Wherein, the product of the direction vector of the straight line and the normal vector of the plane is 0, and then the straight line is parallel to the plane or is positioned in the plane. For example, the second line segment b, the fourth line segment d, the sixth line segment f, the seventh line segment g, the eighth line segment h, the tenth line segment j, and the eleventh line segment k in fig. 1b are parallel to the cross-sectional view and are in the plane of the cross-sectional view.
And 105, determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view.
In some embodiments, the step of determining a plurality of intersection coordinates based on the coordinates of the intersection of the target line and the cross-sectional view comprises:
(1) acquiring a first coordinate of any point on the target straight line and a second coordinate of any point on the sectional view;
(2) and determining the coordinates of the intersection point of the target straight line and the section view based on the target direction vector of the target straight line, the first coordinate, the normal vector and the second coordinate, and determining a plurality of coordinates of the intersection point.
Referring to fig. 1d, fig. 1d is a schematic structural diagram of a target line and a cross-sectional view according to an embodiment of the present disclosure. Knowing that the target direction vector of the target straight line is a first coordinate of any point on the target straight line as a normal vector of the sectional view and a second coordinate of any point on the sectional view as a set intersection coordinate t of the target straight line and the sectional view can be determined by a formula. Thereby determining the coordinates of the intersection point of the target straight line and the sectional view.
And 106, carrying out size marking on the target structure in the cross-sectional view based on the coordinates of the plurality of intersection points.
After the intersection point of each target straight line and the cross-sectional view in the cross-sectional view is determined, the coordinate distance between the intersection points can be determined according to the coordinates of the plurality of intersection points, and the actual size is determined according to a certain proportion (for example, 1: 500). Thereby dimensioning the target structure in the cross-sectional view.
The method for marking the structure size provided by the embodiment of the application comprises the following steps: responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model establishing request; responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled; responding to a profile creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a profile view of the model to be labeled; screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view; and dimensioning the target structure in the cross-sectional view based on the plurality of intersection point coordinates. The target structure is subjected to size marking in a mode of determining the coordinates of the intersection point of the target straight line and the profile view, so that the corresponding position of the target structure on the profile view is prevented from being manually determined, the size marking can be automatically performed, and the size marking efficiency is improved.
In some embodiments, as shown in fig. 2, a method for labeling a structure size is provided, and the method for labeling the structure size includes:
step 201, responding to a model creating request of a model to be annotated, and triggering a graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model creating request.
As shown in fig. 1b, fig. 1b is a three-dimensional schematic view of a house model provided by an embodiment of the present application, where the house model is formed by combining a plurality of different types of structures, for example, the house model in fig. 1b is formed by combining a plurality of structures such as a top shelter structure, a step structure, a stitch structure, a fence structure, and the like.
Step 202, responding to a target selection request input on a graphical user interface, and obtaining the similarity between each structure of a plurality of structures forming a model to be annotated in a three-dimensional view and the preset structure.
The target selection request input on the graphical user interface is used for drawing a preset structure on the graphical user interface, and the software automatically identifies a structure similar to the drawn preset structure in the three-dimensional view. Similarity matching is carried out on all structures forming the model to be marked and a preset structure, and the similarity of each structure and the preset structure is obtained.
And step 203, determining the structure with the similarity larger than the preset similarity as a target structure.
And if the similarity of a certain structure is greater than the preset similarity, determining the structure as the structure to be selected by the user.
And 204, responding to a section creation request input on the graphical user interface, and segmenting the three-dimensional view to obtain a section view of the model to be labeled.
As shown in fig. 1c, fig. 1c is a schematic cross-sectional view of a model to be labeled according to an embodiment of the present disclosure. The profile creation request may be a request for a user to input a segmentation direction and/or a segmentation angle for segmenting the model to be labeled in the three-dimensional view. When the section creation request is received, the to-be-labeled model is segmented based on the segmentation direction and/or the segmentation angle included in the section creation request, so that a two-dimensional section view of the to-be-labeled model is obtained.
And step 205, determining a direction vector of a candidate straight line where each line segment forming the target structure is located in the three-dimensional view and a normal vector of the sectional view.
Step 206, determining the candidate straight line with the product not equal to zero in each candidate straight line as the target straight line.
It can be known from the vector theorem that if the product of the direction vector of a straight line and the normal vector of the plane is 0, the straight line is parallel to the plane or is located in the plane, so that the product of the direction vector of each candidate straight line and the normal vector of the cross-sectional view can be obtained according to the theorem, and the candidate straight line whose product result is not 0 is determined as the target straight line. Therefore, it is necessary to obtain a direction vector of each candidate line and a normal vector of the sectional view in the three-dimensional view.
Step 207, calculating the product of the direction vector and the normal vector of each candidate straight line to obtain the product corresponding to each candidate straight line.
The candidate straight line whose product result is not 0 is determined as the target straight line, for example, the first line segment a, the third line segment c, the fifth line segment e, and the ninth line segment i of the line foot in fig. 1b all have intersection points with the cross-sectional view in fig. 1c, so that the straight lines where the first line segment a, the third line segment c, and the fifth line segment e are located are the target straight lines.
And 208, acquiring a first coordinate of any point on the target straight line and a second coordinate of any point on the sectional view.
Referring to fig. 1d, fig. 1d is a schematic structural diagram of a target line and a cross-sectional view according to an embodiment of the present disclosure. The target direction vector of the target straight line is known as a first coordinate of any point on the target straight line, the normal vector of the sectional view is known as a second coordinate of any point on the sectional view
Step 209, determining the coordinates of the intersection point of the target straight line and the cross-sectional view based on the target direction vector, the first coordinate, the normal vector and the second coordinate of the target straight line, and determining a plurality of coordinates of the intersection point.
Wherein, the coordinate of the intersection point of the target straight line and the section view is set as t which can be determined by a formula. Thereby determining the coordinates of the intersection point of the target straight line and the sectional view.
And 210, carrying out size marking on the target structure in the cross-sectional view based on the coordinates of the plurality of intersection points.
After the intersection point of each target straight line and the cross-sectional view in the cross-sectional view is determined, the coordinate distance between the intersection points can be determined according to the coordinates of the plurality of intersection points, and the actual size is determined according to a certain proportion (for example, 1: 500). Thereby dimensioning the target structure in the cross-sectional view.
As can be seen from the above, the method for labeling a structure size provided in the embodiment of the present application includes: responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated, which corresponds to the model establishing request; responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be annotated; responding to a profile creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a profile view of the model to be labeled; screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view; and carrying out dimension marking on the target structure in the section view based on the plurality of intersection point coordinates. The target structure is subjected to size marking in a mode of determining the intersection point coordinates of the target straight line and the profile view, so that the corresponding position of the target structure on the profile view is prevented from being manually determined, the size marking can be automatically performed, and the size marking efficiency is improved.
In order to better implement the method for marking the structural dimension provided by the embodiment of the present application, in an embodiment, a device for marking the structural dimension is also provided. The terms used herein have the same meanings as in the above method for labeling the structure dimensions, and specific implementation details can be referred to the descriptions in the method embodiments.
In some embodiments, there is also provided a structure dimension marking device, as shown in fig. 3, the structure dimension marking device may include: a display unit 301, a first determination unit 302, a slicing unit 303, a screening unit 304, a second determination unit 305, and a labeling unit 306.
The display unit 301 is configured to, in response to a model creation request of a model to be annotated, trigger the graphical user interface to display a three-dimensional view of the model to be annotated, where the three-dimensional view corresponds to the model creation request;
a first determining unit 302, configured to determine, in response to a target selection request input on a graphical user interface, a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled;
a splitting unit 303, configured to perform splitting processing on the three-dimensional view in response to a profile creation request input on a graphical user interface, to obtain a profile view of the model to be labeled;
a screening unit 304, configured to screen a plurality of target lines from candidate lines where each line segment constituting the target structure in the three-dimensional view is located, based on the three-dimensional view, the target structure, and the cross-sectional view;
a second determining unit 305, configured to determine a plurality of intersection coordinates according to coordinates of an intersection where the target straight line and the cross-sectional view exist;
and a labeling unit 306, configured to label the size of the target structure in the cross-sectional view based on the plurality of intersection coordinates.
In one embodiment, the screening unit 304 includes:
the first determining subunit is used for determining a direction vector of a candidate straight line where each line segment forming the target structure is located in the three-dimensional view and a normal vector of the sectional view;
a screening subunit, configured to screen at least one target straight line from the candidate straight lines based on the direction vector and the normal vector of each candidate straight line;
the second determination unit 305 includes:
the acquisition subunit is used for acquiring a first coordinate of any point on the target straight line and a second coordinate of any point on the sectional view;
and the second determining subunit is used for determining the intersection point coordinates of the target straight line and the section view based on the target direction vector of the target straight line, the first coordinates, the normal vector and the second coordinates, and determining a plurality of intersection point coordinates.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the method for labeling the structure and size in the embodiment of the present application, the display unit 301 is adopted to respond to the model creation request of the model to be labeled, and trigger the graphical user interface to display the three-dimensional view of the model to be labeled corresponding to the model creation request; the first determining unit 302 determines, in response to a target selection request input on a graphical user interface, a target structure corresponding to the target selection request from a plurality of structures constituting the model to be labeled; the segmentation unit 303 performs segmentation processing on the three-dimensional view in response to a profile creation request input on the graphical user interface to obtain a profile view of the model to be labeled; the screening unit 304 screens out a plurality of target straight lines from candidate straight lines where each line segment constituting the target structure in the three-dimensional view is located, based on the three-dimensional view, the target structure and the cross-sectional view; the second determining unit 305 determines a plurality of intersection point coordinates according to the coordinates of the intersection point existing between the target straight line and the cross-sectional view; the labeling unit 306 performs a dimension labeling on the target structure in the cross-sectional view based on the plurality of intersection coordinates. The target structure is subjected to size marking in a mode of determining the intersection point coordinates of the target straight line and the profile view, so that the corresponding position of the target structure on the profile view is prevented from being manually determined, the size marking can be automatically performed, and the size marking efficiency is improved.
Fig. 4 illustrates a physical structure diagram of a terminal device, and as shown in fig. 4, the terminal device may include: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform the following method: responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated, which corresponds to the model establishing request; responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled; responding to a profile creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a profile view of the model to be labeled; screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view; and carrying out dimension marking on the target structure in the section view based on the plurality of intersection point coordinates.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. 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 instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the method provided by the foregoing embodiments, for example, including: responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated, which corresponds to the model establishing request; responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled; responding to a section creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a section view of the model to be labeled; screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view; determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view; and dimensioning the target structure in the cross-sectional view based on the plurality of intersection point coordinates.
The above-described embodiments of the apparatus are merely illustrative, and 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 position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
In the foregoing embodiments, 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 the related descriptions of other embodiments.
The above method, apparatus, terminal device and storage medium for labeling a structure size provided in the embodiments of the present application are introduced in detail, and a specific example is applied in this document to explain the principle and implementation of the present application, and the description of the above embodiments is only used to help understand the technical solution and its core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (9)

1. A method for labeling structure dimensions is applied to a terminal device, the terminal device is deployed with an application for model creation, and when the terminal device runs the application, a graphical user interface is provided, and the method comprises the following steps:
responding to a model establishing request of a model to be annotated, and triggering the graphical user interface to display a three-dimensional view of the model to be annotated corresponding to the model establishing request;
responding to a target selection request input on a graphical user interface, and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled;
the target selection request is a preset structure drawn on the graphical user interface, and the step of determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled comprises the following steps:
acquiring the similarity of each structure in a plurality of structures forming the model to be marked in the three-dimensional view and the preset structure;
determining the structure with the similarity larger than the preset similarity as a target structure;
responding to a profile creation request input on a graphical user interface, and performing segmentation processing on the three-dimensional view to obtain a profile view of the model to be labeled;
screening a plurality of target straight lines from candidate straight lines where each line segment forming the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the section view;
determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view;
and carrying out size marking on the target structure in the section view based on the plurality of intersection point coordinates.
2. The method for labeling a structure dimension according to claim 1, wherein the step of selecting at least one target straight line from the candidate straight lines in which each line segment constituting the target structure is located in the three-dimensional view based on the three-dimensional view, the target structure and the cross-sectional view comprises:
determining a direction vector of a candidate straight line where each line segment forming the target structure is located in the three-dimensional view and a normal vector of the section view;
screening at least one target straight line from the candidate straight lines based on the direction vector and the normal vector of each candidate straight line;
the step of determining a plurality of intersection point coordinates according to the coordinates of the intersection points of the target straight line and the section view comprises the following steps:
acquiring a first coordinate of any point on the target straight line and a second coordinate of any point on the sectional view;
and determining the coordinates of the intersection point of the target straight line and the profile view based on the target direction vector of the target straight line, the first coordinate, the normal vector and the second coordinate, and determining a plurality of coordinates of the intersection point.
3. The method for labeling a structure dimension as claimed in claim 2, wherein the step of screening at least one target straight line from the candidate straight lines based on the direction vector and the normal vector of each candidate straight line comprises:
calculating the product of the direction vector of each candidate straight line and the normal vector to obtain the product corresponding to each candidate straight line;
and determining the candidate straight line of which the corresponding product is not equal to zero in each candidate straight line as the target straight line.
4. The method for labeling the dimension of a structure according to claim 3, further comprising:
and determining the candidate straight line with the corresponding product equal to zero in each candidate straight line as other straight lines, wherein the other straight lines are parallel to the section view or are in the plane of the section view.
5. The method for labeling structure dimensions according to claim 1, wherein the target selection request is to select a structure from a plurality of structures forming the model to be labeled in the three-dimensional view, and the step of determining a target structure from the plurality of structures forming the model to be labeled comprises:
and responding to the target selection request, and determining the structure selected by the target selection request as a target structure.
6. A structure dimension marking device is applied to a terminal device, the terminal device is deployed with an application for model creation, and when the terminal device runs the application, a graphical user interface is provided, the structure dimension marking device comprises:
the display unit is used for responding to a model creating request of a model to be annotated and triggering the graphical user interface to display a three-dimensional view of the model to be annotated, which corresponds to the model creating request;
the first determining unit is used for responding to a target selection request input on a graphical user interface and determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be annotated;
the target selection request is a preset structure drawn on the graphical user interface, and the step of determining a target structure corresponding to the target selection request from a plurality of structures forming the model to be labeled comprises the following steps:
acquiring the similarity of each structure in a plurality of structures forming the model to be marked in the three-dimensional view and the preset structure;
determining a structure with similarity greater than a preset similarity as a target structure;
the segmentation unit is used for responding to a profile creation request input on a graphical user interface and carrying out segmentation processing on the three-dimensional view to obtain a profile view of the model to be marked;
a screening unit, configured to screen a plurality of target straight lines from candidate straight lines where each line segment constituting the target structure is located in the three-dimensional view, based on the three-dimensional view, the target structure, and the cross-sectional view;
the second determining unit is used for determining a plurality of intersection point coordinates according to the coordinates of intersection points of the target straight line and the section view;
and the marking unit is used for marking the size of the target structure in the cross-sectional view based on the coordinates of the plurality of intersection points.
7. The apparatus for marking structural dimensions as recited in claim 6, wherein the screening unit comprises:
a first determining subunit, configured to determine a direction vector of a candidate straight line where each line segment constituting the target structure is located in the three-dimensional view, and a normal vector of the cross-sectional view;
the screening subunit is used for screening at least one target straight line from the candidate straight lines on the basis of the direction vector and the normal vector of each candidate straight line;
a second determination unit comprising:
the acquisition subunit is used for acquiring a first coordinate of any point on the target straight line and a second coordinate of any point on the sectional view;
a second determining subunit, configured to determine, based on the target direction vector of the target straight line, the first coordinate, the normal vector, and the second coordinate, intersection coordinates of the target straight line and the cross-sectional view, and determine a plurality of intersection coordinates.
8. A terminal device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the steps of the method for dimensioning structures according to any one of claims 1 to 5 when executing said program.
9. A storage medium characterized in that it comprises instructions which, when run on a computer, cause the computer to carry out the steps of the method for labeling a dimension of a structure according to any one of claims 1 to 5.
CN202011196545.6A 2020-10-30 2020-10-30 Structure size labeling method and device, terminal equipment and storage medium Active CN112199760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011196545.6A CN112199760B (en) 2020-10-30 2020-10-30 Structure size labeling method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011196545.6A CN112199760B (en) 2020-10-30 2020-10-30 Structure size labeling method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112199760A CN112199760A (en) 2021-01-08
CN112199760B true CN112199760B (en) 2022-07-15

Family

ID=74010754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011196545.6A Active CN112199760B (en) 2020-10-30 2020-10-30 Structure size labeling method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112199760B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658474A (en) * 2018-11-15 2019-04-19 深圳大学 Creation method, device and the computer equipment of three-dimensional sketch
CN110737944A (en) * 2019-10-25 2020-01-31 厦门海迈科技股份有限公司 floor slab generation method and generation device based on Revit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6798094B2 (en) * 2018-05-30 2020-12-09 ケーイー.コム (ベイジン) テクノロジー カンパニー リミテッドKe.Com (Beijing) Technology Co., Ltd. Methods and devices for marking and displaying space sizes in virtual 3D house models

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658474A (en) * 2018-11-15 2019-04-19 深圳大学 Creation method, device and the computer equipment of three-dimensional sketch
CN110737944A (en) * 2019-10-25 2020-01-31 厦门海迈科技股份有限公司 floor slab generation method and generation device based on Revit

Also Published As

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

Similar Documents

Publication Publication Date Title
US20160217610A1 (en) Method, Apparatus and Terminal for Reconstructing Three-Dimensional Object
CN103679788B (en) The generation method and device of 3D rendering in a kind of mobile terminal
US20160349964A1 (en) Method and computing device for performing operation on icon cell
CN110796016A (en) Engineering drawing identification method, electronic equipment and related product
AU2022368364B2 (en) Control method, device, equipment and storage medium for interactive reproduction of target object
CN114327057B (en) Object selection method, device, apparatus, medium and program product
CN111782758A (en) Drawing review result viewing method based on CAD and related device
EP3410389A1 (en) Image processing method and device
CN108920037B (en) Method and device for displaying virtual three-dimensional space of house
CN110765893A (en) Drawing file identification method, electronic equipment and related product
CN113657396A (en) Training method, translation display method, device, electronic equipment and storage medium
CN107818323B (en) Method and apparatus for processing image
CN113837194B (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN111931708A (en) Form generation method and device
CN112199751A (en) Wall model generation method and device, electronic equipment and storage medium
CN114245333B (en) Indoor base station deployment method and device and computer readable storage medium
CN112199760B (en) Structure size labeling method and device, terminal equipment and storage medium
CN112579244B (en) Method and system for capturing regional picture in remote desktop at mobile terminal
US10410386B2 (en) Table cell validation
CN112634366A (en) Position information generation method, related device and computer program product
CN112541934A (en) Image processing method and device
CN114415876A (en) Hand-drawn image processing method and device and electronic equipment
Oh et al. Efficient 3D design drawing visualization based on mobile augmented reality
CN112070718A (en) Method and device for determining regional quantization parameter, storage medium and terminal
CN111858987A (en) Problem checking method of CAD (computer-aided design) image, electronic equipment and related product

Legal Events

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