Model pattern synchronization method based on chili 3D three-dimensional modeling pattern

By employing technologies such as improved JSON-LD semantic parsing and a Python mapping engine, the semantic loss and parameter update inconsistencies of SysMLv2 modeling results in 3D graphic representation were resolved, achieving high-fidelity rendering and real-time synchronization, and improving the accuracy and consistency of modeled graphics.

CN121120941BActive Publication Date: 2026-05-08HANGZHOU HUAWANG SYST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HUAWANG SYST TECH CO LTD
Filing Date
2025-09-10
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing SysMLv2 modeling results suffer from semantic loss, incomplete primitive construction, and inconsistent parameter updates when mapped to 3D graphical representations. This leads to inconsistencies between the model and the graphical state, affecting the consistency maintenance and collaborative modeling efficiency of the system.

Method used

By employing an improved JSON-LD semantic parsing, Python mapping engine, 3D affine matrix construction, and Boolean graph combination path, a bidirectional data channel from model to graphics is constructed, enabling high-fidelity rendering, incremental semantic write-back of graphics editing results, and automatic detection of graph-model differences.

Benefits of technology

It achieves high geometric accuracy, strong real-time synchronization, high iteration efficiency, and low cross-role collaboration cost in 3D modeling graphics synchronization, improving modeling accuracy and consistency, and supporting efficient and interactive model visualization and semantic bidirectional updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121120941B_ABST
    Figure CN121120941B_ABST
Patent Text Reader

Abstract

The application discloses a model graph synchronization method based on a Chili3D three-dimensional modeling graph, comprising the following steps: S1, obtaining a geometric modeling graph model to be visualized; S2, constructing an attribute node mapping structure; S3, binding a generated four-order transformation matrix to a corresponding graph node; S4, generating a Boolean combination graph construction path; S5, generating a three-dimensional modeling graph structure, assigning a unique node ID to each graph node, recording a component identifier, a primitive type and a current size parameter field, and generating a graph binding mapping table; S6, listening to a graph editing operation, constructing a semantic update mapping relationship, and synchronously updating the graph binding mapping table; and S7, based on an operation transformation algorithm, constructing a parameter difference matrix, and synchronously updating a SysMLv2 model component parameter. The application is applicable to an integration scene of a SysMLv2 modeling environment and a Chili3D graph engine, and has the advantages of high model graph synchronization precision, strong controllability of parameter change and good semantic mapping consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design and systems engineering visualization technology, and in particular to a method for synchronizing model graphics based on Chili3D 3D modeling diagrams. Background Technology

[0002] In current system modeling and visualization development, SysMLv2, as a standardized system modeling language, is widely used in the requirement modeling, structural modeling, and behavioral modeling of complex systems. It features rigorous semantics and strong expressive power, capable of expressing geometric information in the model through the GeometryView structure, and supporting the definition of spatial components, coordinate frames, and assemblies. However, in practical engineering applications, efficiently mapping SysMLv2 modeling results into 3D graphical representations, and thus achieving interactive and editable modeling graphical structures, still faces a series of technical challenges.

[0003] Current visualization tools typically employ a static modeling workflow, exporting the geometry from SysMLv2 and then rendering it unidirectionally using a graphics engine. This approach suffers from two main problems: First, most existing tools lack the ability to fine-grainedly analyze the semantic structure of SysMLv2 models, especially when dealing with multi-layered nested attribute fields, coordinate frame transformation information, and Boolean operation models. This often results in semantic loss and incomplete primitive construction, causing the final generated graphical nodes to fail to accurately reflect the original semantics of the modeled components. Second, after the model graphics are rendered, there is a lack of an effective mechanism for graphical editing feedback. Adjustments made by the user on the graphical interface cannot be synchronously updated in the original model, leading to inconsistencies between the model and the graphical state, impacting system consistency maintenance and collaborative modeling efficiency.

[0004] Current graphics synchronization methods also have shortcomings in parameter update processing. When graphics parameters change during editing, traditional methods often directly overwrite all model parameters, lacking a mechanism for judging and filtering differences in parameter changes. This easily introduces redundant updates and erroneous modifications, especially in large and complex systems. Therefore, there is an urgent need for a graphics synchronization method that can achieve high-fidelity mapping between SysMLv2 models and 3D graphics, parameter-level synchronous updates, and accurate recording of graphics changes, to support efficient, accurate, and interactive model visualization and semantic bidirectional update processes. The aforementioned technical bottlenecks are precisely the core problems that this invention aims to solve. Summary of the Invention

[0005] One objective of this invention is to propose a 3D modeling graph-graphics synchronization method based on SysMLv2 geometry views and the Chili3D engine. This invention comprehensively utilizes improved JSON-LD semantic parsing, a Python mapping engine, 3D affine matrix construction, Boolean graph combination paths, and operation transformation algorithms. It details the bidirectional data channel construction process from model to graphics and back to model, enabling real-time synchronization of dimensional parameters and spatial states. This method achieves high-fidelity rendering of complex Boolean geometry, incremental semantic back-writing of graphic editing results, and automatic detection of graph-model differences. It boasts advantages such as high geometric accuracy, strong real-time synchronization, high iteration efficiency, and low cost for cross-role collaboration.

[0006] The method for synchronizing the model graphics of a 3D modeling drawing based on Chili3D according to an embodiment of the present invention includes the following steps:

[0007] S1. Obtain the geometric modeling diagram to be visualized from the SysMLv2 modeling platform;

[0008] S2. Introduce an improved JSON-LD semantic parsing method to construct an attribute node mapping structure;

[0009] S3. For the coordinate frame model, bind the generated fourth-order transformation matrix to the corresponding graphics node;

[0010] S4. For the Boolean operation model, parse the Boolean combination type and generate the Boolean combination graph construction path;

[0011] S5. Use the intermediate representation of structured primitive parameters to drive the Chili3D graphics construction engine, generate a 3D modeling graph structure, assign a unique node ID to each graphic node, record the component identifier, primitive type and current size parameter fields, and generate a graphic binding mapping table.

[0012] S6. Monitor graphic editing operations, generate a structured set of changed parameters using a graphic parameter change detection algorithm, locate the corresponding SysMLv2 model component in the graphic binding mapping table using a unique node ID, construct a semantic update mapping relationship, and synchronously update the graphic binding mapping table.

[0013] S7. Based on the operation transformation algorithm, construct the parameter difference matrix and update the SysMLv2 model component parameters synchronously.

[0014] Optionally, S1 specifically includes:

[0015] S11. Obtain the geometric modeling diagram to be visualized from the SysMLv2 modeling platform and transfer it to the SysMLv2 geometric model parsing layer for parsing processing.

[0016] S12. Identify the GeometryView structure contained in the geometric modeling graph to be visualized;

[0017] S13. Traverse all modeling components contained in the GeometryView structure, and perform semantic type resolution operation on the modeling components based on the type attributes of the modeling components in the SysMLv2 modeling platform and the redefined model library entries.

