CN113742809A - Rigging grid adjusting method and device and electronic equipment - Google Patents
- ️Fri Dec 03 2021
Disclosure of Invention
The invention aims to provide a rigging grid adjusting method, a rigging grid adjusting device and electronic equipment, so as to relieve the technical problem of low operation efficiency of simplifying and modifying a rigging grid.
In a first aspect, an embodiment of the present application provides a method for adjusting a rigging grid, where the method includes:
acquiring a rigging grid to be adjusted, wherein the lockset grid to be adjusted comprises a plurality of vertexes, each vertex records attribute information, and the attribute information is used for recording the coordinates and vertex types of the vertexes;
optimizing the vertex type of the rigging mesh to be adjusted by using the trained mesh optimization network to obtain an optimized rigging mesh;
performing primitive splitting on the optimized rigging grid based on the optimized vertex type to obtain a split rigging grid;
providing a graphical user interface comprising the split rigging grid through terminal equipment, and displaying different graphic elements in a differential mode;
in response to a designated operation for a target location node on the split rigging grid, determining a target primitive corresponding to the target location node on the split rigging grid;
displaying a simplified control for the target primitive in the graphical user interface;
and deleting the target primitive on the split rigging grid in response to the confirmed simplification operation aiming at the simplification control.
In one possible implementation of the method of the invention,
deleting the target graphic primitive on the split rigging grid, including:
determining a plurality of target vertices in the target primitives, which are shared by other primitives on the split rigging grid, wherein the vertex types of the target vertices include a type corresponding to the target primitive and a type corresponding to a shared primitive;
deleting other vertexes except the target vertex in the target primitive;
deleting the type corresponding to the target primitive in the target vertex.
In one possible implementation, the method further includes:
and judging whether each split graphic element participates in the stress of the lockset or not, and deleting the redundant graphic elements which do not participate in the stress from the optimized rigging grid to simplify the control.
In one possible implementation, after the step of displaying a simplified control for the target primitive in the graphical user interface, the method further includes:
hiding the simplified control in response to a rejection operation for the simplified control.
In one possible implementation, the specified operation includes any one or more of:
and aiming at the click operation, the sliding operation and the operation that the touch control time length of the target position node is greater than the preset time length.
In one possible implementation, the method further includes:
obtaining a training sample, wherein the training sample comprises an initial lock grid and a final lock grid;
training an initial neural network by using the training sample to obtain a trained grid optimization network; the neural network is used for optimizing the vertex type in the initial rigging grid to obtain the adjusted final rigging grid.
In one possible implementation, one vertex type corresponds to one primitive, and one primitive corresponds to one or more vertex types.
In a second aspect, there is provided a rigging grid adjustment device comprising:
the system comprises an acquisition module, a calculation module and a calculation module, wherein the acquisition module is used for acquiring a rigging grid to be adjusted, the lockset grid to be adjusted comprises a plurality of vertexes, each vertex records attribute information, and the attribute information is used for recording the coordinates and vertex types of the vertexes;
the optimization module is used for optimizing the vertex type of the rigging grid to be adjusted by utilizing the trained grid optimization network to obtain an optimized rigging grid;
the splitting module is used for splitting the pixels of the optimized rigging grid based on the optimized vertex type to obtain the split rigging grid;
a providing module, configured to provide, through a terminal device, a graphical user interface including the split rigging grid, where different primitives are displayed differently;
a determining module, configured to determine, in response to a specified operation for a target location node on the split rigging grid, a target primitive corresponding to the target location node on the split rigging grid;
the display module is used for displaying a simplified control aiming at the target graphic primitive in the graphical user interface;
and the deleting module is used for responding to the confirmation simplification operation aiming at the simplification control and deleting the target graphic element on the split rigging grid.
In one possible implementation, the deletion module is specifically configured to:
determining a plurality of target vertices in the target primitives, which are shared by other primitives on the split rigging grid, wherein the vertex types of the target vertices include a type corresponding to the target primitive and a type corresponding to a shared primitive;
deleting other vertexes except the target vertex in the target primitive;
deleting the type corresponding to the target primitive in the target vertex.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements the method of the first aspect when executing the computer program.
The embodiment of the application brings the following beneficial effects:
the method, the device and the electronic equipment for adjusting the rigging grid can obtain the rigging grid to be adjusted, the lockset grid to be adjusted comprises a plurality of vertexes, each vertex is recorded with attribute information, the attribute information is used for recording the coordinate and the vertex type of the vertex, the vertex type of the rigging grid to be adjusted is optimized by utilizing a trained grid optimization network to obtain the optimized rigging grid, the optimized rigging grid is subjected to primitive splitting based on the optimized vertex type to obtain the split rigging grid, a graphical user interface comprising the split rigging grid is provided through a terminal device, different primitive difference displays are displayed, a target primitive corresponding to a target position node on the split rigging grid is determined in response to the specified operation of the target position node on the split rigging grid, a simplified control is displayed in the graphical user interface aiming at the target primitive, in the scheme, redundant primitives which do not participate in the stress are deleted after the primitive stress participates in analysis, so that accurate simplified modification of the rigging grid to be adjusted is realized, simplified modification of the rigging grid at the target position node can be completed when a user selects and confirms the simplified modification effect, the simplified effect after accurate processing is prompted when the user operates and simplifies and modifies the rigging grid, the process of simplifying and operating the rigging grid by the user is facilitated, different simplified results can be flexibly selected according to different position points, the operating efficiency of simplifying and modifying the rigging grid is improved, and the technical problem of low operating efficiency of simplifying and modifying the rigging grid is solved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, if a user adopts the existing operation mode to simplify and modify the rigging grid, the operation efficiency of simplifying and modifying the rigging grid is low. Based on this, the embodiment of the application provides a method and a device for adjusting a rigging grid, and an electronic device, by which the technical problem of low operation efficiency of simplifying and modifying the rigging grid can be alleviated.
Embodiments of the present invention are further described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a method for adjusting a rigging grid according to an embodiment of the present application. Wherein, the method can be applied to terminal equipment capable of presenting a graphical user interface. As shown in fig. 1, the method includes:
step S110, obtain the rigging grid to be adjusted.
The lockset mesh to be adjusted comprises a plurality of vertexes, wherein each vertex records attribute information, and the attribute information is used for recording the coordinates and the vertex types of the vertexes.
For some parts of the rigging grid, modifications and simplifications are needed without affecting the Finite Element Analysis (FEA) results. For example, in the double-ring buckle model, the pin roll part in the original model file has a single cylinder liner primitive which can be seen through a two-dimensional drawing, while the original model file is opened by software to find that the original model file is a solid cylinder, for example, in the double-ring buckle two-dimensional drawing shown in fig. 2, the connection part between the single cylinder liner primitive and the pin roll before modification is shown as a part in a
ring301 in fig. 3.
And step S120, optimizing the vertex type of the rigging grid to be adjusted by using the trained grid optimization network to obtain the optimized rigging grid.
The principle of optimization of the rigging grid is simplified without affecting the finite element analysis results (i.e. whether it participates in the stress analysis results of the rigging grid to be adjusted). For the understanding of finite element analysis, it is solved by replacing the complex problem with a simpler one. Finite element analysis may consider a solution domain as consisting of many small interconnected subdomains called finite elements, assuming a suitable approximate solution for each element, and then deriving the overall satisfaction conditions (e.g., structural equilibrium conditions) for solving this domain, so that the solution finite element method to solve the problem fundamentally differs from other approximation methods for solving edge-value problems in that its approximation is limited to relatively small sub-domains, finite element methods define functions over the domain of elements of simple geometry (e.g., triangles or arbitrary quadrilaterals in two-dimensional problems) (piecewise functions) and do not consider the complex boundary conditions of the entire definition domain, which is one of the reasons why finite element methods outperform other approximation methods. The basic steps of finite element solvers are the same for problems of different physical properties and mathematical models, except that the specific formula derivation and the computational solution are different. The basic steps of finite element solving the problem may be:
first step problem and solution domain definition: determining the physical property and the geometric area of a solution domain approximately according to the actual problem; and a second step of solving domain discretization: the solution domain is approximated to be a discrete domain composed of a limited number of units which have different limited sizes and shapes and are connected with each other, which is conventionally called finite element network division, obviously, the smaller the unit (the thinner the network is), the better the approximation degree of the discrete domain is, the more accurate the calculation result is, but the calculation amount and the error are increased, so that the discretization of the solution domain is one of the core technologies of the finite element method; thirdly, determining a state variable and controlling the state variable: a particular physical problem can be represented generally by a set of differential equations containing the boundary conditions of the problem state variables, which are typically formulated into equivalent functional forms for finite element solution; the fourth step is derived by a unit: a proper approximate solution is constructed for the units, namely a finite unit column is deduced, wherein a reasonable unit coordinate system is selected, a unit trial function is established, the discrete relation of each state variable of the units is given in a certain method, and therefore a unit matrix (a rigidity matrix or a flexibility matrix in structural mechanics) is formed. For engineering applications, it is important to note the problem solving performance and constraints of each unit. For example, the shape of the cell should be regular, and when the cell is deformed, not only the accuracy is low, but also the risk of lacking rank exists, which may result in being unable to solve; and fifthly, final assembly solving: the units are assembled to form a total matrix equation (a combined equation set) of a discrete domain, the requirement of the discrete domain of an approximate solution domain is reflected, namely the continuity of a unit function needs to meet a certain continuous condition, the assembly is carried out at nodes of adjacent units, and the continuity of state variables and derivatives (if possible) thereof is established at the nodes; solving and result interpretation of a sixth step simultaneous equation set: the finite element method finally results in a simultaneous equation set, and the solution of the simultaneous equation set can be a direct method, a substitution method and a random method. The solution results are approximate values of the state variables at the cell nodes, and for the quality of the calculation results, it will be evaluated and determined whether repeated calculations are required by comparison with the allowable values provided by the design criteria.
For the process of simplification and modification of the rigging grid, for example, the actual single cylinder liner primitive also includes other components, and since this portion has substantially no influence on the finite element analysis result (i.e., substantially does not participate in influencing the stress of the rigging grid to be adjusted), the simplification can be performed by replacing the single cylinder liner primitive with a stepped shaft model, and the connection portion between the modified single cylinder liner primitive and the pin shaft is shown as the portion in
circle401 in fig. 4. For another example, for a rotating hook, the model was imported into ANSYS to find that the model displayed incompletely. In SolidWorks, partial solid bodies in the rotating hook model file are checked to be curved surface solid bodies, and the hook body only has an outer surface without the solid bodies by utilizing a cross section. The tongue portion of the rotating hook model before processing is shown as the portion in the
loop501 in fig. 5. Therefore, the model is to be curved and stitched, and the tongue in the model does not affect the finite element analysis result (i.e. does not affect the stress participating in the rigging mesh to be adjusted), the model can be eliminated from simplification, and the main difference between the rotation hook model before processing and the rotation hook model after processing is shown as the part in the
ring601 in fig. 6, i.e. the part without tongue in the
ring601 in the rotation hook model after processing. It can be seen that in contrast to the previous figures, the tongues have been omitted. It follows that the modification and simplification of the rigging grid is a simplification without affecting the results of the above-described finite element analysis (i.e. without affecting the stresses involved in the rigging grid to be adjusted).
And step S130, carrying out primitive splitting on the optimized rigging grid based on the optimized vertex type to obtain the split rigging grid.
Through the lockset mesh to be adjusted comprising the plurality of vertexes recorded with the coordinate for recording the vertexes and the attribute information of the vertex types, the optimized rigging mesh can be subjected to primitive splitting based on the optimized vertex types, and then the split rigging mesh is obtained.
Step S140, providing a graphical user interface containing the split rigging grids through the terminal equipment, and displaying different graphic elements in a differential mode.
In this step, the separated rigging grids can be displayed on a computer screen, wherein different primitives are displayed differently.
Step S150, in response to the designated operation for the target position node on the split rigging grid, determining a target primitive corresponding to the target position node on the split rigging grid.
Illustratively, a user clicks a certain position point on a rigging grid to be adjusted through operation, and the terminal device determines a target primitive corresponding to the rigging grid after the target position node is split.
And step S160, displaying the simplified control aiming at the target graphic element in the graphical user interface.
In this step, a simplified part of the first rigging grid may be displayed at the target location node through a dotted line, and the dotted line is correspondingly prompted to indicate a simplified model effect corresponding to the target location node, and meanwhile, the user may be asked whether to confirm that the model at the target location node is modified to the simplified model effect by providing an option.
Step S170, in response to the simplified operation of the simplified control confirmation, deleting the target primitive on the split rigging grid.
In this step, a plurality of target vertices in the target primitive that are shared by other primitives on the split rigging mesh may be determined, where the vertex types of the target vertices include a type corresponding to the target primitive and a type corresponding to the shared primitive, and then other vertices in the target primitive except for the target vertices are deleted, and then the types corresponding to the target primitive in the target vertices are deleted.
In the embodiment of the application, the rigging grid to be adjusted is obtained, the vertex type of the rigging grid to be adjusted is optimized by utilizing the trained grid optimization network to obtain the optimized rigging grid, the optimized rigging grid is subjected to primitive splitting based on the optimized vertex type to obtain the split rigging grid, a graphical user interface comprising the split rigging grid is provided through a terminal device, different primitive difference display is performed, a target primitive corresponding to a target position node on the split rigging grid is determined in response to a specified operation aiming at the target position node on the split rigging grid, a simplified control is displayed aiming at the target primitive in the graphical user interface, the target primitive on the split rigging grid is deleted in response to a confirmed simplified operation aiming at the simplified control, and further redundant primitives which do not participate in stress are deleted after primitive stress participates in analysis, the method and the device realize accurate simplified modification of the rigging grid to be adjusted, can also finish simplified modification of the rigging grid at the node of the target position when a user selects and confirms the simplified modification effect, further realize that the simplified effect after accurate processing is prompted when the user operates and simplifies and modifies the rigging grid, are more convenient for the user to simplify the process of operating the rigging grid, can also flexibly select different simplified results aiming at different position points, improve the operation efficiency of simplifying and modifying the rigging grid, and relieve the technical problem of lower operation efficiency of simplifying and modifying the rigging grid.
The above steps are described in detail below.
In some embodiments, step S170 may specifically include the following steps:
step S1702, determining a plurality of target vertexes shared by the target primitives and other primitives on the split rigging grid, wherein the vertex types of the target vertexes include types corresponding to the target primitives and types corresponding to shared primitives;
step S1704, deleting other vertexes except the target vertex in the target graphic primitive;
step S1706, deletes the type corresponding to the target primitive in the target vertex.
In some embodiments, the method may further comprise the steps of:
and step S180, judging whether each split primitive participates in the stress of the lockset or not, and deleting the redundant primitives which do not participate in the stress from the optimized rigging grid to simplify the control.
In some embodiments, after the step of displaying the simplified control for the target primitive in the graphical user interface, the method may further comprise the steps of:
and step S190, responding to the rejection operation aiming at the simplified control, and hiding the simplified control.
By means of rejection operation aiming at the simplified prompt control, the simplified prompt control can be hidden, and part of the rigging grids at the target position nodes on the rigging grids to be adjusted are kept unchanged, so that simplified modification prompts recommended by a system can be flexibly rejected, and the flexibility of simplified modification is improved.
In some embodiments, the specified operation comprises any one or more of: and aiming at the click operation, the sliding operation and the operation that the touch control time length of the target position node is greater than the preset time length.
Through various operation modes such as click operation, sliding operation, long-time pressing operation and the like, the appointed operation can be more flexible, and the user operation is facilitated.
In some embodiments, the method may further comprise the steps of:
step S200, obtaining a training sample, wherein the training sample comprises an initial lockset grid and a final lockset grid;
step S205, training the initial neural network by using the training sample to obtain a trained grid optimization network; the neural network is used for optimizing the vertex type in the initial rigging grid to obtain the adjusted final rigging grid.
In this regard, one vertex type corresponds to one primitive, and one primitive corresponds to one or more vertex types. The training process of the neural network can be realized through the rigging grid training sample, so that the trained grid simplified network is more accurate, and the rigging grid adjustment process is more efficient and accurate.
The embodiment of the application also provides an adjusting method of the rigging grid, wherein the method can be applied to terminal equipment capable of presenting a graphical user interface, and the method comprises the following steps:
step S210, obtain the rigging grid to be adjusted.
For some rigging grids, modifications and simplifications without affecting the FEA results are needed. For example, in the double-ring buckle model, the pin roll part in the original model file has a single cylinder liner primitive which can be seen through a two-dimensional drawing, while the original model file is opened by software to find that the original model file is a solid cylinder, for example, in the double-ring buckle two-dimensional drawing shown in fig. 2, the connection part between the single cylinder liner primitive and the pin roll before modification is shown as a part in a
ring301 in fig. 3.
Step S220, the trained grid simplified network is utilized to split the pixels of the rigging grid to be adjusted, whether each split pixel participates in the stress of the rigging grid to be adjusted is judged, and the redundant pixels which do not participate in the stress are deleted from the rigging grid to be adjusted so as to simplify the rigging grid to be adjusted, and the simplified first rigging grid is obtained.
The principle of simplification and modification of the rigging grid is that the simplification and modification are simplified without affecting the finite element analysis result (i.e. whether the principle participates in affecting the stress analysis result of the rigging grid to be adjusted). For the understanding of finite element analysis, it is solved by replacing the complex problem with a simpler one. Finite element analysis may consider a solution domain as consisting of many small interconnected subdomains called finite elements, assuming a suitable approximate solution for each element, and then deriving the overall satisfaction conditions (e.g., structural equilibrium conditions) for solving this domain, so that the solution finite element method to solve the problem fundamentally differs from other approximation methods for solving edge-value problems in that its approximation is limited to relatively small sub-domains, finite element methods define functions over the domain of elements of simple geometry (e.g., triangles or arbitrary quadrilaterals in two-dimensional problems) (piecewise functions) and do not consider the complex boundary conditions of the entire definition domain, which is one of the reasons why finite element methods outperform other approximation methods. The basic steps of finite element solvers are the same for problems of different physical properties and mathematical models, except that the specific formula derivation and the computational solution are different. The basic steps of finite element solving the problem may be:
first step problem and solution domain definition: determining the physical property and the geometric area of a solution domain approximately according to the actual problem; and a second step of solving domain discretization: the solution domain is approximated to be a discrete domain composed of a limited number of units which have different limited sizes and shapes and are connected with each other, which is conventionally called finite element network division, obviously, the smaller the unit (the thinner the network is), the better the approximation degree of the discrete domain is, the more accurate the calculation result is, but the calculation amount and the error are increased, so that the discretization of the solution domain is one of the core technologies of the finite element method; thirdly, determining a state variable and controlling the state variable: a particular physical problem can be represented generally by a set of differential equations containing the boundary conditions of the problem state variables, which are typically formulated into equivalent functional forms for finite element solution; the fourth step is derived by a unit: a proper approximate solution is constructed for the units, namely a finite unit column is deduced, wherein a reasonable unit coordinate system is selected, a unit trial function is established, the discrete relation of each state variable of the units is given in a certain method, and therefore a unit matrix (a rigidity matrix or a flexibility matrix in structural mechanics) is formed. For engineering applications, it is important to note the problem solving performance and constraints of each unit. For example, the shape of the cell should be regular, and when the cell is deformed, not only the accuracy is low, but also the risk of lacking rank exists, which may result in being unable to solve; and fifthly, final assembly solving: the units are assembled to form a total matrix equation (a combined equation set) of a discrete domain, the requirement of the discrete domain of an approximate solution domain is reflected, namely the continuity of a unit function needs to meet a certain continuous condition, the assembly is carried out at nodes of adjacent units, and the continuity of state variables and derivatives (if possible) thereof is established at the nodes; solving and result interpretation of a sixth step simultaneous equation set: the finite element method finally results in a simultaneous equation set, and the solution of the simultaneous equation set can be a direct method, a substitution method and a random method. The solution results are approximate values of the state variables at the cell nodes, and for the quality of the calculation results, it will be evaluated and determined whether repeated calculations are required by comparison with the allowable values provided by the design criteria.
For the process of simplification and modification of the rigging grid, for example, the actual single cylinder liner primitive also includes other components, and since this portion has substantially no influence on the finite element analysis result (i.e., substantially does not participate in influencing the stress of the rigging grid to be adjusted), the simplification can be performed by replacing the single cylinder liner primitive with a stepped shaft model, and the connection portion between the modified single cylinder liner primitive and the pin shaft is shown as the portion in
circle401 in fig. 4.
For another example, for a rotating hook, the model was imported into ANSYS to find that the model displayed incompletely. In SolidWorks, partial solid bodies in the rotating hook model file are checked to be curved surface solid bodies, and the hook body only has an outer surface without the solid bodies by utilizing a cross section. The tongue portion of the rotating hook model before processing is shown as the portion in the
loop501 in fig. 5. Therefore, the model is to be curved and stitched, and the tongue in the model does not affect the finite element analysis result (i.e. does not affect the stress participating in the rigging mesh to be adjusted), the model can be eliminated from simplification, and the main difference between the rotation hook model before processing and the rotation hook model after processing is shown as the part in the
ring601 in fig. 6, i.e. the part without tongue in the
ring601 in the rotation hook model after processing. It can be seen that in contrast to the previous figures, the tongues have been omitted. It follows that the modification and simplification of the rigging grid is a simplification without affecting the results of the above-described finite element analysis (i.e. without affecting the stresses involved in the rigging grid to be adjusted).
Step S230, providing a graphical user interface including the rigging grid to be adjusted through the terminal device.
Illustratively, the three-dimensional model of the rigging to be adjusted is displayed in a computer screen.
Step S240, in response to the designated operation for the target position node on the rigging grid to be adjusted, determining a simplified portion of the first rigging grid corresponding to the target position node in the first rigging grid.
For example, the user clicks a certain position point on the rigging grid to be adjusted by an operation, and the terminal device searches for a part of the first rigging grid at the position point from the simplified overall first rigging grid, that is, the simplified part of the first rigging grid.
Step S250, displaying a simplified prompt control of a portion of the first rigging grid for the target location node in the graphical user interface.
Illustratively, the simplified part of the first rigging grid is displayed at the target location node by a dotted line, and the dotted line is prompted to indicate the simplified model effect corresponding to the target location node, and the user may be asked by providing an option whether to confirm the modification of the model at the target location node to the simplified model effect.
Step S260, in response to the confirmation operation for the simplified prompt control, adjusting a part of the rigging grid at the target position node on the rigging grid to be adjusted to a part of the first rigging grid.
If the user selects the option of confirming the effect of modifying the model at the target position node into the simplified model, the terminal device adjusts the part of the rigging grid at the target position node on the rigging grid to be adjusted into the simplified part of the first rigging grid.
The trained mesh simplification network is used for splitting the primitives of the rigging mesh to be adjusted, redundant primitives which do not participate in the stress are deleted after the primitive stress participates in the analysis, the accurate simplification modification of the rigging mesh to be adjusted is realized, a user can prompt the effect of the rigging mesh after the simplification modification aiming at a target position node selected by the user when operating the rigging mesh to be adjusted, the rigging grid simplification modification at the target location node can be completed when the user elects to confirm the effect of the simplification modification, and then, the simplified effect after accurate processing is prompted when the user operates the simplified rigging grid to be modified is realized, the process of operating the rigging grid by the user is facilitated to be simplified, different simplified results can be flexibly selected according to different position points, the operating efficiency of simplifying and modifying the rigging grid is improved, and the technical problem of low operating efficiency of simplifying and modifying the rigging grid is solved.
The above steps are described in detail below.
In some embodiments, after step S250, the method may further include the steps of:
step a), responding to the rejection operation aiming at the simplified prompt control, hiding the simplified prompt control, and keeping part of the rigging grids at the target position nodes on the rigging grids to be adjusted unchanged.
By means of rejection operation aiming at the simplified prompt control, the simplified prompt control can be hidden, and part of the rigging grids at the target position nodes on the rigging grids to be adjusted are kept unchanged, so that simplified modification prompts recommended by a system can be flexibly rejected, and the flexibility of simplified modification is improved.
In some embodiments, the process of splitting the primitive of the to-be-adjusted rigging grid by using the trained grid simplified network in step S220 may specifically include the following steps:
and b), analyzing the model shape of the rigging grid to be adjusted by using the trained grid simplified network, determining each primitive in the rigging grid to be adjusted through a first designated algorithm in the neural network based on concave-convex change data of the model shape, and splitting the primitive of the rigging grid to be adjusted according to the determined primitive.
Each primitive in the rigging grid is determined and split by analyzing the model shape and based on the concave-convex change of the model shape, so that the splitting of the model primitives is more reasonable and accurate, and the condition of wrong splitting of the model primitives is reduced.
In some embodiments, the process of splitting the primitive of the to-be-adjusted rigging grid by using the trained grid simplified network in step S220 may specifically include the following steps:
and c), analyzing the model color of the rigging grid to be adjusted by using the trained grid simplified network, determining each primitive in the rigging grid to be adjusted through a second specified algorithm in the neural network based on the color distribution data of the model color, and splitting the primitive of the rigging grid to be adjusted according to the determined primitive.
Each primitive in the rigging grid is determined and split by analyzing the color of the model and based on the color distribution of the model, so that the splitting of the model primitives can be more reasonable and accurate, and the condition of wrong splitting of the model primitives is reduced.
In some embodiments, the specified operation comprises any one or more of: and aiming at the click operation, the sliding operation and the operation that the touch control time length of the target position node is greater than the preset time length. Through various operation modes such as click operation, sliding operation, long-time pressing operation and the like, the appointed operation can be more flexible, and the user operation is facilitated.
In some embodiments, the terminal device receives a user operation through the operation device; the method may further comprise the steps of:
step d), responding to the cursor corresponding to the operation equipment in the graphical user interface to move to the target position node, and judging whether a part of rigging grids at the target position node correspond to a simplified part of first rigging grids;
and e), if the part of the rigging grid at the target position node corresponds to the simplified part of the first rigging grid, highlighting the cursor and/or the part of the rigging grid at the target position node to prompt that the part of the rigging grid at the current cursor position can be simplified.
The simplified modification prompt of the position is displayed when the cursor moves to the target position node, so that a user can more conveniently distinguish that the simplified modification prompt corresponds to a specific position in the rigging grid, and the efficiency of simplified modification is improved.
In some embodiments, the method may further comprise the steps of:
step f), obtaining an initial rigging grid training sample and a final rigging grid training sample after the initial rigging grid is adjusted;
and g), training the initial neural network by using the initial rigging grid and the final rigging grid to obtain a trained grid simplified network.
The neural network is used for adjusting the initial rigging grid to obtain an adjusted final rigging grid. The training process of the neural network can be realized through the rigging grid training sample, so that the trained grid simplified network is more accurate, and the rigging grid adjustment process is more efficient and accurate.
The method for adjusting the rigging grid provided by the embodiment of the application has the same technical characteristics as the method for adjusting the rigging grid provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Fig. 7 provides a schematic structural view of an adjustment device for a rigging grid. The device can be applied to terminal equipment capable of presenting a graphical user interface. As shown in fig. 7, the rigging grid adjustment device 700 includes:
the first obtaining
module701 is configured to obtain a to-be-adjusted rigging grid, where the to-be-adjusted rigging grid includes multiple vertices, each vertex records attribute information, and the attribute information is used to record coordinates and vertex types of the vertices;
an optimizing
module702, configured to optimize the vertex type of the rigging mesh to be adjusted by using the trained mesh optimization network, to obtain an optimized rigging mesh;
a
splitting module703, configured to split a primitive of the optimized rigging grid based on the optimized vertex type, so as to obtain a split rigging grid;
a providing
module704, configured to provide, through a terminal device, a graphical user interface including the split rigging grid, where different primitives are displayed differently;
a determining
module705, configured to determine, in response to a specified operation for a target position node on the split rigging grid, a target primitive corresponding to the target position node on the split rigging grid;
a
display module706 configured to display a simplified control for the target primitive in the graphical user interface;
a deleting
module707, configured to delete the target primitive on the split rigging grid in response to a confirmed simplification operation for the simplification control.
In some embodiments, the
deletion module707 is specifically configured to:
determining a plurality of target vertices in the target primitives, which are shared by other primitives on the split rigging grid, wherein the vertex types of the target vertices include a type corresponding to the target primitive and a type corresponding to a shared primitive;
deleting other vertexes except the target vertex in the target primitive;
deleting the type corresponding to the target primitive in the target vertex.
In some embodiments, the apparatus further comprises:
and the judging module is used for judging whether each split primitive participates in the stress of the lockset or not and deleting the simplified control from the optimized rigging grid by using the redundant primitives which do not participate in the stress.
In some embodiments, the apparatus further comprises:
and the hiding module is used for hiding the simplified control in response to the rejection operation aiming at the simplified control.
In some embodiments, the specified operation comprises any one or more of:
and aiming at the click operation, the sliding operation and the operation that the touch control time length of the target position node is greater than the preset time length.
In some embodiments, the apparatus further comprises:
the second acquisition module is used for acquiring a training sample, and the training sample comprises an initial lock grid and a final lock grid;
the training module is used for training the initial neural network by using the training sample to obtain a trained grid optimization network; the neural network is used for optimizing the vertex type in the initial rigging grid to obtain the adjusted final rigging grid.
In some embodiments, one vertex type corresponds to one primitive, and one primitive corresponds to one or more vertex types.
The adjustment device for rigging grids provided by the embodiment of the application has the same technical characteristics as the adjustment method for rigging grids provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
As shown in fig. 8, an
electronic device800 according to an embodiment of the present application includes a
processor802 and a
memory801, where a computer program operable on the processor is stored in the memory, and the processor executes the computer program to implement the steps of the method according to the foregoing embodiment.
Referring to fig. 8, the electronic device further includes: a bus 803 and a
communication interface804, the
processor802, the
communication interface804, and the
memory801 being connected by the bus 803; the
processor802 is used to execute executable modules, such as computer programs, stored in the
memory801.
The
Memory801 may include a high-speed Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 804 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 803 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
The
memory801 is used for storing a program, and the
processor802 executes the program after receiving an execution instruction, and the method performed by the apparatus defined by the process disclosed in any of the foregoing embodiments of the present application may be applied to the
processor802, or implemented by the
processor802.
The
processor802 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the
processor802. The
Processor802 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware primitive. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the
memory801, and the
processor802 reads the information in the
memory801 and completes the steps of the method in combination with the hardware thereof.
Corresponding to the adjustment method of the rigging grid, an embodiment of the present application further provides a computer-readable storage medium storing computer executable instructions, which, when invoked and executed by a processor, cause the processor to execute the steps of the adjustment method of the rigging grid.
The rigging grid adjusting device provided by the embodiment of the present application may be specific hardware on the device, or software or firmware installed on the device, or the like. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, and for example, a plurality of units or primitives may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the rigging grid adjustment method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.