Face labeling method based on 3D part and electronic device

By acquiring and writing surface attribute data into the 3D part model, text annotations are automatically generated, solving the problems of tedious and error-prone manual annotation after 3D part disassembly in the existing technology, and realizing efficient and accurate surface attribute annotation and detection.

CN122491223APending Publication Date: 2026-07-31HI P SHANGHAI PRECISION MOLD & DIE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610954242.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-30
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In the existing technology, the process of manually or semi-automatically annotating 2D engineering drawings after 3D parts are disassembled in the plastic mold industry is cumbersome and time-consuming. Furthermore, the failure to update 2D drawings in a timely manner leads to errors in parts processing, resulting in a high risk of omissions and low inspection efficiency.

Method used

This paper provides a surface annotation method based on 3D parts. By acquiring surface attribute data and writing it into the 3D model attributes, it automatically generates text annotations with guide lines, realizing annotation without 2D drawings, simplifying design work and reducing programming errors.

Benefits of technology

It enables rapid annotation of part surface attribute data, ensuring consistency between the annotation content and the model attribute data, improving the efficiency of engineer review and process preparation, and reducing programming and inspection errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122491223A_ABST
    Figure CN122491223A_ABST
Patent Text Reader

Abstract

This application discloses a method and electronic device for surface annotation of 3D parts. The method includes: acquiring surface attribute data of a target surface in a 3D part model; writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation; and, in response to an annotation command, extracting the surface attribute data of the target surface and automatically generating text annotations with guide lines around the 3D part model. Thus, by directly annotating each surface in the 3D part model, then directly extracting surface attribute data from the 3D part model, and automatically generating standardized text annotations, zero-error conversion from implicit data to explicit engineering drawings is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of part annotation technology, and in particular to a surface annotation method and electronic device for 3D parts. Background Technology

[0002] Currently, the plastic mold industry generally uses 3D software to disassemble parts, and then relies on manual or semi-automatic methods to complete the annotation and verification of 2D engineering drawings, which is cumbersome and time-consuming.

[0003] If the 3D model changes but the 2D drawings are not updated accordingly, it can easily lead to machining errors or even scrapping of parts. Furthermore, machining programmers must manually check 2D tolerances one by one, posing a high risk of omissions. Inspection personnel also need to manually compile inspection data lists based on the 2D drawings and perform tedious filling and analysis after inspection, resulting in overall low efficiency.

[0004] To address the aforementioned pain points, this project initiated a special research and development effort, providing a surface annotation method for 3D parts and an electronic device through secondary software development to solve these problems. Summary of the Invention

[0005] The purpose of this application is to provide a surface annotation method and electronic device based on 3D parts, which can annotate surface attribute data of parts without 2D drawings, reduce programming errors, simplify design work, and realize rapid annotation of surface attribute data.

[0006] To achieve the above objectives: This application provides a surface annotation method based on 3D parts. The method includes: acquiring surface attribute data of a target surface in a 3D part model; writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation; and, in response to an annotation command, extracting the surface attribute data of the target surface and automatically generating text annotations with guide lines around the 3D part model.

[0007] In one embodiment, acquiring surface attribute data of a target surface in a 3D part model includes: in response to a start command of the surface attribute tolerance interface, acquiring one or more target surfaces selected in the 3D part model; retrieving a preset surface attribute editing group, the surface attribute editing group containing multiple preset surface mating types; in response to a selection command for the surface mating type, displaying a preset tolerance value corresponding to the surface mating type in the surface attribute tolerance interface, and acquiring a confirmed or modified target tolerance value; and using the surface mating type and the target tolerance value as the surface attribute data.

[0008] In one embodiment, writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation further includes: receiving a user's overlay instruction for special control requirements; writing the special control requirements as additional attribute data, together with the surface attribute data, into the 3D model attributes of the target surface; the special control requirements include at least one of positional tolerance, important control surface requirements, and purchased part trimming marks.

[0009] In one embodiment, after writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation, the method further includes: in response to the preview tolerance color command, replacing the annotated surfaces in the 3D part model with the corresponding preset colors, and displaying the unannotated surfaces with the default background color; in response to the selection and editing command of the unannotated surfaces displayed with the default background color, calling the surface attribute editing group to configure the surface attribute data for the unannotated surfaces; and automatically refreshing the interface after configuration to update the display color of the unannotated surfaces to the preset color corresponding to their surface attribute data.

