Display method and device

By generating and displaying the animation data of the target structure under predetermined working conditions, the problem of not being able to clearly and effectively display structural modal information in the prior art is solved, and the clear, effective display of modal information and accurate judgment of structural deformation behavior is achieved.

CN120068191APending Publication Date: 2025-05-30CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510236221.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art is difficult to clearly and effectively display the modal information of the structure, which makes it impossible for relevant personnel to accurately judge the performance of the structure under the corresponding deformation behavior.

Method used

By obtaining the modal information of the target structure under a predetermined operating condition, animation data is generated and displayed. The animation data includes multiple frame images. Each frame of image displays the deformation state of the target structure at the corresponding moment. Using the predetermined change trend of the scaling factor and/or specifying the scaling factor, it ensures that the image scaling factor of adjacent frames changes slowly.

Benefits of technology

It realizes clear and effective display of modal information, helping relevant personnel to accurately judge the performance of the structure under the corresponding deformation behavior, and adjust the display effect according to the scaling factor input by the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068191A_ABST
    Figure CN120068191A_ABST
Patent Text Reader

Abstract

The invention provides a display method and device.According to the method, modal information of a target structure under a preset working condition is obtained, the modal information is used for representing deformation characteristics of the target structure under the preset working condition, and animation data of the target structure under the preset working condition are generated and displayed based on the modal information and target data; the animation data comprises multiple frames of images, each frame of image comprises a deformation state of a target structure at a corresponding moment, the target data comprises a predetermined change trend of a scaling factor and / or a specified scaling factor, and the predetermined change trend comprises a predetermined corresponding relationship between the scaling factor and the moment; the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate, and the specified scaling factor is determined by responding to an input operation of the scaling factor of the specified component in the target structure. According to the display method, the modal information can be clearly and effectively displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data display, and particularly to a display method and device. Background Art

[0002] Modal analysis determines the modal information of a structure by identifying the inherent vibration characteristics of the structure. The modal information can be used to describe the deformation behavior of the structure under corresponding working conditions, so that relevant personnel can improve the structure design according to the performance of the structure under the corresponding deformation behavior, thereby ensuring the safety, reliability, and performance optimization of the structure. Therefore, modal analysis is widely used in fields such as engineering design. Among them, the display of modal information is an important factor affecting the accuracy of the judgment results of relevant personnel on the performance of the structure under the corresponding deformation behavior.

[0003] As the complexity of the structure gradually increases, the existing display technology is difficult to clearly and effectively display the modal information of the structure, resulting in relevant personnel being unable to accurately judge the performance of the structure under the corresponding deformation behavior. Summary of the Invention

[0004] To solve the above technical problems, the present application provides a display method and device to solve the problem that the modal information of the structure cannot be clearly and effectively displayed in the prior art.

[0005] To achieve the above technical purpose, the embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present specification provides a display method, including:

[0007] Obtain the modal information of the target structure under a predetermined working condition, where the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition;

[0008] Based on the modal information and target data, generate and display the animation data of the target structure under the predetermined working condition. The animation data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at the corresponding moment; the target data includes a predetermined change trend of the scaling factor and / or a specified scaling factor; the predetermined change trend includes a predetermined correspondence between the scaling factor and the moment, and the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate, and the specified scaling factor is determined by responding to an input operation on the scaling factor of a specified component in the target structure.

[0009] In one embodiment, generating and displaying the animation data of the target structure under the predetermined working condition based on the modal information and target data includes:

[0010] Determine a target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor;

[0011] Based on the modality information and the target scaling factor corresponding to the current frame image, determine the current values of the target parameters corresponding to each predetermined point in the target structure in parallel;

[0012] Generate the current frame image based on the current values of the target parameters corresponding to each of the predetermined points.

[0013] In one embodiment, the target scaling factor includes sub-scaling factors corresponding to each component in the target structure;

[0014] Determining a target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor includes:

[0015] If the specified scaling factor does not exist, use the candidate scaling factor as the sub-scaling factor corresponding to each of the components; the candidate scaling factor includes the scaling factor corresponding to the current moment in the predetermined change trend;

[0016] If the specified scaling factor exists, use the specified scaling factor corresponding to each specified component as the sub-scaling factor corresponding to the specified component, and use the candidate scaling factor as the sub-scaling factor corresponding to the other components in the target structure except the specified components.

[0017] In one embodiment, the predetermined points in the target structure include each vertex in the target structure, and the target parameters corresponding to the vertex include the displacement of the vertex;

[0018] Based on the modality information and the target scaling factor corresponding to the current frame image, determining the current values of the target parameters corresponding to each predetermined point in the target structure in parallel includes:

[0019] Based on the modality information and the target scaling factor corresponding to the current frame image, determine the initial displacement of each vertex in the target structure at the current moment;

[0020] Based on the predetermined size of the bounding box corresponding to the target structure, perform a correction process on the initial displacement of each vertex at the current moment to obtain the current value of the displacement of each vertex.

[0021] In one embodiment, based on the predetermined size of the bounding box corresponding to the target structure, performing a correction process on the initial displacement of each vertex at the current moment to obtain the current value of the displacement of each vertex includes:

[0022] Determine the size relationship between the current size of the target structure and the predetermined size of the bounding box based on the initial displacements of the vertices at the current moment; the current size of the target structure represents the size after scaling the target structure at the current moment;

[0023] Based on the size relationship, perform a correction process on the initial displacements of the vertices at the current moment to obtain the current values of the displacements of the vertices.

[0024] In one implementation manner, performing a correction process on the initial displacements of the vertices at the current moment based on the size relationship to obtain the current values of the displacements of the vertices includes:

[0025] If the current size of the target structure is greater than the predetermined size of the bounding box, determine the current values of the displacements of the vertices based on the predetermined size of the bounding box;

