Python-based reflector design optimization method and system and medium

By using a Python-based method and system for mirror design optimization, the parametric modeling of mirrors is automated, solving the problems of low design efficiency and high cost in existing technologies, and achieving efficient and accurate mirror structure optimization.

CN121389375AActive Publication Date: 2026-01-23CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511958237.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-01-23
Estimated Expiration
2045-12-24

AI Technical Summary

Technical Problem

Existing mirror design methods rely on manual operation, resulting in low design efficiency, high cost, long development cycle, difficulty in fully exploring the design space, and susceptibility to errors.

Method used

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 sketch design, solid modeling, and mirror parameterization of the reflector are completed automatically to form a parameter set and optimize the reflector structure.

Benefits of technology

It greatly improves design efficiency, shortens the R&D cycle, reduces costs, reduces the probability of errors, makes it easier to explore design space, and enhances design effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121389375A_ABST
    Figure CN121389375A_ABST
Patent Text Reader

Abstract

The invention relates to a Python-based reflector design optimization method and system and a medium. The method comprises the following steps: determining the shape and the material of the reflector; a reinforcing rib, a supporting hole and an outer edge frame of the reflector are drawn through UG software to complete design of a sketch parameterization template of the reflector; according to the sketch parameterization template of the reflector, performing parameterization characteristic curve stretching, entity merging and entity trimming operation to obtain a reflector back structure parameterization model; performing mirror parametric modeling to obtain a mirror parametric model; obtaining settable parameters of the reflector to form a settable parameter set; the reflector structure is updated by modifying parameters in the parameter set, and design optimization of the reflector structure is carried out. According to the invention, the design iteration period is shortened, the design efficiency is improved, the research and development cost of the reflector is reduced, the probability of model errors or update failures is greatly reduced, the design space is easy to fully explore, and the design effect of the reflector is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of data processing, and in particular, to a mirror design optimization method, system and medium based on Python. BACKGROUND

[0002] Large-aperture lightweight mirrors are core components of high-end optical systems, widely used in astronomical observation, space exploration, remote sensing imaging and other fields. With the continuous improvement of the performance requirements of optical systems, the aperture of the mirror is increasing to meet the demand for higher resolution and higher sensitivity. However, the increase in the aperture of the mirror brings a series of challenges such as rapid weight increase, increased manufacturing difficulty, and significantly higher cost. Therefore, under the premise of ensuring optical performance, realizing lightweight design of the mirror has become one of the core topics in the field of optical instrument development.

[0003] The design of lightweight mirrors needs to find the best balance between weight reduction and performance maintenance. The mirror must have sufficient stiffness to resist self-weight deformation and micro-vibration in the service environment, while having good thermal stability to cope with temperature changes in the space environment. In addition, lightweight design also needs to consider the feasibility of manufacturing process and cost control. This usually means that the mirror structure is extremely complex, commonly using lightweight hole arrays in the form of back honeycomb, triangle or sector, supplemented by complex main back rib network to maintain surface accuracy. The complexity of this structure makes its three-dimensional modeling itself a formidable challenge.

[0004] The current computer-aided design (CAD) method based on manual operation seriously restricts the efficiency of lightweight design of mirrors for high-end optical systems and breakthroughs in innovation capability. Specifically, the traditional manual design method has the following limitations: Any minor design change, even modifying the size of a hole or the width of a rib, may require a large number of feature editing, sketch modification and array operation to be re-executed. The whole process is repetitive, tedious, time-consuming and prone to errors.

[0005] Each design iteration, scheme adjustment or size optimization means a lot of repetitive, tedious and error-prone modeling work, greatly prolonging the development cycle and increasing the development cost. Due to the high cost of modification, designers usually only try a very limited number of design schemes, relying on the experience of senior engineers, and it is difficult to fully explore the design space, which may miss better solutions; Mistakes in manual operation may cause the association between model features to be accidentally broken, resulting in model errors or update failures.

