CN113192189B - Method, device and equipment for correcting connection relation and readable storage medium - Google Patents
Method, device and equipment for correcting connection relation and readable storage medium Download PDFInfo
- Publication number
- CN113192189B CN113192189B CN202110558707.4A CN202110558707A CN113192189B CN 113192189 B CN113192189 B CN 113192189B CN 202110558707 A CN202110558707 A CN 202110558707A CN 113192189 B CN113192189 B CN 113192189B
- Authority
- CN
- China
- Prior art keywords
- dimensional
- connection point
- point
- view
- connection
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000013507 mapping Methods 0.000 claims abstract description 57
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012937 correction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method, a device, equipment and a readable storage medium for correcting a connection relation, wherein the method comprises the following steps: acquiring a three-dimensional view and a two-dimensional view for describing engineering projects; acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point; determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view; correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point; the invention can ensure that the graphics can still keep a seamless connection state after the view mode is switched or the view proportion is adjusted, thereby achieving the display requirement and the drawing requirement.
Description
Technical Field
The present invention relates to the field of graphics processing technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for correcting a connection relationship.
Background
After forming a three-dimensional model map of an engineering project using engineering modeling software, a user may switch view modes through the engineering modeling software, for example: switching the fine view mode to a medium or coarse view mode; typically, three-dimensional model diagrams of engineering projects are displayed in fine view mode, while medium or coarse view modes display two-dimensional diagram illustrations of engineering projects; in addition, the user may also adjust the view scale, typically by scaling the two-dimensional map view, through engineering modeling software. The objects in the engineering project have a logical connection relationship, so that the graphics used for representing the objects in the view are in a seamless connection state; however, when the view mode is switched or the view proportion is adjusted, the real connection relation between the objects in the engineering project is not considered, so that the graphics used for representing the objects in the switched or adjusted view are not in a seamless connection state any more, and therefore the switched or adjusted view cannot meet the display requirement and the drawing requirement. Therefore, how to ensure that the connection relationship between the graphs in the switched or adjusted views is consistent with the real connection relationship between the objects becomes a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a readable storage medium for correcting a connection relation, which can ensure that a seamless connection state is still kept between graphs after a view mode is switched or a view proportion is adjusted, so as to meet display requirements and graph requirements.
According to an aspect of the present invention, there is provided a method of correcting a connection relationship, the method comprising:
acquiring a three-dimensional view and a two-dimensional view for describing engineering projects;
acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point;
determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view;
correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
Optionally, the acquiring a three-dimensional view and a two-dimensional view for describing the engineering project includes:
when a view mode switching instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view switched according to the view mode switching instruction; or,
when a scaling adjustment instruction for the engineering project is detected, a three-dimensional view of the engineering project is obtained, and a two-dimensional view adjusted according to the scaling adjustment instruction is obtained.
Optionally, before the acquiring the first three-dimensional connection point and the second three-dimensional connection point having a connection relationship with the first three-dimensional connection point from the three-dimensional view, the method further includes:
setting corresponding three-dimensional point connection information for each three-dimensional connection point of each three-dimensional graph according to the connection relation between each three-dimensional graph in the three-dimensional view; wherein the three-dimensional point connection information includes: information of an object to which a target three-dimensional connection point belongs, information of an associated three-dimensional connection point having a connection relationship with the target three-dimensional connection point, and information of an object to which the associated three-dimensional connection point belongs.
Optionally, the acquiring a first three-dimensional connection point and a second three-dimensional connection point with a connection relationship with the first three-dimensional connection point from the three-dimensional view includes:
acquiring a first three-dimensional graph used for representing the first object from the three-dimensional view, and determining the first three-dimensional connection point from the first three-dimensional graph;
three-dimensional point connection information corresponding to the first three-dimensional connection point is obtained, and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point is obtained from the three-dimensional point connection information.
Optionally, before the determining, from the two-dimensional view, a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point, the method further includes:
obtaining a target object from a preset object library, and obtaining a three-dimensional graph and a two-dimensional graph for representing the target object;
determining each three-dimensional connection point from the three-dimensional graph, and determining each two-dimensional connection point from the two-dimensional graph;
setting the same point number for the three-dimensional connection point and the two-dimensional connection point with the mapping relation;
and forming two-dimensional mapping information of the target object by the point numbers of the three-dimensional connection points in the three-dimensional graph and the point numbers of the two-dimensional connection points in the two-dimensional graph.
Optionally, the determining, from the two-dimensional view, a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point includes:
determining a target object corresponding to a target three-dimensional connection point aiming at the target three-dimensional connection point, and determining a point number of the target three-dimensional connection point;
determining a target two-dimensional graph for representing the target object from the two-dimensional view, and acquiring the point numbers of all two-dimensional connection points in the target two-dimensional graph;
acquiring two-dimensional mapping information corresponding to the target object;
and determining a two-dimensional connection point with a mapping relation with the target three-dimensional connection point from the target two-dimensional graph according to the point number of the target three-dimensional connection point, the point number of each two-dimensional connection point in the target two-dimensional graph and the two-dimensional mapping information.
In order to achieve the above object, the present invention further provides a device for correcting a connection relationship, the device specifically includes:
the acquisition module is used for acquiring a three-dimensional view and a two-dimensional view for describing the engineering project;
the connecting module is used for acquiring a first three-dimensional connecting point and a second three-dimensional connecting point which has a connecting relation with the first three-dimensional connecting point from the three-dimensional view;
the determining module is used for determining a first two-dimensional connecting point with a mapping relation with the first three-dimensional connecting point and a second two-dimensional connecting point with a mapping relation with the second three-dimensional connecting point from the two-dimensional view;
the correction module is used for correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
Optionally, the acquiring module is specifically configured to:
when a view mode switching instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view switched according to the view mode switching instruction; or when a scaling adjustment instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view adjusted according to the scaling adjustment instruction.
In order to achieve the above object, the present invention further provides a computer device, which specifically includes: the computer program comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the steps of the method for correcting the connection relation when executing the computer program.
In order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described method of correcting a connection relationship.
According to the method, the device, the equipment and the readable storage medium for correcting the connection relation, when the view mode is switched or the view proportion is adjusted to the engineering drawing of the engineering project, the connection relation of each two-dimensional drawing in the two-dimensional drawing of the engineering project at the two-dimensional connection point can be automatically corrected according to the connection relation of each three-dimensional drawing in the three-dimensional drawing of the engineering project at the three-dimensional connection point, so that a seamless connection state is still kept between each two-dimensional drawing in the two-dimensional drawing after the drawing is switched or adjusted, and the corrected two-dimensional drawing can truly reflect the actual connection condition between each object in the engineering project, so that the corrected two-dimensional drawing can meet the display requirement and the drawing requirement.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic flow chart of an alternative method for correcting connection relationships according to the first embodiment;
FIG. 2 is a schematic diagram of a three-dimensional view of an engineering project in accordance with the first embodiment;
FIG. 3 is a schematic diagram of a two-dimensional view of the project item before modification in accordance with the first embodiment;
FIG. 4 is a schematic diagram of another two-dimensional view of the project in accordance with the first embodiment;
fig. 5 is a two-dimensional view modified with respect to the two-dimensional view shown in fig. 3 in the first embodiment;
fig. 6 is a two-dimensional view modified with respect to the two-dimensional view shown in fig. 4 in the first embodiment;
FIG. 7 is a schematic diagram of an alternative structure of a device for correcting connection relationship according to the second embodiment;
fig. 8 is a schematic diagram of an alternative hardware architecture of a computer device according to the third embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
The embodiment of the invention provides a method for correcting a connection relation, as shown in fig. 1, which specifically comprises the following steps:
step S101: three-dimensional and two-dimensional views describing the engineering project are acquired.
In this embodiment, a designer designs a three-dimensional model of the engineering project through engineering modeling software to obtain a three-dimensional view of the engineering project, and then converts the three-dimensional view into a two-dimensional view of the engineering project through engineering modeling software in the later stage; since the conversion of the three-dimensional model map into the two-dimensional map is the prior art, the conversion process is not described herein. The three-dimensional graphics used for representing each object (such as a pipe fitting, a pipeline and equipment) in the engineering project in the three-dimensional view are connected according to the real connection relation among the objects, so that the connection relation of each three-dimensional graphic in the three-dimensional view can truly reflect the connection relation of each object in the engineering project and is in a seamless connection state; in the two-dimensional view, each object in the engineering project is represented by a simple geometric figure, and the real connection relation between each object in the engineering project is not considered in the conversion of the three-dimensional view into the two-dimensional view, so that the two-dimensional figures in the converted two-dimensional view are not in a seamless connection state, namely the real connection relation between each two-dimensional figure in the converted two-dimensional view cannot be reflected. For example, as shown in fig. 2, a schematic diagram of a three-dimensional view of an engineering project is shown, in which three-dimensional graphs of objects in fig. 2 are tightly connected, without gaps in the middle, and in a seamless connection state, as shown in fig. 3, a schematic diagram of a two-dimensional view of the engineering project before being modified is shown, in fig. 3, two-dimensional graphs of objects in fig. 3 are not tightly connected, with gaps in the middle, and no longer in a seamless connection state, as shown in fig. 4, a schematic diagram of another two-dimensional view of the engineering project before being modified is shown, in fig. 4, two-dimensional graphs of objects in fig. 4 are not tightly connected, with gaps in the middle, and no longer in a seamless connection state.
Specifically, step S101 includes:
when a view mode switching instruction for the engineering project is detected, a three-dimensional view of the engineering project is obtained, and a two-dimensional view switched according to the view mode switching instruction is obtained.
Fine view mode, medium view mode and coarse view mode are typically included in engineering modeling software; wherein, the three-dimensional view of the engineering project is displayed in the fine view mode, and the two-dimensional view of the engineering project is displayed in the medium view mode and the rough view mode. When the fine view mode is adjusted to the medium view mode or the rough view mode by the view mode switching instruction, the displayed three-dimensional view needs to be switched to the two-dimensional view; when the medium view mode or the coarse view mode is adjusted to the fine view mode by the view mode switching instruction, it is necessary to switch the displayed two-dimensional view to the three-dimensional view.
Note that, since the three-dimensional view can reflect the real connection relationship between the respective objects in the engineering project, only the case of adjusting the fine view mode to the middle view mode or the coarse view mode by the view mode switching instruction is considered in the present embodiment, and the case of adjusting the middle view mode or the coarse view mode to the fine view mode by the view mode switching instruction is not considered. For example, FIG. 2 is a three-dimensional view with a view scale of 1:100 in fine view mode, while FIG. 3 is a two-dimensional view with a view scale of 1:100 in medium view mode.
Further, step S101 further includes:
when a scaling adjustment instruction for the engineering project is detected, a three-dimensional view of the engineering project is obtained, and a two-dimensional view adjusted according to the scaling adjustment instruction is obtained.
Defaulting to 100 in engineering modeling software, and when the view proportion is set to be less than 100 through a scaling adjustment instruction, reducing the two-dimensional view is required; when the view scale is set to be greater than 100 by the scale adjustment instruction, it is necessary to enlarge the two-dimensional view.
Since the three-dimensional view can reflect the real connection relationship between the objects in the engineering project, only the case of adjusting the two-dimensional view by the scaling instruction is considered in the present embodiment, and the case of adjusting the three-dimensional view by the scaling instruction is not considered. For example, fig. 2 is a three-dimensional view with a view ratio of 1:100, fig. 3 is a two-dimensional view with a view ratio of 1:100, and fig. 4 is a two-dimensional view with a view ratio of 1:30 in the medium view mode.
Step S102: acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point; wherein the first three-dimensional connection point corresponds to a first object in the engineering project and the second three-dimensional connection point corresponds to a second object in the engineering project.
Wherein, the object is: pipes, tubes, equipment.
Specifically, before step S102, the method further includes:
setting corresponding three-dimensional point connection information for each three-dimensional connection point of each three-dimensional graph according to the connection relation between each three-dimensional graph in the three-dimensional view; wherein the three-dimensional point connection information includes: information of an object to which a target three-dimensional connection point belongs, information of an associated three-dimensional connection point having a connection relationship with the target three-dimensional connection point, and information of an object to which the associated three-dimensional connection point belongs.
In this embodiment, since the designer designs the three-dimensional model of the worker Cheng Xiang in the engineering modeling software, in this embodiment, corresponding three-dimensional point connection information is created for each three-dimensional connection point of each three-dimensional graph according to the connection relationship between each three-dimensional graph in the three-dimensional view of the engineering project; the information of the object to which it belongs (for example, pipe information, equipment information), the information of the three-dimensional connection point to which it is connected, and the information of the object to which it is connected (for example, pipe information, equipment information) can be acquired by the three-dimensional point connection information of any three-dimensional connection point. Thus, the information of the objects such as the pipeline, the pipe fitting, the equipment and the like can be obtained through the three-dimensional point connection information of the three-dimensional connection points.
Further, step S102 specifically includes:
step A1: acquiring a first three-dimensional graph used for representing the first object from the three-dimensional view, and determining the first three-dimensional connection point from the first three-dimensional graph;
step A2: three-dimensional point connection information corresponding to the first three-dimensional connection point is obtained, and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point is obtained from the three-dimensional point connection information.
In this embodiment, the three-dimensional graphics in the three-dimensional view have one or more three-dimensional connection points, and the three-dimensional graphics are connected to each other through the three-dimensional connection points, thereby achieving a seamless connection state.
Step S103: determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view; wherein the first two-dimensional connection point corresponds to the first object and the second two-dimensional connection point corresponds to the second object.
Specifically, before step S103, the method further includes:
step B1: obtaining a target object from a preset object library, and obtaining a three-dimensional graph and a two-dimensional graph for representing the target object;
for example, when the target object is a valve, acquiring a three-dimensional model graph for representing the valve and a two-dimensional geometric graph for representing the valve;
step B2: determining each three-dimensional connection point from the three-dimensional graph, and determining each two-dimensional connection point from the two-dimensional graph;
step B3: setting the same point number for the three-dimensional connection point and the two-dimensional connection point with the mapping relation;
step B4: and forming two-dimensional mapping information of the target object by the point numbers of the three-dimensional connection points in the three-dimensional graph and the point numbers of the two-dimensional connection points in the two-dimensional graph.
In this embodiment, all objects used by the engineering project are contained in the preset object library, for example: pipe fittings, pipelines and equipment. Setting corresponding two-dimensional mapping information for each object in the object library; the two-dimensional mapping information includes: mapping relation between each three-dimensional connection point in the three-dimensional graph of the target object and each two-dimensional connection point in the two-dimensional graph of the target object. It should be noted that, in this embodiment, each type of object has only two-dimensional mapping information corresponding to each object. In practical application, a connection point of a two-dimensional graph and a connection point ID of a three-dimensional graph of a type of object are defined in an object editor, when the connection point IDs are consistent, a mapping relation is represented, and when two-dimensional and three-dimensional connection point coordinate conversion is needed, the other party can be found through the connection point IDs.
Further, step S103 specifically includes:
step C1: determining a target object corresponding to a target three-dimensional connection point aiming at the target three-dimensional connection point, and determining a point number of the target three-dimensional connection point;
the information of a target object which the target three-dimensional connecting point belongs to can be determined through the three-dimensional point continuous information corresponding to the target three-dimensional connecting point;
in this embodiment, the target three-dimensional connection point is a first three-dimensional connection point and a second three-dimensional connection point; it is necessary to determine a first object corresponding to a first three-dimensional connection point and to determine a second object corresponding to a second three-dimensional connection point.
In this embodiment, point attribute information is set for each three-dimensional connection point of each three-dimensional graph in the three-dimensional view, and the point attribute information of one three-dimensional connection point includes a point number; the two-dimensional view is provided with point attribute information for each two-dimensional connection point of each two-dimensional graph, and the point attribute information of one two-dimensional connection point comprises a point number.
Step C2: determining a target two-dimensional graph for representing the target object from the two-dimensional view, and acquiring the point numbers of all two-dimensional connection points in the target two-dimensional graph;
still further, the method further comprises:
and setting an object number for unique identification for each object in the engineering project, so that a three-dimensional graph corresponding to a target object in the three-dimensional view and a two-dimensional graph corresponding to the target object in the two-dimensional view have the same object number.
In this embodiment, graphics attribute information is provided for each three-dimensional graphics in the three-dimensional view, and the graphics attribute information of one three-dimensional graphics includes an object number; and providing graphic attribute information for each two-dimensional graphic in the two-dimensional view, wherein the graphic attribute information of one two-dimensional graphic comprises an object number.
Thus, in step C2, a target three-dimensional graphic having the target object number may be acquired from the three-dimensional view using the target object number of the target object and a target two-dimensional graphic having the target object number may be acquired from the two-dimensional view.
Step C3: acquiring two-dimensional mapping information corresponding to the target object;
c3, acquiring two-dimensional mapping information corresponding to the type of the target object;
step C4: determining a two-dimensional connection point with a mapping relation with the target three-dimensional connection point from the target two-dimensional graph according to the point number of the target three-dimensional connection point, the point number of each two-dimensional connection point in the target two-dimensional graph and the two-dimensional mapping information;
wherein the point number of the target three-dimensional connection point is consistent with the point number of the two-dimensional connection point with the mapping relation, namely, the three-dimensional connection point and the two-dimensional connection point with the same point number have the mapping relation in the three-dimensional graph and the two-dimensional graph.
In this embodiment, the target three-dimensional connection point is a first three-dimensional connection point and a second three-dimensional connection point; it is necessary to determine a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and to determine a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point.
Step S104: and correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point.
Specifically, step S104 includes:
when the first object is a pipeline, setting the coordinates of the first two-dimensional connection point as the coordinates of the second two-dimensional connection point; or when the second object is a pipeline, setting the coordinates of the second two-dimensional connection point as the coordinates of the first two-dimensional connection point.
In the two-dimensional view, the two-dimensional graph corresponding to the pipeline is contracted or extended, so that the two-dimensional graph corresponding to the pipeline and other two-dimensional graphs with connection relations are kept in a seamless connection state. For example, as shown in fig. 5, in order to modify the two-dimensional view shown in fig. 3, fig. 5 is a two-dimensional view with a view ratio of 1:100 in a medium view mode, and two-dimensional graphics of each object in fig. 5 are tightly connected, and have no gap in the middle, and are in a seamless connection state; as shown in fig. 6, in order to modify the two-dimensional view shown in fig. 4, fig. 6 is a two-dimensional view with a view ratio of 1:30 in the medium view mode, and the two-dimensional graphics of each object in fig. 6 are tightly connected, and have no gap in the middle, and are in a seamless connection state.
By the aid of the method and the device, seamless connection states among objects such as the pipeline and the pipe fitting, the pipeline and the device, the pipe fitting and the pipe fitting, the pipe fitting and the device and the like can be guaranteed, and accordingly the modified two-dimensional view can meet display requirements and drawing requirements.
Furthermore, the method comprises the following steps:
and storing the two-dimensional view of the target object in different view proportions into a preset database aiming at the target object, and acquiring the two-dimensional view in the corresponding view proportion from the preset database when the scaling requirement aiming at the target object appears.
By the method, when the same object is zoomed, the saved two-dimensional view is directly acquired, so that the time for zooming the object can be saved, the performance of switching view proportion can be improved, and the performance of engineering modeling software can be greatly improved through a view graph sharing mechanism.
Example two
The embodiment of the invention provides a device for correcting a connection relation, as shown in fig. 7, which specifically comprises the following components:
an acquisition module 701, configured to acquire a three-dimensional view and a two-dimensional view for describing an engineering project;
a connection module 702, configured to obtain a first three-dimensional connection point and a second three-dimensional connection point that has a connection relationship with the first three-dimensional connection point from the three-dimensional view;
a determining module 703, configured to determine, from the two-dimensional view, a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point;
a correction module 704, configured to correct a connection relationship between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relationship between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
Specifically, the acquiring module 701 is configured to:
when a view mode switching instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view switched according to the view mode switching instruction; or when a scaling adjustment instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view adjusted according to the scaling adjustment instruction.
Further, the device further comprises:
the association module is used for setting corresponding three-dimensional point connection information for each three-dimensional connection point of each three-dimensional graph according to the connection relation among the three-dimensional graphs in the three-dimensional view; wherein the three-dimensional point connection information includes: information of an object to which a target three-dimensional connection point belongs, information of an associated three-dimensional connection point having a connection relationship with the target three-dimensional connection point, and information of an object to which the associated three-dimensional connection point belongs.
Further, the connection module 702 is specifically configured to:
acquiring a first three-dimensional graph used for representing the first object from the three-dimensional view, and determining the first three-dimensional connection point from the first three-dimensional graph; three-dimensional point connection information corresponding to the first three-dimensional connection point is obtained, and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point is obtained from the three-dimensional point connection information.
Further, the device further comprises:
the mapping module is used for acquiring a target object from a preset object library and acquiring a three-dimensional graph and a two-dimensional graph for representing the target object; determining each three-dimensional connection point from the three-dimensional graph, and determining each two-dimensional connection point from the two-dimensional graph; setting the same point number for the three-dimensional connection point and the two-dimensional connection point with the mapping relation; and forming two-dimensional mapping information of the target object by the point numbers of the three-dimensional connection points in the three-dimensional graph and the point numbers of the two-dimensional connection points in the two-dimensional graph.
Further, the determining module 703 is configured to:
determining a target object corresponding to a target three-dimensional connection point aiming at the target three-dimensional connection point, and determining a point number of the target three-dimensional connection point; determining a target two-dimensional graph for representing the target object from the two-dimensional view, and acquiring the point numbers of all two-dimensional connection points in the target two-dimensional graph; acquiring two-dimensional mapping information corresponding to the target object; and determining a two-dimensional connection point with a mapping relation with the target three-dimensional connection point from the target two-dimensional graph according to the point number of the target three-dimensional connection point, the point number of each two-dimensional connection point in the target two-dimensional graph and the two-dimensional mapping information.
Example III
The present embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster formed by a plurality of servers) that can execute a program. As shown in fig. 8, the computer device 80 of the present embodiment includes at least, but is not limited to: a memory 801, and a processor 802 which can be communicatively connected to each other via a system bus. It should be noted that fig. 8 only shows a computer device 80 having components 801-802, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the memory 801 (i.e., readable storage medium) includes flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 801 may be an internal storage unit of the computer device 80, such as a hard disk or memory of the computer device 80. In other embodiments, the memory 801 may also be an external storage device of the computer device 80, such as a plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash memory Card (Flash Card) or the like, which are provided on the computer device 80. Of course, the memory 801 may also include both internal storage units of the computer device 80 and external storage devices. In the present embodiment, the memory 801 is typically used to store an operating system and various types of application software installed on the computer device 80. Further, the memory 801 can also be used to temporarily store various types of data that have been output or are to be output.
The processor 802 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 802 is generally used to control the overall operation of the computer device 80.
Specifically, in the present embodiment, the processor 802 is configured to execute a program of a method of correcting a connection relationship stored in the memory 801, which when executed implements the steps of:
acquiring a three-dimensional view and a two-dimensional view for describing engineering projects;
acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point;
determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view;
correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
The specific embodiment of the above method steps may refer to the first embodiment, and this embodiment is not repeated here.
Example IV
The present embodiment also provides a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., having stored thereon a computer program that when executed by a processor performs the following method steps:
acquiring a three-dimensional view and a two-dimensional view for describing engineering projects;
acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point;
determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view;
correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
The specific embodiment of the above method steps may refer to the first embodiment, and this embodiment is not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. A method of modifying a connection relationship, the method comprising:
acquiring a three-dimensional view and a two-dimensional view for describing engineering projects;
acquiring a first three-dimensional connection point from the three-dimensional view and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point;
determining a first two-dimensional connection point with a mapping relation with the first three-dimensional connection point and a second two-dimensional connection point with a mapping relation with the second three-dimensional connection point from the two-dimensional view;
correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
2. The method of claim 1, wherein the acquiring three-dimensional and two-dimensional views describing the engineering project comprises:
when a view mode switching instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view switched according to the view mode switching instruction; or,
when a scaling adjustment instruction for the engineering project is detected, a three-dimensional view of the engineering project is obtained, and a two-dimensional view adjusted according to the scaling adjustment instruction is obtained.
3. The method of correcting a connection relationship according to claim 1, wherein before the acquiring a first three-dimensional connection point and a second three-dimensional connection point having a connection relationship with the first three-dimensional connection point from the three-dimensional view, the method further comprises:
setting corresponding three-dimensional point connection information for each three-dimensional connection point of each three-dimensional graph according to the connection relation between each three-dimensional graph in the three-dimensional view; wherein the three-dimensional point connection information includes: information of an object to which a target three-dimensional connection point belongs, information of an associated three-dimensional connection point having a connection relationship with the target three-dimensional connection point, and information of an object to which the associated three-dimensional connection point belongs.
4. A method of modifying a connection according to claim 3, wherein the obtaining a first three-dimensional connection point and a second three-dimensional connection point having a connection relationship with the first three-dimensional connection point from the three-dimensional view comprises:
acquiring a first three-dimensional graph used for representing the first object from the three-dimensional view, and determining the first three-dimensional connection point from the first three-dimensional graph;
three-dimensional point connection information corresponding to the first three-dimensional connection point is obtained, and a second three-dimensional connection point with a connection relation with the first three-dimensional connection point is obtained from the three-dimensional point connection information.
5. The method of correcting a connection relationship according to claim 1, wherein before the determining, from the two-dimensional view, a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point, the method further comprises:
obtaining a target object from a preset object library, and obtaining a three-dimensional graph and a two-dimensional graph for representing the target object;
determining each three-dimensional connection point from the three-dimensional graph, and determining each two-dimensional connection point from the two-dimensional graph;
setting the same point number for the three-dimensional connection point and the two-dimensional connection point with the mapping relation;
and forming two-dimensional mapping information of the target object by the point numbers of the three-dimensional connection points in the three-dimensional graph and the point numbers of the two-dimensional connection points in the two-dimensional graph.
6. The method according to claim 5, wherein determining, from the two-dimensional view, a first two-dimensional connection point having a mapping relationship with the first three-dimensional connection point and a second two-dimensional connection point having a mapping relationship with the second three-dimensional connection point, comprises:
determining a target object corresponding to a target three-dimensional connection point aiming at the target three-dimensional connection point, and determining a point number of the target three-dimensional connection point;
determining a target two-dimensional graph for representing the target object from the two-dimensional view, and acquiring the point numbers of all two-dimensional connection points in the target two-dimensional graph;
acquiring two-dimensional mapping information corresponding to the target object;
and determining a two-dimensional connection point with a mapping relation with the target three-dimensional connection point from the target two-dimensional graph according to the point number of the target three-dimensional connection point, the point number of each two-dimensional connection point in the target two-dimensional graph and the two-dimensional mapping information.
7. An apparatus for modifying a connection relationship, the apparatus comprising:
the acquisition module is used for acquiring a three-dimensional view and a two-dimensional view for describing the engineering project;
the connecting module is used for acquiring a first three-dimensional connecting point and a second three-dimensional connecting point which has a connecting relation with the first three-dimensional connecting point from the three-dimensional view;
the determining module is used for determining a first two-dimensional connecting point with a mapping relation with the first three-dimensional connecting point and a second two-dimensional connecting point with a mapping relation with the second three-dimensional connecting point from the two-dimensional view;
the correction module is used for correcting the connection relation between the first two-dimensional connection point and the second two-dimensional connection point according to the connection relation between the first three-dimensional connection point and the second three-dimensional connection point;
wherein the first three-dimensional connection point and the first two-dimensional connection point correspond to a first object in the engineering project, and the second three-dimensional connection point and the second two-dimensional connection point correspond to a second object in the engineering project.
8. The apparatus for correcting a connection relationship according to claim 7, wherein the obtaining module is specifically configured to:
when a view mode switching instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view switched according to the view mode switching instruction; or when a scaling adjustment instruction for the engineering project is detected, acquiring a three-dimensional view of the engineering project, and acquiring a two-dimensional view adjusted according to the scaling adjustment instruction.
9. A computer device, the computer device comprising: memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110558707.4A CN113192189B (en) | 2021-05-21 | 2021-05-21 | Method, device and equipment for correcting connection relation and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110558707.4A CN113192189B (en) | 2021-05-21 | 2021-05-21 | Method, device and equipment for correcting connection relation and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113192189A CN113192189A (en) | 2021-07-30 |
CN113192189B true CN113192189B (en) | 2023-10-27 |
Family
ID=76984788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110558707.4A Active CN113192189B (en) | 2021-05-21 | 2021-05-21 | Method, device and equipment for correcting connection relation and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113192189B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414809A (en) * | 2020-02-28 | 2020-07-14 | 上海牙典软件科技有限公司 | Three-dimensional graph recognition method, device, equipment and storage medium |
WO2020207190A1 (en) * | 2019-04-12 | 2020-10-15 | Oppo广东移动通信有限公司 | Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112215940B (en) * | 2019-07-11 | 2024-01-19 | 台达电子工业股份有限公司 | Construction system and construction method of scene model |
-
2021
- 2021-05-21 CN CN202110558707.4A patent/CN113192189B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020207190A1 (en) * | 2019-04-12 | 2020-10-15 | Oppo广东移动通信有限公司 | Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus |
CN111414809A (en) * | 2020-02-28 | 2020-07-14 | 上海牙典软件科技有限公司 | Three-dimensional graph recognition method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
工程图公差和粗糙度向三维模型的映射技术;郑旺;张树生;张孝龙;;微处理机(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113192189A (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220414066A1 (en) | Data management system, management method, and storage medium | |
CN112001026B (en) | Method, terminal and storage medium for building information model construction | |
CN109445901B (en) | Method and device for drawing vector graphics tool in cross-file format | |
CN112784340B (en) | Conversion method and conversion device for construction BIM model | |
CN112784342A (en) | Online editing method and device for three-dimensional model of building component | |
CN112214561A (en) | Map data processing method and device, computer equipment and storage medium | |
CN114565703A (en) | Method, device and equipment for adjusting centralized labeling and readable storage medium | |
CN113192189B (en) | Method, device and equipment for correcting connection relation and readable storage medium | |
CN114329684A (en) | Model pre-matching method and system based on BIM | |
CN112699441B (en) | BIM-based assembled field decoration feedback method, device, equipment and medium | |
CN112380607B (en) | Pipeline connection data generation method, device, computer equipment and storage medium | |
CN114048280A (en) | Vector slice processing method, device, server and storage medium | |
CN117541461A (en) | Arc scaling drawing method, device, equipment and medium | |
KR101989755B1 (en) | A Pipe Spool Drawing Automatic Making System and A Drawing | |
WO2023219559A2 (en) | Method, device and system for processing spatial data | |
CN109710785A (en) | A kind of management method, device, system and the storage medium of picture library figure cluster | |
WO2022073377A1 (en) | Vehicle damage assessment method and apparatus, computer device, and readable storage medium | |
CN112861241B (en) | Method, device and equipment for expanding conical tube and readable storage medium | |
CN115388878A (en) | Map construction method and device and terminal equipment | |
CN112632679B (en) | Building information model scene rendering method and device and computer equipment | |
US6816866B2 (en) | Method of changing a parameter of an operating system of a computer system | |
CN113434935B (en) | Method, apparatus, computer device and readable storage medium for marking temporary size | |
KR100216077B1 (en) | Gis system coordinate translation method | |
CN110750818B (en) | Height marking method, system and storage medium for drainage well design | |
CN112988609A (en) | Data processing method, device, storage medium and client |
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 |