Mathematical geometrical relationship keeping method based on primitives and terminal

Through the mathematical geometric relationship maintenance method based on the primitives, the mathematical engine enumerates the element types and their interaction operations, the universality problem of graph drag interaction logic in the existing technology is solved, and the automatic correlation relationship maintenance between graphs is realized, which improves the efficiency and consistency of teaching.

CN120276641APending Publication Date: 2025-07-08FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410026049.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing technology has poor generality in mathematical geometry teaching, and it is necessary to re-customize the coded graphics drag interaction logic, resulting in the problem of redundant code and inconsistent interaction.

Method used

Using the mathematical geometric relationship maintenance method based on the primitives, the mathematical engine enumerates the element types and their interactions and geometric relationships, so as to automatically correct the position and shape of the associated figure when dragging, and reduce duplicate development.

Benefits of technology

It improves the versatility and ease of use of mathematics geometric graphics teaching, reduces redundant code, and realizes automatic correlation between graphics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276641A_ABST
    Figure CN120276641A_ABST
Patent Text Reader

Abstract

The invention discloses a primitive-based mathematical geometrical relationship keeping method, which comprises the following steps of: according to a user request, selecting a primitive combination based on a mathematical engine to establish a geometrical relationship among a target geometric figure, an associated geometric figure and a specified primitive; the mathematical engine comprises primitive types enumerated in advance, interactive operation available for the primitive types, a geometrical relationship between the primitive types and a correction algorithm of the geometrical relationship; receiving an operation request of a user, and changing the position or form of the target geometric figure according to the operation request; according to the geometrical relationship between the primitives and a corresponding correction algorithm, carrying out correction calculation and redrawing display on the position and form of the associated geometric figure; the change of the associated geometric figure along with the target geometric figure is realized, independent development does not need to be provided according to the specifically related geometry, and the method has better universality and is easier to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of teaching simulation, and particularly relates to a method and a terminal for maintaining mathematical geometric relationships based on graphic elements. Background Art

[0002] During teaching, it is necessary to create some graphics with corresponding mathematical relationships between them, and guide students to operate and observe. For example, when dragging a polygon, observing the changes of perpendicular lines, angle bisectors, medians, centroids, and orthocenters when the polygon changes. Or dragging a polygon to cause deformation and observing the changes of supplementary angles, circumferential angles, sum of interior angles, sum of exterior angles corresponding to the interior angle graphic elements, and a straight line being a tangent to a circle, etc. Or at the intersection points generated by multiple straight lines or line segments, when these straight lines move, it is expected that the intersection points can change correspondingly with the straight lines. That is, when dragging, rotating, or flipping a graphic, other associated graphics are still required to maintain the specified geometric relationships.

[0003] Currently, under the existing technology, there are mainly the following methods:

[0004] The program performs hard coding according to the requirements of different teaching services, calculates the position information of the graphics in real time according to the requirements, customizes and develops the dragging interaction logic of various graphic elements, and calculates the new graphic information of the associated graphics to refresh the graphics.

[0005] The existing technology has the following disadvantages:

[0006] There are great problems with universality. When there is a new requirement, it is necessary to re-customize and code the dragging interaction of the graphics, and hard code the associated graphic elements to maintain the corresponding relationships after the graphics are dragged. This generates redundant code with similar functions. The developers implementing the graphics are different, and the algorithms during coding interaction are various, generating a large amount of code with the same function and repetition. Re-coding the same interaction will generate new problems and the interaction may be inconsistent. Production personnel need to raise new requirements every time for such functional requirements, and cannot quickly assemble and produce new teaching content. Summary of the Invention

[0007] The technical problem to be solved by the present invention is to provide a method and a terminal for maintaining mathematical geometric relationships based on graphic elements, which have better universality and are easier to use.

[0008] To solve the above technical problem, the technical solution adopted by the present invention is:

[0009] A method for maintaining mathematical geometric relationships based on graphic elements, comprising the steps of:

[0010] S1. Based on a user request, select a combination of graphic elements based on a mathematical engine to establish a target geometric graphic and associated geometric graphics, and specify the geometric relationships between the graphic elements;