[0010] In one embodiment, in response to an annotation command, surface attribute data of the target surface is extracted, and text annotations with guide lines are automatically generated around the 3D part model. This includes: extracting the surface attribute data already annotated in the 3D part model, wherein the surface attribute data includes at least surface attribute tolerance values, datum, geometric tolerances, and sharp corner requirements; automatically generating text annotations corresponding to the surface attribute data around the 3D part model, and establishing an association between the text annotations and the corresponding target surface; and generating the guide lines between the text annotations and the corresponding target surface based on the association.

[0011] In one embodiment, the method further includes: in response to a viewing instruction, displaying labeled surface attribute data in the 3D part model; obtaining a target tolerance condition selected for the labeled surface attribute data, and highlighting the surfaces in the 3D part model corresponding to the target tolerance condition; in response to a deletion instruction for the target tolerance condition, batch deleting the target tolerance values ​​of the highlighted surfaces; and / or, in response to a surface extraction instruction, splitting the highlighted surfaces in the 3D part model into independent surfaces.

[0012] In one embodiment, after highlighting the surface corresponding to the target tolerance value in the 3D part model, the process includes: adjusting the transparency of other surfaces in the 3D part model besides the highlighted surface in response to a transparency adjustment command.

[0013] In one embodiment, the method further includes: retrieving a preset coloring configuration scheme, wherein the coloring configuration scheme defines the correspondence between multiple color IDs and processing requirements for various types of surfaces; determining the surface processing requirements for each surface in the 3D part model, and rendering each surface as a preset color corresponding to the color ID that matches the surface processing requirements according to the correspondence.

[0014] In one embodiment, the method further includes: in response to a form loading instruction, obtaining predefined part attribute values ​​in the 3D part model, and generating a part technical requirements form based on the part attribute values, the part technical requirements form including default tolerances, execution standards, and drawing version information; and displaying the part technical requirements form on the left side of the 3D part model.

[0015] This application provides an electronic device, including a processor and a memory storing a computer program, wherein when the processor runs the computer program, the steps of the above method are implemented.

[0016] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.

[0017] This application provides a method and electronic device for surface annotation of 3D parts. The method includes: acquiring surface attribute data of a target surface in a 3D part model; writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation; and, in response to an annotation command, extracting the surface attribute data of the target surface and automatically generating text annotations with guide lines around the 3D part model. Thus, by directly extracting core parameters such as tolerance values, datum values, and sharp corner requirements from the 3D part model and automatically generating standardized text annotations according to built-in rules, it ensures that every annotation displayed on the drawing directly originates from the underlying real data, achieving zero-error conversion from implicit data to explicit engineering drawings. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a surface annotation method for 3D parts provided in an embodiment of the present invention.

[0019] Figure 2 This is a schematic diagram of a surface attribute tolerance interface provided in an embodiment of the present invention.

[0020] Figure 3 This is a schematic diagram of a 3D part model annotation provided in an embodiment of the present invention.

[0021] Figure 4 This is a schematic diagram of a technical requirements form for a part provided in an embodiment of the present invention.

[0022] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0023] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. In the following description relating to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements.

[0024] It should be noted that, in this document, 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 that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.

[0025] It should be understood that although the terms first, second, third, etc., may be used herein to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if," as used herein, can be interpreted as "when," "when," or "in response to determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising," "including," indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" as used herein are to be interpreted as inclusive, or mean any one or any combination thereof. Therefore, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition will only occur if the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.

[0026] It should be understood that although the steps in the flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0027] It should be noted that step designations such as S1 and S2 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the protection scope of this application.

[0028] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0029] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0030] See Figure 1 This application provides a method for surface annotation of 3D parts, which includes the following: Step S1: Obtain the surface attribute data of the target surface in the 3D part model.

[0031] A 3D part model is a digital part entity that includes its geometric topology and associated engineering attribute data. It is usually generated and edited by a computer-aided design (CAD) system. It not only contains geometric information such as points, lines, surfaces, and volumes that describe the part's geometry, but also non-geometric attribute information that can be associated with manufacturing and design intentions such as dimensional tolerances, geometric tolerances, material properties, and surface finish requirements.

