Parametric modeling method for free curve surface
Through attribute parameters and generated models based on curve objects, combined with template customization and skin processing, the problem of difficulty in processing complex free-form curves and surfaces with existing technology is solved, and complex parametric modeling in aircraft, ships and other industries is realized. , which improves the accuracy and flexibility of model construction.
Patent Information
- Application Number
- CN202410714737.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
AI Technical Summary
Existing geometric parametric modeling methods are difficult to handle complex free-form curve and surface parametric models. Especially in the optimization design of customized industries such as aircraft, ships and turbines, there is a lack of professional and comprehensive methods, resulting in model Construction errors and difficulty controlling topological relationships.
Through attribute parameters and generation models based on curve objects, free-type source curve objects are created, and free-type metasurfaces are generated through template customization and skinning processing. Scripting language and curve engine technology are used to achieve parametric modeling of complex surfaces. Ensure model topology stability and flexibility.
It has realized the ability to construct parametric models of complex surfaces, overcomes the shortcomings of incorrect internal topological relationships in parametric models, can build models with engineering significance in industries such as ships and aircraft, and has the modeling tool capabilities for parametric design of fluid configurations. Flexible and broad application.
Smart Images

Figure CN118709286A
Abstract
Description
Technical Field
[0001] The invention relates to the field of geometric parameterized modeling, in particular to a parameterized modeling method for free-form curves and surfaces. Background Art
[0002] The demand for geometric parametric modeling stems from engineering practice. Whether it is the sketch design of the CAD system or the optimization design of the CAE system, it is inseparable from the support of geometric parametric models. At present, geometric parametric modeling mainly includes variable geometry method based on geometric constraint model, process reconstruction method based on historical modeling process and artificial intelligence method based on geometric reasoning model.
[0003] The variable geometry method based on the geometric constraint model is relatively simple and suitable for processing relatively regular simple geometric models, such as quadratic arcs, spheres, cylinders, cones and their Boolean operations. It is often used in the construction of CAD system parts libraries, but is not suitable for processing complex geometric models, especially parametric models involving free-form curves and surfaces.
[0004] The method based on the historical modeling process is usually called the parametric history mechanism. This method mainly relies on the automatically recorded modeling process and the obtained variable information when remodeling. After modifying the variables, the new model is automatically rebuilt according to the previous construction process. This method is similar to the secondary development of modeling software, which is convenient for users to quickly modify the model. The disadvantage is that it is difficult to control the internal topological relationship of the parametric model, which is prone to erroneous results, and it cannot be separated from the original modeling environment, which is not conducive to the automatic generation of the model.
[0005] The artificial intelligence method based on the geometric reasoning model is a rule-based reasoning method that describes the geometric model with a set of constraints. In the reasoning process, the geometric shape constraint relationship described by the first-order predicate logic is stored in the fact base, and the rules are selected from the rule base by the reasoning engine and then applied to the existing facts; after the reasoning is completed, the new conclusion will be used as the current new fact, and the reconstructed entity will be obtained. However, the establishment of the fact base and the rule base usually depends on engineering experience and large sample learning process. For customized industries such as ships and aircraft, this method has not yet been widely used.
[0006] Therefore, considering the problems existing in the current parametric modeling methods and the actual needs for geometric parametric modeling in the optimized design of fluid configurations such as aircraft, ships, and turbines, a more professional, comprehensive, and engineering-practical parametric modeling method is needed to solve or alleviate the defects of the existing technology and improve the level and capabilities of parametric modeling. Summary of the invention
[0007] In view of the above problems and technical requirements, the inventors have proposed a parametric modeling method for free-form curves and surfaces to meet the actual needs of geometric parametric modeling for the optimization design of fluid configurations such as aircraft, ships, and turbines, and to solve the technical defects of the current parametric modeling methods. The technical solution of the present invention is as follows:
[0008] A parametric modeling method for free-form curves and surfaces comprises the following steps:
[0009] Create free-form source curve objects based on the attribute parameters and generation model of the curve objects;
[0010] Get different plane section curves or spatial distribution curves based on free-form source curve objects;
[0011] Customize the plane section curve or the space distribution curve by template, and create a new free-form curve object through the template file. The new free-form curve object includes a combination of multiple plane section curves or a combination of multiple space distribution curves with fixed topological structure.
[0012] Skin the new freeform curve object to generate a freeform metasurface.
[0013] A further technical solution is to create a free-type source curve object based on the attribute parameters and generation model of the curve object, including:
[0014] Determine the attribute parameters and generation model of the curve object based on the constructed geometry class system, which includes custom geometry entity types, different geometry objects under each type, and corresponding geometry transformation methods and parameters;
[0015] Based on the attribute parameters and generation model of curve objects, a script language for creating free-type source curve objects is designed;
[0016] The creation of free-type source curve objects is achieved by parsing the script language.
[0017] A further technical solution is to design a scripting language for creating free-type source curve objects based on the attribute parameters and generation model of the curve objects, including:
[0018] Input the attribute parameters of the curve object in text form, and obtain the attribute parameter values of the curve object by parsing the attribute parameter text;
[0019] Define the name of the object to be created, and design a script language for creating free-type source curve objects in the form of meta-commands based on the attribute parameter values and generation model of the curve object. The script language includes the name, type and generation model of the object to be created, and the name and text of the attribute parameters to be set.
[0020] A further technical solution is to obtain different plane section curves or spatial distribution curves based on the free-type source curve object, including:
[0021] Select several points in the mapping interval [0,1], and calculate several groups of attribute parameter values according to the attribute parameter distribution function of the free source curve;
[0022] Several sets of attribute parameter values are input into the generation model of the free-type source curve to obtain several plane section curves or space distribution curves.
[0023] A further technical solution is to create a property parameter distribution function of a free-type source curve, including:
[0024] Different combinations of attribute parameter values are input into the generation model of the free-type source curve to obtain different plane section curves or spatial distribution curves;
[0025] Map the spatial distribution of this set of plane section curves or spatial distribution curves to the interval [0,1], so as to obtain the value distribution of each attribute parameter in the free source curve in the interval [0,1], where 0 corresponds to the starting curve of the set of curves and 1 corresponds to the ending curve of the set of curves;
[0026] The value distribution function of each attribute parameter in the interval [0,1] is functionalized to obtain the attribute parameter distribution function, and each attribute parameter in the free source curve corresponds to an attribute parameter distribution function.
[0027] A further technical solution is to customize the plane section curve or the spatial distribution curve in a template, including:
[0028] Extract several free-form source curve objects that have been created based on the new free-form curve objects released to the outside world;
[0029] Select the required attributes from the free-type source curve object as the attribute parameters of the new free-type curve object. The unselected attributes use the original attribute parameter values of the corresponding free-type source curve object as default values.
[0030] A customized template file script is created based on the selected attributes and the generation model of the respective free-form source curves.
[0031] Its further technical solution is that the method further comprises:
[0032] Select the defined attribute parameter name or geometric object name and put it in the attribute parameter text of the free-type source curve object. By referencing the attribute parameter or geometric object, the free-type source curve object can be automatically updated when the attribute parameter text is parsed.
[0033] Among them, the defined attribute parameters are used as non-visual objects with their own values and ranges; the defined geometric objects are used as visual objects.
[0034] Its further technical solution is that the method further comprises:
[0035] Set the creation order of the objects to be created. The rules are:
[0036] If the object to be created does not reference any object, its creation order is set to 0; if the object to be created references other objects, its creation order is the creation order of the referenced object plus 1; the lower the creation order of the object to be created, the earlier its creation sequence; objects with the same creation order are created at the same time.
[0037] The beneficial technical effects of the present invention are:
[0038] Compared with the three current parametric modeling methods, the parametric modeling method for free-form curves and surfaces provided in the present application has the ability to construct parametric models of complex surfaces, and overcomes the disadvantage that the internal topological relationship of the parametric model is prone to erroneous results through template customization; through application verification, the present invention can establish complex parametric models with engineering parameter significance for customized industries such as ships and aircraft, and is flexible in application and has the ability to serve as a modeling tool for parametric design of fluid configurations, and can be widely used. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of the parametric modeling method of free-form curves and surfaces provided in this application.
[0040] Figure 2 It is a class system diagram of the geometric model provided in this application.
[0041] Figure 3 It is a four-position NACA airfoil curve shape diagram provided in this application.
[0042] Figure 4 It is a curve diagram of the attribute parameter distribution function corresponding to each airfoil parameter provided in this application.
[0043] Figure 5 It is a plane cross-sectional curve diagram of the propeller blade curved surface provided by the present application.
[0044] Figure 6 It is a property parameter distribution function curve diagram corresponding to the blade pitch, longitudinal inclination angle and lateral inclination angle parameters provided in this application.
[0045] Figure 7 This is a propeller blade surface modeling diagram provided in this application. DETAILED DESCRIPTION
[0046] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.
[0047] Please refer to Figure 1 As shown, the present application provides a parametric modeling method for free-form curves and surfaces, which specifically includes the following steps:
[0048] Step 1: Create a free-form source curve object based on the attribute parameters of the curve object and the generation model.
[0049] Step 1.1: Determine the attribute parameters and generation model of the curve object based on the constructed geometry class system.
[0050] Geometric entities include points, lines, surfaces, and bodies. Each entity type includes different geometric objects. For example, line types include line segments, rays, straight lines, polylines, B-spline lines, NURBS lines, etc. All these visual objects, together with non-visual objects such as geometric transformation methods (such as TTransformBase and its subordinate classes) and parameters (such as TParameter), together constitute the class system of parametric geometric models (referred to as the geometric class system). Figure 2 As shown, another Figure 2 This is just an example, not all object types are included. The so-called free-form curves and surfaces mainly refer to curves and surfaces with irregular shapes that cannot be simply expressed in the form of first-order, second-order or higher-order polynomials (irrational or rational). Such objects are generally expressed in the form of B-splines or NURBS.
[0051] Step 1.2: Based on the attribute parameters and generation model of the curve object, a script language for creating free-type source curve objects is designed.
[0052] The core elements of an object are attributes and methods. For geometric entity objects, the attributes are set to the user input required to generate the entity, and the methods are set to the process of generating the geometric entity model (including analytical model and discrete model) according to the attribute parameters. Taking the TLine object as an example, its attribute parameters are the three-dimensional coordinates of the two endpoints, and its method is to generate the analytical model and discrete model of the line segment according to the coordinates of the two endpoints, that is, to generate the model, which is implemented by calling the function modelling(). For all objects inherited from TCurve, their analytical models are defined as NURBS curves, and their discrete models are defined as polylines obtained by discretizing the NURBS curves.
[0053] The definition of TSurface object is basically the same as TLine, both of which contain attribute parameters and modelling() function, but the types of attribute parameters and the contents of modelling() function are different. TBody in the class system represents body object, and its definition is basically the same, but the implementation is more complicated and involves Boolean operations between bodies, etc., which will not be introduced in detail here.
[0054] Because attribute parameters have various types, such as floating point type, two-dimensional point type, three-dimensional point type, Boolean type, etc., considering the convenience of program implementation and the simplicity of code, attribute parameters can use template types. At the same time, attribute parameters generally belong to input data. In this step, the attribute parameters of the curve object are input in text form, and the attribute parameter values of the curve object are obtained by parsing the attribute parameter text. Therefore, the template type of the attribute parameter can be inherited from a certain type of document class. Based on the document class, the template type of the attribute parameter is defined as follows:
[0055]
[0056] Among them, CDocu represents the document class, and m_value represents the attribute parameter value obtained by parsing the attribute parameter text m_text.
[0057] The introduction of documentation in attribute parameters lays the foundation for the design of scripting languages and their parsing engines, as well as for object reference and parameter modeling.
[0058] After completing the design of the object class and attribute class, you can get the meta-commands for creating geometric entity objects. The meta-commands can be divided into three categories, namely, object memory allocation, object attribute parameter setting, and object generation model establishment. Among them, memory allocation and generation model establishment each require one line of meta-commands, while setting attribute parameters requires multiple lines of meta-commands. The specific number of lines depends on the number of attributes of the object. Then, define the name of the object to be created, and design a script language for creating free-type source curve objects in the form of meta-commands in combination with the attribute parameter values and generation model of the curve object:
[0059] objectName=TObject(createOrder);
[0060] objectName.setPropertyName(propertyText);
[0061] objectName.modelling();
[0062] Among them, objectName indicates the name of the object to be created, TObject indicates the actual type of the object to be created, createOrder indicates the order of creation of the object to be created, PropertyName indicates the name of the property parameter to be set, and propertyText indicates the text of the property parameter to be set (i.e., m_text of CDocu, so as to parse and obtain its specific value). These three lines of script correspond to the three types of meta-commands of the object to be created. The creation order of the object to be created is introduced here to mainly solve the problem of creation sequence when referencing objects. The rules are: if the object to be created does not reference any object, its creation order is set to 0; if the object to be created references other objects, its creation order is the creation order of the referenced object plus 1; the lower the creation order of the object to be created, the earlier its creation sequence; objects with the same creation order have no distinction in creation time.
[0063] This embodiment still takes TLine as an example, and the script language for creating the object can be written as:
[0064] line = TLine(0);
[0065] line.setPointStart([3000.0,0.0,0.0]);
[0066] line.setPointEnd([100000.0,5000.0,10000.0]);
[0067] line.modelling();
[0068] Step 1.3: Create a free-type source curve object by parsing the script language.
[0069] According to the script language for creating geometric entity objects, a dedicated script parsing engine can be designed. The script parsing engine calls the corresponding meta-commands by parsing the script, and finally realizes the script-based object creation mechanism. The parsing focus of the script parsing engine is the attribute parameter text, such as "[3000.0,0.0,0.0]", "[100000.0,5000.0,10000.0]" in the above example.
[0070] Step 2: Build an object reference mechanism.
[0071] Attribute parameter objects and references based on object names are two important concepts of the object reference mechanism. Attribute parameters are non-visual objects that can have their own values and ranges. For example, define the name of a floating-point parameter object as doubleValue, and set m_value to represent the attribute parameter value of the object, m_up to represent the maximum value of the parameter range, and m_down to represent the minimum value of the parameter range. Attribute parameter objects can be used as independent variables of optimization algorithms. Setting their range attributes is equivalent to setting the range for the independent variables of the optimization algorithm, which facilitates the implementation of the optimization algorithm.
[0072] After the introduction of attribute text and script language, you can select the defined attribute parameter name and put it in the attribute parameter text of the free source curve object. Through this reference, when parsing the attribute parameter text, you can achieve the purpose of changing the geometric object attributes through the attribute parameter object, and then change the parsing model and discrete model of the free source curve object, that is, change the object itself. Suppose the floating point parameter object doubleValue is placed in the script language of the line segment object line, such as:
[0073] line = TLine(1);
[0074] line.setPointStart([3000.0,0.0,0.0]);
[0075] line.setPointEnd([100000.0,doubleValue,10000.0]);
[0076] line.modelling();
[0077] After the script language parses the string "doubleValue", it will replace the y coordinate of the end point of the line segment with the value of the attribute parameter object doubleValue. If the value of the attribute parameter object doubleValue is modified separately, the geometric object line can be automatically queried and modified through the reference relationship, realizing the automatic update of the free-type source curve object.
[0078] The above operation shows that by setting the value of attribute parameters, the parametric modeling function of geometric objects can be realized through the object reference mechanism. In actual applications, object references are not limited to attribute parameter objects. Any defined geometric object (visual object) can be referenced as long as it is referenced in a place suitable for the object to appear. For example, define a 3D point object named point3D, put the name of the geometric object in the attribute parameter text of the free-type source curve object, and the script of the line segment object line can be written as:
[0079] line = TLine(1);
[0080] line.setPointStart(point3D);
[0081] line.setPointEnd([100000.0,doubleValue,10000.0]);
[0082] line.modelling();
[0083] This script shows that the line segment object line references the point object point3D and the attribute parameter object doubleValue. Whether to modify the point object point3D or the attribute parameter object doubleValue, the line can be modified.
[0084] Step 3: Obtain different plane section curves or spatial distribution curves based on the free-form source curve object.
[0085] Assume that a group of plane section curves or spatial distribution curves can be calculated through a free-type source curve object, that is, different attribute parameter value combinations are input into the generation model of the free-type source curve to obtain different plane section curves or spatial distribution curves, and the spatial distribution of this group of plane section curves or spatial distribution curves is mapped to the interval [0,1] (0 corresponds to the starting curve of the group of curves, and 1 corresponds to the ending curve of the group of curves), so as to obtain the value distribution of each attribute parameter in the free-type source curve in the interval [0,1], and the value distribution of each attribute parameter in the interval [0,1] is functionalized to obtain the attribute parameter distribution function, which means that the continuous distribution of the free-type source curve object in the interval [0,1] can be obtained. This is the curve engine. The parametric construction of the free-type surface is driven by the design of the curve engine. The definition of the curve engine is as follows:
[0086]
[0087] Among them, m_sourceCurve represents a free-type source curve object with attribute parameters, m_curveFunctions represents the value distribution function of each attribute parameter, and each attribute parameter in the free-type source curve corresponds to an attribute parameter distribution function, whose horizontal coordinate range is generally [0,1], indicating the value range of the interval mapping parameter u, and the vertical coordinate represents the value of each attribute parameter. The function modelling (doubleu) can calculate a set of attribute parameter values based on the specific u and the value distribution function, and then calculate a plane section curve or a spatial distribution curve based on the set of parameter values and the free-type source curve object. This is also the working principle of the curve engine.
[0088] If the above curve engine is established, several points can be taken in the mapping interval [0,1], and several groups of attribute parameter values can be calculated according to the attribute parameter distribution function of the free source curve. The several groups of attribute parameter values are input into the generation model of the free source curve to obtain several plane section curves or spatial distribution curves.
[0089] Step 4: Customize the plane section curve or space distribution curve by template, and create a new free-form curve object through the template file.
[0090] In order to improve the shortcoming of the process reconstruction method that the topological structure of the geometric model will be changed, the present application proposes a template mechanism for user objects, which means that according to the script language of the generated object, a standard script (i.e., a template file) is formed after customization, and then this customized script can be used to create a new geometric object just like using a built-in geometric entity type (such as TLine), and the new free-form curve object contains a combination of multiple plane section curves with a fixed topological structure or a combination of multiple spatial distribution curves. The customization process includes: extracting several free-form source curve objects that have been created according to the new free-form curve object released to the outside, selecting the required attributes from the free-form source curve objects as the attribute parameters of the new free-form curve object, and the unselected attributes use the original attribute parameter values of the corresponding free-form source curve objects as default values, and then based on the selected attributes and the generation model of each free-form source curve, a customized template file script is formed, which is implemented in the same way as step 1.2 and will not be repeated here.
[0091] This mechanism can also be called a user template type, and its definition is as follows:
[0092]
[0093] Among them, m_userObjects represents the created free-type source curve objects, m_inputProperties represents which properties of these objects are selected as the properties of the user template class, and m_outputGeometries represents the geometric objects published by the template file. The implementation principle of the function modelling() is also very simple. It only needs to call the modelling() function of each free-type source curve object according to the selected properties.
[0094] Step 5: Skin the new free-form curve object to generate a free-form metasurface.
[0095] The type definition of the metasurface is roughly as follows:
[0096]
[0097] Among them, m_curveEngine indicates the curve engine used, m_countOfPoints indicates the number of skin curves to be generated, and the function modelling() will generate the NURBS expression of the surface and its discrete model based on the curve engine. Metasurfaces can also use the hyperbola engine and then generate hybrid surfaces to meet more complex engineering application requirements.
[0098] According to the above steps, this application takes the parametric modeling design of propeller blades as an example to verify the applicability of the parametric modeling method. First, the blade cross-sectional curve is designed, and a four-digit NACA (National Advisory Committee for Aeronautics) airfoil is used as the blade cross-sectional curve. The airfoil is determined by four attribute parameters: length, thickness, maximum camber, and maximum camber position camberPos. The four-digit NACA airfoil curve has a shape like Figure 3 As shown, the corresponding attribute parameter values are: length 1, thickness 0.1, maximum curvature 0, and maximum curvature position 0.4.
[0099] Based on the airfoil curve, a user template class templatNaca can be created, whose attributes are the airfoil length, thickness, maximum camber and maximum camber position. Then four distribution functions funcLength, funcThickness, funcCamber and funcCamberPos are created, corresponding to the four attributes of the user template class templatNaca. The independent variable range of the distribution function is [0,1], and the value range should be a single mapping of the independent variable, for example Figure 4 For propeller blade design, the mapping interval [0,1] has clear engineering significance. The interval mapping parameter u represents the relative diameter of the propeller. Figure 4 The range of the independent variables of each curve is [0.2,1], because the root of the propeller is the hub, and the blade section can be considered from 0.2 of the relative diameter of the propeller. Figure 4 The function curve shown indicates that along the propeller diameter direction, the relative thickness, relative maximum camber and maximum camber position of the blade airfoil remain unchanged.
[0100] Based on the user template class templatNaca and four distribution function curves, a curve engine engineNaca with four distribution function curves can be created. According to the curve engine engineNaca, a plane section curve of the blade surface can be generated, such as Figure 5However, based on the curve engine engineNaca, only the blade section expansion line can be created. For real propeller blades, it is necessary to project each blade section expansion line onto the corresponding cylinder and consider the distribution of blade pitch, longitudinal rake, and skew along the radial direction. The distribution functions of these three attribute parameters funcPitch, funcRake, and funcSkew are as follows: Figure 6 For this purpose, we design a blade surface type that inherits from TMetaSurface, and its definition is as follows:
[0101]
[0102] Among them, m_pitch is the pitch distribution curve, m_rake is the longitudinal skew distribution curve, and m_skew is the skew distribution curve. The function modelling() will call the curve engine of the base class TMetaSurface to generate the cross-sectional development line, and combine the distribution curves of the blade pitch, longitudinal skew angle, and skew angle to transform each cross-sectional curve to the appropriate position, and finally generate the NURBS expression of the blade surface and its discrete model. Curve transformation, NURBS surface generation and its triangulation discretization are supported by the geometric modeling platform.
[0103] The propeller blade surface finally created is as follows Figure 7 As shown in the figure, the generated surface is a variable pitch propeller blade with a certain longitudinal inclination and skew. From the modeling process, it can be seen that the shape of the blade can be changed by adjusting the length of the cross-section development line, the relative thickness, the relative maximum camber, the distribution of the maximum camber position, or adjusting the distribution of the blade pitch, longitudinal inclination angle, and skew angle.
[0104] The parametric modeling method for free-form curves and surfaces provided by the present application is adopted. By introducing the document class to construct the object class and its attributes of the model, a model construction method based on meta-commands (i.e., script commands) is established, the parametric modeling function is realized, and a template mechanism for user objects is designed to avoid changes in the topological structure of the original model, forming the basis for the parametric modeling mechanism of free-form geometric objects; through the object reference mechanism and curve engine technology, the parametric modeling mechanism of free-form surfaces is finally realized. Compared with the traditional parametric modeling method, the parametric modeling method provided by the present application can accurately establish complex parametric geometric models, and can quickly optimize the model, shorten the model construction cycle, and does not change the topological structure of the original model, thereby ensuring the correctness of the model. The mechanism of the present invention is convenient to operate in practice, has the conditions for wide promotion, and promotes the improvement of the ability of parametric modeling design.
[0105] The above is only a preferred embodiment of the present application, and the present invention is not limited to the above embodiments. It is understood that other improvements and changes directly derived or associated by those skilled in the art without departing from the spirit and concept of the present invention should be considered to be included in the protection scope of the present invention.
Claims
1. A parametric modeling method for free-form curves and surfaces. It is characterized in that The method comprises: Create free-form source curve objects based on the attribute parameters and generation model of the curve objects; Obtain different plane section curves or spatial distribution curves based on the free-type source curve object; Customizing the plane section curve or the spatial distribution curve by template, and creating a new free-form curve object through the template file, wherein the new free-form curve object includes a combination of multiple plane section curves or a combination of multiple spatial distribution curves with a fixed topological structure; The new free-form curve object is subjected to skinning processing to generate a free-form meta-surface.
2. The parametric modeling method for free-form curves and surfaces according to claim 1, It is characterized in that The step of creating a free-type source curve object based on the attribute parameters of the curve object and the generation model includes: Determine attribute parameters and generation models of curve objects based on a constructed geometry class system, wherein the geometry class system includes custom geometry entity types, different geometry objects under each type, and corresponding geometry transformation methods and parameters; Based on the attribute parameters and generation model of the curve object, a script language for creating a free-type source curve object is designed; The creation of the free-type source curve object is achieved by parsing the script language.
3. The parametric modeling method for free-form curves and surfaces according to claim 2, It is characterized in that Based on the attribute parameters and generation model of the curve object, a script language for creating a free-type source curve object is designed, including: Input the attribute parameters of the curve object in text form, and obtain the attribute parameter values of the curve object by parsing the attribute parameter text; The name of the object to be created is defined, and a script language for creating a free-type source curve object is designed in the form of a meta-command in combination with the attribute parameter values and generation model of the curve object. The script language includes the name, type and generation model of the object to be created, and the name and text of the attribute parameters to be set.
4. The parametric modeling method for free-form curves and surfaces according to claim 1, It is characterized in that Different plane section curves or spatial distribution curves are obtained based on the free-form source curve object, including: Selecting a number of points in the mapping interval [0,1], and calculating a number of groups of attribute parameter values according to the attribute parameter distribution function of the free-type source curve; Several groups of attribute parameter values are input into the generation model of the free-type source curve to obtain several plane section curves or space distribution curves.
5. The parametric modeling method for free-form curves and surfaces according to claim 4, It is characterized in that Creating a property parameter distribution function of the free-type source curve includes: Inputting different attribute parameter value combinations into the generation model of the free-type source curve to obtain different plane section curves or spatial distribution curves; Mapping the spatial distribution of the set of plane section curves or spatial distribution curves to the interval [0,1], thereby obtaining the value distribution of each attribute parameter in the free-type source curve in the interval [0,1], where 0 corresponds to the starting curve of the set of curves, and 1 corresponds to the ending curve of the set of curves; The value distribution function of each attribute parameter in the interval [0, 1] is functionalized to obtain an attribute parameter distribution function, and each attribute parameter in the free source curve corresponds to an attribute parameter distribution function.
6. The parametric modeling method for free-form curves and surfaces according to claim 1, It is characterized in that The plane section curve or the spatial distribution curve is customized in a template, including: Extract several free-form source curve objects that have been created based on the new free-form curve objects released to the outside world; Selecting required attributes from the free-type source curve object as attribute parameters of the new free-type curve object, and using the original attribute parameter values of the corresponding free-type source curve object as default values for unselected attributes; A customized template file script is created based on the selected attributes and the generation model of the respective free-form source curves.
7. The parametric modeling method for free-form curves and surfaces according to claim 3, It is characterized in that The method further comprises: Select a defined attribute parameter name or geometric object name and put it in the attribute parameter text of the free-type source curve object, and automatically update the free-type source curve object when parsing the attribute parameter text by referencing the attribute parameter or geometric object; Among them, the defined attribute parameters are used as non-visual objects with their own values and ranges; the defined geometric objects are used as visual objects.
8. The parametric modeling method for free-form curves and surfaces according to claim 3, It is characterized in that The method further comprises: Set the creation order of the objects to be created. The rules are: If the object to be created does not reference any object, its creation order is set to 0; if the object to be created references other objects, its creation order is the creation order of the referenced object plus 1; the lower the creation order of the object to be created, the earlier its creation sequence; objects with the same creation order are created in the same order.
