A product tire membrane design method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202311369356.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-10-20
AI Technical Summary
显然,这需要耗费用户大量的精力与时间,提高了产品胎膜设计的难度
[0003] The purpose of this application is to provide a product membrane design method, apparatus, equipment and medium to achieve the technical effect of reducing the difficulty of membrane design.
Smart Images

Figure CN117669134B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software technology, and more specifically, to a product membrane design method, apparatus, electronic device, and storage medium. Background Technology
[0002] 3D modeling software is commonly used to help manufacturers design, analyze, simulate, and assemble products. However, during the process of designing product molds using 3D modeling software, execution failures may occur at various stages. Users must identify and troubleshoot these errors before continuing. Clearly, this requires significant time and effort from the user, increasing the difficulty of product mold design. Summary of the Invention
[0003] The purpose of this application is to provide a product membrane design method, apparatus, equipment and medium to achieve the technical effect of reducing the difficulty of membrane design.
[0004] The first aspect of this application provides a product membrane design method, the method comprising: Determine the plane to be extracted in the product model; After deleting the non-curved elements included in the plane to be extracted, the plane to be extracted is extracted as the main plane of the product membrane; The product membrane is obtained by processing the main plane and / or the contour line of the main plane using generative commands; wherein the generative commands include one or more of extrapolation extension, sweeping, and offset.
[0005] In the above implementation process, before extracting the plane to be extracted, non-curved elements in the plane are first identified and deleted. This ensures that the extraction process will not fail due to discontinuities in the curvature or points of the plane to be extracted caused by the presence of non-curved elements. This reduces the probability of interruptions in the membrane design, improves the design efficiency of the product membrane, and reduces the design difficulty of the membrane.
[0006] Furthermore, the method also includes: Extract the contour lines of the main plane; If, during the extraction process, there is an intersection point on the extracted contour line that intersects with other line segments, the next contour line connecting to the extracted contour line is determined from the other line segments based on the angle between the extracted contour line and the other line segments.
[0007] In the above implementation process, the next segment of the contour line is automatically selected by the angle between the extracted contour line and other line segments connected to the intersection point. This allows for the automatic selection of a suitable line segment as the contour line when an intersection point is encountered during the contour line extraction process, avoiding interruptions in contour line extraction, thereby reducing the probability of interruptions in membrane design and reducing the difficulty of membrane design.
[0008] Further, determining the next contour line connecting the extracted contour line to the extracted contour line from the other line segments based on the angle between the extracted contour line and the other line segments includes: Among the angles between the extracted contour lines and the other line segments, the other line segment corresponding to the largest angle is determined as the next contour line segment.
[0009] In the above implementation process, based on empirical values, the angle between the extracted contour line and other line segments connecting the intersection point is determined, and the other line segment corresponding to the largest angle is taken as the next contour line segment. This allows the next contour line segment to be automatically and correctly extracted even when there is an intersection point on the contour line, thus avoiding the occurrence of contour line extraction failure.
[0010] Furthermore, the generative command includes the sweep, and the method further includes: The first target curve to be swept is divided into multiple sub-curves; For each of the sub-curve segments, the sub-curve is stretched into a sub-plane; By joining the various sub-planes, a swept surface of the first target curve is obtained.
[0011] In the above implementation process, by dividing the first target curve to be swept into multiple sub-curves, and then stretching each sub-curve segment into a sub-plane, even if there are unsweepable parts on the first target curve, only the sub-curve containing that part will fail to be stretched, while the remaining sub-curves can be stretched into sub-planes. Therefore, there will be no situation where no sweeping result can be generated at all. In addition, the user can be indicated by the sub-plane stretching failure points, allowing the user to quickly troubleshoot the cause of the failure and improve the efficiency of membrane design.
[0012] Furthermore, the method also includes: If a subplane stretching fails, the missing plane is filled based on the stretched subplanes.
[0013] In the above implementation process, the original sweeping steps are replaced by segmented stretching and filling, which helps users to quickly design the original swept surface, thereby improving the efficiency of product membrane design.
[0014] Further, the step of filling the missing plane based on the stretched sub-plane includes: The missing plane can be filled by calling the provided fill function through the provided function interface.
[0015] In the above implementation process, the missing plane is automatically filled by calling the filling function provided by the software through the functional interface, so that users no longer need to perform a lot of repetitive and tedious operations on unqualified swept surfaces, thus improving the efficiency of product mold design.
[0016] Furthermore, the generative command includes the offset, and the method further includes: Obtain the second target curve in the plane to be offset; The second target curve is moved by an offset distance along the offset direction of the plane to be offset; The moved second target curve is stretched into a target plane, and the target plane is determined to be the offset plane corresponding to the plane to be offset.
[0017] In the above implementation process, the original offset steps are replaced by a combination of "curve extraction - curve movement - curve stretching". Even if the plane to be offset includes elements that cannot be offset, the entire plane can be offset through this combination of steps without requiring manual processing by the user based on error messages. Therefore, the probability of offset interruption is reduced, the design difficulty of the product's membrane is reduced, and the design efficiency is improved.
[0018] A second aspect of this application provides a product membrane design apparatus, the apparatus comprising: The determination module is used to determine the plane to be extracted in the product model; The extraction module is used to extract the plane to be extracted as the main plane of the product membrane after deleting the non-curved elements included in the plane to be extracted; The processing module is used to process the main plane and / or the contour line of the main plane using generative commands to obtain the product membrane; wherein the generative commands include one or more of extrapolation extension, sweeping, and offset.
[0019] A third aspect of this application provides an electronic device, the electronic device comprising: processor; Storage medium for storing the processor-executable instructions; Wherein, when the processor invokes the executable instructions, it implements the operation of any of the methods described in the first aspect.
[0020] A fourth aspect of this application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of any of the methods described in the first aspect. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A flowchart illustrating a product membrane design method provided in this application embodiment; Figure 2 A flowchart illustrating another product membrane design method provided in this application embodiment; Figure 3 A flowchart illustrating another product membrane design method provided in this application embodiment; Figure 4 A flowchart illustrating another product membrane design method provided in this application embodiment; Figure 5 A structural block diagram of a product membrane design device provided in this application embodiment; Figure 6 This is a hardware structure diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0023] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0024] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0025] 3D modeling software includes various types, such as CATIA (Computer Aided Three-dimensional Interactive Application), UG (Unigraphics), and ProE (Pro / Engineer). In the process of designing a product formwork using 3D modeling software, failures can occur at any step. Taking CATIA software as an example, when designing a product formwork using CATIA, first select the CATIA model of the product to be designed (i.e., the 3D model created by CATIA). Then, double-click a node in the CATIA model to enter edit mode. Next, extract the product's surface as the main plane for the formwork design. However, during the extraction of the main plane, discontinuities in curvature or points can cause extraction failures. At this point, the user needs to identify and correct the errors before continuing to extract the main plane.
[0026] Therefore, this application provides a product membrane design method, including as follows: Figure 1 Steps 110-130 are shown.
[0027] Step 110: Determine the plane to be extracted in the product model; For example, the product model can be a product model created using 3D modeling software. The following will use CATIA software as an example, but this application is not limited to CATIA models; the technical solutions provided in this application are also applicable to other 3D modeling software.
[0028] Thus, the product model may include a model created using CATIA software (hereinafter referred to as a CATIA model).
[0029] For example, the surface of the product can be identified as the plane to be extracted.
[0030] Step 120: After deleting the non-curved elements included in the plane to be extracted, extract the plane to be extracted as the main plane of the product membrane; For example, the non-surface elements may include, but are not limited to, points, lines, etc.
[0031] For example, when performing step 120, non-surface elements in the plane to be extracted can be identified first, and then the identified non-surface elements can be deleted.
[0032] For example, product models often correspond to a structure tree. Thus, the root node of the plane to be extracted can be determined on the structure tree corresponding to the product model. The root node of the plane to be extracted includes the leaf nodes of all elements in the plane, that is, leaf nodes of both surface elements and non-surface elements. Therefore, under the root node of the plane to be extracted, non-surface elements with attributes such as points and lines can be identified. Subsequently, the non-surface elements are extracted and deleted, leaving the leaf nodes of the remaining surface elements under the root node of the plane to be extracted.
[0033] If the plane to be extracted does not contain non-curved elements, the plane to be extracted is used as the main plane of the product membrane.
[0034] Furthermore, if there are multiple planes to be extracted, the non-surface elements on each plane can be identified and deleted separately before extracting each plane. The extracted planes can then be expanded to form a single master plane. For example, the join command provided by CATIA software can be used to join the extracted planes into a single master plane.
[0035] Optionally, the multiple planes to be extracted can be joined to satisfy tangent continuity and / or curvature continuity.
[0036] Optionally, if the resulting main plane includes holes, the holes can be filled, and the filled portion can be joined to the main plane to form a new main plane. Optionally, after joining the filled portion to the main plane, excess plane can be cut off.
[0037] Step 130: Process the main plane and / or the outline of the main plane using generative commands to obtain the product membrane; The generative commands include one or more of extrapolation, sweep, and offset.
[0038] Generic Shape Design (GSD) commands are feature-based design methods provided in 3D modeling software. They define a series of parameters and constraints to determine the geometry and dimensions of parts. Generic commands can include operations on planes and curves, such as extrapolation, sweep, and offset commands.
[0039] After obtaining the main plane of the product membrane, the generative command can be used to process the main plane and / or the contour line of the main plane to obtain the product membrane.
[0040] As one feasible example, the extrapolation command can be used to extend a plane, such as a portion of the main plane, in a specified direction and by a specified distance. The outline of the main plane after extrapolation is then obtained, and the sweep command is used to sweep the outline in a sweeping direction, thereby stretching the outline into a new sweep surface. The offset command can then be used to offset the main plane and the sweep surface until they intersect. By extracting the intersection line of the two surfaces and cutting the main plane and / or the sweep surface according to the intersection line, a closed amniotic cavity is formed.
[0041] As can be seen, the product membrane design method provided in this embodiment first identifies and deletes non-curved elements in the plane to be extracted before extraction. This ensures that the extraction process will not fail due to discontinuities in the curvature or points of the plane to be extracted caused by the presence of non-curved elements. This reduces the probability of membrane design interruptions, improves the design efficiency of the product membrane, and reduces the difficulty of membrane design.
[0042] Furthermore, in some embodiments, the above-described product membrane design method may further include the steps of: Extract the contour lines of the main plane.
[0043] If, during the extraction process, there is an intersection point on the extracted contour line that intersects with other line segments, the next contour line connected to the extracted contour line is determined from the other line segments based on the angle between the extracted contour line and the other line segments.
[0044] As in the above embodiment, when generating the product membrane using a generative command, a sweep command can be used to sweep the contour lines of the main plane. Before executing the sweep command, it is first necessary to extract the contour lines of the main plane. For example, the contour lines of the main plane are closed contour lines.
[0045] Contour extraction can begin with a curve and proceed along a specific direction to extract line segments as the contour. However, during extraction, a discontinuity in angles may cause the extraction to fail. This discontinuity often occurs when an intersection point is encountered—the point where the extracted contour intersects with other line segments. In other words, the extracted contour contains intersection points with other line segments. Since these intersection points connect the extracted contour to multiple line segments, the 3D modeling software cannot determine which line segment the intersection connects to as the next contour segment, or in other words, it cannot determine which line segment the extracted contour should continue along. In this case, the contour extraction step fails, and a discontinuity error message is displayed.
[0046] Therefore, this embodiment proposes that during the contour line extraction process, if there is an intersection point on the extracted contour line that intersects with other line segments, then based on the angle between the extracted contour line and the other line segments connected to the intersection point, one of the target line segments is determined from the other line segments as the next contour line segment.
[0047] For example, the extracted contour line can be projected onto all other line segments connected by the intersection point to obtain the angle between the extracted contour line and each of the other line segments.
[0048] For example, the angle between the extracted contour line and other line segments ranges from 0 to 180°.
[0049] After identifying the target line segment connected to the intersection point as the next contour line, the extracted contour line can be joined with the target line segment to achieve contour line extraction.
[0050] As can be seen, in this embodiment, the next segment of the contour line is automatically selected by the angle between the extracted contour line and other line segments connected to the intersection point. This allows for the automatic selection of a suitable line segment as the contour line when an intersection point is encountered during the contour line extraction process, avoiding interruptions in the contour line extraction, thereby reducing the probability of interruptions in the membrane design and reducing the difficulty of membrane design.
[0051] Based on the above embodiments, the step of determining the next contour line connected to the extracted contour line from other line segments according to the angle between the extracted contour line and other line segments may specifically include the following steps: Among the angles between the extracted contour lines and the other line segments, the other line segment corresponding to the largest angle is determined as the next contour line segment.
[0052] In practice, through contour line extraction on a large number of CATIA models, it was found that when encountering discontinuous angles, the contour line often continues extraction along other line segments corresponding to the largest included angle. Therefore, this embodiment proposes, based on empirical values, to determine the included angles of other line segments connecting the extracted contour line to the intersection point, and to take the other line segment corresponding to the largest included angle as the next contour line segment. This ensures that even when there are intersection points on the contour line, the next contour line segment can be extracted automatically and correctly, avoiding contour line extraction failures.
[0053] Furthermore, in some embodiments, where the generative command includes sweeping, the above-described product membrane design method may also include, for example... Figure 2 Steps 210-230 are shown.
[0054] Step 210: Divide the first target curve to be swept into multiple sub-curves; Step 220: For each segment of the sub-curve, stretch the sub-curve into a sub-plane; Step 230: Join the various sub-planes to obtain the swept surface of the first target curve.
[0055] As in the above embodiment, when generating the product membrane using a generative command, a sweep command can be used to sweep the contour lines of the main plane. In this case, the generative command includes the sweep command.
[0056] In related technologies, when executing a sweep command, a contour line and a guide curve are typically specified, causing the contour line to be stretched along the direction of the guide curve to form a new sweep surface. However, during the sweep process, if the contour line is not a closed curve, the sweep may fail, and a sweep surface cannot be generated. In this case, the user needs to manually troubleshoot the cause of the sweep failure and can only regenerate the sweep surface after eliminating the error. Alternatively, even if a sweep surface can be generated, it may contain gaps or other discontinuities, requiring the user to perform a large number of repetitive and tedious operations to process these substandard sweep surfaces.
[0057] Therefore, this embodiment proposes dividing the first target curve to be swept into multiple sub-curves. For example, if it is necessary to sweep the contour line of the main plane, the contour line of the main plane is taken as the first target curve and divided into multiple sub-curves.
[0058] Those skilled in the art can arbitrarily divide the first target curve according to the actual situation. This application does not impose any restrictions.
[0059] After dividing the first target curve into multiple sub-curves, each sub-curve is stretched into a sub-plane.
[0060] Alternatively, the sub-curve can be stretched into a sub-plane using the sweep command provided by the 3D modeling software.
[0061] Alternatively, the sub-curve can be stretched into a sub-plane using the stretch command provided by 3D modeling software.
[0062] Of course, the stretching of the subplane is not limited to the above examples. Those skilled in the art can use other methods to stretch the subcurve into a subplane, and this application does not impose any restrictions here.
[0063] After obtaining the sub-planes corresponding to each sub-curve, the sub-planes can be joined together, and the resulting joined plane can be used as the sweep surface of the first target curve.
[0064] As can be seen in this embodiment, by dividing the first target curve to be swept into multiple sub-curves, and then stretching each sub-curve segment by segment into a sub-plane, even if there are parts on the first target curve that cannot be swept, only the sub-curve containing that part will fail to be stretched, while the remaining sub-curves can be stretched into a sub-plane. Therefore, there will be no situation where no sweeping result can be generated at all.
[0065] Alternatively, if the first target curve contains sections that cannot be swept, using a traditional sweep command will result in sweep failure, and no swept surface will be generated in the model. In this case, the user needs to troubleshoot various parts of the first target curve until the error is found. However, if the method provided in this embodiment is used, it can still generate sub-planes corresponding to some sub-curves. The user can then quickly locate the error area—the sub-curve corresponding to the ungenerated sub-plane—by identifying the ungenerated sub-plane, and eliminate the error in that sub-curve before re-stretching it. In other words, the method in this embodiment can also indicate the erroneous sub-curve to the user by pointing out the failed sub-plane stretching, allowing the user to quickly troubleshoot the cause of the failure and improve the efficiency of membrane design.
[0066] Furthermore, based on the above embodiments, the method may further include the following steps: If a subplane stretching fails, the missing plane is filled based on the stretched subplanes.
[0067] If a sub-plane stretching fails, meaning that a sub-curve on the first target curve cannot be stretched into a sub-plane, in addition to the method described in the above embodiment, whereby the user can eliminate the error of the sub-curve and then re-stretch it, the method provided in this embodiment can also be used to fill the missing plane based on the stretched sub-plane.
[0068] For example, the missing plane can be determined based on the generated sub-planes. The sub-planes adjacent to the missing plane are then expanded, and the expanded plane is joined with the sub-planes to form a complete plane, thus completing the filling of the missing plane. The resulting plane serves as the sweep surface of the first target curve.
[0069] Alternatively, if the generated sweep surface has overlapping adjacent surfaces, the user can manually delete them to obtain a sweep surface that meets the requirements.
[0070] As can be seen, by using the method provided in this embodiment, even if there are parts of the first target curve that cannot be swept, a complete plane can be automatically generated as the sweep surface of the first target curve by stretching and filling the first target curve segment by segment, thereby overcoming the drawback of the related technology that the sweep surface cannot be generated directly when the sweep command fails to execute.
[0071] Furthermore, this embodiment can automatically fill in missing planes. Therefore, even if the swept surface has gaps or other discontinuities, it can automatically fill the gaps, eliminating the need for users to perform numerous repetitive and tedious operations on unqualified swept surfaces. It is evident that, addressing the problems arising from sweeping, this embodiment uses segmented stretching and filling to replace the original sweeping steps, assisting users in quickly designing the original swept surface and thus improving the efficiency of product mold design.
[0072] Based on the above embodiments, the step of filling the missing plane according to the stretched sub-plane may specifically include the following steps: The missing plane can be filled by calling the provided fill function through the provided function interface.
[0073] For example, 3D modeling software, such as CATIA, provides an API (Application Programming Interface). Through the API, the fill function provided by CATIA can be invoked to automatically fill in missing planes.
[0074] As can be seen, this embodiment achieves automatic filling of missing planes by calling the filling function provided by the software through the functional interface, so that users no longer need to perform a lot of repetitive and tedious operations on unqualified swept surfaces, thus improving the efficiency of product mold design.
[0075] Furthermore, in some embodiments, where the generative command includes an offset, the above-described product membrane design method may also include, for example... Figure 3 Steps 310-330 are shown.
[0076] Step 310: Obtain the second target curve in the plane to be offset; Step 320: Move the second target curve along the offset direction of the plane to be offset by an offset distance; Step 330: Stretch the moved second target curve into a target plane, and determine the target plane as the offset plane corresponding to the plane to be offset.
[0077] As in the above embodiment, when generating the product membrane using the generative command, the offset command can be used to offset the master plane and the swept plane to intersect. In this case, the generative command includes the offset command.
[0078] During the offsetting of a plane, the dimensions of the plane may change, for example, shrink. In related technologies, due to limitations in plane quality and the curvature and angle of the plane transition, offsetting the same plane may not be possible simultaneously. Users need to continuously process the connection points where the offsetting failed according to the error message before they can continue the operation.
[0079] For example, for a small fillet connection point in the plane to be offset, the size of the fillet will further decrease after offsetting. Due to the limitation of the fillet size, the software may not be able to generate a fillet that is further reduced in size after offsetting, causing the offsetting of the connection point to fail. In this case, the user needs to replace the fillet with another offsettable connection element, and after offsetting the plane to be offset, replace the connection element with the fillet again.
[0080] Therefore, normally, the plane to be offset needs to be offset by a preset offset distance along the offset direction. However, in this embodiment, a second target curve is obtained in the plane to be offset, and then the second target curve is moved, where the moving direction is the offset direction and the moving distance is the offset distance. That is, the second target curve in the plane to be offset is moved along the offset direction by a distance equal to the offset distance. Then, the moved second target curve is stretched into a target plane, and the stretched target plane is determined to be the offset plane corresponding to the plane to be offset. In other words, if the plane to be offset is offset by a preset offset distance along the offset direction, the target plane will be obtained.
[0081] The process of determining the second target curve in the offset plane can be referenced from relevant techniques.
[0082] For example, the second target curve can be a target plane, that is, the contour line of the offset plane. That is, the contour line of the offset plane after offset is determined in the plane to be offset, and then the contour line is moved to the location of the offset plane, and the target plane, that is, the offset plane, is obtained by stretching.
[0083] For example, the stretch command provided by CATIA software can be used to stretch the moved second target curve to obtain the target plane.
[0084] In this embodiment, by moving the second target curve in the plane to be offset along the offset direction by a distance equal to the offset distance, and then stretching the moved second target curve into the target plane, the offset plane corresponding to the plane to be offset is obtained. The original offset steps are replaced by a combined step of "curve extraction - curve movement - curve stretching." Even if the plane to be offset includes elements that cannot be offset, the entire plane can be offset using this combined step without requiring manual processing by the user based on error messages. Therefore, the probability of offset interruption is reduced, the design difficulty of the product's membrane is reduced, and design efficiency is improved.
[0085] In addition, this application also provides a product membrane design method, such as Figure 4 As shown, firstly, the CATIA model of the product for which membrane design is required is obtained (step 401). Then, the plane to be extracted is determined in the CATIA model, and its root node in the structure tree is identified (step 402). Based on the attributes of each leaf node under the root node, non-surface elements with attributes of points and lines are identified and deleted (step 403). After deleting the non-surface elements, the plane to be extracted is used as the main plane of the product membrane (step 404).
[0086] Subsequently, the contour line of the main plane is extracted (step 405). During the extraction process, if there is an intersection point with other line segments on the extracted contour line, the other line segment corresponding to the largest angle is determined as the next contour line based on the angle between the extracted contour line and other line segments.
[0087] After obtaining the outline of the main plane, the edge surface of the main plane can be cut according to the outline (step 406), that is, the arc edge of the main plane is cut off. Then, if there is a hole in the main plane, the hole in the main plane can be filled, and the filled main plane is extended by interpolation (step 407).
[0088] After extrapolation, the principal plane will expand. This allows the extrapolated contour line to be extracted (step 408). During extraction, if the extracted contour line intersects with other line segments, the line segment corresponding to the largest angle between the extracted contour line and the other line segment is determined as the next contour line segment.
[0089] After extracting the contour lines, the extracted contour lines can be stretched and filled segment by segment to obtain the swept surface (step 409). Then, the main plane and the swept surface are offset until they intersect (step 410). During the offset process, a curve can be defined in the main plane, moved along the offset direction of the main plane by a preset offset distance, and then stretched to obtain the offset main plane. Similarly, a curve can be defined in the swept surface, moved along the offset direction of the swept surface by a preset offset distance, and then stretched to obtain the offset swept surface.
[0090] The offset principal plane intersects with the swept surface. The intersection line can then be extracted, and the principal plane and / or swept surface can be cut according to the intersection line (step 411) to form a closed membrane cavity. Finally, the membrane cavity is filled with a solid to obtain the product membrane.
[0091] This completes the membrane design process. It is understood that the membrane design method provided in this application simplifies operational steps such as master plane extraction, contour line extraction, sweeping, and offsetting, avoiding various error issues. This eliminates the need for designers to perform repetitive operations item by item, significantly reducing their workload, improving work efficiency, and lowering design costs.
[0092] Based on any of the above embodiments, this application also provides a product membrane design device. For example... Figure 5 As shown, the product membrane design device 500 includes: The determination module 510 is used to determine the plane to be extracted in the product model; Extraction module 520 is used to extract the plane to be extracted as the main plane of the product membrane after deleting the non-curved elements included in the plane to be extracted; Processing module 530 is used to process the main plane and / or the contour line of the main plane using generative commands to obtain the product membrane; wherein the generative commands include one or more of extrapolation extension, sweeping, and offset.
[0093] In some embodiments, the extraction module 520 is further configured to: extract the contour line of the main plane; If, during the extraction process, there is an intersection point on the extracted contour line that intersects with other line segments, the next contour line connecting to the extracted contour line is determined from the other line segments based on the angle between the extracted contour line and the other line segments.
[0094] In some embodiments, the extraction module 520 is specifically used for: Among the angles between the extracted contour lines and the other line segments, the other line segment corresponding to the largest angle is determined as the next contour line segment.
[0095] In some embodiments, the generative command includes the sweeping, and the product membrane design device 500 further includes: The segmentation module is used to divide the first target curve to be swept into multiple sub-curves; The stretching module is used to stretch each of the sub-curves into a sub-plane. The joining module is used to join the various sub-planes to obtain the swept surface of the first target curve.
[0096] In some embodiments, the product membrane design device 500 further includes: The fill module is used to fill the missing planes based on the already stretched subplanes if the subplane stretching fails.
[0097] In some embodiments, the filling module is specifically used for: The missing plane can be filled by calling the provided fill function through the provided function interface.
[0098] In some embodiments, the generative command includes the offset, and the product membrane design device 500 further includes: The acquisition module is used to acquire the second target curve in the plane to be offset; The moving module is used to move the second target curve along the offset direction of the offset plane by an offset distance; The stretching module is used to stretch the moved second target curve into a target plane and determine the target plane as the offset plane corresponding to the plane to be offset.
[0099] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0100] Based on the product membrane design method described in any of the above embodiments, this application also provides, as follows: Figure 6 The diagram shows the structure of an electronic device. Figure 6 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, and a storage medium. The storage medium includes main memory and non-volatile memory. The electronic device may also include other hardware required for other business operations. The processor reads the corresponding computer program from the non-volatile memory into main memory and then runs it to implement the product membrane design method described in any of the above embodiments.
[0101] This application also provides a computer storage medium storing a computer program, which, when executed by a processor, can be used to perform a product membrane design method as described in any of the above embodiments.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0104] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0105] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0106] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0107] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A product membrane design method, characterized in that, The method includes: Determine the plane to be extracted in the product model; After deleting the non-curved elements included in the plane to be extracted, the plane to be extracted is extracted as the main plane of the product membrane; Extract the contour line of the main plane. If, during the extraction process, there is an intersection point on the extracted contour line that intersects with other line segments, determine the next contour line that connects to the extracted contour line from the other line segments based on the angle between the extracted contour line and the other line segments. The product membrane is obtained by processing the main plane and / or the contour line of the main plane using generative commands; wherein the generative commands include one or more of extrapolation extension, sweeping, and offset. When the generative command includes the sweeping, the first target curve to be swept is divided into multiple sub-curves; for each sub-curve, the sub-curve is stretched into a sub-plane; the sub-planes are joined together to obtain the sweeping surface of the first target curve. When the generative command includes the offset, a second target curve in the plane to be offset is obtained; the second target curve is moved by an offset distance along the offset direction of the plane to be offset; the moved second target curve is stretched into a target plane, and the target plane is determined as the offset plane corresponding to the plane to be offset.
2. The method according to claim 1, characterized in that, The step of determining the next contour line connecting to the extracted contour line from the other line segments based on the angle between the extracted contour line and the other line segments includes: Among the angles between the extracted contour lines and the other line segments, the other line segment corresponding to the largest angle is determined as the next contour line segment.
3. The method according to claim 1, characterized in that, The method further includes: If a subplane stretching fails, the missing plane is filled based on the stretched subplanes.
4. The method according to claim 3, characterized in that, The process of filling the missing plane based on the stretched sub-plane includes: The missing plane can be filled by calling the provided fill function through the provided function interface.
5. A product membrane design device, characterized in that, The device includes: The determination module is used to determine the plane to be extracted in the product model; An extraction module is used to extract the plane to be extracted as the main plane of the product membrane after deleting the non-curved elements included in the plane to be extracted; and to extract the contour line of the main plane. If, during the extraction process, there is an intersection point on the extracted contour line that intersects with other line segments, the next contour line connected to the extracted contour line is determined from the other line segments according to the angle between the extracted contour line and the other line segments. The processing module is used to process the main plane and / or the contour line of the main plane using generative commands to obtain the product membrane; wherein the generative commands include one or more of extrapolation extension, sweeping, and offset; A segmentation module is used to divide the first target curve to be swept into multiple sub-curves when the generative command includes the sweeping; The stretching module is used to stretch each of the sub-curves into a sub-plane. A joining module is used to join the various sub-planes to obtain the swept surface of the first target curve; The acquisition module is used to acquire a second target curve in the plane to be offset when the generative command includes the offset; The moving module is used to move the second target curve along the offset direction of the offset plane by an offset distance; The stretching module is also used to stretch the moved second target curve into a target plane, and to determine the target plane as the offset plane corresponding to the plane to be offset.
6. An electronic device, characterized in that, The electronic device includes: processor; Storage medium for storing the processor-executable instructions; When the processor invokes the executable instructions, it implements the operation of any one of the methods described in claims 1-4.
7. A computer-readable storage medium, characterized in that, It stores computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-4.
Citation Information
Patent Citations
Parametric design system and method for tire patterns
CN106021669A
Contour shape extraction method and device, electronic equipment and storage medium
CN115082699A