[0011] The mathematical engine includes pre-enumerated primitive types, interactive operations available for primitive types, geometric relationships between primitive types, and correction algorithms for geometric relationships;

[0012] S2. Receive an operation request from the user, and change the position or shape of the target geometric figure according to the operation request;

[0013] S3. According to the geometric relationships between the primitives and the corresponding correction algorithms, perform correction calculations and redrawing displays on the associated geometric figures for their positions and shapes.

[0014] To solve the above technical problems, another technical solution adopted by the present invention is:

[0015] A primitive-based mathematical geometric relationship maintenance terminal includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0016] S1. According to a user request, select a primitive combination based on the mathematical engine to establish a target geometric figure and associated geometric figures, and specify the geometric relationships between the primitives;

[0017] The mathematical engine includes pre-enumerated primitive types, interactive operations available for primitive types, geometric relationships between primitive types, and correction algorithms for geometric relationships;

[0018] S2. Receive an operation request from the user, and change the position or shape of the target geometric figure according to the operation request;

[0019] S3. According to the geometric relationships between the primitives and the corresponding correction algorithms, perform correction calculations and redrawing displays on the associated geometric figures for their positions and shapes.

[0020] The beneficial effects of the present invention are as follows: A primitive-based mathematical geometric relationship maintenance method and terminal of the present invention disassemble and abstract geometric figures into primitive objects, and enumerate primitive types and geometric relationships between primitive types in the mathematical engine, so that the data relationships between geometric figures are abstracted into geometric relationships between underlying primitives. When the position or shape of a certain figure changes, the positions and shapes of the primitives of the associated set of geometric figures can be calculated according to the geometric relationships between the primitives, thereby realizing the change of the associated geometric figures following the target geometric figure, without the need for independent development according to the specific geometry involved, having better generality and being easier to use. Description of the Drawings

[0021] Figure 1 It is a flowchart of a primitive-based mathematical geometric relationship maintenance method according to an embodiment of the present invention;

[0022] Figure 2 Structural diagram of a primitive - based mathematical geometric relationship maintaining terminal according to an embodiment of the present invention;

[0023] Figure 3 Specific flowchart of a primitive - based mathematical geometric relationship maintaining method according to an embodiment of the present invention;

[0024] Figure 4 Scene graph illustration of a primitive - based mathematical geometric relationship maintaining method according to an embodiment of the present invention Figure 1 ;

[0025] Figure 5 Scene graph illustration of a primitive - based mathematical geometric relationship maintaining method according to an embodiment of the present invention Figure 2 ;

[0026] Label description:

[0027] 1. A primitive - based mathematical geometric relationship maintaining terminal; 2. Processor; 3. Memory. Detailed implementation manners

[0028] To describe the technical content, achieved objectives and effects of the present invention in detail, the following is described in conjunction with the implementation manners and with reference to the accompanying drawings.

[0029] Please refer to Figure 1 and Figure 2 , a primitive - based mathematical geometric relationship maintaining method, comprising the steps of:

[0030] S1. Based on the user request, select a primitive combination based on a mathematical engine to establish a target geometric figure and associated geometric figures, and specify the geometric relationships between the primitives;

[0031] The mathematical engine includes pre - enumerated primitive types, interactive operations available for primitive types, geometric relationships between primitive types, and correction algorithms for geometric relationships;

[0032] S2. Receive the user's operation request, and change the position or shape of the target geometric figure according to the operation request;

[0033] S3. According to the geometric relationships between the primitives and the corresponding correction algorithms, perform correction calculations and redrawing displays on the associated geometric figures for position and shape.

[0034] As can be seen from the above description, the beneficial effects of the present invention are as follows: A method for maintaining the mathematical geometric relationship based on graphic elements of the present invention disassembles and abstracts geometric figures into graphic element objects, and enumerates the types of graphic elements and the geometric relationships between the types of graphic elements in a mathematical engine, so that the data relationship between geometric figures is abstracted into the geometric relationship between underlying graphic elements. When the position and shape of a certain figure change, the position and shape of the graphic elements of the associated set of figures can be calculated according to the geometric relationship between the graphic elements, so as to realize the change of the associated geometric figures with the target geometric figure, without the need for independent development according to the specific geometric figures involved, which has better versatility and is easier to use.