[0026] If the current size of the target structure is less than or equal to the predetermined size of the bounding box, determine the initial displacements of the vertices at the current moment as the current values of the displacements of the vertices.

[0027] In one implementation manner, the current frame image includes the displacement information of the vertices at the current moment;

[0028] Generating the current frame image based on the parameter values of the target parameters corresponding to the predetermined points includes:

[0029] Based on the current values of the displacements of the vertices, update the positions of the vertices of the structure model corresponding to the target structure to obtain the initial updated model of the structure model at the current moment;

[0030] Based on the coordinate information of the vertices corresponding to each line and face in the initial updated model, perform geometric trimming on the initial updated model to obtain the target updated result of the structure model at the current moment;

[0031] Generate the current frame image based on the target updated result of the structure model at the current moment.

[0032] In one implementation manner, performing geometric trimming on the initial updated model based on the coordinate information of the vertices corresponding to each line and face in the initial updated model to obtain the target updated result of the structure model at the current moment includes:

[0033] Based on the coordinate information of the vertices corresponding to each line in the initial updated model, respectively determine the distance between the first endpoint and the second endpoint of each line in the initial updated model, and perform geometric trimming on the lines in the initial updated model based on the distance between the first endpoint and the second endpoint of each line in the initial updated model;

[0034] Based on the coordinate information of the vertices corresponding to each face in the initial update model, determine the overlapping faces in the initial update model, and perform geometric trimming on the overlapping faces in the initial update model to obtain the target update result of the structural model at the current moment.

[0035] In a second aspect, an embodiment of the present specification provides a display device, including:

[0036] A first processing module, configured to obtain modal information of a target structure under a predetermined working condition, where the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition;

[0037] A second processing module, configured to generate and display animation data of the target structure under the predetermined working condition based on the modal information and target data, where the animation data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at a corresponding moment; the target data includes a predetermined change trend of a scaling factor and / or a specified scaling factor; the predetermined change trend includes a predetermined correspondence between the scaling factor and time, and the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate, and the specified scaling factor is determined by responding to an input operation on the scaling factor of a specified component in the target structure.

[0038] In a third aspect, an embodiment of the present specification provides an electronic device, where the electronic device includes at least one processor and at least one memory, and a computer program is stored in the memory, and when the computer program is executed by the processor, the display method described in any one of the above is implemented.

[0039] In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the display method described in any one of the above is implemented.

[0040] In a fifth aspect, an embodiment of the present specification provides a computer program product or a computer program, where the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium; a processor of the computer device reads the computer program from the computer-readable storage medium, and when the processor executes the computer program, the display method described in any one of the above is implemented.

[0041] As can be seen from the above technical solution, the embodiments of the present application provide a display method and device. The method obtains the modal information of the target structure under a predetermined working condition, and the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition. And based on the modal information and the target data, the animation data of the target structure under the predetermined working condition is generated and displayed. The animation data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at the corresponding moment. The target data includes the predetermined change trend of the scaling factor and / or the specified scaling factor. The predetermined change trend includes the predetermined corresponding relationship between the scaling factor and the moment, and the change rate of the scaling factor at each moment is less than or equal to the predetermined change rate. The specified scaling factor is determined by responding to the input operation of the scaling factor of the specified component in the target structure. Therefore, according to the predetermined change trend of the scaling factor, it can be ensured that the scaling factors corresponding to the images of adjacent frames change smoothly, realizing the clear and effective display of the modal information. At the same time, the scaling factor corresponding to each frame of image can also be determined by responding to the input operation of the scaling factor of the specified component in the target structure, so that the modal information can be clearly and effectively displayed according to the user's display requirements for the modal information. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0043] Figure 1 It is a flowchart of a display method provided for the embodiments of this specification.

[0044] Figure 2 It is a schematic structural diagram of a display device provided for the embodiments of this specification. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification should have the general meaning understood by those of ordinary skill in the art in the field to which this specification belongs. The "first", "second" and similar terms used in the embodiments of this specification do not represent any order, quantity or importance, but are only used to avoid confusion of components.

[0046] Unless otherwise required by the context, throughout the specification, "a plurality of" means "at least two", and "comprising" is interpreted in an open, inclusive sense, that is, "including, but not limited to". In the description of the specification, terms such as "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples", or "some examples" are intended to indicate that specific features, structures, materials, or characteristics related to the embodiment or example are included in at least one embodiment or example of the present specification. The schematic representations of the above terms do not necessarily refer to the same embodiment or example.

[0047] The technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present specification. Obviously, the described embodiments are only a part of the embodiments of the present specification, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present specification without creative efforts shall fall within the scope of protection of the present specification.

[0048] Overview

[0049] As described in the background art, modal analysis determines the modal information of a structure by identifying the inherent vibration characteristics of the structure. The modal information can be used to describe the deformation behavior of the structure under corresponding working conditions, so that relevant personnel can improve the structure design according to the performance of the structure under the corresponding deformation behavior, thereby ensuring the safety, reliability, and performance optimization of the structure. Thus, modal analysis is widely used in fields such as engineering design. Among them, the display of modal information is an important factor affecting the accuracy of the judgment results of relevant personnel on the performance of the structure under corresponding deformation behaviors.

[0050] Existing display technologies usually display modal information through a pre-configured scaling factor. However, as the complexity of the structure gradually increases, it is difficult to clearly and effectively display the modal information of the structure through a fixed scaling factor, resulting in relevant personnel being unable to accurately judge the performance of the structure under corresponding deformation behaviors.

