Inflatable cushion sample simulation modeling method, device, equipment, medium and product
By acquiring the geometric and mechanical features of the two-dimensional drawings of the inflatable cushion, and using the Delaunay triangulation algorithm and mechanics engine to generate a three-dimensional model, the problem of automatic simulation from two-dimensional drawings to three-dimensional models is solved, improving production efficiency and environmental friendliness.
Patent Information
- Application Number
- CN202511009341.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-11-07
AI Technical Summary
Existing technologies cannot automatically simulate and model inflatable cushions based on two-dimensional drawings to obtain a three-dimensional model that differs significantly from the actual prototype, resulting in high material consumption and carbon emissions during the production process.
By acquiring the geometric features of the two-dimensional drawings of the inflatable cushion, the characteristic points of the mechanical elements and the pairs of dual points are determined. The Delaunay triangulation algorithm is applied to generate triangular mesh data, and the mechanical engine is used for iteration to form a three-dimensional model of the inflatable cushion sample.
It enables rapid and accurate conversion from 2D drawings to 3D models, reducing the number of revision cycles in physical prototyping, saving materials and reducing carbon emissions.
Smart Images

Figure CN120911084A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of industrial automation, and particularly relates to an air cushion sample simulation modeling method, device, equipment, medium and product. BACKGROUND
[0002] With the progress of society and the improvement of living standards, various outdoor activities such as camping and picnics have entered people's lives. More and more people will choose outdoor activities to relax on weekends or holidays, which puts higher requirements on outdoor products. At present, various outdoor sports products have been developed. As one of the common outdoor sports products, the air cushion is an air bed after inflation, which can be used with a tent, and can also be applied to physical education or sports competitions (because there is not enough space, temporary air cushions need to be arranged when performing jumping and other sports projects).
[0003] The existing air cushion design and production process is as shown in Figure 1 , including design proposition, conference discussion, design drawing, small sample MVP (Minimum Viable Product), design target judgment, large sample production, problem correction and large cargo production, etc. Among them, the conference discussion and design drawing are responsible by the design department, and the small sample MVP, design target judgment and large sample production are responsible by the sample workshop of the research and development department. As shown in Figure 1 , after the small sample MVP link and the large sample production link, multiple cycles of design correction are needed to make ideal air cushion products, which will consume a large amount of materials and increase the cumulative carbon emissions. Therefore, it is necessary to use computer-aided technology to first model the air cushion sample, then test the air cushion sample three-dimensional model based on the air cushion sample three-dimensional model for a limited number of times / infinitely, until the sample scheme is ensured to be problem-free, and then the entity sample is made, finally realizing the purpose of improving the sample success rate, saving materials and reducing the cumulative carbon emissions.
[0004] At present, the air cushion design drawing is generally a two-dimensional drawing based on CAD (Computer Aided Design) software. How to simulate modeling to obtain an air cushion sample three-dimensional model based on the two-dimensional drawing is the first subject that needs to be studied by those skilled in the art. SUMMARY
[0005] The purpose of the present application is to provide an air cushion sample simulation modeling method, device, computer equipment, computer readable storage medium and computer program product, to solve the problem that the existing computer-aided technology cannot automatically simulate modeling based on the air cushion two-dimensional drawing to obtain an air cushion sample three-dimensional model with a small gap from the actual sample shape.
[0006] In order to achieve the above object, the present application adopts the following technical solutions:
[0007] In a first aspect, a sample air cushion modeling method is provided, comprising:
[0008] inputting a two-dimensional drawing of an air cushion;
[0009] obtaining geometric features of the two-dimensional drawing of the air cushion;
[0010] determining mechanical element feature points and a plurality of pairs of dual mechanical element feature points of the two-dimensional drawing of the air cushion according to the geometric features, wherein the mechanical element feature points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing bar layer points, cloth layer points and side wall layer points, the non-basic component layer points refer to component layer points other than the reinforcing bar layer points, the cloth layer points and the side wall layer points, and the pairs of dual mechanical element feature points refer to two opposite points that need to be pulled tight with each other;
[0011] generating triangular mesh data by applying Delaunay triangulation algorithm according to discrete points with feature attributes in the mechanical element feature points, and taking the triangular mesh data as a basis for simulating a component surface of the air cushion to generate an uninflated model corresponding to the two-dimensional drawing of the air cushion;
[0012] re-grouping tree-shaped data according to types by using mechanical feature tree-shaped data obtained in the determination process of the mechanical element feature points and mesh grid data of the uninflated model, and importing the tree-shaped data and the plurality of pairs of dual mechanical element feature points into a physical operator based on a mechanical engine to obtain an air cushion sample three-dimensional model corresponding to the two-dimensional drawing of the air cushion, wherein the mechanical engine is used to perform length constraint on edge segments of a cloth mesh surface of the uninflated model, and perform multiple iterations on the cloth mesh surface by using triangular surface phase displacement iteration and perpendicular chain equation, and finally form the air cushion sample three-dimensional model.
[0013] Based on the above invention content, a new simulation modeling scheme for automatically converting an air cushion two-dimensional drawing into an air cushion sample three-dimensional model is provided, that is, after inputting the air cushion two-dimensional drawing, the geometric features of the drawing are first obtained, then the mechanical element feature points and the dual point pair group of the drawing are determined according to the geometric features, and then the un-inflated model corresponding to the drawing is generated according to the mechanical element feature points. Finally, the mechanical feature tree data set and the mesh grid data of the un-inflated model are written into the tree data, and the tree data and the dual point pair group are imported into the physical operator based on the mechanical engine to obtain the air cushion sample three-dimensional model corresponding to the drawing. In this way, the input two-dimensional vector line can be converted into a classified functional point element set, and a 3D model with a small difference from the actual proofing form can be generated through the mechanical engine simulation. Thus, the air cushion sample three-dimensional model can be quickly and accurately obtained for subsequent testing, which facilitates subsequent entity proofing and is convenient for practical application and promotion.
[0014] In one possible design, the geometric features of the air cushion two-dimensional drawing are obtained, including:
[0015] The element quality detection processing is performed on the air cushion two-dimensional drawing. If the detection is passed, the geometric features of the air cushion two-dimensional drawing are obtained, otherwise, a prompt message indicating the position of the unqualified line type and the error type is output to the user, wherein the element quality detection processing includes basic component layer quality detection processing and non-basic component layer quality detection processing. The basic component layer quality detection processing includes the rib layer quality detection processing, the cloth layer quality detection processing and the side wall layer quality detection processing. The non-basic component layer quality detection processing includes the sponge pump layer quality detection processing.
[0016] In one possible design, the geometric features of the air cushion two-dimensional drawing are obtained, including:
[0017] The curve in the air cushion two-dimensional drawing is subjected to line segment segmentation processing to obtain a plurality of segmented line segments;
[0018] The face domain in the air cushion two-dimensional drawing is subjected to face domain filling processing to obtain a plurality of filled face domains;
[0019] The line segment geometric features of each segmented line segment in the plurality of segmented line segments and the face domain geometric features of each filled face domain in the plurality of filled face domains are extracted respectively, and the geometric features of the air cushion two-dimensional drawing are obtained by summarizing.
[0020] In one possible design, the mechanical element feature points of the air cushion two-dimensional drawing are determined according to the geometric features, including:
[0021] The curve grouping of the air cushion two-dimensional drawing is determined according to the geometric features;
[0022] determining a matching relationship of the mechanical characteristic points of the two-dimensional drawing of the air cushion according to the curve groups;
[0023] adopting a space alignment relationship to inherit the mechanical characteristic points on the corresponding component to the corresponding mechanical element characteristic points for each mechanical element component in the two-dimensional drawing of the air cushion, wherein the mechanical element component includes a basic component and a non-basic component, the basic component includes a reinforcing rib, a cloth surface and a side wall, the non-basic component includes a sponge pump, the mechanical element characteristic points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing rib layer points, cloth surface layer points and side wall layer points, and the non-basic component layer points refer to component layer points other than the reinforcing rib layer points, the cloth surface layer points and the side wall layer points.
[0024] In one possible design, determining a matching relationship of the mechanical characteristic points of the two-dimensional drawing of the air cushion according to the curve groups includes:
[0025] writing the corresponding curves in a group into a first list data in sequence according to each component group in the curve groups, applying an element extraction tool to perform element scalar extraction on the corresponding curve data to obtain an element scalar data set, applying an average interpolation method and / or a special node marking method to mark discrete points of the corresponding curves to obtain a discrete point set, reordering the element scalar data set according to the values of the element scalars to obtain a new element scalar data set, and re-matching the new element scalar data set and the discrete point set to obtain a tree-shaped data;
[0026] performing grid re-topology optimization transformation on the cloth surface in the two-dimensional drawing of the air cushion to convert an original unstructured grid based on triangulation into a structured grid;
[0027] re-dividing the structured grid according to the tree-shaped data scalar size of the discrete points in the triangulation grid data of each component group, and applying a space projection transformation method to generate a set of triangular grids with correct spatial positions and mutual duals to form an uninflated cloth surface grid;
[0028] deconstructing and separating the uninflated cloth surface grid into a plurality of grid discrete points, reordering the plurality of grid discrete points according to the tree-shaped data order of the grid discrete points to obtain a plurality of initial mechanical characteristic points identified based on spatial characteristics;
[0029] pairing all initial mechanical characteristic points with internal force characteristics two by two to form internal force characteristic point pairs, abstracting the characteristics of the internal force characteristic point pairs as line segment data, and writing the line segment data into a second list data;
[0030] Reordering all initial mechanical feature points with external force characteristics, then pairing the ordering results with the triangular mesh surface one by one, and finally recombining the triangular mesh surface based on the pairing results to form a complete mesh surface and writing into a third list data, wherein the triangular mesh direction is the external force direction;
[0031] Grouping the mechanical feature data into the tree data as known conditions for the mechanical engine to solve.
[0032] In one possible design, according to the discrete points with characteristic attributes in the mechanical element feature points, a Delaunay triangulation algorithm is applied to generate triangular mesh data, and the triangular mesh data is used as the basis for simulating the surface of the air cushion component to generate an uninflated model corresponding to the air cushion two-dimensional drawing, including: flattening the discrete points with characteristic attributes in the mechanical element feature points in the same plane, and then using a Delaunay triangulation algorithm to generate triangular mesh data, and using the triangular mesh data as the basis for simulating the surface of the air cushion component to generate an uninflated model corresponding to the air cushion two-dimensional drawing, wherein the outer surface of the uninflated model is a triangular mesh mesh surface with the mechanical element feature points.
[0033] In a second aspect, an air cushion sample simulation modeling device is provided, including a two-dimensional drawing input unit, a geometric feature acquisition unit, a feature point group determination unit, an uninflated model generation unit, and a mechanical engine processing unit connected in sequence;
[0034] The two-dimensional drawing input unit is configured to input an air cushion two-dimensional drawing.
[0035] The geometric feature acquisition unit is configured to acquire the geometric features of the air cushion two-dimensional drawing.
[0036] The feature point group determination unit is configured to determine the mechanical element feature points and a plurality of pairs of dual mechanical element feature points of the air cushion two-dimensional drawing according to the geometric features, wherein the mechanical element feature points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing bar layer points, cloth layer points, and side wall layer points, the non-basic component layer points refer to component layer points other than the reinforcing bar layer points, the cloth layer points, and the side wall layer points, and the pairs of dual mechanical element feature points refer to two opposite points that need to be pulled tightly with each other.
[0037] The uninflated model generation unit is configured to generate triangular mesh data by applying a Delaunay triangulation algorithm according to the discrete points with characteristic attributes in the mechanical element feature points, and use the triangular mesh data as the basis for simulating the surface of the air cushion component to generate an uninflated model corresponding to the air cushion two-dimensional drawing.
[0038] The mechanical engine processing unit is configured to write the mechanical characteristic tree data set obtained in the determination of the mechanical element characteristic points and the mesh grid data of the uninflated model into tree data again according to types, and import the tree data and the plurality of pairs of dual mechanical element characteristic points into a physical operator based on a mechanical engine to obtain an air mattress sample three-dimensional model corresponding to the air mattress two-dimensional drawing.
[0039] In a third aspect, the present application provides a computer device, comprising a memory, a processor and a transceiver connected in sequence, wherein the memory is configured to store a computer program, the transceiver is configured to receive and send messages, and the processor is configured to read the computer program and execute the air mattress sample simulation modeling method according to any possible design of the first aspect.
[0040] In a fourth aspect, the present application provides a computer readable storage medium, wherein instructions are stored on the computer readable storage medium, and when the instructions are executed on a computer, the air mattress sample simulation modeling method according to any possible design of the first aspect is executed.
[0041] In a fifth aspect, the present application provides a computer program product, comprising a computer program or instructions, and when the computer program or the instructions are executed on a computer, the air mattress sample simulation modeling method according to any possible design of the first aspect is realized.
[0042] The above-mentioned scheme has the following beneficial effects:
[0043] (1) The present application creatively provides a simulation modeling scheme for automatically converting an air mattress two-dimensional drawing into an air mattress sample three-dimensional model, that is, after inputting the air mattress two-dimensional drawing, the geometric characteristics of the drawing are obtained, then the mechanical element characteristic points and the pairs of dual points of the drawing are determined according to the geometric characteristics, and the uninflated model corresponding to the drawing is generated according to the mechanical element characteristic points, finally, the mechanical characteristic tree data set and the mesh grid data of the uninflated model are written into tree data, and the tree data and the pairs of dual points are imported into a physical operator based on a mechanical engine to obtain the air mattress sample three-dimensional model corresponding to the drawing, so that the input two-dimensional vector line can be converted into a classified functional point element set, and a 3D model with a very small difference from the actual sample shape can be generated by simulation through a mechanical engine, and then the air mattress sample three-dimensional model can be quickly and accurately obtained for subsequent testing, which is beneficial for subsequent entity sample making, and is convenient for practical application and promotion. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0045] Figure 1 The schematic diagram of the design and production process of the air cushion provided by the prior art.
[0046] Figure 2 The schematic diagram of the process of the air cushion sample simulation modeling method provided by the embodiments of the present application.
[0047] Figure 3 The result example diagram from the two-dimensional drawing of the air cushion to the three-dimensional model of the air cushion sample provided by the embodiments of the present application.
[0048] Figure 4 The structural schematic diagram of the air cushion sample simulation modeling device provided by the embodiments of the present application.
[0049] Figure 5 The structural schematic diagram of the computer device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor. It should be noted that the description of these embodiment modes is used to help understand the present application, but does not constitute a limitation on the present application.
[0051] It should be understood that although the terms first and second, etc. can be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, the first object can be called the second object, and similarly, the second object can be called the first object, without departing from the scope of the example embodiments of the present application.
[0052] It should be understood that the term "and / or" that may appear in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, B exists alone, or A and B exist simultaneously. Another example is A, B and / or C, which can mean that any one of A, B, and C or any combination thereof exists. The term " / and" that may appear in this document describes another relationship between related objects, indicating that two relationships can exist. For example, A / and B can mean: A exists alone or A and B exist simultaneously. In addition, the character " / " that may appear in this document generally indicates that the related objects before and after it are in an "or" relationship.
[0053] Example
[0054] like Figures 2-3 As shown, the inflatable cushion sample simulation modeling method provided in the first aspect of this embodiment can be executed, but is not limited to, by a computer device with certain computing resources. For example, it can be executed by a cloud server integrating Rhino3d software (a professional 3D modeling software developed by Robert McNeel & Assoc in the United States, used in 3D animation production, industrial manufacturing, scientific research, and mechanical design) and Grasshopper (GH, a visual programming language based on the Rhino platform, one of the mainstream software for data-driven design, and also overlapping with interaction design), a personal computer (PC, referring to a multi-purpose computer of a size, price, and performance suitable for personal use; desktops, laptops, mini-laptops, tablets, and ultrabooks all belong to personal computers), a smartphone, a personal digital assistant (PDA), or a wearable device. Figure 2 As shown, the inflatable cushion sample simulation modeling method may include, but is not limited to, the following steps S1 to S5.
[0055] S1. Input the 2D drawing of the inflatable cushion.
[0056] In step S1, the two-dimensional drawing of the inflatable pad can specifically be, but is not limited to, a two-dimensional drawing of the target inflatable pad based on CAD software design, such as... Figure 3 As shown. The two-dimensional drawing of the inflatable cushion can be imported using conventional data import methods.
[0057] S2. Obtain the geometric features of the two-dimensional drawing of the inflatable cushion.
[0058] In the step S2, since the air cushion two-dimensional drawing mainly consists of curve (i.e. multi-segment connected by multiple line segments) and surface domain and other elements, the geometric features will specifically include line segment geometric features and surface domain geometric features and the like. Specifically, the geometric features of the air cushion two-dimensional drawing are obtained, including but not limited to the following steps S21-S23.
[0059] S21. The curve in the air cushion two-dimensional drawing is subjected to line segment segmentation processing to obtain multiple segmented line segments.
[0060] In the step S21, the specific process of the line segment segmentation processing can be realized based on the equidistant interpolation method, i.e. first dividing the curve line segment into multiple scale points with a certain length ratio, and then taking the line segment between each pair of adjacent scale points as the segmented line segment.
[0061] S22. The surface domain in the air cushion two-dimensional drawing is subjected to surface domain filling processing to obtain multiple filled surface domains.
[0062] In the step S22, the specific process of the surface domain filling processing can be realized by applying the Delaunay triangulation algorithm (which is an algorithm for solving the problem of polygon triangulation, which was proposed by the German mathematician and computer scientist Friedrich Delaunay in 1972), which will not be described here.
[0063] S23. The line segment geometric features of each segmented line segment in the multiple segmented line segments and the surface domain geometric features of each filled surface domain in the multiple filled surface domains are extracted respectively, and the geometric features of the air cushion two-dimensional drawing are obtained by summarizing.
[0064] In the step S23, the specific extraction process of the line segment geometric features and the surface domain geometric features is a prior art means, which will not be described here.
[0065] In the step S2, in case that the inputted two-dimensional drawing of the air mattress has unqualified element quality, which will affect the feasibility and correctness of subsequent modeling, preferably, the geometric features of the two-dimensional drawing of the air mattress are acquired, further comprising: performing element quality detection processing on the two-dimensional drawing of the air mattress, if the detection is passed, the geometric features of the two-dimensional drawing of the air mattress are acquired, otherwise, a prompt message for indicating the position of unqualified line type and error type is outputted to the user for line type modification, wherein the element quality detection processing includes but is not limited to basic component layer quality detection processing and non-basic component layer quality detection processing, the basic component layer quality detection processing includes but is not limited to reinforcing rib layer quality detection processing, cloth layer quality detection processing and side wall layer quality detection processing, and the non-basic component layer quality detection processing includes but is not limited to sponge pump layer quality detection processing. The specific processes of the foregoing reinforcing rib layer quality detection processing, cloth layer quality detection processing, side wall layer quality detection processing and sponge pump layer quality detection processing are as follows: the inputted source data is written into tree-shaped data and re-grouped, then it is judged whether each group is closed, and a condition judgment group corresponding to the grouped source data is obtained, the new data group written by a screening tool is the curve quality detection result with closed condition, and the position information and closed information in the curve are screened again and outputted to a display interface to obtain the curve quality detection result. In addition, if the detection is not passed, the step S1 is returned to input a new two-dimensional drawing of the air mattress; and the detection result can also be transmitted to a user interface for output display.
[0066] S3. Determining mechanical element feature points and a plurality of pairs of opposite mechanical element feature points of the two-dimensional drawing of the air mattress according to the geometric features, wherein the mechanical element feature points include but are not limited to basic component layer points and non-basic component layer points, the basic component layer points include but are not limited to reinforcing rib layer points, cloth layer points and side wall layer points, and the non-basic component layer points refer to component layer points other than the reinforcing rib layer points, cloth layer points and side wall layer points, and the pairs of opposite mechanical element feature points refer to two opposite points that need to be pulled tightly.
[0067] In the step S3, specifically, the mechanical element feature points of the two-dimensional drawing of the air mattress are determined according to the geometric features, including but not limited to the following steps S31-S33.
[0068] S31. Grouping curves of the two-dimensional drawing of the air mattress according to the geometric features.
[0069] In the step S31, since the target air mattress is composed of reinforcing ribs, cloth, side walls and / or other components, the grouping of different curves can be determined according to the curve geometric features in the geometric features, that is, whether an arbitrary curve belongs to a reinforcing rib group or a cloth group, or belongs to a side wall group or an other component group. For example,Figure 3 As shown, ① represents a curve belonging to the group of reinforcing bars, and ② represents a curve belonging to the group of side walls.
[0070] S32. Determine the matching relationship of the mechanical characteristic points of the two-dimensional drawing of the air cushion according to the curve grouping.
[0071] In the step S32, the mechanical characteristic points are points that need to be pulled tightly with each other, and the matching relationship of the mechanical characteristic points refers to the matching relationship of a pair of points that need to be pulled tightly with each other. In fact, it is a tree-shaped data composed of a plurality of lists containing two point coordinates, so as to describe the process of mutual welding of the cloth surface in actual production by the pulling behavior. Specifically, the matching relationship of the mechanical characteristic points of the two-dimensional drawing of the air cushion is determined according to the curve grouping, including but not limited to the following steps S321-S327.
[0072] S321. According to each component group in the curve grouping, write the corresponding curve in the group into the first list data in sequence, apply an element extraction tool to extract the element scalar of the corresponding curve data to obtain an element scalar data set, and apply an average interpolation method and / or a special node marking method to mark the discrete points of the corresponding curve to obtain a discrete point set. Then, reorder the element scalar data set according to the value of the element scalar to obtain a new element scalar data set, and re-match the new element scalar data set and the discrete point set for grouping, and finally write the grouping result into the tree-shaped data.
[0073] In the step S321, the element extraction tool refers to a conventional tool for extracting element scalars such as length, corner point and / or area; the average interpolation method and the special node marking method are both common marking methods (wherein the special node includes but is not limited to a turning point, etc.); and the specific process of re-matching the grouping is also a prior art means. By matching the grouping, the marked discrete points can be converted into discrete points with characteristic attributes (i.e. the values of element scalars such as length, corner point and / or area). The characteristic attributes are stored in different branches in the tree-shaped data, so that the characteristics of the curve are converted into the characteristics of the discrete points. In addition, the curve data is data that has been subjected to element quality detection.
[0074] S322. Perform grid re-topology optimization transformation on the cloth surface in the two-dimensional drawing of the air cushion to convert the original unstructured grid based on triangular partitioning into a structured grid.
[0075] In the step S322, after the structured grid is obtained, the grid resolution size can also be adjusted to adapt to the subsequent simulation accuracy requirements.
[0076] S323. Re-divide the structured mesh according to the tree data scalar size of discrete points in the triangular mesh data of each component group, and apply a space projection transformation method to generate a set of triangular meshes with correct spatial positions and mutual dualities, so as to form an un-inflated cloth mesh.
[0077] In the step S323, the specific details of the space projection transformation method are prior art means, and the un-inflated cloth mesh is shown as an example. Figure 3
[0078] S324. Deconstruct and separate the un-inflated cloth mesh into a plurality of mesh discrete points, and then re-order the plurality of mesh discrete points according to the tree data sequence of the mesh discrete points, to obtain a plurality of initial mechanical feature points identified based on spatial features.
[0079] S325. Pair all initial mechanical feature points with internal force characteristics two by two to form internal force feature point pairs, and abstract the features of the internal force feature point pairs as line segment data, and then write the line segment data into a second list data.
[0080] S326. Reorder all initial mechanical feature points with external force characteristics, then one by one pair the ordering results with triangular mesh surfaces, and finally recombine the triangular mesh surfaces based on the pairing results to form complete mesh surfaces, and write into a third list data, wherein the direction of the triangular mesh is the external force direction.
[0081] S327. Group the mechanical feature data into the tree data as known conditions for the mechanical engine calculation.
[0082] In the step S327, the mechanical feature data is the third list data, and can also include but is not limited to the first list data and / or the second list data, etc. The above-mentioned mechanical engine is a software tool for simulating and analyzing mechanical behavior, mainly used in the fields of physics and engineering; it predicts and analyzes the motion state and response of objects under the action of external force through mathematical models and algorithms, and can be applied to multiple fields, including but not limited to automotive engineering, aerospace and biomedical engineering, etc., and therefore can be applied to the present embodiment to complete the mechanical engine calculation.
[0083] S33. For each mechanical element member in the air cushion two-dimensional drawing, a space alignment relationship is adopted to inherit the mechanical feature points on the corresponding member to the corresponding mechanical element feature points, wherein the mechanical element member includes but is not limited to a basic member and a non-basic member, the basic member includes but is not limited to a reinforcing bar, a cloth surface and a side wall, the non-basic member includes but is not limited to a sponge pump, and the mechanical element feature points include but are not limited to a basic member layer point and a non-basic member layer point, the basic member layer point includes but is not limited to a reinforcing bar layer point, a cloth surface layer point and a side wall layer point, and the non-basic member layer point refers to a member layer point other than the reinforcing bar layer point, the cloth surface layer point and the side wall layer point.
[0084] In the step S33, the space alignment relationship refers to taking the cloth surface as a relative coordinate system, and applying a conventional transformation operation to align all other members such as the side wall and the reinforcing bar to the relative coordinate system.
[0085] In the step S3, the plurality of pairs of dual mechanical element feature points are obtained from the stage of line segment segmentation, and can be determined based on the space alignment relationship.
[0086] S4. According to the discrete points with characteristic attributes in the mechanical element feature points, a Delaunay triangulation algorithm is applied to generate triangular mesh data, and the triangular mesh data is taken as a basis for simulating the air cushion member surface to generate an un-inflated model corresponding to the air cushion two-dimensional drawing.
[0087] In the step S4, the data of the discrete points with characteristic attributes is greatly increased to fill the entire curve closed area; and the air cushion member surface includes but is not limited to a cloth surface, a reinforcing bar surface and a side wall surface. Specifically, according to the discrete points with characteristic attributes in the mechanical element feature points, a Delaunay triangulation algorithm is applied to generate triangular mesh data, and the triangular mesh data is taken as a basis for simulating the air cushion member surface to generate an un-inflated model corresponding to the air cushion two-dimensional drawing, including but not limited to: the discrete points with characteristic attributes in the mechanical element feature points are flattened in the same plane, then a Delaunay triangulation algorithm is applied to generate triangular mesh data, and the triangular mesh data is taken as a basis for simulating the air cushion member surface to generate an un-inflated model corresponding to the air cushion two-dimensional drawing, wherein the outer surface of the un-inflated model is a triangular mesh mesh surface with the mechanical element feature points. The un-inflated model is shown in the following figure. Figure 3
[0088] S5. The mechanical characteristic tree data set obtained in the determination of the mechanical element characteristic points and the mesh data of the un-inflated model are re-grouped according to types, written into tree data, and imported into a physical operator based on a mechanical engine together with the several pairs of mechanical element characteristic points, to obtain an air mattress sample three-dimensional model corresponding to the air mattress two-dimensional drawing, wherein the mechanical engine is used to constrain the length of the edge line segment of the cloth mesh surface of the un-inflated model, and the triangular surface method phase displacement iteration and the perpendicular chain equation are used to perform multiple iterations on the cloth mesh surface, to finally form the air mattress sample three-dimensional model.
[0089] In the step S5, the mechanical characteristic tree data set is the writing result after the mechanical characteristic data is grouped and written into the tree data in the step S327. The un-inflated model is a factor set including but not limited to a plurality of entity elements and a plurality of mechanical elements, wherein the plurality of entity elements include but are not limited to a cloth mesh surface, a reinforcing rod mesh surface, a side wall surface (if any), and other component surfaces (if any), and the plurality of mechanical elements include but are not limited to tension, tension, and constraint force. The triangular surface method phase displacement iteration method is used to generate an inflation effect on the cloth mesh surface, so as to simulate the inflation force of the cloth surface subjected to the gas; it is a prior method (not the content of the present embodiment), and the working principle is to move the small triangles in the mesh grid of the cloth mesh surface towards the normal direction and a small distance, and to use a multiple iteration method to satisfy the overall energy momentum conservation, so as to finally generate an inflation effect on the overall triangular mesh surface mesh grid (i.e. the cloth mesh surface). The perpendicular chain equation is used to constrain the triangular mesh deformation, so as to simulate the shape change of the cloth surface after being subjected to force; it is also a prior equation (not the content of the present embodiment), and the working principle is to constrain the length of the three edges of the triangle in the mesh grid of the cloth mesh surface to be unable to change or only to change a small amount, and to make the change amplitude close to the actual cloth stretching characteristics, so that the three edges mainly change in angle during the iteration process, and thus the constraint can simulate the shape change of the cloth surface after being subjected to force. The finally formed air mattress sample three-dimensional model is shown in, for example, Figure 3 In the specific formation process of the air mattress sample three-dimensional model, specifically, the mechanical characteristics of different cloth surface components during hot melt forming and the external force on the cloth surface during air mattress inflation are simulated, and a three-dimensional shape with adjustable accuracy after air mattress inflation is approximately generated. In addition, after the calculation is completed by the physical operator, the triangular mesh data of different groups (such as the mesh data of the cloth surface, reinforcing rod, or side wall) can be separated according to the node serial number in the tree data, and the air cloud effect with numerical characteristics and the rendering effect simulating the reality can be re-rendered according to the characteristics of these data.
[0090] Thus, based on the air cushion sample simulation modeling method described in the foregoing steps S1-S5, a new simulation modeling scheme is provided for automatically converting an air cushion two-dimensional drawing into an air cushion sample three-dimensional model, that is, after inputting the air cushion two-dimensional drawing, the geometric features of the drawing are first obtained, then the mechanical element feature points and the dual point pair group of the drawing are determined according to the geometric features, and then the un-inflated model corresponding to the drawing is generated according to the mechanical element feature points, and finally the mechanical feature tree data set and the mesh grid data of the un-inflated model are written into the tree data, and the tree data and the dual point pair group are imported into the physical operator based on the mechanical engine to obtain the air cushion sample three-dimensional model corresponding to the drawing. Thus, the input two-dimensional vector line can be converted into a classified functional point element set, and a 3D model with a very small difference from the actual proofing form can be generated through the mechanical engine simulation, and thus the air cushion sample three-dimensional model can be quickly and accurately obtained for subsequent testing, which facilitates subsequent entity proofing and is convenient for practical application and promotion.
[0091] As shown in Figure 4 The second aspect of the present embodiment provides a virtual device for implementing the air cushion sample simulation modeling method of the first aspect, comprising a two-dimensional drawing input unit, a geometric feature acquisition unit, a feature point group determination unit, an un-inflated model generation unit and a mechanical engine processing unit which are sequentially connected in communication.
[0092] The two-dimensional drawing input unit is configured to input an air cushion two-dimensional drawing.
[0093] The geometric feature acquisition unit is configured to acquire the geometric features of the air cushion two-dimensional drawing.
[0094] The feature point group determination unit is configured to determine the mechanical element feature points and a plurality of dual mechanical element feature point pair groups of the air cushion two-dimensional drawing according to the geometric features, wherein the mechanical element feature points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing rib layer points, cloth layer points and side wall layer points, the non-basic component layer points refer to component layer points other than the reinforcing rib layer points, the cloth layer points and the side wall layer points, and the dual mechanical element feature point pair groups refer to two opposite points that need to be pulled tightly with each other.
[0095] The un-inflated model generation unit is configured to generate triangular mesh data by applying the Delaunay triangulation algorithm according to the discrete points with feature attributes in the mechanical element feature points, and generate an un-inflated model corresponding to the air cushion two-dimensional drawing by taking the triangular mesh data as the basis for simulating the surface of the air cushion component.
[0096] The mechanical engine processing unit is configured to re-group the mechanical feature tree data obtained in the determination of the mechanical element feature points and the mesh grid data of the uninflated model according to types, write the tree data into a tree data, and import the tree data and the plurality of pairs of mechanical element feature points into a physical operator based on the mechanical engine to obtain the three-dimensional model of the air mattress sample corresponding to the two-dimensional drawing of the air mattress.
[0097] The working process, working details and technical effects of the aforementioned device provided by the second aspect of the embodiment can be referred to the air mattress sample simulation modeling method of the first aspect, which will not be repeated here.
[0098] As shown in Figure 5 The third aspect of the embodiment provides a computer device for executing the air mattress sample simulation modeling method of the first aspect, which comprises a memory, a processor and a transceiver connected in sequence, wherein the memory is configured to store a computer program, the transceiver is configured to receive and send messages, and the processor is configured to read the computer program and execute the air mattress sample simulation modeling method of the first aspect. Specifically, the memory can include, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a flash memory, a first-in first-out memory (FIFO) and / or a first-in last-out memory (FILO), etc.; and the processor can be, but is not limited to, a microprocessor with a model number of STM32F105 series. In addition, the computer device can further include, but is not limited to, a power module, a display screen and other necessary components.
[0099] The working process, working details and technical effects of the aforementioned computer device provided by the third aspect of the embodiment can be referred to the air mattress sample simulation modeling method of the first aspect, which will not be repeated here.
[0100] The fourth aspect of the embodiment provides a computer readable storage medium storing instructions of the air cushion sample simulation modeling method as described in the first aspect, that is, the computer readable storage medium stores instructions, and when the instructions are executed on a computer, the air cushion sample simulation modeling method as described in the first aspect is executed. Wherein, the computer readable storage medium refers to a carrier for storing data, which can include, but is not limited to, floppy disks, optical disks, hard disks, flash memories, USB flash disks and / or Memory Stick, etc. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.
[0101] The working process, working details and technical effects of the aforementioned computer readable storage medium provided by the fourth aspect of the embodiment can be referred to the air cushion sample simulation modeling method as described in the first aspect, which will not be described here.
[0102] The fifth aspect of the embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implement the air cushion sample simulation modeling method as described in the first aspect. Wherein, the computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.
[0103] Finally, it should be pointed out that: the above only for the preferred embodiments of the present application, and not for limiting the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An airbag cushion sample simulation modeling method characterized by, The method comprises the following steps: inputting a two-dimensional drawing of an air cushion; obtaining geometric features of the two-dimensional drawing of the air cushion; determining mechanical element feature points and a plurality of pairs of dual mechanical element feature points of the two-dimensional drawing of the air cushion according to the geometric features, wherein the mechanical element feature points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing layer points, cloth layer points and side wall layer points, the non-basic component layer points refer to component layer points other than the reinforcing layer points, the cloth layer points and the side wall layer points, and the pairs of dual mechanical element feature points refer to two opposite points that need to be pulled tight with each other; generating triangular mesh data by using a Delaunay triangulation algorithm according to discrete points with feature attributes in the mechanical element feature points, taking the triangular mesh data as a basis for simulating a component surface of the air cushion, and generating an un-inflated model corresponding to the two-dimensional drawing of the air cushion; re-grouping mechanical feature tree data obtained in the process of determining the mechanical element feature points and mesh data of the un-inflated model according to types, writing the tree data into a tree, and importing the tree data and the plurality of pairs of dual mechanical element feature points into a physical operator based on a mechanical engine to obtain an air cushion sample three-dimensional model corresponding to the two-dimensional drawing of the air cushion, wherein the mechanical engine is used to perform length constraint on edge segments of a cloth mesh surface of the un-inflated model, and perform multiple iterations on the cloth mesh surface by using a triangular surface method phase shift iteration and a perpendicular chain equation, and finally form the air cushion sample three-dimensional model.
2. The air mattress sample analog modeling method of claim 1, wherein, The method for obtaining the geometric features of the two-dimensional drawing of the air cushion comprises the following steps: performing element quality detection processing on the two-dimensional drawing of the air cushion, if the detection is passed, obtaining the geometric features of the two-dimensional drawing of the air cushion, otherwise outputting a prompt message for indicating a position of an unqualified line type and an error type to a user, wherein the element quality detection processing includes basic component layer quality detection processing and non-basic component layer quality detection processing, the basic component layer quality detection processing includes reinforcing layer quality detection processing, cloth layer quality detection processing and side wall layer quality detection processing, and the non-basic component layer quality detection processing includes sponge pump layer quality detection processing.
3. The air mattress sample analog modeling method of claim 1, wherein, The method for obtaining the geometric features of the two-dimensional drawing of the air cushion comprises the following steps: performing line segment segmentation processing on a curve in the two-dimensional drawing of the air cushion to obtain a plurality of segmented line segments; performing face domain filling processing on a face domain in the two-dimensional drawing of the air cushion to obtain a plurality of filled face domains; extracting line segment geometric features of each segmented line segment in the plurality of segmented line segments and face domain geometric features of each filled face domain in the plurality of filled face domains, and collecting the geometric features of the two-dimensional drawing of the air cushion.
4. The air mattress sample analog modeling method of claim 1, wherein, The method for determining the mechanical element feature points of the two-dimensional drawing of the air cushion according to the geometric features comprises the following steps: determining a curve grouping of the two-dimensional drawing of the air cushion according to the geometric features; determining a matching relationship of the mechanical feature points of the two-dimensional drawing of the air cushion according to the curve grouping; For each mechanical element component in the two-dimensional drawing of the air mattress, the space alignment relationship is adopted to inherit the mechanical characteristic points on the corresponding component to the corresponding mechanical element characteristic points, wherein the mechanical element component includes a basic component and a non-basic component, the basic component includes a reinforcing bar, a cloth surface and a side wall, the non-basic component includes a sponge pump, the mechanical element characteristic points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing bar layer points, cloth surface layer points and side wall layer points, and the non-basic component layer points refer to component layer points other than the reinforcing bar layer points, the cloth surface layer points and the side wall layer points.
5. The airbag cushion sample simulation modeling method of claim 4 wherein, According to the curve grouping, the matching relationship of the mechanical characteristic points of the two-dimensional drawing of the air mattress is determined, including: According to each component group in the curve grouping, the corresponding curve in the group is written into the first list data in sequence, the element scalar extraction tool is applied to the corresponding curve data to obtain the element scalar data set, the average interpolation method and / or the special node marking method are applied to the discrete point marking of the corresponding curve to obtain the discrete point set, then the element scalar new data set is obtained by reordering the element scalar data set according to the value of the element scalar, and the element scalar new data set and the discrete point set are re-matched and grouped, and finally the grouping result is written into the tree-shaped data; The cloth surface in the two-dimensional drawing of the air mattress is subjected to grid re-topology optimization transformation to convert the original unstructured grid based on triangular partitioning into a structured grid; According to the tree-shaped data scalar size of the discrete points in the triangular grid data of each component group, the structured grid is re-divided, and the space projection transformation method is applied to generate a set of triangular grids with correct spatial positions and mutual counterparts, so as to form an un-inflated cloth surface grid; The un-inflated cloth surface grid is deconstructed and separated into a plurality of grid discrete points, and then the plurality of grid discrete points are reordered according to the tree-shaped data order of the grid discrete points to obtain a plurality of initial mechanical characteristic points identified based on spatial characteristics; All initial mechanical characteristic points with internal force characteristics are paired to form internal force characteristic point pairs, and the characteristics of the internal force characteristic point pairs are abstracted as line segment data, and then the line segment data is written into the second list data; All initial mechanical characteristic points with external force characteristics are reordered, and then the ordering result is paired with the triangular grid surface one by one, and finally the triangular grid surface is recombined based on the pairing result to form a complete grid surface and written into the third list data, wherein the triangular grid direction is the external force direction; The mechanical characteristic data grouping is written into the tree-shaped data as known conditions for mechanical engine calculation.
6. The air mattress sample analog modeling method of claim 1, wherein, According to the discrete points with characteristic attributes in the mechanical element characteristic points, a triangular mesh data is generated by using a Delaunay triangulation algorithm, and the triangular mesh data is taken as a basis for simulating a component surface of the air cushion, so as to generate an un-inflated model corresponding to the two-dimensional drawing of the air cushion, including: flattening the discrete points with characteristic attributes in the mechanical element characteristic points in the same plane, and then generating a triangular mesh data by using a Delaunay triangulation algorithm, and taking the triangular mesh data as a basis for simulating a component surface of the air cushion, so as to generate an un-inflated model corresponding to the two-dimensional drawing of the air cushion, wherein an outer surface of the un-inflated model is a triangular mesh mesh surface with the mechanical element characteristic points.
7. An airbag cushion sample simulation modeling device characterized by, The method comprises a two-dimensional drawing input unit, a geometric feature acquisition unit, a characteristic point group determination unit, an un-inflated model generation unit and a mechanical engine processing unit which are sequentially and communicatively connected. The two-dimensional drawing input unit is configured to input the two-dimensional drawing of the air cushion. The geometric feature acquisition unit is configured to acquire geometric features of the two-dimensional drawing of the air cushion. The characteristic point group determination unit is configured to determine mechanical element characteristic points and a plurality of pairs of dual mechanical element characteristic points according to the geometric features of the two-dimensional drawing of the air cushion, wherein the mechanical element characteristic points include basic component layer points and non-basic component layer points, the basic component layer points include reinforcing rib layer points, cloth layer points and side wall layer points, the non-basic component layer points refer to component layer points other than the reinforcing rib layer points, the cloth layer points and the side wall layer points, and the pairs of dual mechanical element characteristic points refer to two opposite points that need to be pulled tight. The un-inflated model generation unit is configured to generate a triangular mesh data by using a Delaunay triangulation algorithm according to the discrete points with characteristic attributes in the mechanical element characteristic points, and take the triangular mesh data as a basis for simulating a component surface of the air cushion, so as to generate an un-inflated model corresponding to the two-dimensional drawing of the air cushion. The mechanical engine processing unit is configured to re-group the mechanical feature tree data set obtained in the determination process of the mechanical element characteristic points and the mesh grid data of the un-inflated model according to types, write the tree data into a tree, and import the tree data and the plurality of pairs of dual mechanical element characteristic points into a physical operator based on a mechanical engine, so as to obtain an air cushion sample three-dimensional model corresponding to the two-dimensional drawing of the air cushion, wherein the mechanical engine is configured to perform length constraint on edge lines of a cloth mesh surface of the un-inflated model, and perform multiple iterations on the cloth mesh surface by using a triangular surface method phase shift iteration and a perpendicular chain equation, so as to finally form the air cushion sample three-dimensional model.
8. A computer device, comprising: The method comprises a memory, a processor and a transceiver which are sequentially and communicatively connected, wherein the memory is configured to store a computer program, the transceiver is configured to receive and send messages, and the processor is configured to read the computer program and execute the air cushion sample simulation modeling method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer readable storage medium stores instructions, and when the instructions are executed on a computer, the method for modeling a sample of an airbag cushion according to any one of claims 1-6 is implemented.
10. A computer program product comprising computer programs or instructions, characterized in that, The computer program or the instructions, when executed on a computer, implement the method for modeling a sample of an airbag cushion according to any one of claims 1-6.