[0032] Surface attribute data refers to a set of engineering semantic information that is bound to or associated with a specific geometric surface (or topological surface) in a 3D part model. This data set is used to fully represent the technical requirements of that specific surface during manufacturing, inspection, and assembly processes, and it includes at least the surface fit type used to define the surface fit properties, and the corresponding target tolerance value.

[0033] In other embodiments, the surface attribute data may also include datum information, geometric tolerances, sharp corner requirements, and special control requirements (such as positional tolerances, requirements for important control surfaces, and trimming marks for purchased parts).

[0034] Specifically, users can obtain the surface attribute data of the target surface of the part by selecting from the drop-down menu in the software's secondary development interface, manually inputting the data, or having it automatically matched by the system.

[0035] Step S2: Write the surface attribute data into the 3D model attributes of the target surface to complete the annotation.

[0036] 3D model attributes are a collection of digital feature information that exists in relation to the overall 3D part model or specific geometric primitives (such as vertices, edges, faces, and volumes) within it. In this embodiment, it refers to data fields or parameter storage space that can be read, written, and modified by the system to record surface attribute data (such as surface fit type, target tolerance value, special control requirements, etc.) of a specific target surface.

[0037] By annotating the target surfaces of a part, surface attribute data can be stored in a structured and persistent manner on the geometry of the 3D part model, turning the model itself into an intelligent model with its own machining instructions.

[0038] Specifically, the system stores the structured data such as the surface fit type and target tolerance value confirmed by the user in the interactive interface into the internal data structure corresponding to the target surface in the 3D part model through the application programming interface (API) or the underlying data interface. This enables the geometric surface to have manufacturing semantics that can be recognized, retrieved and called by the computer, so as to realize the transformation from geometric modeling to semantic annotation.

[0039] Step S3: In response to the annotation command, extract the surface attribute data of the target surface and automatically generate text annotations with guide lines around the 3D part model.

[0040] Annotation commands are triggered by users through the human-computer interaction interface (such as clicking toolbar buttons, using shortcut keys, right-click menus, etc.) and are used to request the system to visualize and arrange the surface attribute data of the annotated surface in the 3D part model.

[0041] Specifically, when the system receives a user-triggered annotation command, it automatically retrieves and reads the surface attribute data (such as tolerance values, fit types, etc.) stored in the 3D model attributes of the target surface, converts it into a text string that conforms to engineering drawing specifications, and automatically lays it out in the 3D view space without obscuring the main body of the 3D part model. At the same time, it generates geometric guide lines connecting the text string to the corresponding target surface, thereby intuitively displaying the manufacturing and inspection requirements of the corresponding target surface.

[0042] In summary, the method provided in the above embodiments utilizes semantic data pre-written into the attributes of 3D models to drive the system to generate 3D annotations with spatial relationships with a single click. This not only ensures absolute consistency between the annotation content and the model attribute data but also greatly improves the efficiency of engineers in 3D review and process preparation.

[0043] In one embodiment, obtaining the surface attribute data of the target surface in the 3D part model includes: In response to the launch command of the surface attribute tolerance interface, obtain one or more target surfaces selected in the 3D part model; Retrieve the preset face attribute editing group, which contains a variety of preset face mating types; In response to the selection command for the surface mating type, the preset tolerance value corresponding to the surface mating type is displayed in the surface attribute tolerance interface, and the confirmed or modified target tolerance value is obtained. Use the surface mating type and target tolerance value as surface attribute data.

[0044] Specifically, when a user clicks the toolbar icon, selects a right-click menu option, or uses a preset shortcut key, the system recognizes the operation as a start command for the surface attribute tolerance interface and immediately calls the corresponding surface attribute tolerance interface so that the user can input or view engineering semantic information such as surface fit type and target tolerance value.

[0045] like Figure 2 As shown, the surface attribute editing group is a structured input area within the surface attribute tolerance interface, consisting of multiple visual interactive controls. This editing group is dedicated to receiving and configuring the engineering semantic information of the target surface. It contains at least a first control (such as a radio button or drop-down list) for selecting or confirming the surface mating type, and a second control (such as a numeric input box or spinner) for inputting or adjusting the target tolerance value. By manipulating the controls within this editing group, the system can obtain the user's configuration intent, thereby providing an accurate data source for subsequently writing surface attribute data into the 3D part model.