[0051] To solve the problem that the modal information of a structure cannot be clearly and effectively displayed in traditional methods, in the technical solution of this application, a display solution is provided. By obtaining the modal information of a target structure under a predetermined working condition, the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition, and based on the modal information and target data, animated data of the target structure under the predetermined working condition is generated and displayed. The animated data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at the corresponding moment. The target data includes a predetermined change trend of the scaling factor and / or a specified scaling factor. The predetermined change trend includes a predetermined correspondence between the scaling factor and the moment, and the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate. The specified scaling factor is determined by responding to an input operation on the scaling factor of a specified component in the target structure. Thus, according to the predetermined change trend of the scaling factor, it can be ensured that the scaling factors corresponding to the images of adjacent frames change smoothly, realizing the clear and effective display of modal information. At the same time, the scaling factor corresponding to each frame of image can also be determined by responding to an input operation on the scaling factor of a specified component in the target structure, so that the modal information can be clearly and effectively displayed according to the user's display requirements for the modal information.

[0052] Based on the above inventive concept, the display method provided by the embodiments of this specification will be described exemplarily below.

[0053] Exemplary Method

[0054] The embodiments of this specification provide a display method, as Figure 1 shown, the method includes:

[0055] S101. Obtain the modal information of the target structure under a predetermined working condition, where the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition.

[0056] Specifically, the target structure can be a structure to be subjected to modal analysis and display, which can be a flexible body, or a rigid structure, or can include both a flexible body and a rigid structure. For example, the target structure can be a linkage system, and the linkage system can include multiple rod structures connected in sequence, and each rod structure can be a flexible body.

[0057] The predetermined working condition can include the working condition for performing modal analysis and display on the target structure. Under different working conditions, the external forces applied to the target structure can be different, and can be specifically set according to actual requirements.

[0058] For any given predetermined working condition, the modal information of the target structure under this predetermined working condition can be used to characterize the deformation characteristics of the target structure under this predetermined working condition. For example, it may include the parameter values of multiple parameters that affect the deformation behavior of the target structure. The multiple parameters may include the natural frequency, modal shape, modal damping ratio, etc. of the target structure. In implementation, static analysis and dynamic analysis can be performed on the target structure through FEA (Finite Element Analysis) to obtain the modal information of the target structure under this predetermined working condition. For example, the modal information of the target structure under this predetermined working condition can be obtained through simulation methods such as ANSYS and Nastran, so as to be able to quickly and effectively simulate the deformation characteristics of the target structure under different working conditions.

[0059] Among them, the modal information of the target structure under this predetermined working condition can be exported as a modal neutral file (such as a file in.mnf format) to facilitate the display of the modal information of the target structure under this predetermined working condition based on this modal neutral file.

[0060] S102. Generate and display the animation data of the target structure under the predetermined working condition based on the modal information and the target data. The animation data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at the corresponding moment; the target data includes a predetermined change trend of the scaling factor and / or a specified scaling factor; the predetermined change trend includes a predetermined correspondence between the scaling factor and the moment, and the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate. The specified scaling factor is determined by responding to an input operation on the scaling factor of a specified component in the target structure.

[0061] Specifically, the target data may include a predetermined change trend of a scaling factor, which is used to perform scaling processing on the data displayed in the image. The predetermined change trend of the scaling factor may include a predetermined correspondence between the scaling factor and time. For example, it may include a change curve of the scaling factor over time. For any time in this change trend, this time may be a relative time, that is, this time represents the time difference from the start time. Among them, the start time may be used as the zero time in this predetermined change trend. In this predetermined change trend, the change rate of the scaling factor at each time may be less than or equal to a predetermined change rate. For example, this predetermined change trend may be a relatively smooth curve, and this curve may be a periodic change curve or a non-periodic change curve, which can be specifically set according to actual needs. Optionally, the predetermined change trend may adopt a sine curve, so as to realize a smooth change of the scaling factor of adjacent frames of images, and further effectively avoid the influence of a large-scale change of the adjacent frames of images on the display clarity of modal information, and can display modal information at different scales, effectively improving the display clarity and effectiveness of modal information. Thus, through the predetermined change trend of the scaling factor, clear and effective display of modal information can be achieved. At the same time, by setting the scaling factor to change according to this predetermined change trend, a smoother jump of the animation data can be achieved visually, so as to achieve a more fluent and natural animation effect.

[0062] In addition, the target data may further include a specified scaling factor, which can be determined by responding to a user's input operation on the scaling factor of a specified component in the target structure. The target structure may include multiple components. The specified component may be the component selected by the user when inputting the scaling factor. The specified component may include all components in the target structure or only some components in the target structure. In implementation, the user may input different scaling factors or the same scaling factor for different components according to the display requirements of modal information.

[0063] Among them, based on the modal information and the target data, the animation data of the target structure under the predetermined working condition can be generated. The animation data can include multiple frames of images, and the multiple frames of images can include images at multiple different moments arranged in chronological order. For any frame of the multiple frames of images, the image can include the deformation state of the target structure at the corresponding moment. The deformation state of the target structure at the corresponding moment can include the displacement information of each vertex of the target structure at the corresponding moment, and the displacement information can be displayed through the two-dimensional diagram of the structure model corresponding to the target structure; the deformation state of the target structure at the corresponding moment can also include the stress information of each region of the target structure, and the stress information can be displayed in the form of a contour map; the deformation state of the target structure at the corresponding moment can also include the strain information of each region of the target structure, and the strain information can be displayed in the form of a contour map. Thus, through the animation data of the target structure under the predetermined working condition, the modal information of the target structure under the predetermined working condition can be comprehensively and effectively displayed.

[0064] In implementation, each frame of the animation data of the target structure under the predetermined working condition can be displayed in real time, and the animation data can also be previewed, which can be specifically set according to actual requirements.

[0065] It can be seen that through the method of the embodiment of the present application, the clear and effective display of the modal information can be realized, and then the relevant personnel can accurately judge the performance of the target structure under the predetermined working condition according to the displayed modal information.