[0035] Further, step S2 is specifically as follows:

[0036] Receive the operation request of the user, and determine the operation type and operation parameters of the graphic elements in the target geometric figure according to the operation request;

[0037] Calculate the position and shape data of the graphic elements in the target geometric figure after the operation according to the operation type and operation parameters.

[0038] As can be seen from the above description, according to the user request, determine the operation target and specific operation content of the user, such as moving the position, rotating, etc., so as to calculate the position and shape data of each graphic element in the target geometric figure after the operation.

[0039] Further, step S3 includes the following steps:

[0040] S31. The mathematical engine listens to the position and shape data of the graphic elements in the target geometric figure frame by frame. If there are changes in the position and shape of the graphic elements in the target geometric figure, obtain the position and shape data of the changed graphic elements;

[0041] S32. Calculate the position and shape data of the graphic elements of the associated geometric figure according to the changed position and shape data of the graphic elements, the geometric relationship, and the correction algorithm corresponding to the geometric relationship.

[0042] As can be seen from the above description, by listening to the position and shape data of the graphic elements frame by frame by the mathematical engine, the change situation of the graphic elements can be recognized, the data of the changed graphic elements can be obtained, and then the position and shape data of the associated graphic elements can be calculated according to the geometric relationship.

[0043] Further, the specific geometric relationship between the specified graphic elements in step S1 is as follows:

[0044] Specify the geometric relationship between the graphic elements and the priority between the geometric relationships;

[0045] Step S32 includes the following steps:

[0046] Determine whether there is a mutual exclusion in the geometric relationships of the graphic elements. If not, calculate the position and shape data of the associated graphic elements according to the priority order of the geometric relationships. If so, hide or display the graphic elements.

[0047] As can be seen from the above description, there is a priority among geometric relationships. When calculating the position and shape data of associated graphic elements, it is carried out according to the priority of geometric relationships. For the case where there is a mutual exclusion in the geometric relationships of the graphic elements, the graphic elements are hidden or displayed.

[0048] Please refer to Figure 2 , a terminal for maintaining mathematical geometric relationships based on graphic elements, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0049] S1. According to the user request, select a combination of graphic elements based on a mathematical engine to establish a target geometric figure and an associated geometric figure, and specify the geometric relationships between the graphic elements;

[0050] The mathematical engine includes pre-enumerated graphic element types, interactive operations available for graphic element types, geometric relationships between graphic element types, and a correction algorithm for geometric relationships;

[0051] S2. Receive the user's operation request, and change the position or shape of the target geometric figure according to the operation request;

[0052] S3. According to the geometric relationships between the graphic elements and the corresponding correction algorithm, perform correction calculations and redrawing displays on the position and shape of the associated geometric figure.

[0053] As can be seen from the above description, the beneficial effects of the present invention are as follows: A terminal for maintaining mathematical geometric relationships based on graphic elements of the present invention disassembles and abstracts geometric figures into graphic element objects, and enumerates graphic element types and geometric relationships between graphic element types in a mathematical engine, so that the data relationships between geometric figures are abstracted into geometric relationships between underlying graphic elements. When the position or shape of a certain figure changes, the position and shape of the graphic elements of the associated set of geometric figures can be calculated according to the geometric relationships between the graphic elements, so as to realize the change of the associated geometric figure following the target geometric figure, without the need for independent development according to the specific geometry involved, which has better versatility and is easier to use.

[0054] Further, step S2 is specifically:

[0055] Receive the user's operation request, and determine the operation type and operation parameters of the graphic elements in the target geometric figure according to the operation request;

[0056] Calculate the position and shape data of the primitive in the target geometric figure after the operation according to the operation type and operation parameters.

[0057] As can be seen from the above description, according to the user request, determine the user's operation target and specific operation content, such as moving position, rotating, etc., so as to calculate the position and shape data of each primitive in the target geometric figure after the operation.

[0058] Further, step S3 includes the steps of:

[0059] S31. The mathematical engine listens to the position and shape data of the primitive in the target geometric figure frame by frame. If there are changes in the position and shape of the primitive in the target geometric figure, obtain the position and shape data of the changed primitive.