[0046] Surface mating types include at least one of the following: material addition / reduction, geometric shape, and mating state. Material addition / reduction types include: leaving iron, removing iron, etc. Geometric shape types include: circular leaving iron, circular removing iron, circular positive / negative, etc. Mating state types include: KISS surface, SHUT surface, Zero position, positive / negative, etc.

[0047] For example, firstly, by capturing the user's startup command and parsing the selection state in the current view, one or more target surfaces to be annotated are accurately located; then, a preset surface attribute editing group (UI panel) is loaded; when the user selects a certain mating type, the recommended preset tolerance value is automatically matched and displayed based on the linkage mechanism (allowing the user to confirm or customize the modification); finally, the determined surface mating type and target tolerance value are structurally encapsulated as the basic surface attribute data of the target surface.

[0048] The above approach, through the design of editing groups and linked display of preset tolerance values, solidifies expert experience into the software system, greatly simplifying the engineer's operation path. It not only ensures the accuracy and standardization of surface attribute data in 3D part models but also opens up a channel between front-end visual interaction and back-end data persistence.

[0049] In one embodiment, writing surface attribute data into the 3D model attributes of the target surface to complete the annotation further includes: Receive additional instructions from users regarding special control requirements; Special control requirements are added as additional attribute data and written into the 3D model attributes of the target surface along with the surface attribute data.

[0050] Special control requirements are engineering manufacturing and quality control conditions specified for specific target surfaces in a 3D part model, in addition to the basic surface fit type and target tolerance value.

[0051] Special control requirements include at least one of the following: positional tolerances, requirements for important control surfaces, and trimming marks for purchased parts.

[0052] Specifically, the system acquires the overlay operation signal (i.e., overlay command) triggered by the user on a target surface that already has basic surface attribute data, and obtains the corresponding special control parameters. Subsequently, at the underlying data structure level of the model, this special control requirement is encapsulated as additional attribute data and structurally integrated with the existing basic surface attribute data. Finally, it is stored as a complete, multi-dimensional attribute set in the 3D model attribute space of the target surface.

[0053] In one embodiment, after writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation, the method further includes: In response to the preview tolerance color command, the labeled faces in the 3D part model are replaced with the corresponding preset colors, and the unlabeled faces are displayed with the default background color; In response to the selection and editing commands of unlabeled faces displayed with the default background color, the face attribute editing group is invoked to configure face attribute data for the unlabeled faces; After configuration, the interface will be automatically refreshed, and the display color of unlabeled surfaces will be updated to the preset color corresponding to their surface attribute data.

[0054] The Preview Tolerance Color command is an interactive signal that the user actively triggers after configuring the surface attribute data (and optional special control requirements) to request the system to perform a visual quality assessment of the 3D part model.

[0055] The preset color can be one or more colors, and there are no restrictions here. Its main function is to indicate whether the target surface is labeled with surface attribute data. The default background color is usually white.

[0056] Specifically, in response to the preview tolerance color command, a global shading strategy is executed on the 3D part model, mapping the geometric faces with bound surface attribute data to the corresponding tolerance feature colors, and uniformly rendering unlabeled faces lacking this data to the default background color (such as white), thus creating a high-contrast visual distinction. Subsequently, the system listens for user selection and editing operations on unlabeled faces with the default background color, triggering and bringing up the surface attribute editing group to complete the configuration of engineering parameters; finally, after the data is written, the view refresh mechanism is automatically triggered to recalculate the attribute mapping relationship of the face, seamlessly switching its display color from the default background color to a preset color that matches the newly configured surface attribute data.

[0057] In one embodiment, in response to an annotation command, surface attribute data of the target surface is extracted, and text annotations with guide lines are automatically generated around the 3D part model, including: Extract the surface attribute data that has been annotated in the 3D part model. The surface attribute data should include at least the surface attribute tolerance value, datum, geometric tolerance, and sharp corner requirements. Automatically generate text annotations corresponding to surface attribute data around the 3D part model, and establish the association between the text annotations and the corresponding target surfaces; Based on the relationship, guide lines are generated between text annotations and corresponding target surfaces.