[0066] In a feasible implementation manner, generating and displaying the animation data of the target structure under the predetermined working condition based on the modal information and the target data includes:

[0067] Determine the target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor;

[0068] Based on the modal information and the target scaling factor corresponding to the current frame image, concurrently determine the current values of the target parameters corresponding to each predetermined point position in the target structure;

[0069] Generate the current frame image based on the current values of the target parameters corresponding to each predetermined point position.

[0070] Specifically, the scaling factor corresponding to the current frame image can be determined based on a predetermined change trend of the scaling factor and / or a specified scaling factor. For example, the specified scaling factor can be preferentially adopted. For any component in the target structure, if there is a specified scaling factor corresponding to the component, the specified scaling factor is used as the scaling factor corresponding to the component. If there is no specified scaling factor corresponding to the component, the scaling factor corresponding to the component is determined based on the predetermined change trend of the scaling factor, so that the modal information can be clearly and effectively displayed on the premise of meeting the user's display requirements for the modal information.

[0071] Optionally, the target scaling factor includes sub-scaling factors corresponding to each component in the target structure;

[0072] Determining the target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor includes:

[0073] If there is no specified scaling factor, the candidate scaling factor is used as the sub-scaling factor corresponding to each component; the candidate scaling factor includes the scaling factor corresponding to the current moment in the predetermined change trend;

[0074] If there is a specified scaling factor, the specified scaling factor corresponding to each specified component is used as the sub-scaling factor corresponding to the specified component, and the candidate scaling factor is used as the sub-scaling factor corresponding to other components in the target structure except the specified components.

[0075] Specifically, in the same frame image, the scaling factors corresponding to different components of the target structure can be the same or different. Among them, the target scaling factor corresponding to the current frame image can include sub-scaling factors corresponding to each component in the target structure, and the sub-scaling factor can be used to determine the current value of the target parameter corresponding to each predetermined point in the corresponding component during the generation of the current frame image.

[0076] In implementation, it can be determined whether an input for the scaling factor of a specified component in the target structure is received. If not, it indicates that there is no specified scaling factor, that is, the user does not specify the size of the scaling factor. At this time, the candidate scaling factor can be determined based on the predetermined change trend of the scaling factor, and the candidate scaling factor is used as the sub-scaling factor corresponding to each component in the target structure. Among them, during the process of determining the candidate scaling factor based on the predetermined change trend of the scaling factor, the difference between the current moment and the start moment can be used as the target moment, and the scaling factor at the target moment is determined based on the predetermined change trend, and the scaling factor at the target moment is used as the candidate scaling factor corresponding to the current moment, so that the sub-scaling factors corresponding to each component in the current frame image can be quickly and effectively determined.

[0077] If an input for the scaling factor of a specified component in the target structure is received, it indicates the existence of a specified scaling factor. At this time, the received specified scaling factor can be used as the sub-scaling factor corresponding to the respective specified component. If the specified component includes all components in the target structure, only the target scaling factor corresponding to the current frame image needs to be determined based on the specified component. If the specified component only includes some components in the target structure, at this time, the candidate scaling factor can be determined based on the predetermined change trend of the scaling factor, and the candidate scaling factor can be used as the sub-scaling factor corresponding to each other component other than the specified component in the target structure. For example, in the case where extremely high displacements, stresses, or strains occur at certain points in the target structure, it will cause the colors in most regions of the corresponding cloud map to tend to be the same or most regions in the image to be difficult to clearly display, resulting in the difficulty of identifying the detailed features in most regions. At this time, the user can input the scaling factor corresponding to the component that needs to be detailedly displayed to perform local scaling on the display effect, so as to be able to more clearly display the deformation performance of the region concerned by the user, and the deformation performance such as displacement, stress, strain, etc.

[0078] After determining the target scaling factor corresponding to the current frame image, the current values of the target parameters corresponding to each predetermined point of the target structure can be determined in parallel based on the modal information and the target scaling factor corresponding to the current frame image. Among them, the predetermined points can include the points where the deformation state needs to be determined. For example, they can include the vertices of the target structure, and can also include the points that have a greater impact on the reliability of the target structure. Specifically, they can be set according to actual needs. For any predetermined point, the target parameters corresponding to this predetermined point can include displacement, stress, strain, etc.

[0079] In implementation, for different predetermined points in the target structure, different threads can be enabled to determine the current values of the target parameters corresponding to each predetermined point in parallel. For example, the current values of the target parameters corresponding to each predetermined point can be determined in parallel through the GPU (Graphics Processing Unit), so as to effectively improve the display efficiency and further improve the real-time performance of the interaction with the user.

[0080] Among them, based on the modal information of the target structure under the predetermined working condition, the simulation values of the target parameters corresponding to each predetermined point in the target structure can be determined by means of multi-body dynamics simulation, and the simulation values of the target parameters corresponding to each predetermined point are scaled based on the target scaling factor, so as to determine the current values of the target parameters corresponding to each predetermined point based on the scaling result. For any target parameter corresponding to a predetermined point, the scaling result corresponding to the target parameter can be directly used as the current value of the target parameter, or the scaling result corresponding to the target parameter can be further corrected, and the corrected result is used as the current value of the target parameter.

[0081] In implementation, current frame images can be generated based on the current values of the target parameters corresponding to each predetermined point. For example, based on the current values of the displacements corresponding to each predetermined point, the structural model corresponding to the target structure can be updated, and the current frame image can be generated according to the updated structural model; a stress nephogram can also be generated based on the current values of the stresses corresponding to each predetermined point, and the current frame image can be generated according to the stress nephogram; a strain nephogram can also be generated based on the current values of the strains corresponding to each predetermined point, and the current frame image can be generated according to the strain nephogram. It can be understood that the current frame image can include all or part of the updated structural model, stress nephogram, and strain nephogram, and can also respond to the input operation of the display content to determine the content to be displayed and display the content to be displayed.