[0006] It can be seen that the existing caliber lightweight mirror design greatly prolongs the research and development cycle of the mirror, the research and development cost is high, and the design effect needs to be improved due to the difficulty in fully exploring the design space. Therefore, an urgent need exists for a mirror design optimization method and system based on Python. SUMMARY

[0007] Based on this, it is necessary to provide a mirror design optimization method and system based on Python in view of the above problems.

[0008] To solve the above problems, the present disclosure adopts the following technical solutions: In a first aspect, the present disclosure provides a mirror design optimization method based on Python, comprising 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 parameterization template of the mirror; Step 3, performing parameterized feature curve stretching, entity merging and entity pruning operations according to the sketch parameterization template of the mirror to obtain a mirror back structure parameterization model; Step 4, performing mirror surface parameterization modeling to obtain a mirror surface parameterization model; Step 5, obtaining the 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.

[0009] In a preferred embodiment, 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 structural bearing capacity of the mirror.

[0010] In a preferred embodiment, the step 2 specifically comprises creating a new sketch using the Sketch function under the NXOpen class of UG 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.

[0011] In a preferred embodiment, the step 3 specifically comprises stretching the feature curves in the sketch to a specified height using the CreateExtrudeBuilder function in the Features class under the Python environment, realizing subtraction, intersection and merging between entities through Boolean operations, and trimming the entities through Boolean operations to obtain the mirror back structure parameterization model.

[0012] In a preferred embodiment, the step 4 specifically comprises: in a Python environment, performing mirror parametric modeling according to the shape and material of the mirror determined in the step 1 to obtain a mirror parametric model, and adding the mirror to the back of the mirror parametric model by using a Boolean operation to obtain a mirror parametric model.

[0013] In a preferred embodiment, the set of settable parameters of the mirror includes: parameters of the mirror, positions of the reinforcing ribs, numbers of the reinforcing ribs, sizes of the reinforcing ribs, positions of the support holes, numbers of the support holes, sizes of the support holes, positions of the outer edge frames, numbers of the outer edge frames, and sizes of the outer edge frames.

[0014] In a preferred embodiment, the set of settable parameters of the mirror further includes: a color of the mirror surface entity, a display angle of the mirror surface, and a material of the mirror surface.

[0015] In a preferred embodiment, the step 6 comprises: modifying the parameters in the set of parameters to automatically obtain a mirror structure model; determining an optimal mirror structure model based on a plurality of mirror structure models; and obtaining a set of parameters corresponding to the optimal mirror structure model.

[0016] In a second aspect, the present disclosure provides a Python-based mirror design optimization system, comprising: A determination module for determining the shape and material of the mirror; A sketch design module for designing a sketch parametric template of the mirror by drawing the reinforcing ribs, the support holes, and the outer edge frames of the mirror using UG software; 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 back structure parametric model of the mirror; A mirror surface adding module for performing mirror parametric modeling to obtain a mirror parametric model; A parameter set obtaining module for obtaining a set of settable parameters of the mirror; A mirror structure optimization module for updating the mirror structure by modifying the parameters in the set of parameters to perform design optimization of the mirror structure.

[0017] In a third aspect, the present disclosure provides a computer-readable storage medium comprising instructions, wherein when the instructions are executed on a computer, the computer performs each step of the Python-based mirror design optimization method of the first aspect.

[0018] 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

[0019] Figure 1 This is a flowchart illustrating a method in one embodiment of the present disclosure; Figure 2 This is a schematic diagram of the parametric design result of a method in one embodiment of this disclosure; Figure 3 This is a schematic diagram of the preliminary entity modeling result of a method in one embodiment of this disclosure; Figure 4 This is a schematic diagram of the entity modeling result of a method in one embodiment of this disclosure; 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; 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; 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; Figure 8 This is a schematic diagram of the system structure in one embodiment of the present disclosure; 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

[0020] The technical solutions of this disclosure will now be described in detail with reference to the accompanying drawings and preferred embodiments.

