CN112199760A - Structural dimension marking method and device, terminal equipment and storage medium - Google Patents

Structural dimension marking method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112199760A
CN112199760A CN202011196545.6A CN202011196545A CN112199760A CN 112199760 A CN112199760 A CN 112199760A CN 202011196545 A CN202011196545 A CN 202011196545A CN 112199760 A CN112199760 A CN 112199760A
Authority
CN
China
Prior art keywords
target
straight line
model
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.)
Granted
Application number
CN202011196545.6A
Other languages
Chinese (zh)
Other versions
CN112199760B (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

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 establishing request of the 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 establishing request; 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 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 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 is wrong and the labeling efficiency is 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 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 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 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 embodiment of the present application still provides a structural dimension's mark device, its characterized in that includes:
the structure size labeling device is applied to a terminal device, the terminal device is deployed with an application for model creation, the terminal device provides a graphical user interface when running 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 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.
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 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 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 needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description 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 according to an embodiment of the present application.
Fig. 4 is a specific structural diagram of a terminal device according to an 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 is to be understood that the embodiments described 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 a structural dimension, which is mainly applied to size marking of house pins, adopts Building design software to design the pins, can generally adopt Revit software, and the Revit software is constructed for a Building Information Model (BIM), and 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 device, and when a user starts the architectural design software on the terminal device, a graphical user interface is displayed on a screen of the terminal device. The model creation request may be displayed on the graphical user interface by 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 that 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 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 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 one or some 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 between 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 a target structure from a plurality of structures forming the model to be labeled 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 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 104, screening a plurality of target straight lines from the candidate straight lines where each line segment forming the target structure in the three-dimensional view is located 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 screening out at least one target straight line from candidate straight lines in which 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 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;
(1) 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 in the three-dimensional view and a normal vector of the sectional 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 the 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 where the target line and the cross-sectional view exist 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. The target direction vector of the known target straight line is
Figure BDA0002754186790000071
Any one on the target lineThe first coordinate of the point is
Figure BDA0002754186790000072
The normal vector of the cross-sectional view is
Figure BDA0002754186790000073
The second coordinate of any point on the cross-sectional view is
Figure BDA0002754186790000074
Setting the coordinates of the intersection point of the target straight line and the section view as
Figure BDA0002754186790000075
t can be represented by the formula
Figure BDA0002754186790000076
And (4) determining. 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 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 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 step 204, 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 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.
Step 205, determining 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.
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 in the three-dimensional view and a normal vector of the sectional 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 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.
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 known target straight line is
Figure BDA0002754186790000091
The first coordinate of any point on the target straight line is
Figure BDA0002754186790000092
The normal vector of the cross-sectional view is
Figure BDA0002754186790000093
The second coordinate of any point on the cross-sectional view is
Figure BDA0002754186790000094
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 coordinates of the intersection point of the target straight line and the section view are set as
Figure BDA0002754186790000095
t can be represented by the formula
Figure BDA0002754186790000096
And (4) determining. 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 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 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 are the same as those in the above method for labeling the structure dimensions, and the details of the implementation can be referred to the description in the method embodiment.
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 segmentation unit 303, configured to perform segmentation 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 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;
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 labels the size of 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 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.
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 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 above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 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 related descriptions of other embodiments.
The above detailed description is given to a method, an apparatus, a terminal device and a storage medium for labeling a structure size provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the technical solution and the 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 (10)

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 the terminal device provides a graphical user interface when running the application, 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 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 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.
2. The method for labeling the size of a structure according to claim 1, wherein the step of selecting at least one target straight line from the 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 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 sectional 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 the size of a structure according to claim 1, wherein the target selection request is a drawing of a preset structure on the gui, and the step of determining the target structure corresponding to the target selection request from among a plurality of structures constituting the model to be labeled comprises:
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;
and determining the structure with the similarity larger than the preset similarity as the target structure.
6. The method for labeling the size of a structure according to claim 1, wherein the target selection request is to select a structure from a plurality of structures constituting the model to be labeled in the three-dimensional view, and the step of determining the target structure from the plurality of structures constituting 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.
7. A structure size labeling device is applied to a terminal device, the terminal device is deployed with an application for model creation, and the terminal device provides a graphical user interface when running 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 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.
8. The structure dimension marking apparatus according to claim 7, 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;
and the second determining subunit is 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.
9. 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 6 when executing said program.
10. 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 6.
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 true CN112199760A (en) 2021-01-08
CN112199760B 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 (3)

* 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
US20190371079A1 (en) * 2018-05-30 2019-12-05 Ke.Com (Beijing) Technology Co., Ltd. Method and apparatus for marking and displaying spatial size in virtual three-dimensional house model
CN110737944A (en) * 2019-10-25 2020-01-31 厦门海迈科技股份有限公司 floor slab generation method and generation device based on Revit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190371079A1 (en) * 2018-05-30 2019-12-05 Ke.Com (Beijing) Technology Co., Ltd. Method and apparatus for marking and displaying spatial size in virtual three-dimensional house model
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
CN112199760B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
US9898860B2 (en) Method, apparatus and terminal for reconstructing three-dimensional object
CN112560862B (en) Text recognition method and device and electronic equipment
JP2018081548A (en) Information processing device, information processing method, and program
CN111275820B (en) Method, device, terminal and storage medium for drawing three-dimensional wall based on two-dimensional plane
CN110119733B (en) Page identification method and device, terminal equipment and computer readable storage medium
CN106095075A (en) A kind of information processing method and augmented reality equipment
US20160349964A1 (en) Method and computing device for performing operation on icon cell
US10083218B1 (en) Repairing tables
US20130039537A1 (en) Image processing apparatus, image processing method, and storage medium
EP4283441A1 (en) Control method, device, equipment and storage medium for interactive reproduction of target object
CN110796016A (en) Engineering drawing identification method, electronic equipment and related product
CN105578043A (en) Picture composition method and device for photographing of camera
CN107122104B (en) Data display method and device
CN112884781A (en) Image cropping method and device, electronic equipment and storage medium
CN114926849A (en) Text detection method, device, equipment and storage medium
CN112634366B (en) Method for generating position information, related device and computer program product
US10410386B2 (en) Table cell validation
CN112199760B (en) Structure size labeling method and device, terminal equipment and storage medium
EP3410389A1 (en) Image processing method and device
CN112541911A (en) Image processing method and device
CN111680628B (en) Text frame fusion method, device, equipment and storage medium
Oh et al. Efficient 3D design drawing visualization based on mobile augmented reality
CN114140813A (en) High-precision map marking method, device, equipment and storage medium
CN113378958A (en) Automatic labeling method, device, equipment, storage medium and computer program product
CN113837194B (en) Image processing method, image processing apparatus, electronic device, and storage medium

Legal Events

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