[0060] S32. Calculate the position and shape data of the primitive of the associated geometric figure according to the position and shape data of the changed primitive, the geometric relationship, and the correction algorithm corresponding to the geometric relationship.

[0061] As can be seen from the above description, by listening to the position and shape data of the primitive frame by frame through the mathematical engine, the change situation of the primitive is identified, the data of the changed primitive is obtained, and then the position and shape data of the associated primitive are calculated according to the geometric relationship.

[0062] Further, the geometric relationship between the specified primitives in step S1 is specifically:

[0063] Specify the geometric relationship between the primitives and the priority between the geometric relationships;

[0064] Step S32 includes the steps of:

[0065] Judge whether there is a mutual exclusion in the geometric relationship of the primitive. If not, calculate the position and shape data of the associated primitive according to the priority order of the geometric relationship. If so, hide and display the primitive.

[0066] As can be seen from the above description, there is a priority between geometric relationships. When calculating the position and shape data of the associated primitive, it is carried out according to the priority of the geometric relationship. For the case where there is a mutual exclusion in the geometric relationship of the primitive, the primitive is hidden and displayed.

[0067] A method and terminal for maintaining mathematical geometric relationships based on primitives of the present invention are applicable to the development and use of software for relevant teaching content of geometric mathematical figures.

[0068] Please refer to Figure 1 and Figure 3 , the first embodiment of the present invention is:

[0069] A method for maintaining mathematical geometric relationships based on graphic elements, comprising the steps:

[0070] S1. According to the user's request, select a combination of graphic elements based on a mathematical engine to establish a target geometric figure and associated geometric figures, and specify the geometric relationships between the graphic elements;

[0071] The specific geometric relationships between the graphic elements specified in step S1 are:

[0072] Specify the geometric relationships between the graphic elements and the priorities between the geometric relationships.

[0073] In this embodiment, a graphic is defined as a graphic element object. When producing teaching content, production personnel only need to create these graphic element objects through an editor and combine multiple graphic element objects into the geometric figures required for this teaching content.

[0074] The mathematical engine includes pre-enumerated graphic element types, interactive operations available for graphic element types, geometric relationships between graphic element types, and correction algorithms for geometric relationships.

[0075] In this embodiment, the categories of graphic elements are defined in the mathematical engine, including: points, lines, line segments, rays, arcs, circles, semi-circles, polygons, composite graphic elements, etc. Each category of graphic element has its own data structure. At the same time, various highly reusable interactive operations of graphic elements are defined (such as dragging, flipping, deforming, rotating around a point, rotating, etc.). An algorithm process for correcting the geometric relationships between graphic elements is also provided, including but not limited to: angle bisector, median line of a triangle, perpendicular line, perpendicular bisector, point on a line, supplementary angle of an angle, circumferential angle, tangency, intersection point of line segments, intersection point of lines, equidistant parallel between lines, altitude passing through a vertex, exterior angle of a specified side.

[0076] S2. Receive the user's operation request, and change the position or shape of the target geometric figure according to the operation request;

[0077] Step S2 is specifically:

[0078] Receive the user's operation request, and determine the operation type and operation parameters of the graphic elements in the target geometric figure according to the operation request;

[0079] According to the operation type and operation parameters, calculate the position and shape data of the graphic elements in the target geometric figure after the operation.

[0080] S3. According to the geometric relationships between the graphic elements and the corresponding correction algorithms, perform correction calculations and redrawing displays on the positions and shapes of the associated geometric figures;

[0081] Step S3 includes the steps:

[0082] S31. The mathematical engine monitors the position and shape data of the primitive in the target geometric figure frame by frame. If there are changes in the position and shape of the primitive in the target geometric figure, the position and shape data of the changed primitive are obtained.

[0083] S32. Calculate the position and shape data of the primitive of the associated geometric figure according to the position and shape data of the changed primitive, the geometric relationship, and the correction algorithm corresponding to the geometric relationship.

[0084] Step S32 includes the steps of:

[0085] Judge whether there is a mutual exclusion in the geometric relationship of the primitive. If not, calculate the position and shape data of the associated primitive according to the priority order of the geometric relationship. If so, hide and display the primitive.

[0086] In this embodiment, the mathematical engine monitors the change of primitive data through the primitive verification module, and the change of data triggers the correction of geometric relationship and the verification of graphic rules.

[0087] Please refer to Figures 3 to 5 , Embodiment 2 of the present invention is:

[0088] A method for maintaining mathematical geometric relationships based on primitives. In this embodiment, a specific scenario is taken as an example for illustration.

[0089] Scenario 1:

[0090] It can be referred to Figure 4 , in the experiment, there are triangle ABC, line segments AD, CF, BE which are the angle bisectors of triangle ABC, and point G is the centroid of the triangle. Drag the vertices of triangle ABC to observe the changes of the median line and the intersection point.

[0091] According to the above scenario, the production personnel configure to create primitive triangle ABC (automatically create sub-primitives point A, point B, point C, line segment AB, line segment BC, line segment CA, angle ABC, angle BCA, angle CAB), line segments AD, CF, BE, and point G.

[0092] Configure the geometric relationships that need to be concerned about in the current business:

[0093] Primitive [line segment BE] is the [angle bisector] of primitive [angle ABC];

[0094] Primitive [line segment CF] is the [angle bisector] of primitive [angle BCA];

[0095] Primitive [line segment AD] is the [angle bisector] of primitive [angle CAB];

[0096] Primitive [point D] is the [point on the line] of primitive [line segment BC];

[0097] The graphic element [Point F] is a [point on the line] of the graphic element [Line Segment AB];

[0098] The graphic element [Point E] is a [point on the line] of the graphic element [Line Segment CA];

[0099] The graphic element [Point G] is a [line segment intersection point] of the graphic elements [Line Segment CF, Line Segment BE].

[0100] Configure the graphic element interactions required for the current business:

[0101] Enable the interaction ability [vertex drag and deformation] of the graphic element [Triangle ABC].

[0102] Configure the rule relationships that need to be concerned about for the current business:

[0103] The moving distance of the graphic element [Point A] is greater than [1 cm];

[0104] The moving distance of the graphic element [Point B] is greater than [1 cm];

[0105] The moving distance of the graphic element [Point C] is greater than [1 cm].

[0106] Generate experimental particles.

[0107] The player initializes, parses, and loads particle data.

[0108] Create the graphic element Triangle ABC (automatically create sub-graphic elements Line Segment AB, Line Segment BC, Line Segment CA, Angle ABC, Angle BCA, Angle CAB), Line Segment AD, Line Segment CF, Line Segment BE, Point G.

[0109] Store the geometric relationship data and rule data between graphic elements in the mathematical engine.

[0110] The mathematical engine monitors, frame by frame, that the data of the graphic element ABC and its sub-graphic elements change, and automatically matches according to the configured geometric relationships. Scan to obtain the geometric relationship graphic elements associated with the triangle and its sub-graphic elements, and automatically calculate the latest positions of the triangle ABC and the associated graphic elements according to the configured relationships for [angle bisector], [point on the line], [line segment intersection point] according to the rules, and automatically modify the positions of the graphic elements Line Segment AD, Line Segment CF, Line Segment BE, Point G.

[0111] The mathematical engine monitors, frame by frame, that the data of the specified graphic elements change, and automatically performs matching calculations according to the configured mathematical rule relationships. When it is calculated and confirmed that the positions of the point graphic elements A, B, C have changed by more than 1 cm, it automatically notifies the business module.

[0112] Parse the interaction configuration to enable the vertex drag interaction ability of the triangle.

[0113] The business monitors that the conditions are met and executes the corresponding business logic.

[0114] Scenario 2:

[0115] For reference, Figure 5 , ∠AOB, ray OC is the angle bisector of ∠AOB, P is a point on ray OC, line segments PD and PE are the perpendiculars from point P to line segments OA and OB respectively, and points D and E are the feet of the perpendiculars. Drag point P or OA to observe the change of the figure.

[0116] Production personnel configure to create graphic elements ∠AOB (automatically create sub-graphic elements of line segments OA and OB), ray OC, line segments PD and PE.