[0021] See Figure 1 This disclosure provides a Python-based method for optimizing mirror design, the method comprising: Determine the shape and material of the reflector; The design of the sketch parameterization template of the mirror is completed by drawing the reinforcing ribs 20, support holes 30 and outer edge frame 10 of the mirror using UG software; The parameterized feature curve stretching, entity merging and entity pruning operations are performed according to the sketch parameterization template of the mirror to obtain a parameterized model of the mirror back structure; The mirror surface 60 parameterization modeling is performed to obtain a mirror surface parameterization model; The settable parameters of the mirror are obtained, and the settable parameters of the mirror form a settable parameter set; The mirror structure is updated by modifying the parameters in the settable parameter set, and the design optimization of the mirror structure is performed.

[0022] The Python-based mirror design optimization method of the present embodiment will be described below.

[0023] Firstly, it can be understood that the mirror includes a mirror surface 60 and a mirror back structure, and the mirror back structure includes reinforcing ribs 20, support holes 30 and an outer edge frame 10. Generally, the mirror is a large-aperture lightweight mirror, that is, the mirror surface 60 is a large-aperture mirror surface 60, and the mirror back structure is a lightweight mirror back structure.

[0024] Step 1, model selection, determine the shape, support method and material of the mirror: from the aspects of application scene, assembly space requirement and structure bearing capacity, etc., the shape, material and support method of the mirror are reasonably selected, and this example is a long strip-shaped mirror lightweight parameterization model design.

[0025] Determining the shape of the mirror includes determining the shape of the mirror surface 60 and the shape of the mirror back structure, and determining the shape of the mirror back structure is also determining the support method of the mirror; the support method of the mirror refers to the frame information of the mirror back structure, including lightweight structure information. The support method includes the arrangement method of the support holes 30 and the number of the support holes 30.

[0026] Determining the material of the mirror includes determining the material of the mirror surface and determining the material of the mirror back structure.

[0027] Step 2, sketch parameterization template design in Python environment: according to the shape and material of the mirror determined in step 1, the parameterization reinforcing ribs 20, support holes 30 and edge frame are drawn using UG software, the drawing process is expressed in the form of Python command stream and function, the sketch parameterization design is completed, and the sketch design code template is formed.

[0028] In the sketch parametric design, in the Python environment, a new sketch is created by using the Sketch function under the NXOpen class of UG (Unigraphics, referred to as Siemens NX), a straight line and a curve are created by using the CreateLine and CreateArc functions under the Curves class, an automatic program is formed by writing a command stream, and the reinforcing rib 20, the support hole 30 and the outer edge frame 10 are drawn in the sketch under the code driving. Thus, a sketch parametric design template (expressed in the form of a Python command stream and a function) is formed. By controlling the program input parameters, the parametric control of the positions, quantities and sizes of the reinforcing rib 20, the support hole 30 and the outer edge frame 10 is realized, and the modification of the sketch can be automatically and quickly completed by modifying the input parameters in the Python script. The sketch parametric design result is shown in FIG. 1. Figure 2 The sketch includes the outer edge frame 10, a plurality of reinforcing ribs 20 (the reinforcing rib 20 includes a horizontal rib, a vertical rib and an inclined rib), a plurality of (three) support holes 30 and a plurality of process holes 40.

[0029] Step 3, perform the entity parametric template design. The design process is expressed in the form of a Python command stream and a function, the parametric modeling of the lightweight mirror back structure is completed, and an entity design code template is formed. In the entity parametric design, the feature curves in the sketch are stretched to a specified height by using the CreateExtrudeBuilder function (a core function for creating or editing a stretching feature) in the Features class, the subtraction, intersection and merging between the parts of the entity are realized by a Boolean operation, and the preliminary automatic entity modeling is completed. The preliminary entity modeling result is shown in FIG. 2. Figure 3 In order to meet the lightweight design requirements, the entity needs to be trimmed by a Boolean operation, so as to complete the automatic entity modeling and form an entity parametric design template, that is, a mirror back parametric model, which is expressed in the form of a Python command stream and a function. By parametrically controlling the entity thickness and the lightweight edge cutting amount in the Python script, the input parameters are modified, and the modification of the entity can be automatically and quickly completed. The entity modeling result is shown in FIG. 3. Figure 4 The content shown in FIG. 3 includes a trimming body 50 obtained by trimming the entity. Figure 4

