CN114816192A - Graph dragging automatic adsorption alignment method and device, computer equipment and medium - Google Patents

Graph dragging automatic adsorption alignment method and device, computer equipment and medium Download PDF

Info

Publication number
CN114816192A
CN114816192A CN202210461218.1A CN202210461218A CN114816192A CN 114816192 A CN114816192 A CN 114816192A CN 202210461218 A CN202210461218 A CN 202210461218A CN 114816192 A CN114816192 A CN 114816192A
Authority
CN
China
Prior art keywords
graph
adsorption
target
dragging
graphic
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.)
Pending
Application number
CN202210461218.1A
Other languages
Chinese (zh)
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.)
Aspire Technologies Shenzhen Ltd
Original Assignee
Aspire Technologies Shenzhen 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 Aspire Technologies Shenzhen Ltd filed Critical Aspire Technologies Shenzhen Ltd
Priority to CN202210461218.1A priority Critical patent/CN114816192A/en
Publication of CN114816192A publication Critical patent/CN114816192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, computer equipment and a medium for automatically adsorbing and aligning graph dragging, wherein the method is realized by the following steps: when the first graph dragged in the canvas is monitored, judging whether at least one second graph exists or not; if so, monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph; determining a dragging direction of a first graph; determining a second graph which meets the preset adsorption condition according to the dragging direction to serve as a target graph; and calculating a first distance value between the first graph and the target graph, and aligning and adsorbing the first graph to the target graph when the first distance value is smaller than a preset adsorption threshold value. In the application, the target graph is determined according to the dragging direction of the first graph, and when the distance between the dragged graph and the target graph is smaller than a preset adsorption threshold value, adsorption alignment is carried out, so that the cost of graph calibration is reduced, and the user experience is improved.

Description