[0058] like Figure 3 As shown, specifically, the process first involves traversing the underlying data structure of the 3D part model to accurately extract the bound multi-dimensional surface attribute data. In the 3D view space, structured text annotations (such as GD&T symbol boxes or process specifications) matching the aforementioned data are dynamically calculated and automatically generated. A persistent topological association between these text annotations and the source geometric target surfaces is then established in the background database. Based on this association, a spatial path planning algorithm automatically draws guide lines with anti-occlusion and adaptive characteristics between the text annotations and their corresponding target surfaces, thereby completing the automated conversion from implicit underlying data to explicit 3D engineering drawings.

[0059] In one embodiment, the surface annotation method based on 3D parts further includes: In response to the view command, display the surface attribute data of the annotated face in the 3D part model; Obtain the target tolerance conditions selected for the labeled surface attribute data, and highlight the surfaces in the 3D part model that correspond to the target tolerance conditions; In response to a deletion command targeting a specific tolerance condition, batch delete the target tolerance values ​​of the highlighted surfaces; and / or, In response to the extract face command, the highlighted face in the 3D part model is split into independent faces.

[0060] In one embodiment, after highlighting the surface corresponding to the target tolerance value in the 3D part model, the process includes: In response to the transparency adjustment command, adjust the transparency of the surfaces in the 3D part model other than the highlighted surfaces.

[0061] For example, after selecting a 3D part, the surface attribute tolerances of the machined part will be displayed below the information group in the surface attribute tolerance interface. You can also select a tolerance value to highlight it on the 3D part model. Selecting a highlighted surface allows you to click "Delete Surface Attribute" below to delete the assigned surface attribute data in batches, or click the "Extract Surface" button below to split the highlighted surface into independent surfaces, which will be displayed below the information group. After browsing up and down to select an individual surface, you can delete its surface attribute data, or check the "Open Tolerance Editing Group" on the right to assign new tolerances to the selected surface.

[0062] After selecting the tolerance value in the information group and highlighting the displayed area, you can also check the transparent option in the lower left corner to highlight the selected area for non-tolerance values. The transparency can be dragged from 0% to 100% to make it easier to see areas with the same tolerance value that were not marked.

[0063] In one embodiment, the surface annotation method based on 3D parts further includes: Retrieve the preset coloring configuration scheme, which defines the correspondence between various color IDs and the processing requirements of various types of surfaces; Determine the surface machining requirements for each face in the 3D part model, and render each face with a preset color corresponding to the color ID that matches the surface machining requirements, based on the corresponding relationship.

[0064] Specifically, the process first loads a pre-defined coloring configuration scheme. This scheme defines a standardized correspondence between various unique color identifiers (Color IDs) and various manufacturing process requirements at the underlying logic level. Then, it iterates through and parses the surface machining requirements of each geometric surface in the 3D part model, using these as search keys for matching operations within the aforementioned configuration scheme. Finally, based on the successfully matched color ID, the graphics engine is invoked to render the corresponding 3D surface in real time with the specific preset color bound to that ID.

[0065] The above method visually expresses processing requirements by coloring different surfaces of a part with specific IDs, and supports dynamic updates of process instructions by modifying colors, thus replacing traditional, easily overlooked 2D drawing text descriptions.

[0066] In one embodiment, the surface annotation method based on 3D parts further includes: In response to the form loading command, the predefined part attribute values ​​in the 3D part model are obtained, and a part technical requirements form is generated based on the part attribute values. The part technical requirements form includes default tolerances, execution standards, and drawing version information. Will as Figure 4 The technical requirements form for the parts shown is displayed here. Figure 3 The left side of the annotation on the 3D part model shown.

[0067] Specifically, clicking the "Table" launch menu triggers a form loading command. The table contains standard default tolerances and execution standards; part-related information, automatically retrieved and displayed from the 3D part's defined attribute values; workpiece technical requirements, with the defined ID color numbers copied from the color panel and described according to actual needs; drawing version control, etc. Subsequently, based on built-in data assembly rules, the above discrete values ​​(including default tolerances, execution standards, and key manufacturing specifications such as drawing version information) are structured and encapsulated to dynamically generate a complete part technical requirements form. Finally, the front-end UI rendering engine is invoked to adaptively anchor and display the generated form in the left area of ​​the 3D part model as a sidebar or floating panel, thus providing users with a global overview window of engineering parameters without obscuring the main view.