[0030] ​Step 4, the final mirror surface parameterization model design. After completing the lightweight mirror back structure design, the mirror surface 60 needs to be designed according to the shape and material of the mirror determined in step 1. The mirror surface 60 is added to the mirror back structure parameterization model by using Boolean operation. According to the actual needs, the mirror surface 60 is added to the lightweight mirror back structure, and various properties are set. The design process is expressed in the form of Python command stream and function, and finally the parameterization modeling of the lightweight mirror is completed, forming the mirror structure design code template. In this example, the mirror surface 60 is a spherical surface; 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 according to the parameterization specified curvature radius and mirror surface 60 thickness and other information. The mirror surface 60 is added to the entity model established in step 3 by using Boolean operation, so as to realize the automatic parameterization mirror modeling, form the mirror surface parameterization design template (expressed in the form of Python command stream and function), and the result of the mirror surface parameterization modeling is as shown in Figure 5 . By modifying the input parameters in the Python script, the modification of the mirror surface 60 design can be completed. Through parameterization method, the entity color of the mirror surface 60, the display angle of the mirror surface 60 and the material of the mirror surface 60 and other attribute information can also be set. The parameterization modeling result of the long strip lightweight mirror is as shown in Figure 6 .

[0031] Based on the above steps, the mirror lightweight structure parameterization driven design is carried out, the key size and topological relationship in the model are parameterized, the size association and constraint system is established, and the corresponding parameterization modification is made to the Python modeling code, forming the feature-based parameterization model, and generating the parameterization template of the mirror structure design (expressed in the form of Python command stream and function).

[0032] Step 5, the input parameters in the above process are sorted, and the settable parameter set of the mirror can be obtained, which can be called the settable parameter set of the mirror parameterization model, that is, the complete mirror lightweight structure parameterization design template (expressed in the form of Python command stream and function), and thus the mirror parameterization model is obtained. The settable parameter set of the mirror includes the position, number and size of the reinforcing rib 20, the support hole 30 and the outer edge frame 10, and also includes the parameters of the mirror. The parameters of the mirror include the curvature radius of the mirror surface 60, the thickness of the mirror surface 60, the reflectivity, the surface roughness, the surface flatness, and the material of the mirror.

[0033] If the mirror structure design needs to be modified, it is not necessary to manually model again. Only the corresponding parameters in the Python script need to be modified, and then the program is run by UG to complete the update of the mirror structure design. For example, if the number of lateral reinforcing ribs 20 on the back is increased from three to five, the modeling result can be obtained by re-executing the program modeling as shown in FIG. 10, wherein ①, ②, ③, ④ and ⑤ are five reinforcing ribs 20. Figure 7

[0034] Step 6, updating the mirror structure, and performing design optimization of the mirror structure. The mirror structure is updated by modifying the parameters in the parameter set, and a new mirror structure model is automatically generated each time the parameters are modified. The mirror structure model is a model including the mirror back structure and the mirror surface. According to the generated mirror structure model, the design optimization of the mirror structure is performed.

[0035] Only the parameters in the parameter set need to be modified according to the requirements, and the automatic modeling can be realized by UG without manual operation. According to the adjustment of the parameter set for multiple times, multiple mirror structure models are obtained. According to the application environment and purpose of the mirror, the optimal mirror structure model is determined, that is, the optimal parameter set is determined.

[0036] It can be understood that the design optimization of the mirror structure can include the step of determining a new parameter set and obtaining a new mirror structure model according to the mirror structure model obtained according to the parameter set.

[0037] In this embodiment, the whole process of step 6 can be automatically realized or realized in combination with manual operation.