Graph dragging automatic adsorption alignment method and device, computer equipment and medium
Technical Field
The invention relates to the technical field of graph drawing, in particular to a graph dragging automatic adsorption alignment method, a graph dragging automatic adsorption alignment device, computer equipment and a medium.
Background
JavaScript is a scripting language running on a browser side, and JavaScript mainly solves the problem of interaction between a front end and a user, including interaction and data interaction. The native Javascript' dragable API tool is widely applied to the software development field related to graphics production.
However, when the native javascript dragable API is used, only a graph dragging function can be realized, and when the graph is aligned and adsorbed, manual setting is often required, which results in complex operation and higher labor cost, and is not beneficial to use.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device and a medium for automatically adsorbing and aligning a graph by dragging, so as to solve the problems of complicated operation and high labor cost caused by manually aligning and adsorbing the graph in the prior art.
In a first aspect, a method for automatically adsorbing and aligning a graph by dragging is provided, which includes:
when the first graph dragged in the canvas is monitored, judging whether at least one second graph exists or not;
if so, monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph;
determining the dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
determining a second graph which meets a preset adsorption condition according to the dragging direction to serve as a target graph;
and calculating a first distance value between the first graph and the target graph, and aligning and adsorbing the first graph to the target graph when the first distance value is smaller than a preset adsorption threshold value.
In one embodiment, the aligning and adsorbing the first pattern onto the target pattern includes:
when the distance value is smaller than a preset adsorption threshold value, judging whether the side line and the center line of the target graph and any side line or center line of the first graph are in the same straight line;
if so, generating an alignment reference line of the first graph and the target graph; and aligning and adsorbing the first graph to the target graph according to the alignment reference line.
In one embodiment, the first graphic and the second graphic are planar graphics, and the aligning and adsorbing the first graphic onto the target graphic includes:
determining an adsorption reference vertex and an adsorption reference line of the target graph;
determining the side to be adsorbed of the first graph according to the adsorption reference vertex and the adsorption reference line of the target graph;
generating adsorption adjustment information according to the adsorption reference vertex, the adsorption reference line and the side to be adsorbed;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In an embodiment, when the first graphic and the target graphic are both stereoscopic graphics, the aligning and adsorbing the first graphic to the target graphic includes:
determining an adsorption reference plane and an adsorption reference point of the target graph;
determining a plane to be adsorbed of the first graph according to the adsorption reference plane and the adsorption reference point of the target graph;
generating adsorption adjustment information according to the adsorption reference plane, the adsorption reference point and the plane to be adsorbed of the target graph;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In an embodiment, the determining, according to the dragging direction, a second graphic meeting a preset adsorption condition as a target graphic includes:
determining a second graph located in a preset range of the dragging direction according to the dragging direction;
when the second graph located in the preset range of the dragging direction comprises a plurality of second graphs, determining a second graph with the same adsorption line as the first graph or determining a second graph with the same shape as the first graph in the second graph located in the preset range of the dragging direction;
and taking a second graph with the same adsorption lines as the first graph or a second graph with the same shape as the first graph as the target graph.
In one embodiment, the aligning and adsorbing the first pattern onto the target pattern includes:
determining a preset adsorption alignment mode;
adjusting the first graph according to the preset adsorption alignment mode, and adsorbing the adjusted first graph onto the target graph in an aligned mode;
in one embodiment, after the aligning and adsorbing the first pattern onto the target pattern, the method includes:
when the dragging operation of a third graph is monitored, respectively calculating a second distance value between the third graph and the first graph and a third distance value between the third graph and the target graph;
when the second distance value is larger than the third distance value and the third distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the target graph;
and when the second distance value is smaller than the third distance value and the second distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the first graph.
In a second aspect, an automatic drawing and adsorbing alignment device for drawing a figure is provided, which includes:
the judging unit is used for judging whether at least one second graph exists when the fact that the first graph is dragged in the canvas is monitored;
the coordinate information acquisition unit is used for monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph when the judgment result is yes;
a dragging direction determining unit, configured to determine a dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
the target graph obtaining unit is used for determining a second graph which meets the preset adsorption condition according to the dragging direction to serve as a target graph;
and the alignment adsorption unit is used for calculating a first distance value between the first graph and the target graph, and when the first distance value is smaller than a preset adsorption threshold value, the first graph is aligned and adsorbed to the target graph.
In a third aspect, a computer device is provided, which includes a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor executes the computer readable instructions to implement the graph drag auto-absorption alignment method as described above.
In a fourth aspect, a readable storage medium of computer readable instructions is provided, which when executed by one or more processors, causes the one or more processors to perform the graph drag auto-absorption alignment method as described above.
The method for automatically adsorbing and aligning the graph by dragging, the device, the computer equipment and the medium are realized by the method and comprise the following steps: when a first graph is dragged in a canvas, judging whether at least one second graph exists, and if so, monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph; determining the dragging direction of the first graph according to the original coordinate information and the dragging coordinate information; determining a second graph which meets a preset adsorption condition according to the dragging direction to serve as a target graph; and calculating a first distance value between the first graph and the target graph, and aligning and adsorbing the first graph to the target graph when the first distance value is smaller than a preset adsorption threshold value. In the application, when the graph is dragged in the canvas, the dragging direction of the graph is calculated, the target graph is determined according to the dragging direction, when the distance between the dragged graph and the target graph is smaller than a preset adsorption threshold value, the dragged graph and the target graph are automatically adsorbed and aligned, manual setting is not needed, the cost of graph calibration is reduced, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of an implementation of an automatic absorption alignment method for drawing a graph according to an embodiment of the present invention;
FIG. 2a is a diagram illustrating dragging a first graphic from top to bottom according to an embodiment of the present invention;
FIG. 2b is a diagram illustrating dragging the first graphic from bottom to top according to an embodiment of the present invention;
FIG. 2c is a diagram illustrating dragging the first graphic from left to right according to an embodiment of the present invention;
FIG. 2d is a diagram illustrating dragging the first graphic from right to left according to an embodiment of the present invention;
FIG. 3a is a first schematic view of two planar patterns aligned for adsorption in an embodiment of the present invention;
FIG. 3b is a second schematic view of two planar patterns aligned and adsorbed according to an embodiment of the present invention;
FIG. 4a is a first schematic diagram illustrating two three-dimensional patterns aligned and adsorbed according to an embodiment of the present invention;
FIG. 4b is a second schematic view of two three-dimensional patterns aligned and adsorbed according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of graph fusion according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an automatic absorption and alignment apparatus for drawing a graphic according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment, as shown in fig. 1, a method for automatically adsorbing and aligning a graph by dragging is provided, which is described by taking the method applied to a server in fig. 1 as an example, and includes the following steps:
in step S110, when it is monitored that the first graphic is dragged in the canvas, it is determined whether at least one second graphic exists;
in the embodiment of the application, the first graph can be dragged through a dragable API tool provided by the native Javascript in the canvas. When the drag on the first graphic is heard, the canvas may be further traversed to determine if at least one second graphic is present in the canvas.
The first graph and the second graph may be both planar graphs and stereoscopic graphs, or the first graph is a planar graph and the second graph is a stereoscopic graph, or vice versa, specifically, the first graph and the second graph may be vector graphs formed by external contour lines, and exemplarily, the first graph and the second graph may be straight lines, cylinders, rectangles, curves, graphs and the like drawn by a computer.
In an embodiment of the application, the second graph and the first graph may be in the same canvas or different canvases, when the second graph and the first graph are in different canvases, the canvas where the first graph is located and the canvas where the second graph is located may be opened at the same time on the current interface, the first graph may be dragged to the canvas where the second graph is located by dragging the first graph, or when the first graph is dragged, a virtual first graph with the same first graph may be generated in the canvas where the second graph is located, the virtual first graph and the target graph are aligned and adsorbed by the virtual graph, after the adsorption is successful, the first graph is eliminated in the canvas of the first graph, and the virtual first graph is used as the actual first graph.
In the embodiment of the present application, when there is no second pattern, the subsequent alignment adsorption operation does not need to be performed.
In step S120, if the determination result is yes, monitoring and recording original coordinate information of the first graph and drag coordinate information generated in the drag process of the first graph;
in the embodiment of the application, when the first graph is dragged, the coordinate information of each current vertex and center point of the first graph can be automatically recorded, and in the process of dragging the first graph, the dragged coordinate information of the first graph is recorded in real time, for example, when the first graph is selected by a mouse for the first time, the original coordinate information (X) of the first graph is recorded 0 ,Y 0 ) When the first graph is dragged by the mouse, the dragging coordinate information (X) of the first graph is recorded in real time according to the position change condition of the first graph in the dragging process 1 ,Y 1 )。
In step S130, determining a dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
in the embodiment of the present application, the dragging direction of the first graph may be calculated by a difference between the original coordinate information and the dragging coordinate information, and the specific calculation manner is as follows:
VarisRightward=X 1 -X 0
VarisDownward=Y 1 -Y 0
wherein isDownward >0 indicates that the first graphic is moving downward, and vice versa. Similarly, isLightward >0 indicates that the first graphic is moving to the right, and vice versa to the left.
In the embodiment of the present application, the dragging direction may also be an oblique line, for example, the upper left corner moves to the lower right corner, and the like.
In step S140, determining a second graph meeting a preset adsorption condition as a target graph according to the dragging direction;
in the embodiment of the present application, when determining the dragging direction of the first graphic, it may be further determined whether a second graphic exists within a preset range of the dragging direction, and if the second graphic exists, the second graphic may be used as a target graphic. That is, when the dragging direction is a direction in which the second graphic is located, the second graphic is used as the target graphic, and when the dragging direction is a direction away from the second graphic, the second graphic is not used as the target graphic, and adsorption cannot be achieved.
In an embodiment of the present application, when a plurality of second graphics in the preset range of the dragging direction are included, the distance between the first graphic and the second graphic may be calculated, and the second graphic with a small distance may be used as the target graphic.
In the first embodiment of the present application, when two second patterns exist simultaneously and the distance between the two second patterns coincides with the distance between the first patterns, the shape, type, or adsorption characteristic of each second pattern may be weighted differently to calculate the adsorption score, and the second pattern having a large adsorption score may be set as the target pattern.
In step S150, a first distance value between the first graph and the target graph is calculated, and when the first distance value is smaller than a preset adsorption threshold, the first graph is adsorbed onto the target graph in an aligned manner.
In this embodiment of the application, when the first graphic is dragged in different directions, the first distance value between the first graphic and the target graphic may be calculated as follows:
it is assumed that the first pattern and the target pattern are both rectangular, the first pattern Rect1 (length 200, width 100), and the target pattern Rect2 (length 100, width 100).
Referring to fig. 2a, the coordinates of the top left corner of Rect1 are (100 ), and the coordinates of the top left corner of Rect2 are (100, 300), so that rec1. bottom + rec1. height is 100+200, and rec2. top is 300. When the Rect1 moves from top to bottom, the Rect1.bottom will become larger gradually, and when the Rect2. top-the Rect1.bottom < > is equal to the preset adsorption threshold, the Rect1.top can be set to the Rect2. top-the Rect1.height is equal to 200. Thereby completing the automatic adsorption of Rect1 and Rect2.
Referring to fig. 2b, the coordinates of the top left corner of Rect1 are (100, 300), the coordinates of the top left corner of Rect2 are (100 ), and then, Rect2.bottom + Rect2.height is 100+200, and at the same time, Rect1.top is 300. When the Rect1 moves from bottom to top, the Rect1.bottom will gradually become smaller, and when the Rect1. top-the Rect1.bottom < > is equal to the preset adsorption threshold, the Rect1.top can be automatically set to the return 2.bottom + the return 2.height of 200. Thereby completing the automatic adsorption of Rect1 and Rect2.
Referring to fig. 2c, the coordinates of the top left corner of Rect1 are (100 ), the coordinates of the top left corner of Rect2 are (500, 300), and then, return 1.right + return 1.width is 100+200 is 300, and return 2.left is 500. When the Rect1 moves from left to right, the ratio of Rect1.right gradually increases, and when the ratio of Rect2. left-retrieve 1.right is less than the preset adsorption threshold, the ratio of Rect1.left can be automatically set to 300, and then the automatic adsorption of the Rect1 and the Rect2 is completed.
Referring to fig. 2d, the coordinates of the top left corner of Rect1 are (500, 100), the coordinates of the top left corner of Rect2 are (100, 300), and then, return 2.right + return 2.width is 100+200 is 300, and return 1.left is 500. When the act 1 moves from right to left, act 1.left will gradually become smaller, and when act 1. left-act 2.right < > is equal to the preset adsorption threshold, act 1.left will be automatically set to act 2.left + act 2.width equal to 300, thereby completing act 1 and act 2 automatic adsorption.
In this embodiment of the application, the preset adsorption threshold may be a specific numerical value, such as a 3-pixel value, and may be specifically set according to an actual situation, and this application is not limited herein.
In an embodiment of the application, when the first distance value is smaller than the preset adsorption threshold, the first graph may be aligned and adsorbed onto the target graph in a vertex adsorption mode, a sideline adsorption mode, a surface adsorption mode, and the like.
In an embodiment of the present application, a method for automatically adsorbing and aligning a graph by dragging is provided, including: when a first graph is dragged in a canvas, judging whether at least one second graph exists, and if so, monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph; determining the dragging direction of the first graph according to the original coordinate information and the dragging coordinate information; determining a second graph which meets a preset adsorption condition according to the dragging direction to serve as a target graph; and calculating a first distance value between the first graph and the target graph, and aligning and adsorbing the first graph to the target graph when the first distance value is smaller than a preset adsorption threshold value. In the application, when the graph is dragged in the canvas, the dragging direction of the graph is calculated, the target graph is determined according to the dragging direction, when the distance between the dragged graph and the target graph is smaller than a preset adsorption threshold value, the dragged graph and the target graph are automatically adsorbed and aligned, manual setting is not needed, the cost of graph calibration is reduced, and user experience is improved.
In an embodiment, an implementation process of an automatic adsorption and alignment method for drawing a graphic is provided, which includes:
in step S110, when it is monitored that the first graphic is dragged in the canvas, it is determined whether at least one second graphic exists;
in the embodiment of the application, the first graph can be dragged through a dragable API tool provided by the native Javascript in the canvas. When the drag on the first graphic is heard, the canvas may be further traversed to determine if at least one second graphic is present in the canvas.
The first graph and the second graph may be both planar graphs and stereoscopic graphs, or the first graph is a planar graph and the second graph is a stereoscopic graph, or vice versa, specifically, the first graph and the second graph may be vector graphs formed by external contour lines, and exemplarily, the first graph and the second graph may be straight lines, cylinders, rectangles, curves, graphs and the like drawn by a computer.
In an embodiment of the application, the second graph and the first graph can be located in the same canvas, and can also be located in different canvases, when the second graph and the first graph are located in different canvases, the canvas where the first graph is located and the canvas where the second graph is located can be opened at the same time on a current interface, the first graph can be dragged to the canvas where the second graph is located through dragging the first graph, or when the first graph is dragged, a virtual first graph with the same first graph can be generated in the canvas where the second graph is located, the virtual first graph and a target graph are aligned and adsorbed through the virtual graph, after adsorption is successful, the first graph is eliminated from the canvas of the first graph, and the virtual first graph is used as an actual first graph.
In step S120, if the determination result is yes, monitoring and recording original coordinate information of the first graph and drag coordinate information generated in the drag process of the first graph;
in the embodiment of the application, when the first graph is dragged, the coordinate information of each current vertex and center point of the first graph can be automatically recorded, and in the process of dragging the first graph, the dragged coordinate information of the first graph is recorded in real time, for example, when the first graph is selected by a mouse for the first time, the original coordinate information (X) of the first graph is recorded 0 ,Y 0 ) When the first graph is dragged by the mouse, the dragging coordinate information (X) of the first graph is recorded in real time according to the position change condition of the first graph in the dragging process 1 ,Y 1 )。
In step S130, determining a dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
in the embodiment of the present application, the dragging direction of the first graph may be calculated by a difference between the original coordinate information and the dragging coordinate information, and the specific calculation manner is as follows:
VarisRightward=X 1 -X 0
VarisDownward=Y 1 -Y 0
wherein isDownward >0 indicates that the first graphic is moving downward, and vice versa. Similarly, isLightward >0 indicates that the first graphic is moving to the right, and vice versa to the left.
In the embodiment of the present application, the dragging direction may also be an oblique line, for example, the upper left corner moves to the lower right corner, and the like.
In step S140, determining a second graph meeting a preset adsorption condition as a target graph according to the dragging direction;
in the embodiment of the present application, when determining the dragging direction of the first graphic, it may be further determined whether a second graphic exists within a preset range of the dragging direction, and if the second graphic exists, the second graphic may be used as a target graphic. That is, when the dragging direction is a direction in which the second graphic is located, the second graphic is used as the target graphic, and when the dragging direction is a direction away from the second graphic, the second graphic is not used as the target graphic, and adsorption cannot be achieved.
In an embodiment of the present application, when a plurality of second graphics in the preset range of the dragging direction are included, the distance between the first graphic and the second graphic may be calculated, and the second graphic with a small distance may be used as the target graphic.
In the first embodiment of the present application, when two second patterns exist simultaneously and the distance between the two second patterns coincides with the distance between the first patterns, the shape, type, or adsorption characteristic of each second pattern may be weighted differently to calculate the adsorption score, and the second pattern having a large adsorption score may be set as the target pattern.
In an embodiment of the application, the determining, according to the dragging direction, a second graphic meeting a preset adsorption condition as a target graphic includes:
determining a second graph located in a preset range of the dragging direction according to the dragging direction;
when the second graph located in the preset range of the dragging direction comprises a plurality of second graphs, determining a second graph with the same adsorption characteristic as the first graph or determining a second graph with the same shape as the first graph in the second graph located in the preset range of the dragging direction;
and taking a second graph with the same adsorption lines as the first graph or a second graph with the same shape as the first graph as the target graph.
Specifically, when the second pattern includes a plurality of second patterns, the target pattern may be determined according to the type and shape of the second pattern, specifically, when the number of the second patterns is 2, one of the second patterns is a rectangle, and the other of the second patterns is a circle, and the first pattern is also a rectangle, the second pattern having the shape of a rectangle is used as the target pattern, or when one of the second patterns is a three-dimensional pattern, the other of the second patterns is a plane pattern, and the first pattern is a plane pattern, the second pattern having the type of a plane pattern is used as the target pattern.
Further, when the second pattern includes a plurality of second patterns, the target pattern may be determined according to the adsorption characteristics of the first pattern and the second pattern, and specifically, when the first pattern includes a diagonal line inclined by 30 degrees, and the second pattern also includes a diagonal line inclined by 30 degrees, the target pattern may be determined.
In step S150, a distance value between the first graph and the target graph is calculated, and when the distance value is smaller than a preset adsorption threshold, the first graph is adsorbed onto the target graph in an aligned manner.
In this embodiment of the application, the preset adsorption threshold may be a specific numerical value, such as a 3-pixel value, and may be specifically set according to an actual situation, and this application is not limited herein.
In an embodiment of the application, when the first distance value is smaller than the preset adsorption threshold, the first graph may be aligned and adsorbed onto the target graph in a vertex adsorption mode, a sideline adsorption mode, a surface adsorption mode, and the like.
In one embodiment, the aligning and adsorbing the first pattern onto the target pattern includes:
judging whether the side line and the central line of the target graph are in the same straight line with any side line or central line of the first graph;
if so, generating an alignment reference line of the first graph and the target graph; and aligning and adsorbing the first graph to the target graph according to the alignment reference line.
Specifically, coordinate information of all vertexes and center points of the target graph can be recorded in advance, when the distance value between the first graph and the target graph is smaller than a preset adsorption threshold value, it is judged that the respective vertex coordinate information of the first figure matches the coordinate information of the recorded target figure, when the edge line and the center line of the target figure are consistent with the coordinates of any edge line or center line of the first figure, it may be determined that the edge and centerline of the target graphic are in line with any of the edges or centerlines of the first graphic, and, at this time, the alignment reference lines may be generated on the edge lines and the center line of the target pattern, respectively, so that the alignment and suction manner may be arbitrarily selected according to the alignment reference lines, for example, the alignment reference line on the center line may be used to align the first pattern with the target pattern to be perpendicular to the center line.
In an embodiment of the application, when a first graphic is dragged, an alignment reference line of the first graphic may be generated on a side line and/or a center line of the first graphic, so that a target graphic may be selected according to the alignment reference line of the first graphic, so as to drag the first graphic to a target position, and achieve alignment adsorption with the target graphic, for example, when the first graphic and a second graphic are both rectangular, two long sides of the first graphic may extend outward to form the alignment reference line, at this time, when the first graphic is dragged left and right, the alignment of the target graphic may be assisted according to the alignment reference line, and a second graphic with a uniform width may also be selected as the target graphic, so that the graphic after adsorption and alignment is more beautiful.
In an embodiment of the application, the first graph and the second graph are planar graphs, and when the distance value is smaller than a preset adsorption threshold value, the aligning and adsorbing the first graph to the target graph includes:
determining an adsorption reference vertex and an adsorption reference line of the target graph;
determining the side to be adsorbed of the first graph according to the adsorption reference vertex and the adsorption reference line of the target graph;
generating adsorption adjustment information according to the adsorption reference vertex, the adsorption reference line and the side to be adsorbed;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In this embodiment, the adsorption reference vertex and the adsorption reference line of the target graph may be determined according to the dragging direction of the first graph, for example, when the dragging direction of the first graph is from top to bottom, a side line of the target graph close to the first graph is the adsorption reference line, and a vertex on the side line closest to the first graph is the adsorption reference vertex.
In this embodiment, the adsorption reference vertex and the adsorption reference line may be determined according to the shape of the target figure, for example, when the target figure is a right triangle, the right vertex is the adsorption reference vertex, and the right side closest to the first figure is the adsorption reference vertex.
Referring to fig. 3a, in the embodiment of the present application, after the adsorption reference vertex and the adsorption reference line of the target graph are determined, the adsorption side of the first graph may be determined according to the adsorption reference vertex and the adsorption reference line, for example, when the target graph and the first graph are both right triangles, the adsorption reference vertex is a right angle vertex O, and the adsorption reference line is a side F1, the adsorption side of the first graph may be determined to be a side F2, and at this time, the first graph may be rotated so that the side F2 corresponds to the side F1, so that the first graph is adsorbed and aligned based on the side F1, the side F2, and the right angle vertex.
Referring to fig. 3b, when the target graphic and the first graphic are both rectangular, the adsorption reference vertex of the target image is O, and the adsorption reference line is F1 side, it may be determined that the adsorption side of the first graphic is F2, and at this time, the F2 side and the F1 side of the first graphic may be adsorbed in alignment with the adsorption reference vertex O.
In an embodiment of the application, when the first graph and the target graph are both stereo graphs, aligning and adsorbing the first graph to the target graph when the distance value is smaller than a preset adsorption threshold value includes:
determining an adsorption reference plane and an adsorption reference point of the target graph;
determining a plane to be adsorbed of the first graph according to the adsorption reference plane and the adsorption reference point of the target graph;
generating adsorption adjustment information according to the adsorption reference plane, the adsorption reference point and the plane to be adsorbed of the target graph;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In this embodiment, the adsorption reference plane and the adsorption reference point of the target graphic may be determined according to the dragging direction of the first graphic, for example, when the dragging direction of the first graphic is left to right, the plane of the target graphic close to the first graphic is the adsorption reference plane, and the vertex of the upper right corner of the target graphic closest to the first graphic is the adsorption reference vertex.
In the embodiment of the present application, the target pattern may be set to a suction reference plane and a suction reference point according to the shape and the placement position of the target pattern, for example, when the target pattern is a cylinder, the top plane of the cylinder may be used as the suction reference plane, and the center of the top plane may be used as the suction reference point.
Referring to fig. 4a, in the embodiment of the present application, when the adsorption reference plane and the adsorption reference point of the target pattern are determined, the adsorption reference plane of the first pattern may also be determined based on the adsorption reference plane and the adsorption reference point, for example, when the first graph and the target graph are both cylinders, the first graph is dragged from right to left, and at the moment, the absorption reference plane of the target pattern is a circular plane E1 at the top of the cylinder, the absorption reference point is the center O of the circular plane at the top, the adsorption plane of the first pattern may be the top plane or the bottom plane E2 of the cylinder, and at this time, the adsorption adjustment information can be obtained according to the adsorption reference plane E1, the adsorption reference point O and the adsorption plane E2 of the target pattern, so as to correspondingly turn or move the first pattern, and the suction plane E2 and the suction reference plane E1 are aligned and sucked at the suction reference point O.
Referring to fig. 4b, when the first graphic and the target graphic are cuboids, the first graphic is dragged from right to left, at this time, the absorption reference surface of the target graphic is a cuboid right side plane E1, and the absorption reference point is a lower right corner O of the cuboid right side plane, so that the absorption surface of the first graphic may be a left side plane E2 (not shown in the figure), and at this time, coordinates of each vertex of the first graphic are modified according to the absorption reference surface E1, the absorption reference point O and the absorption surface E2, so as to move the first graphic to a corresponding position and perform alignment absorption with the absorption reference point O with the target graphic.
In an embodiment of the application, when the first graph and the target graph are both stereo graphs, an edge line of the target graph can be used as an adsorption reference line, and a vertex on the edge line can be used as an adsorption reference point, so that the edge line and the vertex of the target graph and the first graph are aligned and adsorbed.
In an embodiment of the present application, when the first graph is a three-dimensional graph and the target graph is a planar graph, the side line and the vertex of the target graph can be used as an absorption reference line and an absorption reference point. When the target figure is a three-dimensional figure and the first figure is a planar figure, the arbitrary plane and the vertex of the target figure can be used as an adsorption reference plane and an adsorption reference point.
In an embodiment of the present application, the aligning and adsorbing the first pattern onto the target pattern includes:
determining a preset adsorption alignment mode;
adjusting the first graph according to the adsorption alignment mode, and aligning and adsorbing the adjusted first graph to the target graph;
in the embodiment of the present application, the absorption alignment manner includes, but is not limited to, any one or any combination of vertex alignment, vertical center line alignment, side line alignment, horizontal alignment, left-right alignment, and up-down alignment.
In the embodiment of the present application, the absorption alignment manner may be determined according to the type and shape of the graph, for example, when the graph is a planar graph, the graph may be edge-line aligned, top-bottom aligned, left-right aligned, and the like, and when the graph is a stereoscopic graph, the graph may be vertex aligned, vertical center-line aligned, horizontal aligned, and the like. When the figure is in the shape of a cylinder, the figure can be aligned perpendicular to the center line, and when the figure is in the shape of a rectangle, the figure can be aligned with the side line. In addition, the above alignment modes can be combined, for example, edge alignment and vertex alignment can be combined, so as to satisfy both edge alignment and vertex alignment.
In an embodiment of the present application, after the aligning and adsorbing the first pattern onto the target pattern, the method includes:
when the dragging operation of a third graph is monitored, respectively calculating a second distance value between the third graph and the first graph and a third distance value between the third graph and the target graph;
when the second distance value is larger than the third distance value and the third distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the target graph;
and when the second distance value is smaller than the third distance value and the second distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the first graph.
Specifically, after the first graph and the target graph are adsorbed, when the dragging operation of the third graph is monitored, and whether the position of the target graph is within the preset range of the dragging direction of the third graph or not can be judged, the second distance value between the first graph and the third distance value between the third graph and the target graph can be judged, when the second distance value is smaller and the second distance value is smaller than a preset adsorption threshold value, the first graph can be used as the target graph, the third graph can be adsorbed onto the first graph in an aligned mode, and when the third distance value is smaller and the third distance value is smaller than the preset adsorption threshold value, the third graph can be adsorbed onto the target graph to achieve aligned adsorption.
In an embodiment of the present application, when the graphics meet the overlap adsorption condition, the first graphic may be used as a target graphic for next graphic adsorption, for example, when the graphics are circular planes and the area of the third graphic is smaller than that of the first graphic, the third graphic may be adsorbed on the first graphic, and when the area of the fourth graphic is smaller than that of the third graphic, the third graphic may be used as the target graphic, and the fourth graphic may be adsorbed on the third graphic, and so on.
Wherein, the overlapped adsorption mode can adopt vertical center line alignment or horizontal center alignment.
In an embodiment of the present application, after the first pattern is aligned and adsorbed onto the target pattern, a reset operation may be performed on the adsorbed pattern, that is, the adsorption state is released, so that the first pattern is restored to the original position.
Referring to fig. 5, in an embodiment of the present application, when the distance value is smaller than a preset adsorption threshold, the target pattern is subjected to liquefaction deformation, so that the first pattern is aligned and adsorbed by a liquefaction deformation area of the target pattern, and a new pattern is formed. Specifically, the first target graph is A, the first graph is B, when the distance between the first graph B and the target graph A is smaller than a preset adsorption threshold value, the target graph A can be subjected to liquefaction deformation, the first graph B is aligned and adsorbed through a liquefaction deformation area, and the first graph and the second graph are fused to form a new graph. Or the target graph and the first graph can be liquefied and deformed at the same time, and the alignment and adsorption between the target graph and the first graph are realized through the liquefied and deformed areas of the target graph and the first graph.
Wherein, different new patterns can be formed after different patterns are adsorbed and fused. The animation effect is increased, and the user experience is improved.
In the application, when the graph is dragged in the canvas, the dragging direction of the graph is calculated, the target graph is determined according to the dragging direction, when the distance between the dragged graph and the target graph is smaller than a preset adsorption threshold value, the dragged graph and the target graph are automatically adsorbed and aligned, manual setting is not needed, the cost of graph calibration is reduced, and user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an automatic drawing and adsorbing alignment device for drawing a graphic is provided, and the automatic drawing and adsorbing alignment device for drawing a graphic corresponds to the automatic drawing and adsorbing alignment method in the above embodiment one to one. As shown in fig. 6, the image drawing automatic suction alignment apparatus includes: a judgment unit 10, a coordinate information acquisition unit 20, a dragging direction determination unit 30, a target pattern acquisition unit 40, and an alignment adsorption unit 50. The detailed description of each functional module is as follows:
a judging unit 10, configured to judge whether at least one second graph exists when it is monitored that a first graph is dragged in a canvas;
the coordinate information acquiring unit 20 is configured to monitor and record original coordinate information of the first graph and drag coordinate information generated in a drag process of the first graph when the determination result is yes;
a dragging direction determining unit 30, configured to determine a dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
a target pattern obtaining unit 40, configured to determine, according to the dragging direction, a second pattern that meets a preset adsorption condition as a target pattern;
and the alignment adsorption unit 50 is configured to calculate a first distance value between the first graph and the target graph, and when the first distance value is smaller than a preset adsorption threshold, to align and adsorb the first graph onto the target graph.
In an embodiment, the target pattern obtaining unit 40 is further configured to
Determining a second graph located in a preset range of the dragging direction according to the dragging direction;
when the second graph located in the preset range of the dragging direction comprises a plurality of second graphs, determining a second graph with the same adsorption characteristic as the first graph or determining a second graph with the same shape as the first graph in the second graph located in the preset range of the dragging direction;
and using a second pattern having the same adsorption line as the first pattern or a second pattern having a shape conforming to the first pattern as the target pattern.
In one embodiment, the alignment adsorption unit 50 is further configured to:
when the first distance value is smaller than a preset adsorption threshold value, judging whether the side line and the center line of the target graph and any side line or center line of the first graph are in the same straight line;
if so, generating an alignment reference line of the first graph and the target graph; and aligning and adsorbing the first graph to the target graph according to the alignment reference line.
In an embodiment, when the first pattern and the target pattern are both planar patterns, the alignment adsorption unit 50 is further configured to:
determining an adsorption reference vertex and an adsorption reference line of the target graph;
determining the side to be adsorbed of the first graph according to the adsorption reference vertex and the adsorption reference line of the target graph;
generating adsorption adjustment information according to the adsorption reference vertex, the adsorption reference line and the side to be adsorbed;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In an embodiment, when the first pattern and the target pattern are both three-dimensional patterns, the alignment adsorption unit 50 is further configured to:
determining an adsorption reference plane and an adsorption reference point of the target graph;
determining a plane to be adsorbed of the first graph according to the adsorption reference plane and the adsorption reference point of the target graph;
generating adsorption adjustment information according to the adsorption reference plane, the adsorption reference point and the plane to be adsorbed of the target graph;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
In one embodiment, the alignment adsorption unit 50 is further configured to:
when the first distance value is smaller than a preset adsorption threshold value, determining a preset adsorption alignment mode;
adjusting the first graph according to the preset adsorption alignment mode, and adsorbing the adjusted first graph onto the target graph in an aligned mode;
in one embodiment, the image dragging automatic absorption aligning device further comprises: a third pattern adsorption unit for:
when the dragging operation of a third graph is monitored, respectively calculating a second distance value between the third graph and the first graph and a third distance value between the third graph and the target graph;
when the second distance value is larger than the third distance value and the third distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the target graph;
and when the second distance value is smaller than the third distance value and the second distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the first graph.
In the application, when the graph is dragged in the canvas, the dragging direction of the graph is calculated, the target graph is determined according to the dragging direction, when the distance between the dragged graph and the target graph is smaller than a preset adsorption threshold value, the dragged graph and the target graph are automatically adsorbed and aligned, manual setting is not needed, the cost of graph calibration is reduced, and user experience is improved.
For specific limitations of the image dragging automatic absorption alignment device, reference may be made to the above limitations of the image dragging automatic absorption alignment method, which are not described herein again. All or part of each module in the graph dragging automatic absorption aligning device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer readable instructions. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer readable instructions, when executed by a processor, implement a method for graph drag auto-absorption alignment. The readable storage media provided by the present embodiment include nonvolatile readable storage media and volatile readable storage media.
In one embodiment, a computer device is provided, comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor implementing the graphics drag auto-absorption alignment method as described above when executing the computer readable instructions.
In an embodiment, a readable storage medium of computer readable instructions is provided, which when executed by one or more processors, causes the one or more processors to perform a graph drag auto-suction alignment method as described above.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to computer readable instructions, which may be stored in a non-volatile readable storage medium or a volatile readable storage medium, and when executed, the computer readable instructions may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for automatically adsorbing and aligning graph dragging is characterized by comprising the following steps:
when the first graph dragged in the canvas is monitored, judging whether at least one second graph exists or not;
if so, monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph;
determining the dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
determining a second graph which meets a preset adsorption condition according to the dragging direction to serve as a target graph;
and calculating a first distance value between the first graph and the target graph, and aligning and adsorbing the first graph to the target graph when the first distance value is smaller than a preset adsorption threshold value.
2. The method for automatically drawing and aligning the graphics as claimed in claim 1, wherein the drawing and automatically drawing the first graphics onto the target graphics in alignment comprises:
judging whether the side line and the central line of the target graph are in the same straight line with any side line or central line of the first graph;
if so, generating an alignment reference line of the first graph and the target graph; and aligning and adsorbing the first graph to the target graph according to the alignment reference line.
3. The method for automatically drawing, absorbing and aligning the graphics as claimed in claim 1, wherein the first graphic and the second graphic are both planar graphics, and the step of drawing the first graphic onto the target graphic in an aligned manner includes:
determining an adsorption reference vertex and an adsorption reference line of the target graph;
determining the side to be adsorbed of the first graph according to the adsorption reference vertex and the adsorption reference line of the target graph;
generating adsorption adjustment information according to the adsorption reference vertex, the adsorption reference line and the side to be adsorbed;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
4. The method for automatically drawing, absorbing and aligning the graphics as claimed in claim 1, wherein when the first graphic and the target graphic are both stereo graphics, the aligning and absorbing the first graphic onto the target graphic comprises:
determining an adsorption reference plane and an adsorption reference point of the target graph;
determining a plane to be adsorbed of the first graph according to the adsorption reference plane and the adsorption reference point of the target graph;
generating adsorption adjustment information according to the adsorption reference plane, the adsorption reference point and the plane to be adsorbed of the target graph;
and rotating and moving the first graph according to the adsorption adjustment information so as to enable the first graph to be adsorbed to the target graph in an aligned mode.
5. The method for drawing and automatically adsorbing and aligning the graphics according to claim 1, wherein the determining a second graphics meeting a preset adsorption condition according to the drawing direction as a target graphics comprises:
determining a second graph located in a preset range of the dragging direction according to the dragging direction;
when the second graph located in the preset range of the dragging direction comprises a plurality of second graphs, determining a second graph with the same adsorption characteristic as the first graph or determining a second graph with the same shape as the first graph in the second graph located in the preset range of the dragging direction;
and taking a second graph with the same adsorption lines as the first graph or a second graph with the same shape as the first graph as the target graph.
6. The method for automatically drawing and aligning graphics as claimed in claim 1, wherein the drawing and automatically drawing the first graphic onto the target graphic includes:
determining a preset adsorption alignment mode;
and adjusting the first graph according to the preset adsorption alignment mode, and aligning and adsorbing the adjusted first graph to the target graph.
7. The method for automatically drawing and aligning the graphics as claimed in any one of claims 1 to 6, wherein after the drawing and aligning the first graphics onto the target graphics, the method comprises:
when the dragging operation of a third graph is monitored, respectively calculating a second distance value between the third graph and the first graph and a third distance value between the third graph and the target graph;
when the second distance value is larger than the third distance value and the third distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the target graph;
and when the second distance value is smaller than the third distance value and the second distance value is smaller than the preset adsorption threshold value, adsorbing the third graph to the first graph.
8. A graphic dragging automatic absorption aligning device is characterized by comprising:
the judging unit is used for judging whether at least one second graph exists when the fact that the first graph is dragged in the canvas is monitored;
the coordinate information acquisition unit is used for monitoring and recording original coordinate information of the first graph and dragging coordinate information generated in the dragging process of the first graph when the judgment result is yes;
a dragging direction determining unit, configured to determine a dragging direction of the first graph according to the original coordinate information and the dragging coordinate information;
the target graph obtaining unit is used for determining a second graph which meets the preset adsorption condition according to the dragging direction to serve as a target graph;
and the alignment adsorption unit is used for calculating a first distance value between the first graph and the target graph, and when the first distance value is smaller than a preset adsorption threshold value, the first graph is aligned and adsorbed to the target graph.
9. A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the method of graph drag auto-absorption alignment as claimed in any one of claims 1 to 7.
10. A readable storage medium of computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the graphic drag auto-absorption alignment method of any one of claims 1-7.
CN202210461218.1A 2022-04-28 2022-04-28 Graph dragging automatic adsorption alignment method and device, computer equipment and medium Pending CN114816192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210461218.1A CN114816192A (en) 2022-04-28 2022-04-28 Graph dragging automatic adsorption alignment method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210461218.1A CN114816192A (en) 2022-04-28 2022-04-28 Graph dragging automatic adsorption alignment method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN114816192A true CN114816192A (en) 2022-07-29