[0018] S14. Semantic type parsing operation of modeling components: Based on the type attributes and semantic structure of the modeling components, the modeling components are divided into three categories: geometric parameter model, coordinate frame model and Boolean operation model.

[0019] Optionally, the SysMLv2 geometric model parsing layer is a semantic parsing module in this invention used to parse and extract the geometric model graph structure from the SysMLv2 modeling platform. Its main function is to receive the GeometryView structure exported from the modeling platform, classify and identify the modeling components contained therein, and construct a structured primitive parameter intermediate representation as an input template for 3D graphics construction.

[0020] Optionally, S2 specifically includes:

[0021] S21. An improved JSON-LD semantic parsing method is adopted to extract multi-level key-value mapping relationships, inheritance paths, type identifiers and semantic context annotation information from the attribute fields of the geometric parameter model, and to construct an attribute node mapping structure.

[0022] S22. Based on the attribute node mapping structure, according to the preset semantic rule matching table of primitive type and parameter field, perform semantic mapping and structure matching operation, bind the parameter field parsed in the attribute node mapping structure with the corresponding preset primitive type, and complete primitive type identification.

[0023] S23. After completing the primitive type identification, based on the Python mapping engine mechanism integrated in the improved JSON-LD semantic parsing method, the corresponding size parameter fields are automatically extracted from the attribute node mapping structure; the extracted size parameters are written into the spatial component parameter set.

[0024] S24. In the process of extracting size parameters, if there are field naming conflicts and semantic overlaps, the improved JSON-LD semantic parsing method introduces a conflict detection and fault tolerance mechanism based on field priority and semantic context: when redundant or ambiguous fields appear in the same graphic element component, the main field defined in the field priority table is used first, and ambiguous field removal and redirection mapping are performed in combination with semantic context.

[0025] S25. The parsing results, after semantic standardization, conflict tolerance, and parameter completion through the improved JSON-LD semantic parsing method, are uniformly organized into a structured primitive parameter intermediate representation, and used as the input structure for subsequent 3D graphics expression system generation and graphics binding processes.

[0026] Optionally, the Python mapping engine mechanism is a semantic field extraction and structure mapping module implemented in Python, integrated into the improved JSON-LD semantic parsing method. It is primarily used to automatically identify and extract key fields such as primitive type and size parameters after constructing the attribute node mapping structure. This mechanism recursively traverses multi-layered nested JSON-LD data structures, combining a semantic rule matching table and a data dictionary to automatically locate and parse semantically meaningful parameter fields. The parsing results are standardized into structured key-value pairs and written into the spatial component parameter set.

[0027] Optionally, S3 specifically includes:

[0028] S31. In the parsed coordinate frame model, parse the three-dimensional spatial transformation parameters defined inside the coordinate frame model, including the rotation matrix and translation vector.

[0029] S32. Call the 3D affine matrix construction algorithm to structurally combine the above rotation matrix and translation vector to generate a fourth-order transformation matrix that conforms to the Chili3D engine specification.

[0030] S33. Bind the generated fourth-order transformation matrix to the corresponding graphics node. When rendering the graphics node, the Chili3D graphics engine automatically sets the position coordinates and spatial orientation of the graphics node in the three-dimensional scene according to the rotation matrix and translation vector in the fourth-order transformation matrix, realizing the spatial mapping of SysMLv2 model components in the Chili3D graphics structure; and write the rotation matrix and translation vector as primitive spatial state information into the intermediate representation of structured primitive parameters.

[0031] Optionally, the execution process of the 3D affine matrix construction algorithm includes the following operations: extracting the rotation matrix and corresponding translation vector from the coordinate frame model. The rotation matrix represents the orientation relationship of the modeling component in 3D space and consists of three orthogonal axis vectors; the translation vector represents the 3D displacement of the modeling component relative to the reference origin. The three axis vectors of the rotation matrix are sequentially written into the first three columns of the target transformation matrix to define the orientation information of the graphics node; then, the three components of the translation vector are written into the fourth column of the target matrix to define the position of the graphics node in space. The lower right corner of the transformation matrix is ​​set to a unit identifier value to meet the format requirements of the Chili3D graphics engine for fourth-order affine matrices. The fourth-order affine matrix is ​​finally bound to the graphics node to control the position and orientation of the corresponding primitive in the 3D modeling drawing.

[0032] Optionally, the Chili3D engine specification requires that the spatial transformation information of graphics nodes be described in the form of a standard fourth-order affine matrix. This matrix consists of four rows and four columns, totaling sixteen elements, used to uniformly express the rotational attitude, spatial position, and transformation rules of the primitives; the first three columns represent the local coordinate system of the primitives in three-dimensional space. , , The direction is used to determine the rotation orientation of the primitive; the first three elements of the fourth column are used to store the spatial translation vector of the primitive, that is, the three-dimensional position coordinates of the primitive relative to the origin.

[0033] The fourth row of the matrix needs to be fixed as The structure ensures mathematical consistency and rendering closure of transformation operations within the engine. Chili3D uses a right-handed coordinate system by default, so the rotation direction and spatial position represented in the matrix should conform to the right-hand rule. In the specific implementation, the matrix data is arranged linearly in row-major order, maintaining compatibility with Chili3D's graphics rendering pipeline data interface, thereby achieving accurate configuration and transformation control of primitives in the 3D scene.

[0034] Optionally, S4 specifically includes:

[0035] S41. In the parsed Boolean operation model, identify the Boolean combination type field, and distinguish the three types of union, difference and intersection according to the Boolean combination type;

[0036] S42. Parse all Boolean sub-component identifiers participating in the Boolean operation model to determine the combination order of Boolean sub-components in the geometric modeling graph; based on the Chili3D graphics construction specifications, construct the Boolean graphics combination path according to the Boolean combination type and the spatial relationship of the participating components.

[0037] The spatial relationship of the participating components refers to the positional overlap, nesting relationship, and relative arrangement of the Boolean sub-components in the 3D modeling diagram before the Boolean operation is performed.

[0038] S43. Embed the Boolean sub-component graphics into the Boolean graphics combination path, perform the corresponding Boolean operation, generate a complex primitive structure that meets the combination requirements, and attach the generated Boolean combination graphics to the target node of the 3D modeling diagram.

[0039] The Boolean sub-component graphics are the three-dimensional representations of the components participating in Boolean operations in the graphics engine;

[0040] The corresponding Boolean operations are geometric operations performed based on predefined combination types: union, difference, and intersection.

[0041] S44. The Boolean combination type, Boolean sub-component combination order, and Boolean graphic combination path are incorporated as semantic structure content of the combined primitives and included in the intermediate representation of structured primitive parameters.

[0042] Optionally, the spatial relationship of the participating components refers to the three-dimensional spatial state of each sub-component before constructing the Boolean combination. This spatial state is determined by the rotation matrix and translation vector defined in its corresponding coordinate frame. The rotation matrix and translation vector are combined into a fourth-order transformation matrix and written into the Chili3D primitive structure to determine the position and orientation of the sub-component primitive in the three-dimensional scene. This spatial relationship is calculated using the intersects(), contains(), and distanceTo() APIs provided by Chili3D.