[0038] The above design optimization method realizes the automatic update and reconstruction of the three-dimensional model by establishing the association between the design parameters and the geometric model, thereby liberating the designers from the repeated, tedious, time-consuming and error-prone design process, and significantly improving the efficiency, quality and innovation potential of the mirror lightweight design. By recording the manual operation as a Python command stream, extracting and organizing the key information, and forming a parameterized template, the verification of the mirror lightweight structure design process is solved. The design process is repeated, tedious, time-consuming and error-prone, and the efficiency, quality and innovation potential of the mirror lightweight structure design are significantly improved.

[0039] Referring to Figure 8 , the disclosure provides a Python-based mirror design optimization system, which comprises: A determination module for determining the shape and material of the mirror; A sketch design module for drawing the reinforcing ribs 20, support holes 30 and outer edge frame 10 of the mirror by using UG software to complete the design of the sketch parameterized template of the mirror. ​a solid modeling module configured to perform parameterized feature curve stretching, solid merging and solid trimming operations according to the sketch parameterized template of the mirror, to obtain a parameterized model of a back structure of the mirror; a mirror surface adding module configured to perform parameterized modeling of the mirror surface 60 to obtain a parameterized model of the mirror surface; a parameter set obtaining module configured to obtain a set of parameters of the mirror that can be set; a mirror structure optimizing module configured to update the mirror structure by modifying the parameters in the set of parameters, to perform design optimization of the mirror structure.

[0040] In this embodiment, the determining module is specifically configured to determine the shape and material of the mirror according to an application scenario of the mirror, assembly space requirements of the mirror and a structure bearing capacity of the mirror.

[0041] In this embodiment, the sketch designing module is specifically configured to, in a Python environment, create a new sketch by using a Sketch function under an NXOpen class of UG software according to the shape and material of the mirror determined by the determining module, create straight lines and curves by using CreateLine and CreateArc functions under a Curves class, and draw the reinforcing ribs 20, the support holes 30 and the outer edge frame 10 in the sketch by an automatic program.

[0042] In this embodiment, the solid modeling module is specifically configured to, in the Python environment, stretch the feature curves in the sketch to a specified height by using a CreateExtrudeBuilder function in a Features class, realize subtraction, intersection and merging among solid parts by a Boolean operation, and trim the solid by the Boolean operation, to obtain the parameterized model of the back structure of the mirror.

[0043] In this embodiment, the mirror surface adding module is specifically configured to, in the Python environment, perform parameterized modeling of the mirror surface 60 according to the shape and material of the mirror determined by the determining module, to obtain the parameterized model of the mirror surface, and add the mirror surface 60 to the parameterized model of the back structure of the mirror by a Boolean operation, to obtain the parameterized model of the mirror.

[0044] In this embodiment, the set of parameters of the mirror that can be set includes parameters of the mirror, positions of the reinforcing ribs 20, numbers of the reinforcing ribs 20, sizes of the reinforcing ribs 20, positions of the support holes 30, numbers of the support holes 30, sizes of the support holes 30, positions of the outer edge frame 10, numbers of the outer edge frame 10 and sizes of the outer edge frame 10. Further, the set of parameters of the mirror that can be set also includes a solid color of the mirror surface 60, a display angle of the mirror surface 60 and a material of the mirror surface 60.

[0045] In this embodiment, the mirror structure optimization module is specifically configured to modify the parameters in the parameter set to automatically obtain a mirror structure model; determine an optimal mirror structure model based on a plurality of mirror structure models; and obtain a parameter set corresponding to the optimal mirror structure model.

[0046] The Python-based mirror design optimization system can be used to design a mirror in the implementation of any of the above embodiments, and the specific implementation steps are not repeated.

[0047] The method according to the present disclosure can implement an electronic device, which includes a memory, one or more processors, and 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, and the one or more programs include instructions for executing the Python-based mirror design optimization method according to any of the above embodiments.

[0048] The present 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.