[0082] In a feasible implementation manner, the predetermined points in the target structure include each vertex in the target structure, and the target parameters corresponding to the vertex include the displacement of the vertex;

[0083] Parallelly determining the current values of the target parameters corresponding to each predetermined point in the target structure based on the modal information and the target scaling factor corresponding to the current frame image includes:

[0084] Based on the modal information and the target scaling factor corresponding to the current frame image, determining the initial displacements of the vertices of the target structure at the current moment;

[0085] Based on the predetermined size of the bounding box corresponding to the target structure, correcting the initial displacements of the vertices at the current moment to obtain the current values of the displacements of the vertices.

[0086] Specifically, the predetermined points in the target structure include each vertex in the target structure, and for any vertex, the target parameter corresponding to the vertex includes the displacement of the vertex.

[0087] In implementation, based on the modal information and the target scaling factor corresponding to the current frame image, the initial displacements of each vertex of the target structure at the current moment can be determined. For example, based on the modal information of the target structure under the predetermined working condition, the displacement simulation values of each vertex in the target structure at the current moment can be determined by means of multi-body dynamics simulation, and the displacement simulation values of each vertex at the current moment can be scaled based on the target scaling factor to obtain the initial displacements of each vertex at the current moment.

[0088] The bounding box corresponding to the target structure can be a single bounding box, that is, the entire target structure corresponds to one bounding box. In addition, the bounding box corresponding to the target structure can also include the bounding boxes corresponding to each component in the target structure, which can be specifically set according to actual requirements. The bounding box can be used to define the size information of the target structure in the real process.

[0089] In implementation, based on the predetermined size of the bounding box corresponding to the target structure, the initial displacements of each vertex in the target structure at the current moment can be corrected to obtain the current values of the displacements of each vertex. For example, the predetermined size of the bounding box can be used as the upper limit value of the size of the target structure or each component in the target structure, and the initial displacements of each vertex in the target structure at the current moment can be corrected to obtain the current values of the displacements of each vertex.

[0090] Thus, by correcting the initial displacements of each vertex at the current moment through the predetermined size of the bounding box corresponding to the target structure, the spatial range of the target structure in the image to be displayed can be limited. In this way, by reasonably configuring the predetermined size of the bounding box, it is possible to effectively avoid the loss of details in the target structure due to too large a size and the inability to clearly display the target structure due to too small a size, thereby further improving the visualization effect of the modal information of the target structure.

[0091] In a feasible implementation manner, based on the predetermined size of the bounding box corresponding to the target structure, correcting the initial displacements of each vertex at the current moment to obtain the current values of the displacements of each vertex includes:

[0092] Based on the initial displacements of each vertex at the current moment, determine the size relationship between the current size of the target structure and the predetermined size of the bounding box; the current size of the target structure represents the size after scaling the target structure at the current moment;

[0093] Based on the size relationship, correct the initial displacements of each vertex at the current moment to obtain the current values of the displacements of each vertex.

[0094] Specifically, the current size of the target structure is the size after scaling the target structure at the current moment, that is, the size after scaling the size of the target structure deformed at the current moment based on the target scaling factor corresponding to the current frame image. The size of the target structure deformed at the current moment can be determined based on the displacement simulation values of each vertex in the target structure at the current moment.

[0095] In implementation, the size relationship between the current size of the target structure and the predetermined size of the bounding box can be determined based on the initial displacements of each vertex at the current moment. For example, when the target structure as a whole corresponds to a bounding box, based on the initial displacements of each vertex at the current moment, it can be determined whether each vertex of the target structure is within the bounding box. If each vertex of the target structure is within the bounding box, it indicates that the current size of the target structure is less than or equal to the predetermined size of the bounding box. If there is at least one vertex of the target structure outside the bounding box, it indicates that the current size of the target structure is greater than the predetermined size of the bounding box. When the bounding box corresponding to the target structure includes the bounding boxes corresponding to each component in the target structure, based on the initial displacements of each vertex at the current moment, the current size of each component can be determined respectively, and the current size of each component can be compared with the predetermined size of the corresponding bounding box respectively to obtain the size relationship between the current size of each component in the target structure and the predetermined size of the corresponding bounding box.

[0096] Among them, based on this size relationship, the initial displacements of each vertex in the target structure at the current moment can be corrected, so as to effectively limit the spatial range of the target structure in the image to be displayed, thereby further improving the visualization effect of the modal information of the target structure.

[0097] In a feasible implementation manner, based on the size relationship, correcting the initial displacements of each vertex at the current moment to obtain the current values of the displacements of each vertex includes:

[0098] If the current size of the target structure is greater than the predetermined size of the bounding box, the current values of the displacements of each vertex are determined based on the predetermined size of the bounding box;

[0099] If the current size of the target structure is less than or equal to the predetermined size of the bounding box, the initial displacements of each vertex at the current moment are determined as the current values of the displacements of each vertex.

[0100] Specifically, when the entire target structure corresponds to a bounding box, if the current size of the target structure is greater than the predetermined size of the bounding box, the correction coefficient can be determined based on the ratio of the predetermined size of the bounding box to the current size of the target structure, and the initial displacements of the vertices at the current moment can be corrected based on the correction coefficient to obtain the current values of the displacements of the vertices. If the current size of the target structure is less than or equal to the predetermined size of the bounding box, the initial displacements of the vertices in the target structure at the current moment can be directly used as the current values of the displacements of the vertices.