Family

ID=82509280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210461218.1A Pending CN114816192A (en) 2022-04-28 2022-04-28 Graph dragging automatic adsorption alignment method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN114816192A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115130420A (en) * 2022-09-02 2022-09-30 合肥本源量子计算科技有限责任公司 Line alignment method, system, medium, and electronic device for integrated circuit layout pattern
CN117371075A (en) * 2023-10-30 2024-01-09 北京元跃科技有限公司 Model assembling method and device based on AR technology, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798715A (en) * 2017-10-19 2018-03-13 广州视睿电子科技有限公司 Alignment adsorption method, device, computer equipment and the storage medium of solid figure
CN111352545A (en) * 2019-05-07 2020-06-30 鸿合科技股份有限公司 Automatic adsorption method of interactive service and related equipment
CN113554723A (en) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 Method and device for processing graph change

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798715A (en) * 2017-10-19 2018-03-13 广州视睿电子科技有限公司 Alignment adsorption method, device, computer equipment and the storage medium of solid figure
CN111352545A (en) * 2019-05-07 2020-06-30 鸿合科技股份有限公司 Automatic adsorption method of interactive service and related equipment
CN113554723A (en) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 Method and device for processing graph change

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115130420A (en) * 2022-09-02 2022-09-30 合肥本源量子计算科技有限责任公司 Line alignment method, system, medium, and electronic device for integrated circuit layout pattern
CN117371075A (en) * 2023-10-30 2024-01-09 北京元跃科技有限公司 Model assembling method and device based on AR technology, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN114816192A (en) Graph dragging automatic adsorption alignment method and device, computer equipment and medium
WO2016173065A1 (en) Three-dimensional printing method and system
US20120206457A1 (en) Methods and Systems for Generating Continuous Surfaces from Polygonal Data
WO2014117559A1 (en) 3d-rendering method and device for logical window
CN109410213A (en) Polygon pel method of cutting out, computer readable storage medium, electronic equipment based on bounding box
CN111145356A (en) Cutting method based on Unity3D model
CN110032771A (en) A kind of accurate method of cutting out of open coal mine DEM for taking local detail feature into account
WO2022048468A1 (en) Planar contour recognition method and apparatus, computer device, and storage medium
JP2002183228A (en) System and method for simplifying surface description and wire-frame description of geometric model
CN114429535A (en) Smooth cutting method and device for triangular mesh curved surface
US9922267B1 (en) Locating features in warped images
US20150206342A1 (en) Methods and Systems for Generating Continuous Surfaces from Polygonal Data
CN113781642A (en) Three-dimensional model multi-level LOD generation method based on face reduction algorithm
CN111814803A (en) Graph segmentation method, device and equipment and computer readable storage medium
CN109636874B (en) Perspective projection method, system and related device for three-dimensional model
CN116342745A (en) Editing method and device for lane line data, electronic equipment and storage medium
US20220414986A1 (en) Segmenting three-dimensional meshes in graphical applications based on detection of elongated shapes
JPH0636013A (en) Method and device for generating topographic data
CN115082592A (en) Curve generation method, system, computer equipment and storage medium
JPH03154979A (en) Graphic shaping device
CN114549795A (en) Parameterization reconstruction method, parameterization reconstruction system, parameterization reconstruction medium and parameterization reconstruction equipment for shoe tree curved surface
CN109886879B (en) Image processing method, electronic device and storage medium
CN113253675A (en) Two-dimensional-oriented three-axis tool location point operation method and system
CN109003250B (en) Fusion method of image and three-dimensional model
KR20190100836A (en) Method for minimization of step in mold repair machining and system of mold repair machining

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