[0049] The Python-based mirror design optimization method, system and medium of the present disclosure can model the mirror back parameterization model and the mirror surface parameterization model based on Python, modify the parameters according to the settable parameter set of the mirror to obtain an updated mirror structure, and then perform design optimization of the mirror structure. Such design can convert the mirror structure design optimization process based on modeling, which is extremely dependent on manual operation, the experience of senior engineers and is repetitive and tedious, into an automatic process driven by parameters. The mirror structure model can be generated or updated by modifying the parameter set, which greatly reduces repetitive manual operation, shortens the design iteration cycle, greatly improves the design efficiency, reduces the research and development cost of the mirror, greatly reduces the probability of model error or update failure, and easily realizes full exploration of the design space, thereby improving the design effect of the mirror.

[0050] Specifically: The modeling and verification process, which is dependent on manual operation and is repetitive and tedious, is converted into an automatic process driven by parameters. The model can be generated or updated by modifying external parameters, which greatly reduces repetitive manual operation, shortens the design iteration cycle, and greatly improves the design efficiency. Based on code parameterized modeling, the strict consistency of design logic is ensured. All dimensions and topological relationships of the model are accurately controlled by parameters and constraint system, fundamentally avoiding errors such as negligence and misoperation in manual operation, and significantly improving the accuracy and reliability of the design; A complete size association and constraint system is established, so that any local modification of the model can be automatically and correctly transmitted to the entire model. This strong association ensures that the model can maintain geometric reasonableness under any parameter adjustment, improving the overall integrity and quality of the design; Parameterization driving enables designers to conveniently explore various design variables and lightweight schemes (such as different rib thickness, hole diameter, layout, etc.), perform rapid analysis and performance comparison. This greatly reduces the cost of trying new schemes, providing a broad space for structural innovation and performance optimization; The specific type of mirror lightweight design method is solidified into parameterized modeling code and parameterized model library, forming a standardized design tool. This not only reduces the design threshold, enabling inexperienced designers to efficiently complete high-quality designs, but also digitizes and inherits the design knowledge and experience of experts.

[0051] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0052] The technical features of the above-described embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as the combination of technical features does not exist contradictory, it should be considered as the scope of the disclosure.

[0053] The above-described embodiments only express several implementation manners of the disclosure, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the disclosure, some modifications and improvements can be made, which are within the protection scope of the disclosure. Therefore, the protection scope of the patent of the disclosure should be subject to the appended claims.

Claims

1. A Python-based method for optimizing mirror design, characterized in that, Includes the following steps: Step 1: Determine the shape and material of the reflector; 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. 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. Step 4: Perform parametric modeling of the mirror surface to obtain the parametric model of the mirror surface; Step 5: Obtain the settable parameters of the reflector and form a set of settable parameters; Step 6: Update 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 according to claim 1, characterized in that, 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.

3. The Python-based mirror design optimization method according to claim 1, characterized in that, Step 2 specifically includes: in the 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 the UG software, 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 through an automated program.

4. The Python-based mirror design optimization method according to claim 1, characterized in that, 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, using Boolean operations to trim the entity, and obtaining the parametric model of the back structure of the reflector.

5. The Python-based mirror design optimization method according to claim 1, characterized in that, Step 4 specifically includes: in the 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.

6. The Python-based mirror design optimization method according to claim 1, characterized in that, The settable parameters of the reflector include: 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.

7. The Python-based mirror design optimization method according to claim 6, characterized in that, The settable parameters of the reflector also include: the solid color of the mirror, the mirror display angle, and the material of the mirror.

8. The Python-based mirror design optimization method according to claim 1, characterized in that, Step 6 includes: modifying the parameters in the parameter set to automatically obtain the 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.

9. A mirror design optimization system based on Python, characterized in that, include: Determine the module, and determine the shape and material of the reflector; 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. 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. The mirror addition module is used to perform parametric modeling of mirrors to obtain parametric mirror models; The parameter set acquisition module is used to obtain the settable parameters of the reflector; The mirror structure optimization module is used to optimize the design of the mirror structure by updating the parameters in the parameter set.

10. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on a computer, the computer performs each step of the Python-based mirror design optimization method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Super-light optimization design method of light reflector

    CN107272193A

  • Design method of space reflector with flexible support

    CN111025524A

  • Free pupil generation method for lithography machine illumination system

    CN112462577A

  • 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