A method, device, storage medium, and electronic device for evaluating a geometric structure
Through the automated geometric structure evaluation method, the evaluation script library is used to determine the properties of the geometric structure and the generation target, which solves the problem of time-consuming and error-prone manual evaluation and improves the evaluation efficiency and accuracy.
Patent Information
- Application Number
- CN202510388394.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-03-31
AI Technical Summary
The evaluation of generated geometric structures in the prior art relies on manual review, which takes a long time and is prone to introduce errors.
By obtaining the parameters of the geometric structure and generating targets, the target script is called from the pre-set evaluation script library, the properties of the geometric structure are automatically determined, and the matching between it and the generated targets is judged.
The automatic and unified assessment of geometric structures is realized, which improves the evaluation efficiency and accuracy and reduces manual participation.
Smart Images

Figure CN119903202B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computers, and in particular, to a method, device, storage medium, and electronic device for geometric structure evaluation. Background Art
[0002] Currently, with the development of computer technology, due to its advantages in logical reasoning, the large language model (LLM) has gradually become an important tool in generative design. Current generative design is widely used in fields such as architecture, engineering, manufacturing, and product design, greatly improving the efficiency of optimizing or generating complex geometric structures. However, current LLMs are more inclined to process natural language. Therefore, when generating geometric structures through LLMs, it is still necessary to evaluate the generated geometric structures to ensure that the generated geometric structures meet the requirements.
[0003] In the prior art, the evaluation of generated geometric structures often relies on manual review. However, manual review not only takes a long time but may also introduce errors. Based on this, this specification provides a method, device, storage medium, and electronic device for geometric structure evaluation. Summary of the Invention
[0004] This specification provides a method, device, storage medium, and electronic device for geometric structure evaluation to partially solve the above problems existing in the prior art.
[0005] This specification adopts the following technical solutions:
[0006] A method for geometric structure evaluation includes:
[0007] Obtain the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, where the generation target includes the generation conditions to be met for generating the geometric structure to be evaluated;
[0008] Call a target script from a pre-set evaluation script library, and use the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated;
[0009] Judge whether the geometric attributes match the generation target. If so, determine that the geometric structure to be evaluated meets the generation target; if not, determine that the geometric structure to be evaluated does not meet the generation target.
[0010] Optionally, obtaining the parameters of the geometric structure to be evaluated and the generation target of the geometric structure specifically includes:
[0011] Obtain the generation target of the geometric structure to be generated;
[0012] Input the generation target into the trained large model, so that the large model generates a geometric structure to be evaluated according to the generation target.
[0013] Optionally, calling a target script from a preset evaluation script library according to the generation target specifically includes:
[0014] Extract keywords from the generation conditions through a preset large model to determine at least one target keyword;
[0015] Determine and call at least one target script according to the matching relationship between the at least one target keyword and each evaluation script in the preset evaluation script library.
[0016] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has structural validity;
[0017] Let the target script determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including:
[0018] Input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder inside the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure;
[0019] Judge whether each cylinder is inside the bounding box. If so, determine that the porous structure has structural validity. If not, determine that the porous structure does not have structural validity.
[0020] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has symmetry;
[0021] Let the target script determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including:
[0022] Input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder inside the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure;
[0023] Establish a coordinate system with the center of the body of the porous structure as the origin and the directions parallel to the edges of the bounding box;
[0024] Judge whether each cylinder is mirror-symmetric about the origin along each axis of the coordinate system. If so, determine that the porous structure has symmetry. If not, determine that the porous structure does not have symmetry.
[0025] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has connectivity;
[0026] Enable the target script to determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including:
[0027] Input the parameters of the geometric structure to be evaluated into the target script to determine each cylinder within the porous structure;
[0028] For each cylinder, determine whether the cylinder intersects with at least one other cylinder. If so, determine that the porous structure has connectivity; if not, determine that the porous structure does not have connectivity.
[0029] Optionally, determine whether the geometric attribute matches the generation target, specifically including:
[0030] Traverse each generation condition and the geometric attribute to respectively determine the geometric attributes that satisfy each generation condition;
[0031] When all the generation conditions are satisfied, determine that the geometric attribute matches the generation target;
[0032] When there are unsatisfied generation conditions, determine that the geometric attribute does not match the generation target.
[0033] This specification also provides a geometric structure evaluation device, including:
[0034] An acquisition module for acquiring the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, where the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated;
[0035] A determination module for calling a target script from a pre-set evaluation script library and using the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated;
[0036] A judgment module for judging whether the geometric attribute matches the generation target. If so, determine that the geometric structure to be evaluated meets the generation target; if not, determine that the geometric structure to be evaluated does not meet the generation target.
[0037] This specification provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, the above evaluation method is implemented.
[0038] This specification provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the above evaluation method is implemented.
[0039] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0040] In the geometric structure evaluation method provided in this specification, by obtaining the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, and according to the generation target of the geometric structure, a target script for evaluating the geometric structure is called from the pre-set evaluation scripts and run to determine the attributes of the geometric structure. Then, according to the matching relationship between the attributes of the geometric structure and the generation target, it is determined whether the geometric structure meets the generation target.
[0041] In the above method, through the pre-set evaluation scripts, the automated and unified evaluation of the generated geometric structure is realized. While reducing the manual participation, the evaluation efficiency and accuracy of the geometric structure are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of this specification, and constitute a part of this specification. The schematic embodiments of this specification and their descriptions are used to explain this specification and do not constitute an improper limitation to this specification. In the drawings:
[0043] Figure 1 It is a schematic flow chart of a geometric structure evaluation method provided by this specification;
[0044] Figure 2 It is a schematic diagram of the geometric structure provided by this specification;
[0045] Figure 3 It is a schematic diagram of a geometric structure generation and evaluation process provided by this specification;
[0046] Figure 4 It is a schematic diagram of a geometric structure evaluation device provided by this specification;
[0047] Figure 5 It corresponds to the Figure 1 schematic diagram of the structure of the electronic device provided by this specification. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all of them. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope protected by this application.
[0049] Geometric structures play an extremely important role in real life. They can not only help understand and describe the world but are also widely used in various practical engineering, design, and scientific research, such as architectural design, mechanical engineering, electronic technology, biomedicine, etc. However, traditional design methods are often limited by the experience and personal perspective of designers. Especially in the field of 3D printing technology, designers still face great challenges when designing geometric structures. For example, in the field of 3D printing technology, designers usually design porous structures by combining multiple geometric structures. However, porous structures usually have complex geometric shapes, containing a large number of tiny holes or channels. Traditional tools often require a lot of time and effort when creating and editing such complex geometric structures. Moreover, when simulating the behavior of porous materials, such as the flow of fluids through porous media, heat conduction, etc., highly accurate models and a large amount of computing resources are required. Traditional finite element analysis (FEA) or other numerical simulation methods may be difficult to effectively handle such complex geometric details. Therefore, a method of using algorithms and automated processes to explore various geometric structure design possibilities, namely generative design, has gradually become an important method for designing complex geometric structures.
[0050] With the development of computer technology, large language models (LLMs) have been widely applied in various fields. Moreover, due to the advantages of LLMs in logical reasoning, they have gradually become important tools in generative design. However, current LLMs are more inclined to process natural language. Therefore, when generating geometric structures through LLMs, it is still necessary to evaluate the generated geometric structures to ensure that they meet the requirements.
[0051] However, the evaluation of geometric structures generated by LLMs currently often relies on manual review. However, manual review not only takes a long time but may also introduce errors. Based on this, this specification provides a geometric structure evaluation method, device, storage medium, and electronic device.
[0052] It should be noted that in one or more embodiments of this specification, the geometric structure evaluation method described above can be applied to the testing of various geometric structures, without restricting whether the geometric structure to be evaluated is generated by an LLM, and can also be used to evaluate geometric structures generated by other means, such as geometric structures generated manually, etc.
[0053] In addition, since the generation objectives of geometric structures used in different fields are different, and some are even very different from each other, for the convenience of describing the geometric structure evaluation method hereinafter, the geometric structure in this application specification is taken as a porous structure as an example to describe the evaluation method.
[0054] The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0055] Figure 1 The flowchart of a geometric structure evaluation method provided by an embodiment of this specification includes the following steps:
[0056] S100: Obtain the parameters of the geometric structure to be evaluated and the generation objective of the geometric structure, where the generation objective includes the generation conditions to be satisfied for generating the geometric structure to be evaluated.
[0057] In one or more embodiments of this specification, there is no restriction on the specific device that executes the geometric structure evaluation method. For example, a mobile terminal, a server, etc. However, since the subsequent steps involve model training, script calling, etc., these steps are generally executed by a server. Therefore, the geometric structure evaluation method is also described hereinafter with the server executing it as an example. Among them, the server can be a single device or composed of multiple devices. For example, a distributed server, a server for cloud services, etc. This specification does not make any restrictions on this.
[0058] In order to evaluate the generated geometric structure, the server can first obtain the geometric structure to be evaluated and the generation objective of the geometric structure to be evaluated, so as to subsequently evaluate whether the geometric structure to be evaluated meets the generation objective.
[0059] Specifically, the server first obtains the parameters of the geometric structure to be evaluated and obtains the corresponding generation objective when generating the geometric structure to be evaluated. It should be noted that in one or more embodiments of this specification, there is no restriction on the specific shape of the geometric structure to be evaluated, such as Figure 2 shown Figure 2Schematic diagram of the geometric structure provided by the embodiments of this specification. The geometric structure to be measured can be a conventional geometric structure, such as a cube, a cone, etc., or can be obtained by combining multiple geometric structures, or can also be a porous structure, which can be set according to actual needs, and this specification does not limit this. Further, this specification also does not limit the generation target. The generation target includes the generation conditions to be met for generating the geometric structure to be evaluated. For example, if the generation target is to generate a porous structure with a volume fraction of 0.2, connected and having 8 rods, then the generation conditions included therein at least include, for example, the volume fraction of the geometric structure is 0.2, porous and connected, and the porous structure includes 8 rods. It should be noted that there are many settable generation conditions, and this specification does not list them one by one, and can be set according to actual needs.
[0060] In one or more embodiments of this specification, there is no limitation on the specific manner in which the server obtains the geometric structure to be evaluated. It can be to randomly select one from the already generated geometric structures in response to an evaluation instruction as the geometric structure to be evaluated, or it can be to pre-select several from each generation condition as the generation target according to requirements, and then generate the corresponding geometric structure to be evaluated according to this generation target. This specification does not limit this and can be set according to actual needs.
[0061] Further, there is also no limitation on the specific content of the parameters of the obtained geometric structure, which can be determined according to the expression mode of the geometric structure. For example, if the geometric structure is expressed by an implicit function, then the parameters of the geometric structure at least include the implicit function expression of the geometric structure and each weight. If the geometric structure is expressed by a binary tree, then the parameters of the geometric structure at least include the parameters of the nodes and edges of the geometric structure. If the geometric structure is expressed by an image, then the parameters of the geometric structure at least include the coordinates of the key points of the geometric structure. Since there are many expression modes of geometric structures, in one or more embodiments of this application specification, there is no limitation on the specific content of the parameters of the geometric structure obtained by the server, and it can be set according to actual needs.
[0062] In addition, in one or more embodiments of this specification, there is also no limitation on the specific method by which the server obtains the generation target, which can be determined according to the method of actually obtaining the geometric structure to be evaluated, or can also be set according to actual needs.
[0063] S102: Call the target script from the pre-set evaluation script library, and use the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated.
[0064] Due to the generation of the geometric structure to be evaluated, the target includes at least one generation condition. In order to evaluate the geometric structure to be evaluated, the server can pre-generate corresponding evaluation scripts for each generation condition, construct an evaluation script library, and then when evaluating the geometric structure, call the corresponding evaluation scripts according to the generation conditions included in the generation target of the geometric structure to be evaluated, so as to determine the attributes of the geometric structure to be evaluated.
[0065] Specifically, the server sequentially calls each evaluation script in the pre-set evaluation script library as the target script, and the target script determines the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated.
[0066] It should be noted that in one or more embodiments of this specification, each evaluation script in the evaluation script library is a code logic for determining the attributes of the geometric parameters to be evaluated according to the parameters of the geometric structure to be evaluated. For example, an evaluation script for determining the volume fraction of a geometric structure, an evaluation script for determining the connectivity of a porous structure, etc., are generally generated corresponding to each generation condition.
[0067] In addition, the attributes of the geometric structure described in this application refer to the geometric attributes of the geometric structure, and each attribute corresponds to at least one matching generation condition. For example, the volume fraction of the geometric structure, the relationship between the bounding box of the geometric structure and the cylinder of the geometric structure, etc.
[0068] S104: Determine whether the geometric attribute matches the generation target. If so, determine that the geometric structure to be evaluated meets the generation target. If not, determine that the geometric structure to be evaluated does not meet the generation target.
[0069] After determining the attributes of the geometric structure to be evaluated, the server can determine whether the geometric structure to be evaluated meets the generation target according to the attributes and generation target of the geometric structure to be evaluated, so as to determine whether the geometric structure to be detected can be used in practical applications.
[0070] Specifically, after the server determines the attributes of the geometric structure to be evaluated, it matches the attributes of the geometric structure to be evaluated with each generation condition in the generation target. When all generation conditions match the attributes successfully, it means that the geometric structure to be evaluated meets the generation target and can be used in production practice. When there is at least one generation condition that fails to match the attributes, it means that the geometric structure does not meet the generation target and cannot be used in production practice, and the model for generating the geometric structure needs to be adjusted.
[0071] Based on Figure 1In the geometric structure evaluation method shown, by obtaining the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, and according to the generation target of the geometric structure, a target script for evaluating the geometric structure is called from a pre-set evaluation script and run to determine the attributes of the geometric structure. Then, according to the matching relationship between the attributes of the geometric structure and the generation target, it is determined whether the geometric structure meets the generation target.
[0072] In the above method, through a pre-set evaluation script, the automated and unified evaluation of the generated geometric structure is realized, reducing manual participation while improving the evaluation efficiency and accuracy of the geometric structure.
[0073] In step S100, in addition to obtaining the geometric parameters to be evaluated according to the evaluation instruction, the server can also configure a large model for generating geometric structures, and then evaluate the geometric structures generated by the large model.
[0074] Specifically, obtain the generation target of the geometric structure to be generated, then input the generation target into the trained large model, so that the large model generates the geometric structure to be evaluated according to the generation target, and then determine the parameters of the geometric structure to be evaluated according to the geometric structure to be evaluated. Among them, the generation target of the geometric structure to be generated can also be a test data set determined according to user needs, and then the large model is made to generate geometric structures according to the test data set. Then, the large language model is used to perform semantic extraction on the test data set, so as to identify the generation conditions of the geometric structure, so as to judge whether the geometric structure meets the user needs according to the generation conditions in the follow-up.
[0075] Furthermore, in step S102, in order to further improve the evaluation efficiency and reduce the consumption of computing resources, the server can first perform keyword detection on the generation target of the geometric structure to be evaluated, and then match the detected keywords with each evaluation script in the pre-set evaluation script library to determine at least one evaluation script, and then use at least one evaluation script as the target script and call them in parallel. Of course, they can also be called one by one in sequence. The server can also combine the determined evaluation scripts into a target script for the geometric structure to be evaluated.
[0076] In addition, if the geometric structure to be evaluated is a porous structure, due to the complex structure of the porous structure, in order to better evaluate the porous structure, the server generally evaluates the geometric attributes of the porous structure based on the relevant characteristics of the porous structure. Among them, it mainly includes the number of rods and volume fraction, the effectiveness, symmetry, connectivity, and co-form of the structure in the porous structure. Based on this, in one or more embodiments of this specification, an evaluation process of the evaluation script for the above geometric attributes is also provided.
[0077] If the generation target of the porous structure includes that the geometric structure has a cylinders, the server can call an evaluation script for identifying the number of rods, and determine the number of cylinders therein according to the parameters of the porous structure through this evaluation script.
[0078] If the generation target of the porous structure includes that the volume fraction of the geometric structure is b, the server can call an evaluation script for calculating the volume fraction of the porous structure, and determine the volume of the minimum circumscribed cube of the porous structure in theory, that is, the volume of the bounding box, according to the parameters of the porous structure through this evaluation script. Then, determine the volume of each cylinder in the porous structure, the bottom radius r of each cylinder, and the number of intersections D between each cylinder, so as to determine that the volume of the pores in the porous structure is the sum of the volumes of each cylinder minus , and finally determine that the volume fraction of the porous structure is the ratio of the volume of the pores to the volume of the bounding box.
[0079] In addition, the bounding box generally refers to the minimum circumscribed cube of the generated porous structure in theory. Therefore, each cylinder in the generated porous structure should be within the bounding box, and the bounding box is determined before the generation of the porous structure. Therefore, when testing the generated porous structure, it is also possible to first determine whether the porous structure has structural validity, that is, whether each cylinder is within the theoretical bounding box. Furthermore, the server can call an evaluation script for determining the structural validity of the porous structure, input the parameters of the geometric structure to be evaluated into this evaluation script, and determine the bounding box of the porous structure and each cylinder within the porous structure. Then, judge whether each cylinder is within the bounding box. If so, it means that the porous structure has structural validity; if not, it means that the porous structure does not have structural validity. Of course, when determining whether the porous structure has structural validity, it is also possible to determine whether the coordinates of each point on each cylinder are within the bounding box to determine whether the porous structure has structural validity.
[0080] If the generation target of the porous structure includes that the geometric structure to be evaluated has symmetry, the server can call an evaluation script for determining the symmetry of the porous structure, and then input the parameters of the geometric structure to be evaluated into this evaluation script to determine the bounding box of the porous structure and each cylinder within the porous structure. Taking the center of the body of the porous structure as the origin and the directions parallel to the sides of the bounding box, establish a coordinate system, and judge whether each cylinder is mirror symmetric about the origin along each axis of the coordinate system. If so, it means that the porous structure has symmetry; if not, it means that the porous structure does not have symmetry.
[0081] In addition, for the two endpoints in the cylinder, with the body center as the center, the new coordinates of the symmetric points of each endpoint can be calculated: symmetric about the x-axis, the x coordinate changes, and the y and z coordinates remain unchanged; symmetric about the y-axis, the y coordinate changes, and the x and z coordinates remain unchanged; symmetric about the z-axis, the z coordinate changes, and the x and y coordinates remain unchanged. Then, it is determined whether the symmetric points exist in the porous structure. If not, it indicates that the structure is not symmetric about this axis. Then, for each cylinder, the two endpoints of the cylinder are used to calculate the symmetric points according to the above process to form a new symmetric cylinder, and it is determined whether the newly generated symmetric cylinder exists in the porous structure. If not, it indicates that the structure is not symmetric about this axis. It should be noted that the same two endpoints connected in different orders represent the same cylinder. Among them, the above endpoints can refer to any point on the bottom surface of the cylinder.
[0082] If the generation target of the porous structure includes that the geometric structure to be evaluated has connectivity, the server can call the evaluation script for determining the connectivity of the porous structure, and then input the parameters of the geometric structure to be evaluated into the evaluation script to determine each cylinder in the porous structure. Then, for each cylinder, it is determined whether the cylinder intersects at least one other cylinder. If so, it indicates that the porous structure has connectivity; if not, it indicates that the porous structure does not have connectivity.
[0083] In addition, each cylinder can also be simplified to a line segment, and by determining whether the line segments intersect, it can be determined whether the porous structure has connectivity. It is also possible to use depth-first search or breadth-first search in graph theory to traverse the graph, that is, if starting from any one line segment, all other line segments can be traversed, it means the structure is connected. It should be noted that in one or more embodiments of this specification, there is no limitation on the calling order of each script when the server calls the scripts. It can be determined randomly or called in a preset order, which can be set according to actual needs.
[0084] Since there are many methods available, the above is only one embodiment provided in this specification, and the evaluation script can be set according to actual needs. For example, if the generated geometric structure is used to form a circuit board, the evaluation script may also include circuit conductivity simulation tests, etc.
[0085] Further, in the geometric structure evaluation method of one or more embodiments of the present application, it is also possible to evaluate the attributes between two or more geometric structures. For example, in the field of 3D printing, the generated porous structures should also have conformal properties. That is, for two porous structures, if the nodes and edges that appear on the six faces of the cube unit (i.e., the bounding box) are the same, then when the server determines that both porous structures have structural validity, it can respectively determine which edges and bottom surfaces of the cylinders in the two porous structures are exactly on the six faces of the cube, and then compare whether the edges and bottom surfaces of the cylinders of the two structures on the six faces coincide. If they completely coincide, it means that they meet the conformal property; otherwise, they do not.
[0086] In addition, it should be noted that in one or more embodiments of this specification, the above evaluation method can be specifically used for the evaluation of geometric structures, or can be executed by the detection layer in the geometric structure generation model, as Figure 3 shown. Figure 3 As shown in the figure, it is a schematic diagram of a geometric structure generation and evaluation process provided by an embodiment of this specification. The user inputs a generation target into the geometric structure generation model, causing the geometric structure generation model to generate a geometric structure, and then performs semantic extraction on the generation target to determine the generation conditions of the geometric structure. According to each generation condition, a test script is determined to judge whether the geometric structure meets the generation conditions, and a judgment result is output. If the generation conditions are met, the geometric structure is output; if the generation conditions are not met, a geometric structure is regenerated according to the generation target, and the above steps are repeated until at least one stop condition such as generating a preset number of geometric structures that meet the generation target or reaching a preset duration is reached, and then the generation of geometric structures stops.
[0087] Based on the same idea of a geometric structure evaluation method provided by one or more embodiments of this specification, this specification also provides a corresponding evaluation device, as Figure 4 shown.
[0088] Figure 4 As shown in the figure, it is a schematic diagram of an evaluation device provided by this specification, specifically including:
[0089] An acquisition module 400, configured to acquire the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, where the generation target includes the generation conditions to be met for generating the geometric structure to be evaluated;
[0090] A determination module 401, configured to call a target script from a pre-set evaluation script library, and use the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated;
[0091] A judgment module 402, configured to judge whether the geometric attribute matches the generation target. If so, it is determined that the geometric structure to be evaluated meets the generation target. If not, it is determined that the geometric structure to be evaluated does not meet the generation target.
[0092] Optionally, the device further includes a generation module 403, configured to obtain the generation target of the geometric structure to be generated; input the generation target into the trained large model, so that the large model generates the geometric structure to be evaluated according to the generation target.
[0093] Optionally, a determination module 401 is configured to extract keywords from the generation conditions through a preset large model to determine at least one target keyword; determine at least one target script and call it according to the matching relationship between the at least one target keyword and each evaluation script in the preset evaluation script library.
[0094] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has structural effectiveness; the determination module 401 is configured to input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder in the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure; judge whether each cylinder is within the bounding box. If so, it is determined that the porous structure has structural effectiveness. If not, it is determined that the porous structure does not have structural effectiveness.
[0095] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has symmetry; the determination module 401 is configured to input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder in the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure; establish a coordinate system with the center of the body of the porous structure as the origin and the directions parallel to the edges of the bounding box; judge whether each cylinder is mirror symmetric about the origin along each axis of the coordinate system. If so, it is determined that the porous structure has symmetry. If not, it is determined that the porous structure does not have symmetry.
[0096] Optionally, the geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has connectivity; the determination module 401 is configured to input the parameters of the geometric structure to be evaluated into the target script to determine each cylinder in the porous structure; for each cylinder, judge whether the cylinder intersects with at least one other cylinder. If so, it is determined that the porous structure has connectivity. If not, it is determined that the porous structure does not have connectivity.
[0097] Optionally, a determination module 402 is configured to traverse the generation conditions and the geometric attributes, and respectively determine the geometric attributes that meet the generation conditions; when all the generation conditions are met, it is determined that the geometric attributes match the generation target; when there are unmet generation conditions, it is determined that the geometric attributes do not match the generation target.
[0098] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above Figure 1 provided geometric structure evaluation method.
[0099] This specification also provides Figure 5 a structural schematic diagram of an electronic device corresponding to Figure 1 as shown. As Figure 5 shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory. Of course, it may also include other hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above Figure 1 described evaluation method.
[0100] Of course, in addition to the software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or a logic device.
[0101] In the 1990s, it was obvious to distinguish whether an improvement to a technology was an improvement in hardware (e.g., improvement to the circuit structure of diodes, transistors, switches, etc.) or an improvement in software (improvement to the method flow). However, with the development of technology, many improvements to method flows today can be regarded as direct improvements to the hardware circuit structure. Almost all designers obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement to a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user programming the device. The designer can program by himself to "integrate" a digital system on a piece of PLD without asking the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones currently are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that as long as the method flow is slightly logically programmed with the above-mentioned several hardware description languages and programmed into the integrated circuit, it is easy to obtain the hardware circuit that implements the logical method flow.
[0102] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to logically program the method steps to enable the controller to be implemented in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers to achieve the same function. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or structures within the hardware component.
[0103] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0104] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0105] Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.
[0106] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and combinations of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to produce a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in the flow Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in a block or multiple blocks.
[0107] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in the flow Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in a block or multiple blocks.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in the flow Figure 1 one or more flows and / or blocks Figure 1 or means for implementing the functions specified in a block or multiple blocks.
[0109] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0110] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of computer-readable media.
[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0113] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0115] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, reference can be made to the corresponding description in the method embodiment.
[0116] The above description is only for the embodiments of this specification and is not intended to limit this specification. For those skilled in the art, various modifications and changes can be made to this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included within the scope of the claims of this specification.
Claims
1. A geometric structure evaluation method, characterized in that, Applied to the field of 3D printing technology, including: Obtain the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, where the generation target includes the generation conditions to be met for generating the geometric structure to be evaluated; According to the generation target, call the target script from a pre-set evaluation script library, and use the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; Judge whether the geometric attributes match the generation target. If so, determine that the geometric structure to be evaluated meets the generation target. If not, determine that the geometric structure to be evaluated does not meet the generation target, including: Traverse each generation condition and the geometric attributes, and respectively determine the geometric attributes that meet each generation condition; When all the generation conditions are met, determine that the geometric attributes match the generation target; When there are unmet generation conditions, determine that the geometric attributes do not match the generation target.
2. The method according to claim 1, characterized in that, Before obtaining the parameters of the geometric structure to be evaluated, the method further includes: Obtain the generation target of the geometric structure to be generated; Input the generation target into the trained large model, and enable the large model to generate the geometric structure to be evaluated according to the generation target.
3. The method according to claim 1, characterized in that Calling the target script from a pre-set evaluation script library specifically includes: Extract keywords from the generation conditions through a pre-set large model to determine at least one target keyword; Determine at least one target script and call it according to the matching relationship between the at least one target keyword and each evaluation script in the pre-set evaluation script library.
4. The method according to claim 1, wherein The geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has structural validity; Enabling the target script to determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated specifically includes: Input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder within the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure; Judge whether each cylinder is within the bounding box. If so, determine that the porous structure has structural validity. If not, determine that the porous structure does not have structural validity.
5. The method according to claim 1, characterized in that, The geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has symmetry; Enabling the target script to determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated specifically includes: Input the parameters of the geometric structure to be evaluated into the target script to determine the bounding box of the porous structure and each cylinder within the porous structure, where the bounding box is the theoretical minimum circumscribed cube of the porous structure; Establish a coordinate system with the center of the body of the porous structure as the origin and the directions parallel to the edges of the bounding box; Judge whether each cylinder is mirror-symmetric about the origin along each axis of the coordinate system. If so, determine that the porous structure has symmetry. If not, determine that the porous structure does not have symmetry.
6. The method according to claim 1, characterized in that, The geometric structure to be evaluated is a porous structure, and the generation target includes that the geometric structure to be evaluated has connectivity; Enable the target script to determine the attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Input the parameters of the geometric structure to be evaluated into the target script to determine each cylinder within the porous structure; For each cylinder, determine whether the cylinder intersects at least one other cylinder. If so, determine that the porous structure has connectivity; if not, determine that the porous structure does not have connectivity.
7. A geometric structure evaluation device, characterized in that, Applied to the field of three-dimensional printing technology, it includes: An acquisition module for acquiring the parameters of the geometric structure to be evaluated and the generation target of the geometric structure, where the generation target includes the generation conditions to be satisfied for generating the geometric structure to be evaluated; A determination module for calling a target script from a pre-set evaluation script library according to the generation target, and using the target script to determine the geometric attributes of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; A judgment module for judging whether the geometric attributes match the generation target. If so, determine that the geometric structure to be evaluated meets the generation target; if not, determine that the geometric structure to be evaluated does not meet the generation target, including: traversing each generation condition and the geometric attributes, and respectively determining the geometric attributes that meet each generation condition; when each generation condition is satisfied, determine that the geometric attributes match the generation target; when there is an unsatisfied generation condition, determine that the geometric attributes do not match the generation target.
8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 6 above is implemented.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method described in any one of claims 1 to 6 above is implemented.
Citation Information
Patent Citations
Generative design method and system for vehicle body structure based on large model
CN119397686A