[0068] In summary, the method provided in the above embodiments writes relevant surface attribute data onto the target surface of the 3D part model. After loading the development package, programmers can quickly and easily view the surface tolerance requirements to make corresponding adjustments during programming. Furthermore, machining personnel can directly click on the text to display the relevant surface attribute data and process it as needed. It extracts core parameters such as tolerance values, datum, and sharp corner requirements with a single click and automatically generates standardized text annotations based on built-in rules, ensuring that every annotation displayed on the drawing directly originates from the underlying real data, achieving zero-error conversion from implicit data to explicit engineering drawings.

[0069] Based on the same inventive concept as the foregoing embodiments, the foregoing embodiments will be described in detail below through a specific application scenario.

[0070] For example, in this embodiment, through secondary development, related functions are registered, and a software interface loading icon menu toolset is designed so that it can be launched by clicking.

[0071] 1. Click the "Dyeing" startup menu to bring up the operation interface. Select a preset scheme (4 in total) from the dyeing scheme drop-down list. After selecting a scheme, the corresponding color and ID number will be displayed in the color area. Then, according to the actual needs, you can select the required functional color in the color area (the default color is displayed as the original color; after selection, the preview area will simultaneously display the modified color). Finally, select the face on the 3D part that needs to be colored, and click "Apply" or "OK" to quickly color the functional face.

[0072] When it is necessary to modify the colored functional surface of a part, you can select "First Modification Color" or "Second Modification Color" in "Color Type" to cover it up. This is intended to use color to clearly remind subsequent processes to process according to the latest modified color.

[0073] 2. Click the "Restore Color" menu to bring up the operation interface. This function is used to restore the modified color / modification reminder color of the part to its original color. Additionally, clicking the "Instructions" button in the interface will display the color description information below.

[0074] Monochrome Restoration: After selecting "Monochrome Restoration" and choosing the modified color on the 3D part, the color area will automatically display the original color and two modified colors for reference. Click the "Apply" or "OK" button to restore the selected area to its original color.

[0075] Restore All: Clicking the "Restore All" button will restore all three modified colors on the 3D part to their original colors at once, thus canceling the reminder function for subsequent processes.

[0076] 3. Click the "Color Panel" to launch the menu and access the operation interface. This interface can float above the 3D part drawing interface until you click to close it. The original menu interface only displays the ID number, without the corresponding color.

[0077] In the state of default selection of 3D parts, click the "Show Only Modification Colors" button to perform the operation. The color panel will automatically filter and display the first and second modification colors that have been used. Click the cell of the ID number in the color panel, and the corresponding face on the 3D part will be highlighted, so that designers can check whether the coloring meets the actual modification requirements, and it is also convenient for subsequent personnel to quickly locate the modified faces of the parts. In addition, the ID numbers in the interface support direct copying and can be conveniently pasted into subsequent technical requirement forms to describe relevant requirements.

[0078] When the button of the color panel is switched to full highlight display, all colors of each face on the part will be displayed, which can also be used to confirm whether any technical requirement faces on the part are missed being colored.

[0079] 4. Click the "Face Attribute Tolerance" start menu to call up the operation interface as Figure 2 shown.

[0080] After the default interface is opened, single or multiple faces can be selected on the 3D part. In the state of editing and checking the right lower part, the content of the right editing group will be displayed. One can click and select from <KISS face>, <Keep Iron>, < Keep Iron>, <SHUT face>, <Remove Iron>, < Remove Iron>, <Zero position>, <Positive and Negative>, < Positive and Negative>. After selection, below the face tolerance, the pre-set face tolerance requirements will be correspondingly displayed. The default is a null value. It is necessary to switch and select a suitable tolerance value. At the same time, positional tolerance (according to the actual selected value), SCD (requirements for important controlled faces), and * (faces that need to be trimmed for purchased parts) can also be superimposed. Then click the "Add Tolerance / Modify Tolerance" button above to directly write the defined tolerance and face requirements into the 3D face attributes for subsequent operations.

