Python-based methods, systems, and media for mirror design optimization.
By using a Python-driven method and system for optimizing mirror design, the system automates the generation and updating of mirror structure models, solving the problems of low design efficiency, high cost, and error susceptibility in existing technologies, and achieving efficient lightweight mirror design.
Patent Information
- Application Number
- CN202511958237.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2045-12-24
AI Technical Summary
Existing mirror design methods rely on manual operation, resulting in low design efficiency, high cost, long development cycle, and a high risk of error, making it difficult to fully explore the design space.
A Python-based method and system for optimizing reflector design is adopted. Through parametric modeling and automated processes, using UG software and Python programming, the reflector structure model is automatically generated and updated, including sketch parametricization, solid merging and mirror addition, forming a parametric template to optimize the reflector structure.
It greatly improves design efficiency, shortens iteration cycles, reduces costs, decreases the probability of errors, makes it easier to explore the design space, and enhances design effectiveness.
Smart Images

Figure CN121389375B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, and in particular to Python-based methods, systems, and media for optimizing mirror design. Background Technology
[0002] Large-aperture lightweight mirrors are core components of high-end optical systems, widely used in astronomical observation, space exploration, and remote sensing imaging. As the performance requirements of optical systems continue to increase, mirror apertures are constantly increasing to meet the demands for higher resolution and sensitivity. However, increasing mirror aperture brings a series of challenges, including a dramatic increase in weight, greater manufacturing difficulty, and significantly higher costs. Therefore, achieving lightweight mirror design while ensuring optical performance has become one of the core issues in the field of optical instrument development.
[0003] The design of lightweight reflectors requires finding the optimal balance between weight reduction and performance maintenance. The reflector must possess sufficient stiffness to resist deformation due to its own weight and micro-vibrations in the service environment, while also exhibiting good thermal stability to cope with temperature variations in the space environment. Furthermore, lightweight design must consider the feasibility of manufacturing processes and cost control. This typically means that the reflector structure is extremely complex, commonly employing a honeycomb, triangular, or fan-shaped array of lightweight holes on the back, supplemented by a complex network of main and back ribs to maintain surface accuracy. This structural complexity makes 3D modeling itself a formidable challenge.
[0004] Current computer-aided design (CAD) methods based on manual operation severely restrict the efficiency and innovation of lightweight design for high-end optical system mirrors. Specifically, traditional manual design methods have the following limitations:
[0005] Even the smallest design change, such as modifying the size of a hole or the width of a rib, may require a large number of feature edits, sketch modifications, and array operations to be performed again. The entire process is repetitive, tedious, time-consuming, and extremely error-prone.
[0006] Each design iteration, scheme adjustment, or size optimization means a large amount of repetitive, tedious, and error-prone modeling work, which greatly prolongs the R&D cycle and increases development costs. Due to the high cost of modification, designers usually only try a very limited number of design solutions, relying on the experience of senior engineers, making it difficult to fully explore the design space, and they may miss better solutions.
[0007] Manual errors can lead to the unintended disruption of the relationships between model features, resulting in model errors or update failures.
[0008] It is evident that existing lightweight mirror designs significantly prolong the mirror development cycle and incur high costs. Furthermore, the difficulty in fully exploring the design space results in suboptimal design performance. Therefore, there is an urgent need for a Python-based mirror design optimization method and system. Summary of the Invention
[0009] Therefore, it is necessary to provide a Python-based method and system for optimizing mirror design to address the aforementioned issues.
[0010] To solve the above problems, the present disclosure adopts the following technical solution:
[0011] Firstly, this disclosure provides a Python-based method for optimizing mirror design, including the following steps:
[0012] Step 1: Determine the shape and material of the reflector;
[0013] Step 2: Use UG software to draw the reinforcing ribs, support holes, and outer edge frame of the reflector to complete the design of the parametric template for the reflector sketch.
[0014] Step 3: Perform parametric feature curve stretching, solid merging, and solid trimming operations based on the parametric template of the mirror sketch to obtain the parametric model of the back structure of the mirror.
[0015] Step 4: Perform parametric modeling of the mirror surface to obtain the parametric model of the mirror surface;
[0016] Step 5: Obtain the settable parameters of the reflector and form a set of settable parameters;
[0017] Step 6: Update the mirror structure by modifying the parameters in the parameter set to optimize the design of the mirror structure.
[0018] In a preferred embodiment, step 1 specifically includes: determining the shape and material of the reflector based on the application scenario of the reflector, the assembly space requirements of the reflector, and the structural load-bearing capacity of the reflector.
[0019] In a preferred embodiment, step 2 specifically includes: in a Python environment, based on the shape and material of the reflector determined in step 1, creating a new sketch using the Sketch function under the NXOpen class of UG, creating straight lines and curves using the CreateLine and CreateArc functions under the Curves class, and drawing reinforcing ribs, support holes, and outer edge frames in the sketch using an automated program.
[0020] In a preferred embodiment, step 3 specifically includes: in the Python environment, using the CreateExtrudeBuilder function in the Features class to stretch the feature curves in the sketch to a specified height, using Boolean operations to achieve subtraction, intersection and merging between different parts of the entity, and using Boolean operations to trim the entity to obtain a parametric model of the back structure of the mirror.
[0021] In a preferred embodiment, step 4 specifically includes: in a Python environment, based on the shape and material of the reflector determined in step 1, performing parametric modeling of the mirror surface to obtain a parametric model of the mirror surface, and using Boolean operations to add the mirror surface to the parametric model of the back of the reflector to obtain a parametric model of the reflector surface.
[0022] In a preferred embodiment, the set of configurable parameters for the reflector includes: the parameters of the reflector, the position of the reinforcing ribs, the number of reinforcing ribs, the size of the reinforcing ribs, the position of the support holes, the number of support holes, the size of the support holes, the position of the outer edge frame, the number of outer edge frames, and the size of the outer edge frame.
[0023] In a preferred embodiment, the set of configurable parameters for the reflector further includes: the solid color of the mirror, the mirror display angle, and the material of the mirror.
[0024] In a preferred embodiment, step 6 includes: modifying the parameters in the parameter set to automatically obtain a mirror structure model; determining the optimal mirror structure model based on multiple mirror structure models; and obtaining the parameter set corresponding to the optimal mirror structure model.
[0025] Secondly, this disclosure provides a Python-based mirror design optimization system, including:
[0026] Determine the module, and determine the shape and material of the reflector;
[0027] The sketch design module is used to draw the reinforcing ribs, support holes, and outer edge frame of the reflector using UG software to complete the design of the parametric template for the reflector sketch.
[0028] The solid modeling module is used to perform parametric feature curve stretching, solid merging, and solid trimming operations based on the parametric template of the mirror's sketch to obtain a parametric model of the mirror's back structure.
[0029] The mirror addition module is used to perform parametric modeling of mirrors to obtain parametric mirror models;
[0030] The parameter set acquisition module is used to obtain the settable parameter set of the reflector;
[0031] The mirror structure optimization module is used to optimize the design of the mirror structure by updating the parameters in the parameter set.
[0032] Thirdly, this disclosure provides a computer-readable storage medium comprising instructions, characterized in that, when the instructions are executed on a computer, the computer causes the computer to perform the various steps of the Python-based mirror design optimization method described in the first aspect.
[0033] The aforementioned Python-based mirror design optimization method, system, and medium utilize Python to model the parametric models of the mirror's back and mirror surfaces. Based on the mirror's configurable parameter set, parameters are modified to obtain an updated mirror structure, which is then used for design optimization. This transforms the highly manual, experience-dependent, and repetitive model-based mirror structure design optimization process into a parameter-driven automated workflow. The mirror structure model can be generated or updated simply by modifying the parameter set, significantly reducing repetitive manual operations, shortening the design iteration cycle, greatly improving design efficiency, lowering mirror R&D costs, significantly reducing the probability of model errors or update failures, and facilitating thorough exploration of the design space, thus enhancing the mirror's design effectiveness. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating a method in one embodiment of the present disclosure;
[0035] Figure 2 This is a schematic diagram of the parametric design result of a method in one embodiment of this disclosure;
[0036] Figure 3 This is a schematic diagram of the preliminary entity modeling result of a method in one embodiment of this disclosure;
[0037] Figure 4 This is a schematic diagram of the entity modeling result of a method in one embodiment of this disclosure;
[0038] Figure 5 This is a schematic diagram showing the result when the mirror parametric modeling of the method in one embodiment of this disclosure is completed;
[0039] Figure 6 This is a schematic diagram of the parametric modeling result of a long, lightweight reflector using a method in one embodiment of this disclosure;
[0040] Figure 7 For one embodiment of the method of this disclosure Figure 6 A schematic diagram of a lightweight reflector model with modified cross rib quantity parameters;
[0041] Figure 8 This is a schematic diagram of the system structure in one embodiment of the present disclosure;
[0042] Among them, 10 is the outer edge frame, 20 is the reinforcing rib, 30 is the support hole, 40 is the process hole, 50 is the trimmed body, and 60 is the mirror surface. Detailed Implementation
[0043] The technical solutions of this disclosure will now be described in detail with reference to the accompanying drawings and preferred embodiments.
[0044] See Figure 1 This disclosure provides a Python-based method for optimizing mirror design, the method comprising:
[0045] Determine the shape and material of the reflector;
[0046] The design of the parametric template for the reflector sketch was completed by drawing the reinforcing rib 20, support hole 30 and outer edge frame 10 of the reflector using UG software.
[0047] Based on the parametric template of the mirror sketch, parametric feature curve stretching, solid merging, and solid trimming operations are performed to obtain the parametric model of the back structure of the mirror.
[0048] Parametric modeling of the mirror surface (60°) is performed to obtain the parametric model of the mirror surface;
[0049] Obtain the settable parameters of the reflector, and construct a settable parameter set from the settable parameters of the reflector;
[0050] The design of the reflector structure is optimized by updating the parameters in the settable parameter set.
[0051] The Python-based mirror design optimization method of this embodiment will be described in detail below.
[0052] Firstly, it can be understood that the reflector includes a mirror surface 60 and a back structure, wherein the back structure includes reinforcing ribs 20, support holes 30, and an outer edge frame 10. Typically, the reflector is a large-diameter, lightweight reflector, meaning that the mirror surface 60 is a large-diameter mirror surface 60, and the back structure is a lightweight back structure.
[0053] Step 1, Model Selection: Determine the shape, support method, and material of the reflector. Taking into account the application scenario, assembly space requirements, and structural load-bearing capacity, rationally select the shape, material, and support method of the reflector. Here, we take the lightweight parametric model design of a long strip reflector as an example.
[0054] Determining the shape of the reflector includes determining the shape of the mirror surface 60 and the shape of the back structure of the reflector. Determining the shape of the back structure of the reflector is equivalent to determining the support method of the reflector. The support method of the reflector refers to the frame information of the back structure of the reflector, including lightweight structure information. The support method includes the arrangement and number of support holes 30.
[0055] Determining the material of the reflector includes determining the material of the mirror surface and the material of the back structure of the reflector.
[0056] Step 2: Design the sketch parametric template in the Python environment: Based on the shape and material of the reflector determined in Step 1, use UG software to draw the parametric reinforcing rib 20, support hole 30 and edge box. The drawing process is expressed in the form of Python command flow and functions to complete the sketch parametric design and form the sketch design code template.
[0057] In parametric design of sketches, within a Python environment, the Sketch function under the NXOpen class of UG (Unigraphics, also known as Siemens NX) is used to create new sketches, and the CreateLine and CreateArc functions under the Curves class are used to create lines and curves. An automated program is created by writing a command flow, which, driven by code, draws the reinforcing rib 20, support hole 30, and outer edge frame 10 in the sketch. This forms a parametric design template for the sketch (expressed in the form of Python command flow and functions). By controlling the program input parameters, the position, quantity, and size of the reinforcing rib 20, support hole 30, and outer edge frame 10 can be parametrically controlled. Modifications to the sketch can be automated and quickly completed by changing the input parameters in the Python script. The result of the parametric design of the sketch is as follows. Figure 2 As shown, the sketch includes an outer edge frame 10, several reinforcing ribs 20 (the reinforcing ribs 20 include horizontal ribs, vertical ribs and diagonal ribs), several (three) support holes 30, and several process holes 40.
[0058] Step 3: Perform solid parametric template design. The design process is expressed using Python command flow and functions to complete the parametric modeling of the lightweight reflector's back structure, forming a solid design code template. In the solid parametric design, the CreateExtrudeBuilder function in the Features class (the core function for creating or editing extruded features) is used to extrude the feature curves in the sketch to a specified height. Boolean operations are used to achieve subtraction, intersection, and merging between different parts of the solid, completing the initial automated solid modeling. The preliminary solid modeling result is as follows: Figure 3As shown; to meet the requirements of lightweight design, Boolean operations are needed to trim the solid, thereby completing automated solid modeling and forming a parametric design template for the solid, namely the parametric model of the back of the mirror, expressed in the form of Python command streams and functions. By parametrically controlling the solid thickness and lightweight edge clipping amount in the Python script, and modifying the input parameters, the modification of the solid can be completed automatically and quickly. The solid modeling result is as follows. Figure 4 As shown, Figure 4 The example content includes a trimmed body 50 obtained by trimming an entity.
[0059] Step 4: Finally, perform the parametric model design for the mirror. After completing the design of the lightweight reflector's back structure, a mirror surface 60 needs to be designed. Based on the shape and material of the reflector determined in Step 1, the mirror surface 60 is designed and added to the parametric model of the reflector's back structure using Boolean operations. According to actual requirements, the mirror surface 60 is added to the lightweight reflector's back structure, and various attributes are set. The design process is expressed in the form of Python command streams and functions, ultimately completing the parametric modeling of the lightweight reflector and forming a reflector structure design code template. In this example, the mirror surface 60 is a sphere. In the Python environment, the CreateSphereBuilder function (the core function for creating or editing spherical features) in the Features class is used to create a spherical shell based on the parameterized radius of curvature and mirror surface 60 thickness. Boolean operations are then used to add the mirror surface 60 to the solid model established in Step 3, thereby achieving automated parametric reflector modeling and forming a mirror parametric design template (expressed in the form of Python command streams and functions). The result when the mirror parametric modeling is completed is as follows. Figure 5 As shown. Modifying the input parameters in the Python script allows for the modification of the mirror 60 design. Through parametric methods, attributes such as the solid color, display angle, and material of mirror 60 can also be set. The parametric modeling result of the long, lightweight reflective mirror is shown below. Figure 6 As shown.
[0060] Based on the above steps, the lightweight structure of the reflector is designed parametrically. The key dimensions and topological relationships in the model are defined parametrically, a dimension association and constraint system is established, and the Python modeling code is modified accordingly to form a feature-based parametric model. A parametric template for the reflector structure design is generated (expressed in the form of Python command flow and functions).
[0061] Step 5: Organize the input parameters from the above process to obtain the settable parameters of the reflector, which can be called the settable parameter set of the reflector parametric model, or the complete parametric design template for the lightweight reflector structure (expressed in the form of Python command flow and functions). This completes the parametric model of the reflector. The settable parameters of the reflector include: the position, quantity, and size of the reinforcing ribs 20, support holes 30, and outer edge frame 10, as well as the parameters of the reflector. These parameters may include, for example, the radius of curvature of the mirror surface 60, the thickness of the mirror surface 60, reflectivity, surface roughness, surface flatness, and may also include the material of the reflector.
[0062] If modifications are needed to the design of this type of reflector structure, there is no need to remodel manually. Simply modify the corresponding parameters in the Python script and then run the program in UG to update the reflector structure design. For example, increasing the number of transverse reinforcing ribs 20 on the back from three to five and re-running the program to model will yield the following modeling result: Figure 7 As shown, ①②③④⑤ are five reinforcing ribs in Example 20.
[0063] Step 6: Update the reflector structure and optimize its design. This is achieved by modifying parameters in the set of configurable parameters. Each modification automatically generates a new reflector structure model, which includes the back structure and the mirror surface. Based on this model, the reflector structure design is optimized.
[0064] Automated modeling can be achieved through UG by simply modifying the parameters in the parameter set according to requirements, without manual operation. Multiple mirror structure models are obtained through multiple parameter set adjustments. Based on factors such as the application environment and purpose of the mirror, the optimal mirror structure model is determined, which is to say, the optimal parameter set is determined.
[0065] Understandably, the design optimization of a mirror structure may include the steps of obtaining a mirror structure model based on a parameter set, determining a new parameter set, and obtaining a new mirror structure model.
[0066] In this embodiment, the entire process of step 6 can be automated or combined with manual implementation.
[0067] The aforementioned design optimization method establishes a connection between design parameters and geometric models, enabling automatic updating and reconstruction of the 3D model. This frees designers from repetitive, tedious, time-consuming, and error-prone design processes, significantly improving the efficiency, quality, and innovative potential of lightweight mirror design. By recording manual operations as Python command streams, extracting and organizing key information, and forming parameterized templates, the method addresses the issue of manual verification in the lightweight mirror structure design process, which is repetitive, tedious, time-consuming, and error-prone. This significantly improves the efficiency, quality, and innovative potential of lightweight mirror structure design.
[0068] See Figure 8 This disclosure provides a Python-based mirror design optimization system, including:
[0069] Determine the module, and determine the shape and material of the reflector;
[0070] The sketch design module is used to draw the reinforcing ribs 20, support holes 30 and outer edge frame 10 of the reflector using UG software to complete the design of the sketch parametric template of the reflector.
[0071] The solid modeling module is used to perform parametric feature curve stretching, solid merging, and solid trimming operations based on the parametric template of the mirror's sketch to obtain a parametric model of the mirror's back structure.
[0072] The mirror addition module is used to perform parametric modeling of the mirror surface (60°) to obtain a parametric model of the mirror surface.
[0073] The parameter set acquisition module is used to obtain the settable parameter set of the reflector;
[0074] The mirror structure optimization module is used to optimize the design of the mirror structure by updating the parameters in the parameter set.
[0075] In this embodiment, the determining module is specifically used to determine the shape and material of the reflector based on the application scenario of the reflector, the assembly space requirements of the reflector, and the structural load-bearing capacity of the reflector.
[0076] In this embodiment, the sketch design module is specifically used in the Python environment to create a new sketch using the Sketch function under the NXOpen class of UG software, based on the shape and material of the reflector determined by the determining module, and to create straight lines and curves using the CreateLine and CreateArc functions under the Curves class. The module then draws the reinforcing ribs 20, support holes 30, and outer edge boxes 10 in the sketch using an automated program.
[0077] In this embodiment, the entity modeling module is specifically used in the Python environment to stretch the feature curves in the sketch to a specified height using the CreateExtrudeBuilder function in the Features class, to achieve subtraction, intersection and merging between different parts of the entity through Boolean operations, and to trim the entity through Boolean operations to obtain a parametric model of the back structure of the reflector.
[0078] In this embodiment, the mirror adding module is specifically used in the Python environment to perform parametric modeling of mirror 60 according to the shape and material of the reflector determined by the determining module to obtain a parametric model of the mirror, and to add mirror 60 to the parametric model of the back of the reflector using Boolean operations to obtain a parametric model of the reflector.
[0079] In this embodiment, the settable parameters of the reflector include: reflector parameters, the position of the reinforcing rib 20, the number of reinforcing ribs 20, the size of the reinforcing rib 20, the position of the support hole 30, the number of support holes 30, the size of the support hole 30, the position of the outer edge frame 10, the number of outer edge frames 10, and the size of the outer edge frame 10. Furthermore, the settable parameters of the reflector also include: the solid color of the mirror surface 60, the display angle of the mirror surface 60, and the material of the mirror surface 60.
[0080] In this embodiment, the mirror structure optimization module is specifically used to modify the parameters in the parameter set to automatically obtain a mirror structure model; based on multiple mirror structure models, determine the optimal mirror structure model; and obtain the parameter set corresponding to the optimal mirror structure model.
[0081] In specific implementation, the Python-based mirror design optimization system can refer to the Python-based mirror design optimization method in any of the above embodiments to design the mirror. The specific implementation steps will not be repeated.
[0082] An electronic device can be implemented according to the method of this disclosure, the electronic device comprising: a memory; one or more processors; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for executing the Python-based mirror design optimization method according to any of the above embodiments.
[0083] This disclosure also provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the steps of the Python-based mirror design optimization method described in any of the above embodiments.
[0084] This disclosure discloses a Python-based method, system, and medium for mirror design optimization. By modeling parametric models of the back and mirror surfaces of the mirror using Python, and modifying the parameters according to the mirror's configurable parameter set to obtain an updated mirror structure, the design of the mirror structure is optimized. This design transforms the highly manual, experience-dependent, and repetitive model-based mirror structure design optimization process into a parameter-driven automated process. The mirror structure model can be generated or updated simply by modifying the parameter set, greatly reducing repetitive manual operations, shortening the design iteration cycle, significantly improving design efficiency, reducing mirror R&D costs, significantly reducing the probability of model errors or update failures, and facilitating full exploration of the design space, thus improving the design effect of the mirror.
[0085] Specifically:
[0086] The manual, repetitive, and tedious modeling and verification process is transformed into a parameter-driven automated workflow. Models can be generated or updated with a single click by modifying external parameters, significantly reducing repetitive manual operations, shortening design iteration cycles, and greatly improving design efficiency.
[0087] Parametric modeling based on code ensures strict consistency of the design logic. All dimensions and topological relationships of the model are precisely controlled by a system of parameters and constraints, fundamentally avoiding errors such as oversight and misoperation that may occur in manual operation, and significantly improving the accuracy and reliability of the design.
[0088] A complete system of dimensional relationships and constraints was established, enabling any local modifications to the model to be automatically and correctly propagated throughout the entire model. This strong correlation ensures that the model maintains geometric rationality under any parameter adjustments, improving the overall integrity and quality of the design.
[0089] Parametric-driven design enables designers to easily explore various design variables and lightweight solutions (such as different stiffener thicknesses, apertures, and layouts), and conduct rapid analysis and performance comparisons. This significantly reduces the cost of trying new solutions and provides ample room for structural innovation and optimal performance solutions.
[0090] By solidifying lightweight design methods for specific types of reflectors into parametric modeling code and a parametric model library, a standardized design tool has been created. This not only lowers the design threshold, enabling even inexperienced designers to efficiently complete high-quality designs, but also digitally preserves and passes on the design knowledge and experience of experts.
[0091] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0092] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0093] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this patent should be determined by the appended claims.
Claims
1. A Python-based mirror design optimization method, characterized in that, The method comprises the following steps: Step 1, determining the shape and material of the mirror; Step 2, using UG software to draw the reinforcing ribs, support holes and outer edge frame of the mirror to complete the design of the sketch parametric template of the mirror; Step 3, performing parameterized feature curve stretching, entity merging and entity pruning operations according to the sketch parametric template of the mirror to obtain a mirror back structure parametric model; Step 4, performing mirror surface parametric modeling to obtain a mirror surface parametric model; Step 5, obtaining settable parameters of the mirror to form a settable parameter set; Step 6, updating the mirror structure by modifying the parameters in the parameter set to optimize the design of the mirror structure.
2. The Python-based mirror design optimization method of claim 1, wherein, The step 1 specifically comprises: determining the shape and material of the mirror according to the application scenario of the mirror, the assembly space requirement of the mirror and the structure bearing capacity of the mirror.
3. The Python-based mirror design optimization method of claim 1, wherein, The step 2 specifically comprises: in a Python environment, creating a new sketch using the Sketch function under the NXOpen class of UG software according to the shape and material of the mirror determined in step 1, creating straight lines and curves using the CreateLine and CreateArc functions under the Curves class, and drawing the reinforcing ribs, support holes and outer edge frame in the sketch through an automated program.
4. The Python-based mirror design optimization method of claim 1, wherein, The step 3 specifically comprises: in a Python environment, stretching the feature curves in the sketch to a specified height using the CreateExtrudeBuilder function in the Features class, realizing the subtraction, intersection and merging between each part of the entity through Boolean operations, and trimming the entity through Boolean operations to obtain a mirror back structure parametric model.
5. The Python-based mirror design optimization method of claim 1, wherein, The step 4 specifically comprises: in a Python environment, performing mirror surface parametric modeling to obtain a mirror surface parametric model according to the shape and material of the mirror determined in step 1, and adding the mirror surface to the mirror back parametric model through Boolean operations to obtain a mirror parametric model.
6. The Python-based mirror design optimization method of claim 1, wherein, The settable parameter set of the mirror comprises: the parameters of the mirror, the positions of the reinforcing ribs, the number of the reinforcing ribs, the sizes of the reinforcing ribs, the positions of the support holes, the number of the support holes, the sizes of the support holes, the positions of the outer edge frame, the number of the outer edge frame and the sizes of the outer edge frame.
7. The Python-based mirror design optimization method of claim 6, wherein, The settable parameter set of the mirror further comprises: the entity color of the mirror surface, the display angle of the mirror surface and the material of the mirror surface.
8. The Python-based mirror design optimization method of claim 1, wherein, The step 6 comprises: modifying the parameters in the parameter set to automatically obtain a mirror structure model; determining an optimal mirror structure model based on a plurality of mirror structure models; and obtaining a parameter set corresponding to the optimal mirror structure model.
9. A Python-based mirror design optimization system, characterized by, The method comprises: A determining module for determining the shape and material of the mirror; A sketch design module for using UG software to draw the reinforcing ribs, support holes and outer edge frame of the mirror to complete the design of the sketch parametric template of the mirror; An entity modeling module for performing parameterized feature curve stretching, entity merging and entity pruning operations according to the sketch parametric template of the mirror to obtain a mirror back structure parametric model; A mirror surface adding module for performing mirror surface parametric modeling to obtain a mirror surface parametric model; a parameter set obtaining module, configured to obtain a set of parameters of the mirror which can be set; a mirror structure optimization module, configured to update the mirror structure by modifying the parameters in the set of parameters, and perform design optimization of the mirror structure.
10. A computer-readable storage medium, the computer-readable storage medium comprising instructions, wherein, The instructions, when executed on a computer, cause the computer to perform each step of the Python-based mirror design optimization method of any one of claims 1-8.
Citation Information
Patent Citations
Automatic template generation method and system based on UG software
CN120805511A
Mould engineering drawing labeling system, method and equipment, storage medium and program product
CN121116298A