Geometric structure evaluation method and device, storage medium and electronic equipment
By obtaining the parameters of the geometric structure and generating goals, calling scripts in the evaluation script library, and automatically assessing the properties and compliance of the geometric structure, it solves the problem of time-consuming and possible errors in manual review, and improves the evaluation efficiency and accuracy.
Patent Information
- Application Number
- CN202510388394.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-04-29
- 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 may introduce errors.
By obtaining the parameters and generation targets of the geometric structure to be evaluated, the target script is called from the pre-set evaluation script library, the geometric properties of the geometric structure are determined, and whether it meets the generation targets.
The automatic and unified evaluation of the generated geometric structure is realized, which reduces manual participation and improves the evaluation efficiency and accuracy.
Smart Images

Figure CN119903202A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computers, and in particular to a geometric structure evaluation method, device, storage medium, and electronic device. Background Art
[0002] At present, with the development of computer technology, Large Language Model (LLM) has gradually become an important tool in generative design due to its advantages in logical reasoning. At present, generative design is widely used in architecture, engineering, manufacturing, product design and other fields, greatly improving the efficiency of optimizing or generating complex geometric structures. However, the current LLM is more inclined to the processing of natural language, so when generating geometric structures through LLM, the generated geometric structures need to be evaluated to ensure that the generated geometric structures meet the requirements.
[0003] In the prior art, the evaluation of the generated geometric structure often relies on manual review, but manual review is not only time-consuming, but may also introduce errors. Based on this, this specification provides a geometric structure evaluation method, device, storage medium and electronic device. Summary of the invention
[0004] This specification provides a geometric structure evaluation method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.
[0005] This manual adopts the following technical solutions: A geometric structure evaluation method, comprising: Acquire parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated; Calling a target script from a preset evaluation script library, and using the target script to determine the geometric properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; It is determined 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.
[0006] Optionally, obtaining parameters of a geometric structure to be evaluated and a generation target of the geometric structure specifically includes: Obtaining a generation target of a geometric structure to be generated; The generation target is input into the trained large model, so that the large model generates the geometric structure to be evaluated according to the generation target.
[0007] Optionally, calling a target script from a preset evaluation script library according to the generation target specifically includes: Extract keywords from the generation conditions using a preset large model to determine at least one target keyword; At least one target script is determined and called based on the matching relationship between the at least one target keyword and each evaluation script in a preset evaluation script library.
[0008] 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; The target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script, determining the bounding box of the porous structure and each cylinder in the porous structure, wherein the bounding box is a theoretical minimum circumscribed cube of the porous structure; It is determined whether all the cylinders are within the bounding box. If so, it is determined that the porous structure has structural validity. If not, it is determined that the porous structure does not have structural validity.
[0009] 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 target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script, determining the bounding box of the porous structure and each cylinder in the porous structure, wherein the bounding box is a theoretical minimum circumscribed cube of the porous structure; Establishing a coordinate system with the center of the porous structure as the origin and in a direction parallel to the edge of the bounding box; It is determined whether the cylinders are mirror-symmetric along the axes of the coordinate system with the origin as the center. If so, it is determined that the porous structure has symmetry; if not, it is determined that the porous structure does not have symmetry.
[0010] 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 target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script to determine each cylinder in the porous structure; For each cylinder, it is determined 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.
[0011] Optionally, determining whether the geometric attribute matches the generated target specifically includes: Traversing the generation conditions and the geometric attributes, and respectively determining the geometric attributes that satisfy the generation conditions; When all the generation conditions are met, it is determined that the geometric attribute matches the generation target; When there is an unsatisfied generation condition, it is determined that the geometric attribute does not match the generation target.
[0012] This specification also provides a geometric structure evaluation device, including: An acquisition module, used for acquiring parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated; A determination module, used to call a target script from a preset evaluation script library, and use the target script to determine the geometric properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; The judging module is used 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.
[0013] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned evaluation method is implemented.
[0014] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned evaluation method when executing the program.
[0015] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects: In the geometric structure evaluation method provided in this specification, the parameters of the geometric structure to be evaluated and the generation target of the geometric structure are obtained, and according to the generation target of the geometric structure, the target script used to evaluate the geometric structure is called and run from the pre-set evaluation script to determine the properties of the geometric structure. Then, according to the matching relationship between the properties of the geometric structure and the generation target, it is determined whether the geometric structure meets the generation target.
[0016] In the above method, an automated and unified evaluation of the generated geometric structure is achieved through a pre-set evaluation script, which reduces manual participation and improves the evaluation efficiency and accuracy of the geometric structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings: Figure 1 A schematic diagram of a geometric structure evaluation method provided in this specification; Figure 2 Schematic diagram of the geometric structure provided for this specification; Figure 3 A schematic diagram of a geometric structure generation and evaluation process provided in this specification; Figure 4 A schematic diagram of a geometric structure evaluation device provided in this specification; Figure 5 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0019] Geometric structures play an extremely important role in real life. They not only help us 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 designer's experience and personal perspective, especially in the field of 3D printing technology, where 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 and contain a large number of tiny holes or channels. Traditional tools often take a lot of time and effort to create and edit such complex geometric structures. In addition, highly accurate models and a large amount of computing resources are required to simulate the behavior of porous materials, such as the flow of fluids through porous media and heat conduction. Traditional finite element analysis (FEA) or other numerical simulation methods may have difficulty in effectively handling such complex geometric details. Therefore, a method that uses algorithms and automated processes to explore the design possibilities of multiple geometric structures, namely generative design, has gradually become an important method for designing complex geometric structures.
[0020] With the development of computer technology, Large Language Model (LLM) has been widely used in various fields, and due to its advantages in logical reasoning, it has gradually become an important tool in generative design. However, the current LLM is more inclined to the processing of natural language, so when generating geometric structures through LLM, the generated geometric structures need to be evaluated to ensure that the generated geometric structures meet the requirements.
[0021] However, currently, the evaluation of geometric structures generated by LLM often relies on manual review, which is not only time-consuming but also likely to introduce errors. Based on this, this specification provides a geometric structure evaluation method, device, storage medium, and electronic device.
[0022] It should be noted that in one or more embodiments of the present specification, the geometric structure evaluation method described can be applied to the testing of various geometric structures, without limiting whether the geometric structure to be evaluated is generated by LLM, and can also be used to evaluate geometric structures generated by other means, such as artificially generated geometric structures.
[0023] In addition, since the generation goals of geometric structures used in different fields are different, and some of them are even very different, in order to facilitate the description of the geometric structure evaluation method, this application specification will use the geometric structure as a porous structure as an example to describe the evaluation method.
[0024] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0025] Figure 1 A schematic flow chart of a geometric structure evaluation method provided in an embodiment of this specification includes the following steps: S100: Acquire parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be met in order to generate the geometric structure to be evaluated.
[0026] In one or more embodiments of the present specification, there is no restriction on which device the geometric structure evaluation method is specifically executed by, for example, a mobile terminal and a server, etc. However, since subsequent steps involve model training, script calling and other steps, these steps are generally executed by a server. Therefore, this specification also uses the server executing the geometric structure evaluation method as an example for description, wherein the server can be a single device, or composed of multiple devices, for example, a distributed server, a cloud service server, etc., and this specification does not impose any restrictions on this.
[0027] In order to evaluate the generated geometric structure, the server may first obtain the geometric structure to be evaluated and the generation target of the geometric structure to be evaluated, so as to subsequently evaluate whether the geometric structure to be evaluated meets the generation target.
[0028] Specifically, the server first obtains the parameters of the geometric structure to be evaluated, and obtains the generation target corresponding to the generation of the geometric structure to be evaluated. It should be noted that in one or more embodiments of the present specification, the specific shape of the geometric structure to be evaluated is not limited, such as Figure 2 As shown, Figure 2 The schematic diagram of the geometric structure provided for the embodiment of this specification, the geometric structure to be tested can be a conventional geometric structure, such as a cube, a cone, etc., or it can be a combination of multiple geometric structures, or it can be a porous structure, which can be set according to actual needs, and this specification does not limit this. Furthermore, this specification 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, the generation target is to generate a porous structure with a volume fraction of 0.2, which is connected and has 8 rods. The generation conditions included therein include at least, such as the volume fraction of the geometric structure is 0.2, it is porous and connected, and the porous structure contains 8 rods. It should be noted that there are many generation conditions that can be set, and this specification does not list them one by one. You can set them according to actual needs.
[0029] In one or more embodiments of the present specification, there is no limitation on the specific method used by the server to obtain the geometric structure to be evaluated. It may be to respond to an evaluation instruction and randomly select one from the generated geometric structures as the geometric structure to be evaluated, or it may be to pre-select several from various generation conditions as generation targets according to requirements, and then generate the corresponding geometric structure to be evaluated according to the generation target. The present specification does not impose any limitation on this, and it can be set according to actual needs.
[0030] Furthermore, the specific content of the parameters of the obtained geometric structure is not limited, and can be determined according to the expression method of the geometric structure. For example, if the geometric structure is expressed by an implicit function, 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, 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, the parameters of the geometric structure at least include the coordinates of the key points of the geometric structure. Since there are many ways to express geometric structures, in one or more embodiments of the present application specification, the specific content of the parameters of the geometric structure obtained by the server is not limited, and can be set according to actual needs.
[0031] In addition, in one or more embodiments of the present specification, there is no limitation on the specific method used by the server to obtain the generated target. It can be determined according to the actual method of obtaining the geometric structure to be evaluated, or it can be set according to actual needs.
[0032] S102: calling a target script from a preset evaluation script library, and using the target script to determine geometric properties of the geometric structure to be evaluated according to parameters of the geometric structure to be evaluated.
[0033] Since the generation target of the geometric structure to be evaluated includes at least one generation condition, in order to evaluate the geometric structure to be evaluated, the server can generate a corresponding evaluation script for each generation condition in advance and build an evaluation script library. Then, when evaluating the geometric structure, the server calls the corresponding evaluation script according to each generation condition included in the generation target of the geometric structure to be evaluated, thereby determining the properties of the geometric structure to be evaluated.
[0034] Specifically, the server calls each evaluation script one by one from a preset evaluation script library as a target script, so that the target script determines the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated.
[0035] It should be noted that in one or more embodiments of the present specification, each evaluation script in the evaluation script library is a code logic used to determine the attributes of the geometric parameters to be evaluated based on the parameters of the geometric structure to be evaluated, such as an evaluation script for determining the volume fraction of a geometric structure, an evaluation script for determining the connectivity of a porous structure, etc., which are generally generated in accordance with various generation conditions.
[0036] 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.
[0037] 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.
[0038] After determining the properties of the geometric structure to be evaluated, the server can determine whether the geometric structure to be evaluated meets the generation target based on the properties of the geometric structure to be evaluated and the generation target, thereby determining whether the geometric structure to be evaluated can be used in practical applications.
[0039] Specifically, after determining the attributes of the geometric structure to be evaluated, the server matches the attributes of the geometric structure to be evaluated with each generation condition in the generation target. When all the generation conditions and attributes are matched successfully, it means that the geometric structure to be evaluated meets the generation target and can be used in production practice. When at least one generation condition fails to match the attribute, 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.
[0040] based on Figure 1 In the geometric structure evaluation method shown, the parameters of the geometric structure to be evaluated and the generation target of the geometric structure are obtained, and according to the generation target of the geometric structure, the target script for evaluating the geometric structure is called and run from the pre-set evaluation script to determine the properties of the geometric structure. Then, according to the matching relationship between the properties of the geometric structure and the generation target, it is determined whether the geometric structure meets the generation target.
[0041] In the above method, an automated and unified evaluation of the generated geometric structure is achieved through a pre-set evaluation script, which reduces manual participation and improves the evaluation efficiency and accuracy of the geometric structure.
[0042] In step S100, in addition to obtaining the geometric parameters to be evaluated according to the evaluation instruction, the server may also configure a large model for generating a geometric structure, and then evaluate the geometric structure generated by the large model.
[0043] Specifically, the generation target of the geometric structure to be generated is obtained, and then the generation target is input into the trained large model, so that the large model generates the geometric structure to be evaluated according to the generation target, and then the parameters of the geometric structure to be evaluated are determined according to the geometric structure to be evaluated. 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 generates the geometric structure according to the test data set. Then, the semantic extraction of the test data set is performed through the large language model 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.
[0044] Furthermore, in step S102, in order to further improve the evaluation efficiency and reduce the consumption of computing resources, the server may 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 preset evaluation script library to determine at least one evaluation script, and then use at least one evaluation script as a 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.
[0045] In addition, if the geometric structure to be evaluated is a porous structure, due to the complex structure of the porous structure, the server will generally evaluate the geometric properties of the porous structure based on the relevant characteristics of the porous structure in order to better evaluate the porous structure, which mainly includes the number and volume fraction of rods in the porous structure, the effectiveness, symmetry, connectivity, and conformality of the structure. Based on this, in one or more embodiments of this specification, an evaluation process for the evaluation script of the above-mentioned geometric properties is also provided.
[0046] 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 based on the parameters of the porous structure through the evaluation script.
[0047] If the generation target of the porous structure includes the volume fraction of the geometric structure as b, the server can call an evaluation script for calculating the volume fraction of the porous structure, and determine the theoretical minimum circumscribed cube of the porous structure, that is, the volume of the bounding box, according to the parameters of the porous structure through the evaluation script, and then determine the volume of each cylinder in the porous structure, the radius r of the bottom surface of each cylinder, and the number of intersections D between each cylinder, so as to determine the volume of the pores in the porous structure as the sum of the volumes of each cylinder minus , and finally the volume fraction of the porous structure is determined as the ratio of the volume of the pores to the volume of the bounding box.
[0048] In addition, the bounding box generally refers to the theoretical minimum circumscribed cube of the generated porous structure, so each cylinder in the generated porous structure should be within the bounding box, and the bounding box is determined before the porous structure is generated, so 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 the evaluation script, and determine the bounding box of the porous structure and each cylinder in the porous structure. Then, it is determined whether each cylinder is within the bounding box. If so, it means that the porous structure has structural validity, and 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.
[0049] 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 the evaluation script to determine the bounding box of the porous structure and each cylinder in the porous structure. With the center of the porous structure as the origin and the direction parallel to the edge of the bounding box, a coordinate system is established to determine whether each cylinder is centered at the origin and is mirror-symmetric along each axis of the coordinate system. If so, it means that the porous structure has symmetry, and if not, it means that the porous structure does not have symmetry.
[0050] In addition, the new coordinates of the symmetric points of the two endpoints in the cylinder can be calculated with the body center as the center: symmetric about the x-axis, the x coordinate changes, the y and z coordinates remain unchanged, symmetric about the y-axis, the y coordinate changes, the x and z coordinates remain unchanged; symmetric about the z-axis, the z coordinate changes, the x and y coordinates remain unchanged. And judge whether the symmetry point exists in the porous structure. If not, it means that the structure is not symmetrical on the axis. Then for each cylinder, the symmetry points of the two endpoints of the cylinder are calculated according to the above process to form a new symmetrical cylinder, and judge whether the newly generated symmetrical cylinder exists in the porous structure. If not, it means that the structure is not symmetrical on the 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.
[0051] If the generation target of the porous structure includes that the geometric structure to be evaluated has connectivity, the server may call an 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 with at least one other cylinder. If so, it means that the porous structure has connectivity, and if not, it means that the porous structure does not have connectivity.
[0052] In addition, each cylinder can be simplified into a line segment, and the connectivity of the porous structure can be determined by judging whether the line segments intersect. The depth-first search or breadth-first search in graph theory can also be used to traverse the graph, that is, if starting from any line segment, all other line segments can be traversed, the structure is connected. If starting from any line segment, all other line segments can be traversed, the structure is connected.
[0053] It should be noted that in one or more embodiments of the present specification, the order in which the server calls the scripts is not limited and can be determined randomly or in a preset order, and can be set according to actual needs.
[0054] Since there are many methods that can be adopted, 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 test, etc.
[0055] Furthermore, in the geometric structure evaluation method of one or more embodiments of the present application, the properties between two or more geometric structures can also be evaluated. For example, in the field of three-dimensional printing, the generated porous structures should also have commonality, that is, the two porous structures have the same nodes and edges on the six faces of the cubic unit, i.e., the bounding box. Then, the server can determine which cylinders' edges and bottoms in the two porous structures are exactly on the six faces of the cube when determining that both porous structures have structural validity, and then compare whether the cylinders' edges and bottoms of the two structures coincide on the six faces. If they completely coincide, it means that commonality is satisfied; otherwise, it is not commonality.
[0056] In addition, it should be noted that in one or more embodiments of the present specification, the above-mentioned evaluation method can be specifically used for the evaluation of geometric structures, and can also be performed by the detection layer in the geometric structure generation model, such as Figure 3 As shown, Figure 3 A schematic diagram of a geometric structure generation and evaluation process provided in an embodiment of this specification, wherein the user inputs a generation target into the geometric structure generation model, so that the geometric structure generation model generates a geometric structure, then performs semantic extraction on the generation target, determines the generation conditions of the geometric structure, determines a test script according to each generation condition, determines whether the geometric structure meets the generation condition, and outputs the judgment result. If the generation condition is met, the geometric structure is output; if the generation condition is not met, the geometric structure is regenerated according to the generation target, and the above steps are repeated until a preset number of geometric structures that meet the generation target are generated or at least one stop condition such as a preset time length is reached, the generation of the geometric structure is stopped.
[0057] Based on the same idea of a geometric structure evaluation method provided in one or more embodiments of this specification, this specification also provides a corresponding evaluation device, such as Figure 4 shown.
[0058] Figure 4 A schematic diagram of an evaluation device provided in this specification specifically includes: An acquisition module 400 is used to acquire parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated; The determination module 401 is used to call a target script from a preset evaluation script library, and use the target script to determine the geometric properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; The judgment module 402 is used 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.
[0059] Optionally, the device further includes a generation module 403 for acquiring a generation target of the geometric structure to be generated; inputting 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.
[0060] Optionally, the determination module 401 is used to extract keywords from the generation conditions through a preset large model to determine at least one target keyword; based on the matching relationship between the at least one target keyword and each evaluation script in a preset evaluation script library, determine at least one target script and call it.
[0061] Optionally, the geometric structure to be evaluated is a porous structure, and the generated target includes that the geometric structure to be evaluated has structural validity; a determination module 401 is used to input the parameters of the geometric structure to be evaluated into the target script, determine the bounding box of the porous structure and the cylinders within the porous structure, wherein the bounding box is the theoretical minimum circumscribed cube of the porous structure; determine whether the cylinders are all within the bounding box, and if so, determine that the porous structure has structural validity, and if not, determine that the porous structure does not have structural validity.
[0062] Optionally, the geometric structure to be evaluated is a porous structure, and the generated target includes that the geometric structure to be evaluated has symmetry; a determination module 401 is used to input the parameters of the geometric structure to be evaluated into the target script, determine the bounding box of the porous structure and the cylinders within the porous structure, wherein the bounding box is the theoretical minimum circumscribed cube of the porous structure; establish a coordinate system with the center of the porous structure as the origin and in a direction parallel to the edge of the bounding box; determine whether the cylinders are mirror-symmetric along the axes of the coordinate system with the origin as the center, and if so, determine that the porous structure has symmetry, and if not, determine that the porous structure does not have symmetry.
[0063] Optionally, the geometric structure to be evaluated is a porous structure, and the generated target includes that the geometric structure to be evaluated has connectivity; a determination module 401 is used 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, 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.
[0064] Optionally, the judgment module 402 is used to traverse the various generation conditions and the geometric attributes, and respectively determine the geometric attributes that satisfy the various generation conditions; when the various generation conditions are satisfied, it is determined that the geometric attributes match the generation target; when there are unsatisfied generation conditions, it is determined that the geometric attributes do not match the generation target.
[0065] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A geometric structure evaluation method is provided.
[0066] This manual also provides Figure 5 The one shown corresponds to Figure 1 Schematic diagram of the structure of an electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 An evaluation method described.
[0067] Of course, in addition to 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 executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0068] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. 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's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called 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 are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0069] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0070] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may 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 a combination of any of these devices.
[0071] For the convenience of description, the above device is described by dividing it into various units according to its functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0072] Those skilled in the art will appreciate 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.
[0073] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes 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 a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0077] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and 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 the relevant parts can be referred to the partial description of the method embodiment.
[0083] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A geometric structure evaluation method, characterized in that: include: Acquire parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated; Calling a target script from a preset evaluation script library, and using the target script to determine the geometric properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; It is determined 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.
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: Obtaining a generation target of a geometric structure to be generated; The generation target is input into the trained large model, so that the large model generates the geometric structure to be evaluated according to the generation target.
3. The method according to claim 1, characterized in that Call the target script from the preset evaluation script library, including: Extract keywords from the generation conditions using a preset large model to determine at least one target keyword; At least one target script is determined and called based on the matching relationship between the at least one target keyword and each evaluation script in a preset evaluation script library.
4. 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 structural validity; The target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script, determining the bounding box of the porous structure and each cylinder in the porous structure, wherein the bounding box is a theoretical minimum circumscribed cube of the porous structure; It is determined whether all the cylinders are within the bounding box. If so, it is determined that the porous structure has structural validity. If not, it is determined 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; The target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script, determining the bounding box of the porous structure and each cylinder in the porous structure, wherein the bounding box is a theoretical minimum circumscribed cube of the porous structure; Establishing a coordinate system with the center of the porous structure as the origin and in a direction parallel to the edge of the bounding box; It is determined whether the cylinders are mirror-symmetric along the axes of the coordinate system with the origin as the center. If so, it is determined that the porous structure has symmetry; if not, it is determined 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; The target script is enabled to determine the properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated, specifically including: Inputting the parameters of the geometric structure to be evaluated into the target script to determine each cylinder in the porous structure; For each cylinder, it is determined 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.
7. The method according to claim 3, characterized in that Determining whether the geometric attribute matches the generated target specifically includes: Traversing the generation conditions and the geometric attributes, and respectively determining the geometric attributes that satisfy the generation conditions; When all the generation conditions are met, it is determined that the geometric attribute matches the generation target; When there is an unsatisfied generation condition, it is determined that the geometric attribute does not match the generation target.
8. A geometric structure evaluation device, characterized in that: include: An acquisition module, used for acquiring parameters of a geometric structure to be evaluated and a generation target of the geometric structure, wherein the generation target includes generation conditions to be satisfied for generating the geometric structure to be evaluated; A determination module, used to call a target script from a preset evaluation script library, and use the target script to determine the geometric properties of the geometric structure to be evaluated according to the parameters of the geometric structure to be evaluated; The judging module is used 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.
9. 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 7 is implemented.
10. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
Citation Information
Patent Citations
Performance quantitative evaluation method and system of calibration device in two-dimensional space
CN117195528A
Natural fracture connectivity quantitative evaluation method
CN117556384A
Intelligent software integrated testing method
CN118012768A
Geometric model data calculation method and device, storage medium and electronic device
CN119047045A
Generative design method and system for vehicle body structure based on large model
CN119397686A