[0101] When the bounding box corresponding to the target structure includes the bounding boxes corresponding to each component in the target structure, for any component in the target structure, if the current size of the component is greater than the predetermined size of the corresponding bounding box, the correction coefficient corresponding to the component can be determined based on the ratio of the predetermined size of the bounding box corresponding to the component to the current size of the component, and the initial displacements of the vertices in the component at the current moment can be corrected based on the correction coefficient corresponding to the component to obtain the current values of the displacements of the vertices in the component. If the current size of the component is less than or equal to the predetermined size of the corresponding bounding box, the initial displacements of the vertices in the component at the current moment can be directly used as the current values of the displacements of the vertices in the component.

[0102] Thus, through the method of this embodiment, the spatial range of the target structure in the image to be displayed can be effectively limited, thereby further improving the visualization effect of the modal information of the target structure.

[0103] In a feasible implementation manner, the current frame image includes the displacement information of each vertex at the current moment;

[0104] Generating the current frame image based on the parameter values of the target parameters corresponding to the predetermined points includes:

[0105] Based on the current values of the displacements of the vertices, updating the positions of the vertices of the structure model corresponding to the target structure to obtain the initial updated model of the structure model at the current moment;

[0106] Based on the coordinate information of the vertices corresponding to each line and face in the initial updated model, geometric trimming is performed on the initial updated model to obtain the target updated result of the structure model at the current moment;

[0107] Generating the current frame image based on the target updated result of the structure model at the current moment.

[0108] Specifically, the current frame image may include the displacement information of each vertex in the target structure at the current moment. Among them, the displacement information of each vertex in the target structure at the current moment can be simulated through the structure model corresponding to the target structure, and the structure model is displayed in the current frame image. The structure model corresponding to the target structure can be used to simulate the target structure.

[0109] In implementation, during the process of generating the current frame image, based on the current values of the displacements of each vertex in the target structure and the initial positions of each vertex, the target coordinate information of each vertex at the current moment can be determined, so as to update the positions of the vertices of the structure model corresponding to the target structure based on the target coordinate information of each vertex, and obtain the initial updated model of the structure model at the current moment, so as to simulate the displacement information of each vertex in the target structure at the current moment through the structure model.

[0110] Among them, for any line in the initial updated model, the vertices corresponding to the line in the initial updated model are the vertices that form the line among the vertices of the initial updated model. For any face in the initial updated model, the vertices corresponding to the face in the initial updated model are the vertices that form the face among the vertices of the initial updated model. In implementation, based on the coordinate information of the vertices corresponding to each line and each face in the initial updated model corresponding to the structure model at the current moment, geometric trimming can be performed on the initial updated model to obtain the target update result of the structure model at the current moment. Thus, during the process of generating and displaying the current frame image according to the geometric trimming result of the initial updated model, the display efficiency of the current frame image can be effectively improved.

[0111] Optionally, based on the coordinate information of the vertices corresponding to each line and each face in the initial updated model, performing geometric trimming on the initial updated model to obtain the target update result of the structure model at the current moment includes:

[0112] Based on the coordinate information of the vertices corresponding to each line in the initial updated model, respectively determine the distance between the first endpoint and the second endpoint of each line in the initial updated model, and perform geometric trimming on the lines in the initial updated model based on the distance between the first endpoint and the second endpoint of each line in the initial updated model;

[0113] Based on the coordinate information of the vertices corresponding to each face in the initial updated model, determine the overlapping faces in the initial updated model, and perform geometric trimming on the overlapping faces in the initial updated model to obtain the target update result of the structure model at the current moment.

[0114] Specifically, for any line in the initial updated model, the distance between the first endpoint and the second endpoint of the line can be determined based on the coordinate information of the vertices corresponding to the line in the initial updated model. And based on the comparison result between the distance between the first endpoint and the second endpoint of the line and a predetermined distance, it can be determined whether to perform geometric trimming on the line, that is, whether to remove the line from the initial updated model. For example, if the distance between the first endpoint and the second endpoint of the line is less than or equal to the predetermined distance, geometric trimming is performed on the line. If the distance between the first endpoint and the second endpoint of the line is greater than the predetermined distance, geometric trimming is not performed on the line, that is, the line in the initial updated model is retained. Among them, the predetermined distance can be set according to actual needs. Optionally, the predetermined distance can be 0, that is, if the first endpoint and the second endpoint of the line coincide, geometric trimming is performed on the line. If the first endpoint and the second endpoint of the line do not coincide, geometric trimming is not performed on the line, so that redundant lines in the initial updated model can be quickly and effectively removed.

[0115] Meanwhile, based on the coordinate information of each vertex corresponding to each face in the initial updated model, it can be determined whether there are coincident faces in the initial updated model. For example, for any two faces in the initial updated model, if the vertices of the two faces all correspond and coincide, it is determined that the two faces are coincident faces. Otherwise, it is determined that the two faces are not coincident faces. In addition, based on the coordinate information of the vertices in the two faces, it can also be determined whether one face in the two faces contains the other face. If one face in the two faces contains the other face, the two faces are coincident faces. Otherwise, the two faces are not coincident faces.

[0116] If there are no coincident faces in the initial updated model, geometric trimming may not be performed on the faces in the initial updated model, that is, each face in the initial updated model is retained.

[0117] If there are coincident faces in the initial updated model, geometric trimming can be performed on the coincident faces in the initial updated model. For example, one face can be determined to be retained from the coincident faces, and geometric trimming is performed on the other faces, so that redundant faces in the initial updated model can be quickly and effectively removed.

[0118] In implementation, based on the target update result of the structure model corresponding to the target structure at the current moment, the current frame image can be generated. For example, the target update result of the structure model at the current moment can be triangulated to obtain a model to be displayed, and the model to be displayed is rendered to obtain the current frame image. During the triangulation process, each target face in the target update result of the structure model at the current moment can be divided into triangular faces, and the target face includes faces with more than three sides, so as to quickly and effectively render the target update result of the structure model at the current moment.