[0043] Optionally, the Boolean graphic combination path refers to a graphic node structure path constructed based on Boolean operation type and sub-component combination order. The Boolean graphic combination path takes the main component as the root node, nests and combines multiple sub-component graphic nodes according to the Boolean operation type, and generates a primitive combination structure by combining the spatial transformation information of each sub-component, which serves as the construction process and structural carrier of the Boolean combined graphic.

[0044] Optionally, S5 specifically includes:

[0045] S51. Based on the intermediate representation results of structured primitive parameters, drive the graphics construction engine deployed in the Chili3D visualization layer to initialize the 3D modeling process:

[0046] S52. Based on the definitions of the primitive type and size parameter fields in the intermediate representation of the structured primitive parameters, dynamically generate the corresponding graphic nodes and set the graphic identifier and node type of the graphic nodes.

[0047] S53. When a primitive is detected to be of Boolean operation type, the Boolean combination type field and the sub-component identifier list in the structured primitive parameters are parsed, and a Boolean graphic combination path is constructed according to the set component combination order. The Chili3D native Boolean operation engine is called to perform union, difference or intersection operations on the sub-component graphic nodes participating in the Boolean operation, generate combined primitive nodes, and attach them to the target parent node in the 3D modeling drawing.

[0048] S54. Organize the basic primitive nodes and combined primitive nodes generated above into the Chili3D three-dimensional modeling graph structure to form a three-dimensional graphic expression system that corresponds one-to-one with the SysMLv2 model components.

[0049] S55. After the graphic generation process of S51-S54 is completed, establish the binding mapping relationship between SysMLv2 model components and Chili3D graphic nodes: assign a unique node ID to each Chili3D graphic node, and record the corresponding bound component identifier, primitive type and current size parameter fields to the graphic binding mapping table.

[0050] Optionally, the Chili3D visualization layer is a 3D modeling rendering module that hosts the graphics construction engine and Boolean operation engine. It is responsible for converting the intermediate representation of structured primitive parameters into an interactive and editable 3D graphical structure. This layer realizes the 3D graphical representation and node management of model components by calling the primitive constructor, Boolean operation functions, and transformation matrix binding interfaces provided by Chili3D.

[0051] Optionally, S6 specifically includes:

[0052] S61. In the Chili3D interactive interface, listen for the user's graphic editing operations on the graphic nodes in the 3D model drawing;

[0053] S62. For the detected graphic editing operation, call the graphic parameter change detection algorithm deployed in the bidirectional data conversion engine to extract the updated parameter values ​​of the graphic nodes. The graphic parameter change detection algorithm includes a structured difference comparison algorithm and a parameter tree Diff algorithm, which are used to compare the numerical differences of the graphic parameter tree structure before and after the change and generate a structured change parameter set.

[0054] S63. Based on the unique node ID of the graphic node where the graphic editing operation is currently taking place, query the graphic binding mapping table to locate the SysMLv2 model component identification information bound to the graphic node.

[0055] S64. Based on the differences between the structured change parameter set and the spatial component parameter set, construct a semantic update mapping relationship;

[0056] S65. Write the constructed semantic update mapping relationship to the corresponding model component position in the original SysMLv2 model component, complete the semantic back-write of the graphic editing operation to the model component, and complete the semantic synchronization from Chili3D graphic structure to SysMLv2 model component.

[0057] S66. After the semantic write-back is completed, record the graph node ID, changed field name, old value and new value of this graph change event, and update the graph parameter value of the corresponding item in the graph binding mapping table.

[0058] Optionally, the bidirectional data conversion engine is a parameter synchronization processing module that supports the process of semantic back-writing from graphics to models and mapping from models to graphics. It is mainly responsible for extracting the updated graphics parameters when a graphics editing operation occurs, performing semantic mapping with the bound model components, and completing parameter synchronization updates and difference analysis.

[0059] Optionally, S7 specifically includes:

[0060] S71. After completing the semantic write-back, the operation transformation algorithm is called to perform a field-level comparison between the structured change parameter set of the updated model components and the parameter set before the update. The operation transformation algorithm first converts the two sets of parameter sets into nested field structures: each field contains a field path, field type and field value.

[0061] By using the parameter key-value structure traversal mechanism, the field values ​​are compared item by item along the field path to determine whether the numerical values ​​of each field have changed, been replaced, or had their semantics modified.

[0062] Based on the comparison results, generate difference records for each field and summarize them to form a parameter difference matrix;

[0063] S72. The parameter difference matrix uses the component identifier of the model component as the row index and the name of the dimension parameter field as the column index. Each element of the parameter difference matrix represents the difference in parameter value of the dimension parameter field before and after graphic editing. The difference measure uses the L2 norm.

[0064] S73. Set a predefined parameter change threshold, traverse the parameter difference matrix, and filter out all parameter fields whose parameter values ​​are greater than or equal to the parameter change threshold to form the set of fields for this round of incremental update.

[0065] S74. For each size parameter field in the incremental update field set, first read the numerical difference of the size parameter field in the parameter difference matrix.

[0066] If the numerical difference is greater than or equal to the preset parameter change threshold, then based on the correspondence between the node ID and the component identifier recorded in the graphical binding mapping table, the field with the same name is accurately located in the SysMLv2 model component and the new value is overwritten with the old value. Fields with differences below the threshold remain unchanged.

[0067] S75. After completing the parameter update of the SysMLv2 model components, based on the results of this round of incremental updates, the parameter value records of the relevant components in the graphic binding mapping table are updated synchronously so that the graphic binding mapping table reflects the latest status of the current model components.

[0068] S76. Record the incremental update process of this round as a structured log item. The log item includes the component identifier, graphic node ID, parameter field name, old value, new value and corresponding numerical difference, and save it to the graphic change log.

[0069] The beneficial effects of this invention are:

[0070] This invention constructs a structured primitive parameter intermediate representation and effectively extracts semantic fields and size parameters from the SysMLv2 model based on an improved JSON-LD semantic parsing method. This solves the problems of coarse parameter extraction granularity and unclear semantic structure in the existing model during the graphics construction process, and realizes accurate semantic mapping and primitive type recognition of modeling components, providing stable data support for subsequent 3D graphics generation.

[0071] This invention utilizes the Chili3D graphics construction engine to dynamically generate a modeling graph structure that includes basic graphic nodes and Boolean combined primitive nodes, and establishes a one-to-one binding relationship between graphic nodes and SysMLv2 components. This enables a traceable parameter mapping path between the model layer and the graphics layer, enhancing the expressive power and semantic consistency of the 3D modeling graph, and effectively improving the visualization accuracy of the geometric view model.