[0081] After canceling the check of the "Edit" button in the lower right part of the operation interface, the simplified display mode can be switched to. In this mode, when a 3D part is selected, the face attribute tolerances marked on the part will be displayed below the information group. Click the specific tolerance value, and the corresponding face on the 3D part will be highlighted for the reference of designers and subsequent process personnel. Select the highlighted face, and one can click the "Delete Face Attribute" below to batch delete the given face attribute tolerances; or click the "Extract Face" button below to split the highlighted face into independent faces, which will be displayed below the information group. After browsing and selecting them separately up and down, one can either separately delete its face attribute tolerances or check the "Tolerance Editing Group" on the right side of the interface to reassign new tolerance requirements to this face.

[0082] After selecting the tolerance value in the information group and highlighting the corresponding surface, you can check the "Transparent" option in the lower left corner of the interface. At this time, the unselected tolerance surfaces will appear semi-transparent, and users can adjust the transparency between 0% and 100% by dragging the slider. This function effectively blocks interfering information, making it easier for designers to check and find any missing tolerance surfaces.

[0083] After selecting the 3D part body in the default main interface, check the "Preview Tolerance Color" menu below. The part surface will be automatically replaced with the corresponding color according to the definitions of iron retention, iron removal, positive and negative surfaces, and zero-position surfaces. Areas without labeled surface attribute tolerances will be uniformly displayed in white to distinguish them from labeled surfaces.

[0084] In color preview mode, users can directly select the unmarked white surface and open the "Edit" menu on the right to assign it a new tolerance attribute. After the addition operation is performed, the interface will automatically refresh and replace the color according to the definition, thus achieving efficient annotation of part surface attribute tolerances. After exiting this interface, the part color will automatically revert to the original defined color, without affecting subsequent technical requirement definitions.

[0085] 5. Click the "Convert Tolerance to NOTE" launch menu to bring up the operation interface, select 3D solid, click OK, and the actual annotation content will be automatically displayed evenly as text around the part (e.g., Figure 3 As shown, the guidance includes surface attribute tolerance values, datum, geometric tolerances, and requirements for sharp corners. Clicking on the text will highlight the corresponding associated features, making it easy for personnel without secondary development package permissions to view. Simultaneously, the save function integrates an automatic refresh function, automatically clearing old text before regenerating the guidance, effectively preventing omissions in surface attribute tolerance updates.

[0086] 6. Click the "Table" menu to load tables in the 3D interface. Figure 4 The form shown is a floating form. This form has a dynamic following feature; it remains parallel to the screen even when the 3D model is rotated at any angle, allowing users to zoom in and out at any time. The form content covers standard tolerances and execution standards, and automatically retrieves the defined attributes of the 3D part to display relevant workpiece information. Furthermore, the form supports drawing version control; when filling in the "Workpiece Technical Requirements," users can directly reference the ID number in the floating color panel and describe it according to actual needs.

[0087] Based on the same inventive concept as the foregoing embodiments, this invention provides an electronic device, such as... Figure 5 As shown, the device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 5The processor 310 shown in the diagram does not indicate that there is only one processor 310, but only indicates the positional relationship of the processor 310 relative to other devices. In practical applications, there can be one or more processors 310; similarly, Figure 5 The memory 311 illustrated herein has the same meaning, that is, it is only used to indicate the positional relationship of memory 311 relative to other devices. In practical applications, there can be one or more memories 311. When the processor 310 runs the computer program, the method applied to the above-mentioned device is implemented.

[0088] The device may also include at least one network interface 312. The various components of the device are coupled together via a bus system 313. It is understood that the bus system 313 is used to implement communication between these components. In addition to a data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 The general designated all buses as Bus System 313.

[0089] The memory 311 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 311 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0090] The memory 311 in this embodiment of the invention is used to store various types of data to support the operation of the device. Examples of this data include: any computer programs used to operate on the device, such as operating systems and applications; contact data; phonebook data; messages; pictures; videos, etc. The operating system includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications, such as media players, browsers, etc., used to implement various application services. Here, the program implementing the method of this embodiment of the invention can be included in the application.

[0091] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a computer-readable storage medium storing a computer program. The computer-readable storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc. When the computer program stored in the computer-readable storage medium is run by a processor, it implements the above method. For the specific steps implemented when the computer program is executed by the processor, please refer to [link to relevant documentation]. Figure 1 The description of the illustrated embodiments will not be repeated here.