[0117] Configure the geometric relationships that need to be concerned about in the current business:

[0118] Graphic element [line segment OC] is the [angle bisector] of graphic element [∠AOB];

[0119] Graphic element [line segment PD] is the [perpendicular] of graphic element [line segment OA];

[0120] Graphic element [line segment PE] is the [perpendicular] of graphic element [line segment OB];

[0121] Graphic element [point P] is the [point on the line] of graphic element [ray OC];

[0122] Graphic element [point D] is the [point on the line] of graphic element [line segment OA];

[0123] Graphic element [point E] is the [point on the line] of graphic element [line segment OB].

[0124] Configure the graphic element interactions required for the current business:

[0125] Enable the interaction ability [drag] of graphic element [point P];

[0126] Enable the interaction ability [rotate around point] of graphic element [line segment OA] with the target point [point O].

[0127] Configure the rule relationships that need to be concerned about in the current business:

[0128] The dragging distance of point P is greater than 2 cm;

[0129] The angle change of ∠AOB is greater than 10 degrees.

[0130] Generate experimental particles.

[0131] The player initializes, parses, and loads the particle data.

[0132] Create graphic elements ∠AOB (automatically create sub-graphic elements of line segments OA and OB), ray OC, line segments PD and PE.

[0133] Store the geometric relationship data and rule data between graphic elements into the mathematical engine.

[0134] The mathematical engine monitors the changes in the graphic element point P, the line segment OA and its sub-graphic element data frame by frame, and automatically matches according to the configured geometric relationships. It scans and obtains the geometric relationship graphic elements associated with the point P and the sub-graphic elements of the line segment OA, and automatically calculates the latest positions of the point P, the line segment OA and the associated graphic elements according to the configured relationships of [perpendicular line][points on the line] based on the geometric relationship rules, and automatically modifies the positions of the graphic element point P, the line segment PD, the line segment PE, and the ray OC.

[0135] The mathematical engine monitors the changes in the data of the specified graphic element frame by frame, and automatically performs matching calculations according to the configured mathematical rule relationships. When it is calculated and confirmed that the position of the graphic element point P has changed by more than 1 cm, it automatically notifies the service module, and when the angle of the line segment angle AOB changes by more than 10 degrees, it notifies the service module.

[0136] Parse the interaction configuration to enable the dragging interaction ability of the point P and the dragging and rotating ability of the line segment OA around the point O.

[0137] The service monitors that the conditions are met and executes the corresponding service logic.

[0138] Please refer to Figure 2 , Embodiment 3 of the present invention is:

[0139] A terminal 1 for maintaining a mathematical geometric relationship based on graphic elements, including a processor 2, a memory 3, and a computer program stored in the memory 3 and operable on the processor 2. When the processor 2 executes the computer program, it implements the steps in a method for maintaining a mathematical geometric relationship based on graphic elements according to Embodiment 1 or 2 above.

[0140] In summary, the method and terminal for maintaining a mathematical geometric relationship based on graphic elements provided by the present invention disassemble and abstract geometric figures into graphic element objects, and enumerate the graphic element types and the geometric relationships between graphic element types in the mathematical engine, so that the data relationships between geometric figures are abstracted into the geometric relationships between underlying graphic elements. When the position and shape of a certain graphic change, the positions and shapes of the graphic elements of the associated set of graphic figures can be calculated according to the geometric relationships between the graphic elements, so as to realize the change of the associated geometric figures with the target geometric figure, without the need for independent development according to the specific geometry involved, having better versatility and being easier to use.

[0141] The present invention abstracts graphics, geometric relationships and regular relationships between graphics into general and highly reusable rule content, which is applicable to the production of almost all teaching content of mathematical geometric figures. It classifies the computational processing responsibilities of rules into mathematical engine computations, decouples the common image correction processing and interactions in many mathematical relationships. When there are new image correction requirements, the interaction function remains stable and is not affected. Only the correction ability of geometric relationships needs to be continuously expanded.

[0142] Define a series of geometric relationship rules and interaction capabilities of highly reusable mathematical primitive elements. Based on the editing configuration ability, a large number of graphic operation experiment contents can be freely assembled and combined without customizing the logic and interaction capabilities of these graphic deformations.