[0072] This invention introduces a graphic parameter change detection algorithm and an operation transformation algorithm to realize an incremental semantic write-back mechanism after graphic editing operations. By constructing a parameter difference matrix, filtering significantly changed fields, and updating the field values ​​of model components, this invention can automatically synchronize graphic modification results to the SysMLv2 model, opening up a feedback path from graphics to the model and improving modeling collaboration efficiency and semantic consistency maintenance capabilities.

[0073] This invention also achieves structured tracking and backtracking of the modeling change process through a collaborative update mechanism of the graph binding mapping table and the graph change log. It supports historical traceability of the model-graph bidirectional linkage, significantly enhancing the system's management capabilities and maintainability for multiple rounds of modeling changes. In summary, this invention, while maintaining modeling accuracy, greatly improves modeling efficiency and model graph consistency, possessing good engineering practical value and promising prospects for widespread application. Attached Figure Description

[0074] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0075] Figure 1 This is an overall flowchart of the model-graphic synchronization method for 3D modeling diagrams based on Chili3D proposed in this invention;

[0076] Figure 2 This is a structural diagram of the improved JSON-LD semantic parsing and primitive parameter extraction method for the model-graphic synchronization method based on Chili3D 3D modeling graph proposed in this invention.

[0077] Figure 3 This is a diagram showing the structure of the graphics binding mapping table and change log update mechanism for the model graphics synchronization method based on Chili3D proposed in this invention. Detailed Implementation

[0078] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0079] refer to Figure 1-3 A method for synchronizing the model and graphics of a 3D modeling drawing based on Chili3D includes the following steps:

[0080] S1. Obtain the geometric modeling diagram to be visualized from the SysMLv2 modeling platform;

[0081] S2. Introduce an improved JSON-LD semantic parsing method to construct an attribute node mapping structure;

[0082] S3. For the coordinate frame model, bind the generated fourth-order transformation matrix to the corresponding graphics node;

[0083] S4. For the Boolean operation model, parse the Boolean combination type and generate the Boolean combination graph construction path;

[0084] S5. Use the intermediate representation of structured primitive parameters to drive the Chili3D graphics construction engine, generate a 3D modeling graph structure, assign a unique node ID to each graphic node, record the component identifier, primitive type and current size parameter fields, and generate a graphic binding mapping table.

[0085] S6. Monitor graphic editing operations, generate a structured set of changed parameters using a graphic parameter change detection algorithm, locate the corresponding SysMLv2 model component in the graphic binding mapping table using a unique node ID, construct a semantic update mapping relationship, and synchronously update the graphic binding mapping table.

[0086] S7. Based on the operation transformation algorithm, construct the parameter difference matrix and update the SysMLv2 model component parameters synchronously.

[0087] This invention provides a method for synchronizing 3D modeling graphs based on Chili3D. It obtains the geometric modeling graph to be visualized from the SysMLv2 modeling platform, and constructs an attribute node mapping structure using an improved JSON-LD semantic parsing method. This enables structural identification and semantic extraction of the geometric parameter model, coordinate frame model, and Boolean operation model. Spatial location and combinational logic are modeled and expressed by generating a fourth-order transformation matrix and Boolean combination paths. Subsequently, the structured primitive parameter intermediate representation drives the Chili3D graphics engine to generate the corresponding 3D modeling graph structure, establishing a one-to-one mapping relationship between graphic nodes and model components. When the user edits the graph, the system listens for graphic node operations and extracts changed parameters. Semantic updates from the graph to model components are synchronized using a graphic parameter change detection algorithm and a graphic binding mapping table. Finally, a parameter difference matrix is ​​constructed using an operation transformation algorithm. Incremental update fields are filtered based on difference thresholds to complete precise updates of model components, ensuring real-time consistency and semantic linkage between the 3D graph and the SysMLv2 model.

[0088] In this embodiment, S1 specifically includes:

[0089] S11. Obtain the geometric modeling graph model to be visualized from the SysMLv2 modeling platform. The geometric modeling graph model is organized in SysMLv2 standard semantics and the semantic attributes and hierarchical structure of each component of the model are represented by text structure or intermediate structured data.

[0090] S12. Identify the GeometryView structure contained in the geometric modeling graph, wherein the GeometryView structure is used to describe the visual organization relationship of components in space;

[0091] S13. Traverse all modeling components contained in the GeometryView structure, and perform component semantic type resolution operation based on the type attributes of the modeling components in the SysMLv2 model and the redefined model library entries.

[0092] S14. Based on the type attributes and semantic structure of the components, the modeling components are divided into three categories: if the component type is set to a ShapeItem subclass and contains geometric dimension parameters, it is identified as a geometric parameter model; if the component defines a coordinateFrame structure and contains rotationMatrix and translationVector parameters, it is identified as a coordinate frame model; if the component references multiple sub-components and contains Boolean combination operation expressions, it is identified as a Boolean operation model.

[0093] S15. Organize the parsed modeling component type information into a structured parsing result for subsequent primitive construction process calls, and provide a semantic basis for the binding mapping between the model and the graphics.

[0094] This invention obtains the geometric modeling graph to be visualized from the SysMLv2 modeling platform and identifies the GeometryView structure within it, systematically analyzing the semantic attributes and spatial organization relationships of the components in the model. By traversing all modeling components in the GeometryView structure, semantic type parsing is performed based on the component's type attributes and the redefined model library entries, classifying the components into three categories: geometric parameter models, coordinate frame models, and Boolean operation models, and extracting the corresponding size parameters, coordinate transformation parameters, or Boolean combination logic information. The above parsing results are organized in a structured manner, providing a unified model semantic foundation for subsequent primitive construction, graphic binding, and semantic mapping, ensuring semantic consistency and graphic accuracy in the 3D modeling graph construction process.

[0095] In this implementation, multi-level key-value mapping relationships are extracted. A recursive traversal-based attribute parsing mechanism is employed to traverse each nested object in the JSON-LD data structure from bottom to top, parsing its key-value pairs layer by layer. During the parsing process, attribute hierarchy relationships are recorded in the form of field paths, constructing an attribute dictionary structure with paths as keys. This attribute dictionary structure not only records attribute values ​​but also retains the information of their respective nodes and their context binding relationships, forming an attribute node mapping structure oriented towards primitive parsing.

[0096] In this implementation, inheritance path information is extracted, inheritance relationship indicators in attribute fields are identified, and a model redefinition chain from child components to parent components is established. For component nodes that redefine model library primitives, the path of the upper-level geometric model from which they inherit is recorded, and this path is used as the inheritance source identifier for the node's fields. Inheritance path information is used to determine the source of fields and their default value inheritance rules during subsequent type binding and missing field completion processes.

[0097] In this implementation, to extract type identifiers, the `@type` field value in each component or attribute node is identified and matched against a preset element type table in the modeling platform. If no explicit `@type` annotation exists, the default type definition is determined by tracing back to the parent node of the model block containing it or the referenced `@context`.

[0098] In this embodiment, to extract semantic context annotation information, the @context block in the JSON-LD document is parsed to extract the @id semantic identifier and @comment annotation text corresponding to each attribute field. This semantic annotation information, as an important supplement to the semantic context, is stored in the attribute node mapping structure to assist in semantic conflict detection, parameter missing completion, and semantic matching and reasoning during the execution of fault tolerance mechanisms.