[0119] Exemplary Apparatus

[0120] In an exemplary embodiment of the present specification, a display device is further provided. As Figure 2 shown, the device includes:

[0121] A first processing module 201, configured to obtain modal information of a target structure under a predetermined working condition, where the modal information is used to characterize the deformation characteristics of the target structure under the predetermined working condition;

[0122] A second processing module 202, configured to generate and display animation data of the target structure under the predetermined working condition based on the modal information and target data, where the animation data includes multiple frames of images, and each frame of image includes the deformation state of the target structure at a corresponding moment; the target data includes a predetermined change trend of a scaling factor and / or a specified scaling factor; the predetermined change trend includes a predetermined correspondence between the scaling factor and the moment, and the change rate of the scaling factor at each moment is less than or equal to a predetermined change rate, and the specified scaling factor is determined by responding to an input operation on the scaling factor of a specified component in the target structure.

[0123] In a feasible implementation manner, the second processing module 202 is specifically configured to:

[0124] Determine a target scaling factor corresponding to the current frame of image based on the predetermined change trend and / or the specified scaling factor;

[0125] Based on the modal information and the target scaling factor corresponding to the current frame of image, concurrently determine current values of target parameters corresponding to each predetermined point in the target structure;

[0126] Generate the current frame of image based on the current values of the target parameters corresponding to each of the predetermined points.

[0127] In a feasible implementation manner, the target scaling factor includes sub-scaling factors corresponding to each component in the target structure; the second processing module 202 is specifically configured to:

[0128] If the specified scaling factor does not exist, use the candidate scaling factor as the sub-scaling factor corresponding to each of the components; the candidate scaling factor includes the scaling factor corresponding to the current moment in the predetermined change trend;

[0129] If the specified scaling factor exists, use the specified scaling factor corresponding to each of the specified components as the sub-scaling factor corresponding to the specified component, and use the candidate scaling factor as the sub-scaling factor corresponding to other components in the target structure except the specified components.

[0130] In a feasible implementation, the predetermined points in the target structure include each vertex in the target structure, and the target parameters corresponding to the vertex include the displacement of the vertex; the second processing module 202 is specifically configured to:

[0131] Based on the modal information and the target scaling factor corresponding to the current frame image, determine the initial displacement of each vertex of the target structure at the current moment;

[0132] Based on the predetermined size of the bounding box corresponding to the target structure, perform correction processing on the initial displacement of each vertex at the current moment to obtain the current value of the displacement of each vertex.

[0133] In a feasible implementation, the second processing module 202 is specifically configured to:

[0134] Based on the initial displacement of each vertex at the current moment, determine the size relationship between the current size of the target structure and the predetermined size of the bounding box; the current size of the target structure represents the size after scaling the target structure at the current moment;

[0135] Based on the size relationship, perform correction processing on the initial displacement of each vertex at the current moment to obtain the current value of the displacement of each vertex.

[0136] In a feasible implementation, the second processing module 202 is specifically configured to:

[0137] If the current size of the target structure is greater than the predetermined size of the bounding box, determine the current value of the displacement of each vertex based on the predetermined size of the bounding box;

[0138] If the current size of the target structure is less than or equal to the predetermined size of the bounding box, determine the initial displacement of each vertex at the current moment as the current value of the displacement of each vertex.

[0139] In a feasible implementation, the current frame image includes the displacement information of each vertex at the current moment; the second processing module 202 is specifically configured to:

[0140] Based on the current value of the displacement of each vertex, update the positions of the vertices of the structure model corresponding to the target structure to obtain the initial updated model of the structure model at the current moment;

[0141] Based on the coordinate information of the vertices corresponding to each line and face in the initial updated model, perform geometric pruning on the initial updated model to obtain the target updated result of the structure model at the current moment;

[0142] Generate the current frame image based on the target update result of the structure model at the current moment.

[0143] In a feasible implementation, the second processing module 202 is specifically configured to:

[0144] Based on the coordinate information of the vertices corresponding to each line in the initial update model, respectively determine the distance between the first endpoint and the second endpoint of each line in the initial update model, and perform geometric pruning on the lines in the initial update model based on the distance between the first endpoint and the second endpoint of each line in the initial update model;

[0145] Based on the coordinate information of the vertices corresponding to each face in the initial update model, determine the overlapping faces in the initial update model, and perform geometric pruning on the overlapping faces in the initial update model to obtain the target update result of the structure model at the current moment.

[0146] The display device provided in this embodiment belongs to the same inventive concept as the display method provided in the above embodiments of the present application, can execute the display method provided in any of the above embodiments of the present application, and has the corresponding functional modules and beneficial effects for executing the display method. For technical details not described in detail in this embodiment, reference may be made to the specific processing content of the display method provided in the above embodiments of the present application, which will not be elaborated here.

[0147] Exemplary Device

[0148] In an exemplary embodiment of this specification, an electronic device is further provided. The electronic device includes at least one processor and at least one memory. A computer program is stored in the memory, and when the computer program is executed by the processor, the display method described in any of the above embodiments is implemented.

[0149] Exemplary Computer Program Product and Storage Medium

[0150] In addition to the above methods and devices, the display method provided in the embodiments of this specification may also be a computer program product, which includes computer program instructions. When the computer program instructions are run by a processor, the processor is caused to execute the steps in the display methods according to various embodiments of this specification described in the "Exemplary Method" section above.

[0151] The computer program product can be written in any combination of one or more programming languages for the program code to execute the operations in the embodiments of this specification. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages.

[0152] In addition, the embodiments of the present specification also provide a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps in the display method according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.

[0153] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present specification can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0154] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0155] The above-described embodiments only represent several implementation manners of the present specification. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the solutions provided by the embodiments of the present specification. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present specification, several modifications and improvements can still be made, and these all belong to the protection scope of the present specification. Therefore, the protection scope of the patent of the present specification should be subject to the appended claims.