[0092] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0093] In this document, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, which includes not only the elements listed but also other elements not expressly listed.

[0094] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for face labeling based on 3D parts, characterized in that, include: Obtain the surface attribute data of the target surface in the 3D part model; The surface attribute data is written into the 3D model attributes of the target surface to complete the annotation; In response to the annotation command, the surface attribute data of the target surface is extracted, and text annotations with guide lines are automatically generated around the 3D part model.

2. The 3D part based face labeling method of claim 1, wherein, The process of obtaining the surface attribute data of the target surface in the 3D part model includes: In response to the launch command of the surface attribute tolerance interface, obtain one or more target surfaces selected in the 3D part model; Retrieve a preset face attribute editing group, which contains a variety of preset face mating types; In response to the selection instruction for the surface mating type, the preset tolerance value corresponding to the surface mating type is displayed in the surface attribute tolerance interface, and the confirmed or modified target tolerance value is obtained. The surface fit type and target tolerance value are used as the surface attribute data.

3. The method of claim 2, wherein, The step of writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation also includes: Receive additional instructions from users regarding special control requirements; The special control requirements are written as additional attribute data, along with the surface attribute data, into the 3D model attributes of the target surface; The special control requirements include at least one of the following: positional tolerances, requirements for important control surfaces, and trimming marks for purchased parts.

4. The 3D part based face labeling method of claim 2, wherein, After writing the surface attribute data into the 3D model attributes of the target surface to complete the annotation, the method further includes: In response to the preview tolerance color command, the marked faces in the 3D part model are replaced with the corresponding preset colors, and the unmarked faces are displayed with the default background color; In response to the selection and editing command of the unlabeled face displayed with the default background color, the face attribute editing group is invoked to configure face attribute data for the unlabeled face; After configuration, the interface will be automatically refreshed, and the display color of the unlabeled surface will be updated to the preset color corresponding to its surface attribute data.

5. The 3D part based face labeling method of claim 1, wherein, In response to the annotation command, the surface attribute data of the target surface is extracted, and text annotations with guide lines are automatically generated around the 3D part model, including: Extract the labeled surface attribute data from the 3D part model. The surface attribute data includes at least surface attribute tolerance values, datum, geometric tolerances, and sharp corner requirements. Automatically generate text annotations corresponding to the surface attribute data around the 3D part model, and establish the association between the text annotations and the corresponding target surfaces; Based on the aforementioned relationship, the guiding line is generated between the text annotation and the corresponding target surface.

6. The 3D part based face labeling method of claim 1, wherein, The method further includes: In response to a view command, display the labeled surface attribute data of the 3D part model; Obtain the target tolerance conditions selected for the labeled surface attribute data, and highlight the surfaces in the 3D part model that correspond to the target tolerance conditions; In response to a deletion command for the target tolerance condition, the target tolerance values ​​of the highlighted display surfaces are deleted in batches; and / or, In response to the extract face command, the highlighted face in the 3D part model is split into independent faces.

7. The 3D part based face labeling method of claim 6, wherein, After highlighting the surface corresponding to the target tolerance value in the 3D part model, the process includes: In response to the transparency adjustment command, the transparency of the surfaces in the 3D part model other than the highlighted surface is adjusted.

8. The 3D part based face labeling method of claim 1, wherein, The method further includes: Retrieve a preset dyeing configuration scheme, which defines the correspondence between various color IDs and processing requirements for various types of surfaces; Determine the surface processing requirements for each face in the 3D part model, and according to the correspondence, render each face with a preset color corresponding to the color ID that matches the surface processing requirements.

9. The 3D part based face labeling method of claim 1, wherein, The method further includes: In response to the form loading instruction, the predefined part attribute values ​​in the 3D part model are obtained, and a part technical requirements form is generated based on the part attribute values. The part technical requirements form includes default tolerances, execution standards, and drawing version information. The technical requirements form for the part is displayed on the left side of the 3D part model.

10. An electronic device, comprising: include: A processor and a memory storing a computer program, wherein, when the processor runs the computer program, the steps of the face annotation method based on any one of claims 1 to 9 are implemented.