[0099] In this embodiment, S2 specifically includes:

[0100] S21. An improved JSON-LD semantic parsing method is adopted to extract multi-level key-value mapping relationships, inheritance paths, type identifiers, and semantic context annotation information from the attribute fields of the geometric parameter model, and to construct an attribute node mapping structure to support primitive category recognition and dimension parameter extraction operations.

[0101] S22. Based on the attribute node mapping structure, according to the preset semantic rule matching table of primitive type and parameter field, perform semantic mapping and structure matching operations, bind the parameter field parsed in the attribute node mapping structure to the corresponding primitive type, and complete the type matching and association registration between the primitive to be identified and the preset primitive type.

[0102] S23. Based on the Python mapping engine mechanism integrated in the improved JSON-LD semantic parsing method, for primitive categories that have completed type matching and association registration, the corresponding size parameter fields are automatically extracted from the attribute node mapping structure, including the side length, width and height fields of cubes, the base radius and height fields of cylinders, and the radius field of spheres; the extracted size parameter fields are written into the spatial component parameter set for use in the subsequent graphic generation process.

[0103] S24. In the process of extracting size parameter fields, if there are field naming conflicts and semantic overlap issues, the improved JSON-LD semantic parsing method introduces a conflict detection and fault tolerance mechanism based on field priority and semantic context: when redundant or ambiguous fields appear in the same graphic element component, the main field defined in the field priority table is used first, and ambiguous field elimination and redirection mapping are performed in combination with semantic context.

[0104] S25. The parsing results, after semantic standardization, conflict tolerance, and parameter completion through the improved JSON-LD semantic parsing method, are uniformly organized into a structured primitive parameter intermediate representation, and used as the input structure for subsequent 3D graphics generation and graphics binding processes.

[0105] This invention introduces an improved JSON-LD semantic parsing method to deeply analyze the attribute fields of a geometric parametric model, extracting its multi-level key-value mapping relationships, inheritance paths, type identifiers, and semantic context annotations to construct a structured attribute node mapping structure. Based on this, a semantic rule matching table between primitive types and parameter fields is used to achieve semantic recognition of primitive categories and binding of parameter fields. Utilizing an integrated Python mapping engine, the system automatically extracts the required dimensional parameters for various primitives (such as cubes, cylinders, and spheres) and writes them into the spatial component parameter set. To resolve field conflicts and semantic overlap issues, this method introduces a conflict detection and fault-tolerance mechanism driven by field priority and contextual semantics, ensuring the accuracy and consistency of the parameter extraction process. Finally, a unified structured intermediate representation of primitive parameters is generated, serving as a key input for subsequent 3D graphics construction and graphics binding, achieving efficient semantic docking from model to graphics.

[0106] In this embodiment, the retargeting mapping refers to the process where, during the extraction of dimension parameter fields, when the system detects multiple fields with different names but similar semantics (such as "r" and "radius") within the same graphic element, the improved JSON-LD semantic parsing method first selects the semantically primary field to be retained based on the field priority table. Then, combining the semantic context information of the current graphic element, it performs a retargeting operation on low-priority or ambiguous fields. The retargeting mapping operation includes: identifying ambiguous fields, finding their corresponding standard field names in the field mapping rule table, and replacing, merging, or uniformly binding them to the primary field, thereby completing the standardization and unification of field semantics and ensuring the correctness and consistency of the final parameter extraction results.

[0107] In this embodiment, S3 specifically includes:

[0108] Within the identified coordinate frame model, the 3D spatial transformation parameters defined within the model are analyzed, including rotation matrices and translation vectors. A 3D affine matrix construction algorithm is invoked to structurally combine these rotation matrices and translation vectors, generating a fourth-order transformation matrix conforming to the Chili3D engine specifications. This fourth-order transformation matrix is ​​then bound to the corresponding graphics node, enabling the setting and orientation adjustment of the target geometry within the 3D scene, thus completing the spatial mapping of modeling primitives from the SysMLv2 model to the Chili3D graphics structure. These modeling primitives refer to the basic geometric components defined by the GeometryView structure within the SysMLv2 model, possessing clear spatial attributes and construction semantics. These include parametric geometries, coordinate frame constraint volumes, and their Boolean combinations, serving as core elements for graphics synchronization and scene reconstruction.

[0109] This invention analyzes the defined 3D spatial transformation parameters, including rotation matrices and translation vectors, within the identified coordinate frame model. It then uses a 3D affine matrix construction algorithm to structurally combine these parameters, generating a fourth-order transformation matrix conforming to the Chili3D graphics engine specifications. This matrix is ​​then bound to the corresponding graphics nodes, enabling precise position setting and orientation adjustment of the target geometry within the 3D scene. This completes the spatial mapping of modeling primitives from the SysMLv2 model to the Chili3D graphics structure. The modeling primitives encompass parametric geometry, coordinate frame constraint volumes, and their Boolean combinations, all possessing clear spatial attributes and construction semantics, forming a crucial foundation for achieving graphics synchronization and scene reconstruction.

[0110] In this embodiment, S4 specifically includes:

[0111] In the parsed Boolean operation model, the Boolean combination type field is identified, and three types—union, difference, and intersection—are distinguished based on this field. All Boolean sub-component identifiers participating in the Boolean operation model are parsed to determine the combination order of the Boolean sub-components in the geometric modeling diagram. The specific operations are as follows:

[0112] When parsing the Boolean operation model, all Boolean sub-component identifiers listed in the Boolean operation field are first identified. Each Boolean sub-component identifier corresponds to a modeling component under the GeometryView structure in the geometric modeling graph. If a combination order field is defined in the Boolean operation model, the combination order of the Boolean sub-components is determined according to the permutation index given in that field; if no order is explicitly specified, the declaration order of the modeling components in the GeometryView structure is adopted, and the default sorting is performed according to their index number in the component array.

[0113] Based on the Chili3D graphics construction specification, Boolean graphics combination paths are constructed according to the Boolean combination type and the spatial relationship of the participating components. Each sub-component graphic is embedded in the Boolean graphics combination path, and corresponding Boolean operations are performed to generate a complex primitive structure that meets the combination requirements. The generated Boolean combination graphics are then attached to the target node of the 3D modeling graph. The Boolean combination type, sub-component combination order, and Boolean graphics combination path are used as the semantic structure content of the combined primitives and incorporated into the intermediate representation of the structured primitive parameters.