Claims

1. A display method, characterized in that: include: Acquiring modal information of a target structure under a predetermined working condition, wherein the modal information is used to characterize deformation characteristics of the target structure under the predetermined working condition; Based on the modal information and the target data, generating and displaying animation data of the target structure under the predetermined working condition, the animation data comprising a plurality of frames of images, each frame of the image comprising a deformation state of the target structure at a corresponding moment; The target data includes a predetermined change trend of the scaling factor and / or a specified scaling factor; The predetermined change trend includes a predetermined corresponding relationship between the scaling factor and time, the change rate of the scaling factor at each time is less than or equal to the predetermined change rate, and the specified scaling factor is determined by responding to an input operation of the scaling factor of a specified component in the target structure.

2. The method according to claim 1, characterized in that: Based on the modal information and the target data, generating and displaying animation data of the target structure under the predetermined working condition, including: Determining a target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor; Based on the modal information and the target scaling factor corresponding to the current frame image, current values ​​of target parameters corresponding to each predetermined point in the target structure are determined in parallel; A current frame image is generated based on the current value of the target parameter corresponding to each of the predetermined points.

3. The method according to claim 2, characterized in that The target scaling factor includes a sub-scaling factor corresponding to each component in the target structure; Determining a target scaling factor corresponding to the current frame image based on the predetermined change trend and / or the specified scaling factor includes: If the specified scaling factor does not exist, taking a candidate scaling factor as a sub-scaling factor corresponding to each of the components; the candidate scaling factor includes a scaling factor corresponding to the current moment in the predetermined change trend; If the specified scaling factor exists, the specified scaling factor corresponding to each of the specified components is used as the sub-scaling factor corresponding to the specified component, and the candidate scaling factor is used as the sub-scaling factor corresponding to other components other than the specified components in the target structure.

4. The method according to claim 2, characterized in that: The predetermined points in the target structure include vertices in the target structure, and the target parameters corresponding to the vertices include displacements of the vertices; Based on the modal information and the target scaling factor corresponding to the current frame image, current values ​​of target parameters corresponding to each predetermined point in the target structure are determined in parallel, including: Determining the initial displacement of each vertex of the target structure at a current moment based on the modal information and the target scaling factor corresponding to the current frame image; Based on the predetermined size of the bounding box corresponding to the target structure, the initial displacement of each of the vertices at the current moment is corrected to obtain the current value of the displacement of each of the vertices.

5. The method according to claim 4, characterized in that Based on the predetermined size of the bounding box corresponding to the target structure, the initial displacement of each vertex at the current moment is corrected to obtain the current value of the displacement of each vertex, including: Based on the initial displacement of each of the vertices at the current moment, determining the size relationship between the current size of the target structure and the predetermined size of the bounding box; the current size of the target structure represents the size of the target structure after scaling at the current moment; Based on the size relationship, the initial displacement of each of the vertices at the current moment is corrected to obtain the current value of the displacement of each of the vertices.

6. The method according to claim 5, characterized in that Based on the size relationship, the initial displacement of each of the vertices at the current moment is corrected to obtain the current value of the displacement of each of the vertices, including: If the current size of the target structure is greater than the predetermined size of the bounding box, determining a current value of the displacement of each of the vertices based on the predetermined size of the bounding box; If the current size of the target structure is less than or equal to the predetermined size of the bounding box, the initial displacement of each of the vertices at the current moment is determined as the current value of the displacement of each of the vertices.

7. The method according to any one of claims 4 to 6, characterized in that: The current frame image includes displacement information of each vertex at the current moment; Generating a current frame image based on the parameter values ​​of the target parameters corresponding to each of the predetermined points includes: Based on the current value of the displacement of each of the vertices, updating the position of each vertex of the structural model corresponding to the target structure to obtain an initial updated model of the structural model at the current moment; Based on the coordinate information of the vertices corresponding to each line and surface in the initial update model, geometrically pruning the initial update model to obtain the target update result of the structural model at the current moment; The current frame image is generated based on the target update result of the structural model at the current moment.

8. The method according to claim 7, characterized in that Based on the coordinate information of the vertices corresponding to each line and surface in the initial update model, the initial update model is geometrically pruned to obtain the target update result of the structural model at the current moment, including: Based on the coordinate information of the vertices corresponding to each line in the initial update model, respectively determine the distance between the first endpoint and the second endpoint of each line in the initial update model, and based on the distance between the first endpoint and the second endpoint of each line in the initial update model, geometrically trim the lines in the initial update model; Based on the coordinate information of the vertices corresponding to each face in the initial update model, the overlapping faces in the initial update model are determined, and the overlapping faces in the initial update model are geometrically trimmed to obtain the target update result of the structural model at the current moment.

9. A display device, characterized in that: include: A first processing module, used for acquiring modal information of a target structure under a predetermined working condition, wherein the modal information is used for characterizing a deformation characteristic of the target structure under the predetermined working condition; A second processing module, for generating and displaying animation data of the target structure under the predetermined working condition based on the modal information and the target data, wherein the animation data includes a plurality of frames of images, each frame of the image including a deformation state of the target structure at a corresponding moment; The target data includes a predetermined change trend of the scaling factor and / or a specified scaling factor; The predetermined change trend includes a predetermined corresponding relationship between the scaling factor and time, the change rate of the scaling factor at each time is less than or equal to the predetermined change rate, and the specified scaling factor is determined by responding to an input operation of the scaling factor of a specified component in the target structure.

10. An electronic device, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the display method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Flexible body rendering method, system and device, medium and product

    CN121213748A

  • Method, system, device, medium and product for rendering a flexible body

    CN121213748B