[0143] The above are only embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in the relevant technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for maintaining mathematical geometric relationships based on graphic elements, characterized in that, Including the steps: S1. Based on the user request, select a combination of graphic elements using a mathematical engine to establish a target geometric figure and associated geometric figures, and specify the geometric relationships between the graphic elements; The mathematical engine includes pre-enumerated graphic element types, interactive operations available for the graphic element types, geometric relationships between the graphic element types, and correction algorithms for the geometric relationships; S2. Receive the user's operation request, and change the position or shape of the target geometric figure according to the operation request; S3. According to the geometric relationships between the graphic elements and the corresponding correction algorithms, perform correction calculations and redraw displays on the positions and shapes of the associated geometric figures.

2. The method for maintaining mathematical geometric relationships based on graphic elements according to claim 1, characterized in that Step S2 is specifically: Receive the user's operation request, and determine the operation type and operation parameters for the graphic elements in the target geometric figure according to the operation request; According to the operation type and operation parameters, calculate the position and shape data of the graphic elements in the target geometric figure after the operation.

3. A method for maintaining mathematical geometric relationships based on graphic elements according to claim 1, characterized in that, Step S3 includes the steps: S31. The mathematical engine listens to the position and shape data of the graphic elements in the target geometric figure frame by frame. If there are changes in the position and shape of the graphic elements in the target geometric figure, obtain the position and shape data of the changed graphic elements; S32. According to the position and shape data of the changed graphic elements, the geometric relationships, and the correction algorithms corresponding to the geometric relationships, calculate the position and shape data of the graphic elements of the associated geometric figures.

4. A method for maintaining mathematical geometric relationships based on graphic elements according to claim 3, characterized in that, In step S1, specifying the geometric relationships between the graphic elements is specifically: Specify the geometric relationships between the graphic elements and the priorities between the geometric relationships; Step S32 includes the steps: Judge whether there are mutually exclusive geometric relationships of the graphic elements. If not, calculate the position and shape data of the associated graphic elements according to the priority order of the geometric relationships. If so, hide and display the graphic elements.

5. A primitive-based mathematical geometric relationship maintaining terminal, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the following steps are implemented: S1. Based on the user request, select a combination of graphic elements using a mathematical engine to establish a target geometric figure and associated geometric figures, and specify the geometric relationships between the graphic elements; The mathematical engine includes pre-enumerated graphic element types, interactive operations available for the graphic element types, geometric relationships between the graphic element types, and correction algorithms for the geometric relationships; S2. Receive the user's operation request, and change the position or shape of the target geometric figure according to the operation request; S3. According to the geometric relationships between the graphic elements and the corresponding correction algorithms, perform correction calculations and redraw displays on the positions and shapes of the associated geometric figures.

6. The terminal for maintaining mathematical geometric relationships based on graphic elements according to claim 5, wherein Step S2 is specifically: Receive the user's operation request, and determine the operation type and operation parameters for the graphic elements in the target geometric figure according to the operation request; According to the operation type and operation parameters, calculate the position and shape data of the graphic elements in the target geometric figure after the operation.

7. The terminal for maintaining mathematical geometric relationships based on graphic elements according to claim 5, wherein Step S3 includes the steps: S31. The mathematical engine listens to the position and shape data of the graphic elements in the target geometric figure frame by frame. If there are changes in the position and shape of the graphic elements in the target geometric figure, obtain the position and shape data of the changed graphic elements; S32. Calculate the position and shape data of the primitive of the associated geometric figure according to the position and shape data of the primitive after change, the geometric relationship, and the correction algorithm corresponding to the geometric relationship.

8. The terminal for maintaining mathematical geometric relationships based on graphic elements according to claim 7, wherein, The specific geometric relationship between the specified primitives in step S1 is: Specify the geometric relationship between the primitives and the priority between the geometric relationships; Step S32 includes the steps: Determine whether there is a mutual exclusion in the geometric relationship of the primitive. If not, calculate the position and shape data of the associated primitive according to the priority order of the geometric relationship. If so, hide and display the primitive.