[0114] This invention, when parsing the Boolean operation model, first identifies the Boolean combination type field, distinguishes between three combination methods: union, difference, and intersection, and parses the identifiers of all sub-components participating in Boolean operations. Based on the explicitly specified combination order field or the default declaration order in the GeometryView structure, the combination order of the Boolean sub-components is determined. Combining the Chili3D graphics construction specifications, a Boolean graphics combination path is constructed based on the spatial relationship between the combination type and the sub-components. Sub-component graphics are embedded one by one into the path, and the corresponding geometric-level Boolean operations are performed to generate complex combination primitives that conform to semantic structure. These primitives are then attached to the target graphics node, completing the visual representation of the Boolean primitives. Simultaneously, the Boolean combination type, sub-component order, and construction path are incorporated as semantic elements into the intermediate representation of structured primitive parameters, providing support for subsequent graphics synchronization and parameter binding.

[0115] In this embodiment, S5 specifically includes:

[0116] S51. Based on the intermediate representation results of structured primitive parameters, call the Chili3D graphics construction engine to initialize the 3D modeling process:

[0117] The structured primitive parameters, represented as an intermediate template, are parsed line by line. Then, the primitive constructor provided by Chili3D is called to create 3D graphic nodes. Following affine transformations, hierarchical structures, and composition rules, these graphics are embedded into the Chili3D scene graph.

[0118] S52. Based on the definitions of primitive type and geometric dimension parameters in the structured primitive parameters, dynamically generate the corresponding basic graphic nodes, and set the graphic identifier and node type of the basic graphic nodes.

[0119] S53. When a primitive is detected to be of Boolean operation type, the Boolean combination type field and the sub-component identifier list in the structured primitive parameters are parsed, and a Boolean graphic combination path is constructed according to the set component combination order. The Chili3D native Boolean operation engine is called to perform union, difference or intersection operations on the sub-component graphic nodes participating in the Boolean operation, generate combined primitive nodes, and attach them to the target parent node in the 3D modeling drawing.

[0120] S54. Organize the basic primitive nodes and combined primitive nodes generated above into the Chili3D three-dimensional modeling graph structure to form a three-dimensional graphic expression system that corresponds one-to-one with the SysMLv2 model components.

[0121] S55. Establish the binding mapping relationship between SysMLv2 model components and Chili3D graphics nodes, assign a unique node ID to each graphics node, and record the model component identifier, current graphics type and graphics parameter value bound to each graphics node, and construct a graphics binding mapping table.

[0122] In the process of generating 3D graphics, this invention uses a structured primitive parameter intermediate representation as an input template, parses primitive construction information line by line, calls the Chili3D graphics construction engine to initialize the 3D modeling process, and dynamically creates basic graphic nodes based on primitive type and size parameters. When a Boolean operation type is detected, the Boolean combination type field and sub-component identifier list are parsed to construct a Boolean graphic combination path, and union, difference, or intersection operations are performed to generate combined primitive nodes. All basic and combined graphic nodes are uniformly embedded into the Chili3D 3D modeling graph structure to form a graphic representation that corresponds one-to-one with SysMLv2 model components. Finally, a unique node ID is assigned to each graphic node, and the bound model component identifier, graphic type, and parameter values ​​are recorded to construct a graphic binding mapping table, realizing the precise association between graphic nodes and model components.

[0123] In this embodiment, S6 specifically includes:

[0124] S61. In the Chili3D interactive interface, listen for the user's graphic editing operations on the graphic nodes in the 3D model drawing;

[0125] S62. For the detected graphic editing operation, call the graphic parameter change detection algorithm to extract the updated parameter values ​​of the graphic nodes. The graphic parameter change detection algorithm includes a structured difference comparison algorithm and a parameter tree Diff algorithm, which are used to compare the numerical differences of the graphic parameter tree structure before and after the change and generate a structured change parameter set.

[0126] S63. Based on the unique node ID of the graph node, query the graph binding mapping table to locate the SysMLv2 model component identification information bound to it;

[0127] S64. Based on the differences between the structured change parameter set and the spatial component parameter set, construct a semantic update mapping relationship;

[0128] S65. Write the constructed semantic update mapping relationship to the position of the corresponding model component in the original SysMLv2 model, complete the semantic back-write of the graphic editing operation to the model component, and complete the semantic synchronization from Chili3D graphic structure to SysMLv2 geometric model.

[0129] S66. After the semantic write-back is completed, record the graph node ID, changed field name, old value and new value of this graph change event, and update the graph parameter value of the corresponding item in the graph binding mapping table.

[0130] This invention, during the process of graphic editing and model semantic synchronization, monitors user graphic editing operations on graphic nodes in the 3D modeling drawing through the Chili3D interactive interface. It extracts updated graphic parameters using a graphic parameter change detection algorithm and generates a structured change parameter set through structured difference comparison and parameter tree Diff algorithms. Subsequently, it queries the graphic binding mapping table based on the unique node ID of the graphic node to accurately locate the bound SysMLv2 model component identification information. Based on parameter differences, it constructs a semantic update mapping relationship and writes it to the corresponding position in the original SysMLv2 model, achieving semantic synchronization updates from the Chili3D graphic structure to the SysMLv2 geometric model. After synchronization, it also records detailed information about graphic change events and updates relevant items in the graphic binding mapping table to ensure real-time consistency of model component parameter states.

[0131] In this embodiment, S7 specifically includes:

[0132] S71. After completing the semantic write-back operation, the operation transformation algorithm is invoked to perform a field-level difference comparison between the updated parameter set and the parameter set before the update, constructing a parameter difference matrix that records the degree of change of each parameter. The operation transformation algorithm employs a parameter key-value tree structure difference detection process, comparing the parameter set before the update with the parameter set before the update. With the updated parameter set Represented as a nested multi-level key-value mapping structure, a parameter tree is constructed. and By performing a depth-first traversal, the path of each field is... Calculate its difference measure. The definition is as follows:

[0133] ;

[0134] All field paths and corresponding difference measures Organized as a parameter difference matrix :

[0135] ;

[0136] in For the first Each field is a path identifier. The degree of change is used to reflect the specific changes in each field of the model component after semantic write-back. This difference matrix serves as the basis for parameter changes in subsequent synchronous update strategies.

[0137] S72. The parameter difference matrix uses the component identifier of the model component as the row index and the name of the dimension parameter field as the column index. Each element of the parameter difference matrix represents the difference in parameter value of the dimension parameter field before and after graphic editing. The numerical difference is calculated using Euclidean distance.

[0138] S73. Set a predefined parameter change threshold, traverse the parameter difference matrix, and filter out all parameter fields whose parameter values ​​are greater than or equal to the parameter change threshold to form the set of fields for this round of incremental update.

[0139] S74. For each size parameter field in the incremental update field set, first read the numerical difference of the size parameter field in the parameter difference matrix.

[0140] If the numerical difference is greater than or equal to the preset parameter change threshold, then based on the correspondence between the node ID and the component identifier recorded in the graphical binding mapping table, the field with the same name is accurately located in the SysMLv2 model component and the new value is overwritten with the old value. Fields with differences below the threshold remain unchanged.

[0141] S75. After completing the parameter update of the SysMLv2 model components, based on the results of this round of incremental updates, the parameter value records of the relevant components in the graphic binding mapping table are updated synchronously so that the graphic binding mapping table reflects the latest status of the current model components.

[0142] S76. Record the incremental update process of this round as a structured log item. The log item includes the component identifier, graphic node ID, parameter field name, old value, new value and corresponding numerical difference, and save it to the graphic change log.

[0143] After completing the semantic write-back operation, this invention further invokes an operation transformation algorithm to perform field-level difference analysis on the parameter sets before and after the model component update. A parameter difference matrix is ​​constructed using a parameter key-value tree structure difference detection process to quantify the degree of change of each field. The difference matrix is ​​organized using component identifier and size parameter fields as indexes, and the difference value is calculated based on Euclidean distance. Significantly changed fields are filtered out by setting parameter change thresholds, and an incremental update field set is constructed. Fields in the set are selectively updated in the SysMLv2 model. Subsequently, the parameter records in the graph binding mapping table are updated synchronously to ensure that the graph and model states are consistent. Finally, this round of update process is recorded as a structured log and saved to the graph change log to achieve traceability and fine control of model changes.

[0144] Example 1:

[0145] To verify the feasibility of this invention in practice, it was applied to a system integration platform of a military equipment manufacturing enterprise in the product 3D modeling and design write-back process. This platform, based on the integration of the SysMLv2 modeling environment and the Chili3D graphics rendering engine, suffers from a long-standing critical technical bottleneck: the bidirectional synchronization between the parametric semantic information of model components and graphical nodes is interrupted. Particularly after dimensional parameter modifications are made in the graphical interface, it cannot be effectively written back to the original model, leading to engineering risks such as design mismatch and model failure.

[0146] In this embodiment, the system first extracts the geometric model of the mechanical component from the SysMLv2 platform. This model contains 26 standard components and 7 Boolean operation components, all with a complete GeometryView structure. An improved JSON-LD semantic parsing method is used to extract attribute fields. The system automatically identifies 132 valid dimension parameter fields and completes semantic standardization and parameter completion according to the primitive type rule matching table. For the three coordinate frame models containing spatial transformation information, the system successfully generates a fourth-order transformation matrix that meets the requirements of Chili3D rendering, achieving a one-to-one correspondence between the position, orientation, and size of the graphic nodes in three-dimensional space. To support the above description, Table 1 below shows the system performance and parameter update status during key operations:

[0147] Table 1. Key Data Statistics of System Graphical-Model Synchronization Process

[0148]

[0149] In the subsequent 3D modeling process, the system automatically generated 33 graphical nodes (including 6 Boolean combination nodes) and bound each node with a unique node ID, primitive type, and dimension parameter fields. The user performed graphical editing operations on 10 nodes in the Chili3D graphical interface, involving modifications to 26 parameter fields, including 10 rotation angles, 8 length parameters, and 8 Boolean type adjustments for combined components. The system extracted the structured change parameter set using a parameter change detection algorithm and successfully located its original model component identifier in the primitive binding mapping table, subsequently completing semantic write-back and component parameter update operations.

[0150] For the above operations, the system invokes the operation transformation algorithm to construct a parameter difference matrix, which includes 14 fields with a numerical difference greater than 5%. The system then filters and writes back the incremental parameter fields based on a set threshold, ultimately ensuring semantic consistency between the graph and the model. All mapping updates triggered by this round of graph editing are recorded in the graph binding mapping table, and 14 structured log entries are simultaneously generated in the graph change log.

[0151] Based on on-site feedback and technical evaluation results, this invention achieved a closed-loop process for automatically writing back and updating model parameters after graphical node modifications, significantly improving data consistency and engineering traceability between the modeling diagram and the design model. After system deployment, the average time for modeling and design write-back decreased from 47 minutes to 21 minutes, the parameter synchronization success rate increased from 78.4% to 96.2%, and the error rate decreased to 1.3%. Furthermore, in the subsequent three rounds of structural change testing, the system maintained stable operation without any semantic mapping anomalies or graphical construction interruptions.

[0152] This embodiment fully demonstrates the significant advantages of the present invention in improving the bidirectional synchronization efficiency between graphic construction and model parameters. It has strong engineering applicability and promotional value, especially in system-level modeling tasks with complex modeling scenarios and a large number of parameters.

[0153] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A method for synchronizing model graphics in a 3D modeling drawing based on Chili3D, characterized in that, Includes the following steps: S1. Obtain the geometric modeling diagram to be visualized from the SysMLv2 modeling platform; S2. Introduce an improved JSON-LD semantic parsing method to construct an attribute node mapping structure; S2 specifically includes: S21. An improved JSON-LD semantic parsing method is adopted to extract multi-level key-value mapping relationships, inheritance paths, type identifiers and semantic context annotation information from the attribute fields of the geometric parameter model, and to construct an attribute node mapping structure. S22. Based on the attribute node mapping structure, according to the preset semantic rule matching table of primitive type and parameter field, perform semantic mapping and structure matching operation, bind the parameter field parsed in the attribute node mapping structure with the corresponding preset primitive type, and complete primitive type identification. S23. After completing the primitive type identification, based on the Python mapping engine mechanism integrated in the improved JSON-LD semantic parsing method, the corresponding size parameter fields are automatically extracted from the attribute node mapping structure; the extracted size parameters are written into the spatial component parameter set. S24. In the process of extracting size parameters, if there are field naming conflicts and semantic overlaps, the improved JSON-LD semantic parsing method introduces a conflict detection and fault tolerance mechanism based on field priority and semantic context: when redundant or ambiguous fields appear in the same graphic element component, the main field defined in the field priority table is used first, and ambiguous field removal and redirection mapping are performed in combination with semantic context. S25. The parsing results, after semantic standardization, conflict tolerance and parameter completion through the improved JSON-LD semantic parsing method, are uniformly organized into a structured primitive parameter intermediate representation, and used as the input structure for the subsequent three-dimensional graphics expression system generation and graphics binding process. S3. For the coordinate frame model, bind the generated fourth-order transformation matrix to the corresponding graphics node; S4. For the Boolean operation model, parse the Boolean combination type and generate the Boolean combination graph construction path; S5. Use the intermediate representation of structured primitive parameters to drive the Chili3D graphics construction engine, generate a 3D modeling graph structure, assign a unique node ID to each graphic node, record the component identifier, primitive type and current size parameter fields, and generate a graphic binding mapping table. S6. Monitor graphic editing operations, generate a structured set of changed parameters using a graphic parameter change detection algorithm, locate the corresponding SysMLv2 model component in the graphic binding mapping table using a unique node ID, construct a semantic update mapping relationship, and synchronously update the graphic binding mapping table. S7. Based on the operation transformation algorithm, construct the parameter difference matrix and update the SysMLv2 model component parameters synchronously.

2. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, S1 specifically includes: S11. Obtain the geometric modeling diagram to be visualized from the SysMLv2 modeling platform and transfer it to the SysMLv2 geometric model parsing layer for parsing processing. S12. Identify the GeometryView structure contained in the geometric modeling graph to be visualized; S13. Traverse all modeling components contained in the GeometryView structure, and perform semantic type resolution operation on the modeling components based on the type attributes of the modeling components in the SysMLv2 modeling platform and the redefined model library entries. S14. Semantic type parsing operation of modeling components: Based on the type attributes and semantic structure of the modeling components, the modeling components are divided into three categories: geometric parameter model, coordinate frame model and Boolean operation model.

3. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, S3 specifically includes: S31. In the parsed coordinate frame model, parse the three-dimensional spatial transformation parameters defined inside the coordinate frame model, including the rotation matrix and translation vector. S32. Call the 3D affine matrix construction algorithm to structurally combine the above rotation matrix and translation vector to generate a fourth-order transformation matrix that conforms to the Chili3D engine specification. S33. Bind the generated fourth-order transformation matrix to the corresponding graphics node. When rendering the graphics node, the Chili3D graphics engine automatically sets the position coordinates and spatial orientation of the graphics node in the three-dimensional scene according to the rotation matrix and translation vector in the fourth-order transformation matrix, realizing the spatial mapping of SysMLv2 model components in the Chili3D graphics structure; and write the rotation matrix and translation vector as primitive spatial state information into the intermediate representation of structured primitive parameters.

4. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, S4 specifically includes: S41. In the parsed Boolean operation model, identify the Boolean combination type field, and distinguish the three types of union, difference and intersection according to the Boolean combination type; S42. Parse all Boolean sub-component identifiers participating in the Boolean operation model to determine the combination order of Boolean sub-components in the geometric modeling graph; based on the Chili3D graphics construction specifications, construct the Boolean graphics combination path according to the Boolean combination type and the spatial relationship of the participating components. The spatial relationship of the participating components refers to the positional overlap, nesting relationship, and relative arrangement of the Boolean sub-components in the 3D modeling diagram before the Boolean operation is performed. S43. Embed the Boolean sub-component graphics into the Boolean graphics combination path, perform the corresponding Boolean operation, generate a complex primitive structure that meets the combination requirements, and attach the generated Boolean combination graphics to the target node of the 3D modeling diagram. The Boolean sub-component graphics are the three-dimensional representations of the components participating in Boolean operations in the graphics engine; The corresponding Boolean operations are geometric operations performed based on predefined combination types: union, difference, and intersection. S44. The Boolean combination type, Boolean sub-component combination order, and Boolean graphic combination path are incorporated as semantic structure content of the combined primitives and included in the intermediate representation of structured primitive parameters.

5. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, S5 specifically includes: S51. Based on the intermediate representation of structured primitive parameters, the graphics construction engine deployed in the Chili3D visualization layer is driven to initialize the 3D modeling process: S52. Based on the definitions of the primitive type and size parameter fields in the intermediate representation of the structured primitive parameters, dynamically generate the corresponding graphic nodes and set the graphic identifier and node type of the graphic nodes. S53. When a primitive is detected to be of Boolean operation type, the Boolean combination type field and the sub-component identifier list in the structured primitive parameters are parsed, and a Boolean graphic combination path is constructed according to the set component combination order. The Chili3D native Boolean operation engine is called to perform union, difference or intersection operations on the sub-component graphic nodes participating in the Boolean operation, generate combined primitive nodes, and attach them to the target parent node in the 3D modeling drawing. S54. Organize the basic primitive nodes and combined primitive nodes generated above into the Chili3D three-dimensional modeling graph structure to form a three-dimensional graphic expression system that corresponds one-to-one with the SysMLv2 model components. S55. After the graphic generation process of S51-S54 is completed, establish the binding mapping relationship between SysMLv2 model components and Chili3D graphic nodes: assign a unique node ID to each Chili3D graphic node, and record the corresponding bound component identifier, primitive type and current size parameter fields to the graphic binding mapping table.

6. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, S6 specifically includes: S61. In the Chili3D interactive interface, listen for the user's graphic editing operations on the graphic nodes in the 3D model drawing; S62. For the detected graphic editing operation, call the graphic parameter change detection algorithm deployed in the bidirectional data conversion engine to extract the updated parameter values ​​of the graphic nodes. The graphic parameter change detection algorithm includes a structured difference comparison algorithm and a parameter tree Diff algorithm, which are used to compare the numerical differences of the graphic parameter tree structure before and after the change and generate a structured change parameter set. S63. Based on the unique node ID of the graphic node where the graphic editing operation is currently taking place, query the graphic binding mapping table to locate the SysMLv2 model component identification information bound to the graphic node. S64. Based on the differences between the structured change parameter set and the spatial component parameter set, construct a semantic update mapping relationship; S65. Write the constructed semantic update mapping relationship to the corresponding model component position in the original SysMLv2 model component, complete the semantic back-write of the graphic editing operation to the model component, and complete the semantic synchronization from Chili3D graphic structure to SysMLv2 model component. S66. After the semantic write-back is completed, record the graph node ID, changed field name, old value and new value of this graph change event, and update the graph parameter value of the corresponding item in the graph binding mapping table.

7. The method for synchronizing model graphics based on Chili3D 3D modeling diagrams according to claim 1, characterized in that, Specifically, S7 includes: S71. After completing the semantic write-back, the operation transformation algorithm is called to perform a field-level comparison between the structured change parameter set of the updated model components and the parameter set before the update. The operation transformation algorithm first converts the two sets of parameter sets into nested field structures: each field contains a field path, field type and field value. By using the parameter key-value structure traversal mechanism, the field values ​​are compared item by item along the field path to determine whether the numerical values ​​of each field have changed, been replaced, or had their semantics modified. Based on the comparison results, generate difference records for each field and summarize them to form a parameter difference matrix; S72. The parameter difference matrix uses the component identifier of the model component as the row index and the name of the dimension parameter field as the column index. Each element of the parameter difference matrix represents the difference in parameter value of the dimension parameter field before and after graphic editing. The difference measure adopts the L2 norm. S73. Set a predefined parameter change threshold, traverse the parameter difference matrix, and filter out all parameter fields whose parameter value difference is greater than or equal to the parameter change threshold to form the field set for this round of incremental update. S74. For each size parameter field in the incremental update field set, first read the numerical difference of the size parameter field in the parameter difference matrix. If the numerical difference is greater than or equal to the preset parameter change threshold, then based on the correspondence between the node ID and the component identifier recorded in the graphical binding mapping table, the field with the same name is accurately located in the SysMLv2 model component and the new value is overwritten with the old value. Fields with differences below the threshold retain their original values. S75. After completing the parameter update of SysMLv2 model components, based on the results of this round of incremental update, the parameter value records of relevant components in the graphic binding mapping table are updated synchronously so that the graphic binding mapping table reflects the latest state of the current model components. S76. Record the incremental update process of this round as a structured log item. The log item includes the component identifier, graphic node ID, parameter field name, old value, new value and corresponding numerical difference, and save it to the graphic change log.

Citation Information

Patent Citations

  • Model synchronization processing method and device and storage medium

    CN115016777A

  • Method and system for generating SysML model to three-dimensional CAD model

    CN120493560A