CAD three-dimensional model modeling design method and device and storage medium
By separating the topological information and geometric data of the CAD three-dimensional model, loading it on demand, combining geometric data sharing and cache management, the problem of high resource utilization of three-dimensional model loading in the existing technology is solved, and more efficient resource utilization and user experience is achieved.
Patent Information
- Application Number
- CN202510314659.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-04-18
AI Technical Summary
When the existing CAD application system loads a three-dimensional model, due to the large amount of geometric and topological data of the overall loading model, the system memory resource occupies a high level and the loading time is long.
By separating and setting the topological information and geometric data of the CAD three-dimensional model, the corresponding geometric data is loaded as needed according to the topological information that triggers loading, and dynamically adjusting the cache data pool during the design stage and design scenario switching, the sharing of geometric data is achieved to avoid replication and redundancy.
It reduces the loading resources of the CAD three-dimensional model, improves the operating efficiency of system resources, and improves the user experience.
Smart Images

Figure CN119850885A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a CAD three-dimensional modeling design method, device and storage medium. Background Art
[0002] In computer-aided design (CAD) application systems, the most mature and widely used CAD 3D model representation method in the field of geometric modeling is boundary representation, also known as BRep representation. An important feature of boundary representation is the description of the topological information (Topology) and geometric data (Geometry) of the geometric model. Among them, topological information is used to describe the connection relationship between points, edges, and faces on the shape. It represents the organizational form of the object boundary. The geometric data of the shape describes the specific geometric vertices, curves, and surfaces corresponding to the topological points, edges, and faces. The topological information of the CAD 3D model is a relatively stable expression of the model structure, and the geometric data inside the model can be changed or expanded to adapt to new geometric curve / surface types.
[0003] The existing CAD application system loads and parses CAD 3D model data, and will load the geometric data and topological information contained in the model BRep as a whole. The geometric data of the model usually contains a large amount of information. For example, Nurbs curves and surfaces will contain a large amount of control vertices, weights, node vectors and other data. Therefore, for complex models, they will contain a lot of curve and surface information. Therefore, loading the geometric and topological data of the model as a whole will cause the application system to occupy a high amount of memory resources due to the large amount of model loading data. Summary of the invention
[0004] The present invention provides a CAD three-dimensional model design method, device and storage medium to solve the problem that the amount of loaded data is large and system resources are occupied due to the existing simultaneous loading of all geometric data and topological data of the model.
[0005] In a first aspect, the present invention provides a CAD three-dimensional modeling design method, the method comprising: The topological information and geometric data of the CAD three-dimensional model are separated and set, and the topological information required for loading is triggered, and based on the current design stage and design scenario of the CAD three-dimensional model, the corresponding geometric data is loaded on demand according to the loaded topological information, wherein the CAD three-dimensional model is a transportation vehicle model; The CAD three-dimensional model is designed according to the loaded geometric data, and when the CAD three-dimensional model editing operation is performed using the geometric data, the geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives are shared.
[0006] Optionally, loading corresponding geometric data on demand according to the loaded topological information includes: loading corresponding geometric data on demand according to the loaded topological information, and storing the loaded geometric data in a preset cache data pool.
[0007] Optionally, the method further comprises: when the design phase and the design scene are switched, unloading the loaded geometric data in the cache data pool that is irrelevant to the current design phase and the design scene from the cache data pool according to the loaded topology information.
[0008] Optionally, when geometric data is stored in the cache data pool, when loading required geometric data, the cache data pool is first searched for the required geometric data to be loaded. If the cache hits, the geometric data in the cache data pool is directly returned. If the cache data pool is invalid or the required geometric data to be loaded does not exist in the cache data pool, the corresponding geometric data is searched in a preset geometric database, and the found geometric data is saved in the cache data pool.
[0009] Optionally, the method further includes: setting the size of the cache data pool according to the complexity of the CAD three-dimensional model.
[0010] Optionally, the method further includes: dynamically adjusting the cache data pool according to the size of the remaining space of the cache data pool.
[0011] Optionally, dynamically adjusting the cache data pool according to the size of the remaining space of the cache data pool includes: when the remaining space of the cache data pool reaches a preset storage space threshold, dynamically adjusting the geometric data in the cache data pool.
[0012] Optionally, the geometric data in the cache data pool is dynamically adjusted, including: cleaning the geometric data of the cache data pool data according to the frequency of use and non-use time of the geometric data in the cache data pool; or, loading and unloading the cache data in the cache data pool is managed by a replacement algorithm.
[0013] In a second aspect, the present invention further provides a CAD three-dimensional model design device, the device comprising: A loading unit, used for separating the topological information and geometric data of the CAD three-dimensional model, and loading the corresponding geometric data on demand according to the loaded topological information based on the triggering of the loading of the required topological information and the current design stage and design scenario of the CAD three-dimensional model, wherein the CAD three-dimensional model is a transportation vehicle model; The processing unit is used to design the model of the CAD three-dimensional model according to the loaded geometric data, and when using the geometric data to perform CAD three-dimensional model editing operations, share the geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives.
[0014] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the program implements any one of the above-mentioned CAD three-dimensional modeling design methods.
[0015] The beneficial effects of the present invention are as follows: The present invention separates the topological information and geometric data of the CAD three-dimensional model data, so that the geometric data can be loaded / unloaded on demand, so that the dynamic optimization processing of the geometric data can be better performed for different design stages and design scenarios, thereby reducing the amount of loaded resources of the CAD three-dimensional model. In addition, when different topological edge / face primitives share the same underlying geometric curves / surfaces, the present invention arranges to share the geometric data, thereby avoiding the duplication and redundancy of the geometric data, thereby further reducing the amount of loaded resources of the CAD three-dimensional model, thereby improving the operating efficiency of the system resources, and ultimately greatly improving the user experience.
[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 It is a flow chart of a CAD three-dimensional model design method provided by an embodiment of the present invention; Figure 2 It is a flow chart of another CAD three-dimensional model design method provided by an embodiment of the present invention; Figure 3 It is a schematic diagram of a model for sharing underlying geometric data of a CAD three-dimensional model provided by an embodiment of the present invention; Figure 4 This is a data schematic diagram of sharing underlying geometric data of a CAD three-dimensional model provided by an embodiment of the present invention; Figure 5It is a structural schematic diagram of a CAD three-dimensional modeling design device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not limit the present invention.
[0019] With regard to the existing method of loading all the topological information and geometric data of the entire CAD three-dimensional model at one time, since the geometric data of the model contains a large amount of information, such as Nurbs curves and surfaces, it will contain a large amount of control vertices, weights, node vectors and other data. For complex models, it will also contain a lot of curve and surface information, so loading the geometric and topological data of the model as a whole will inevitably lead to a high usage of application system memory resources. In addition, loading all the topological and geometric data of the entire CAD three-dimensional model at one time will also cause the application system to parse and load the CAD three-dimensional model for a long time due to the large amount of data. In other words, loading all the topological information and geometric data of the CAD three-dimensional model at one time will result in a long loading time and occupy system resources. In order to solve the above problems, an embodiment of the present invention provides a CAD three-dimensional model modeling design method, which is mainly used in various three-dimensional model modeling design fields, such as 3C electronics, molds, machinery, aerospace, aviation, automobiles, ships and rail transportation fields, see. Figure 1 , the method comprising: S101, the topological information and geometric data of the CAD three-dimensional model are separated and set, and the topological information required for loading is triggered, and based on the current design stage and design scenario of the CAD three-dimensional model, the corresponding geometric data is loaded on demand according to the loaded topological information; Among them, the design stages described in the embodiments of the present invention may include: conceptual design stage, detailed design stage and in-depth design stage, etc., and the design scenarios described in the embodiments of the present invention may be various scenarios such as CAD design scenarios, CAE design scenarios, CAM design scenarios and queries of CAD three-dimensional models, etc.
[0020] In addition, it should be noted that due to the differences in the division and naming of the design stages by different technicians, the design stage in the embodiment of the present invention can also be the creation stage of the CAD three-dimensional model, the editing stage of the CAD three-dimensional model, the review stage of the CAD three-dimensional model, etc. The specific technical personnel in this field can make any settings according to actual needs, and the present invention does not make any detailed limitations on this.
[0021] Furthermore, the CAD three-dimensional model in the embodiment of the present invention may be a model of various transportation tools, for example, a three-dimensional model of a rocket, an airplane, a ship, a car, and the like.
[0022] It can be understood that the embodiment of the present invention separates the topological information and geometric data of the CAD 3D model, so that when editing, querying, and other processing operations on the CAD 3D model, only the required geometric data can be loaded according to the topological information combined with the current design stage and design scene, and any editing and updating operations can be performed on the CAD 3D model. Compared with the method of loading all geometric data, this will definitely save system resources and reduce loading time.
[0023] Specifically, an embodiment of the present invention can be that a user selects the required topology information in the loaded topology information directory to trigger the loading of the required topology information. Of course, the user can also input the text content of specific topology information through a window, obtain the required topology information through a search, and then trigger the loading of the topology information, etc. The specific technicians in this field can make any settings according to actual needs, and the present invention does not make specific limitations on this.
[0024] In specific implementation, the embodiment of the present invention first loads the corresponding topological information according to the trigger, and then loads the corresponding geometric data based on the loaded topological information, that is, loads the geometric data according to the needs, which can quickly find the directly adjacent part of the edited topological primitive when performing local operations on the CAD three-dimensional model, without having to query all the data related to the model. Therefore, through the topological information, the CAD three-dimensional model can be edited and queried while loading as little data as possible.
[0025] Simply put, the embodiment of the present invention separates the topological information and geometric data of the CAD three-dimensional model data, and loads the geometric data on demand based on the topological information. That is, the method described in the embodiment of the present invention can better optimize data management for different design stages and design scenarios through data separation.
[0026] In specific implementation, the embodiment of the present invention loads corresponding geometric data on demand according to the loaded topological information, and stores the loaded geometric data in a preset cache data pool; At the same time, the embodiment of the present invention also unloads the loaded geometric data in the cache data pool that is irrelevant to the current design stage and design scene according to the loaded topology information when switching between design stages and design scenes, thereby saving system resources to the greatest extent and greatly improving the user experience.
[0027] S102, performing model design on the CAD three-dimensional model according to the loaded geometric data, and sharing geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives when performing CAD three-dimensional model editing operations using the geometric data.
[0028] In the specific implementation, the embodiment of the present invention shares geometric data within a CAD three-dimensional model or between different CAD three-dimensional models when different topological edge / face primitives share the same underlying geometric curves / surfaces. The method of sharing geometric data can effectively avoid the duplication and redundancy of geometric data.
[0029] Specifically, the embodiment of the present invention deletes and merges the upper-layer topological edge / face primitives, and then updates the reference count of the topological primitives of the underlying geometric data. If the reference count of the underlying geometric data is zero, the geometric data object is deleted. For the creation of topological edge / face primitives on the same underlying geometric curve / surface, when the same geometric data object is shared between the upper-layer topological edge / face primitives, the geometric data object maintains the reference count of the upper-layer topological primitive, thereby realizing geometric data sharing and avoiding duplication and redundancy of geometric data.
[0030] In general, the present invention utilizes the topological information of the CAD three-dimensional model as a higher-level abstraction of the underlying geometric data of the CAD three-dimensional model, and uses the topological information as a global abstraction or information summary of the CAD three-dimensional model to achieve on-demand loading of geometric data, thereby saving time in loading and parsing CAD three-dimensional model data. That is, the present invention adopts a hierarchical data description from topology to geometry for the CAD three-dimensional model, and does not have to load and parse all the geometric data of the CAD three-dimensional model in all business scenarios or design processes. For example, only the geometric data involved can be loaded in the stages of validity verification of the CAD three-dimensional model, structural display and query of the CAD three-dimensional model, and simulation analysis of the CAD three-dimensional model.
[0031] In specific implementation, the embodiment of the present invention loads corresponding geometric data according to the loaded topological information, that is, loads corresponding geometric data on demand according to the loaded topological information, and stores the loaded geometric data in a preset cache data pool, and improves data utilization and processing efficiency through geometric data caching. And according to the topological information, when switching between the design stage and the design scene, the geometric data loaded in the geometric database that is irrelevant to the current design stage and design scene is unloaded from the cache data pool, thereby further optimizing the system space and improving data processing efficiency.
[0032] Furthermore, after the method described in the embodiment of the present invention stores geometric data in the cache data pool, when loading the required geometric data, the required geometric data is first searched in the cache data pool. If the cache hits, the geometric data in the cache data pool is directly returned. If the cache data is invalid or the required geometric data does not exist in the cache data pool, the corresponding geometric data is searched in a preset geometric database, and the found geometric data is saved in the cache data pool.
[0033] In short, the embodiment of the present invention can directly retrieve geometric data from the cache data pool, thereby saving data loading time to the greatest extent.
[0034] At the same time, in order to adapt the cache to usage requirements, the embodiment of the present invention dynamically adjusts the geometric data of the cache data pool according to the remaining space of the cache data pool.
[0035] Specifically, the embodiment of the present invention can automatically trigger dynamic adjustment of the geometric data stored in the cache data pool when the remaining space of the cache data pool reaches a certain critical value, such as when the remaining space of the cache data pool reaches a preset storage space threshold. For example, the geometric data of the cache data pool data can be cleaned up according to the frequency of use and unused time of the geometric data in the cache data pool, or the cache data pool can be loaded and unloaded through a preset replacement algorithm.
[0036] For example, when the remaining space of the cache data pool reaches a preset space threshold, the geometric data in the cache data pool whose usage frequency is lower than a preset usage frequency threshold, or whose unused time exceeds a preset unused time threshold, is cleaned up to release cache space.
[0037] Of course, in the specific implementation, the cache data pool can also be loaded and unloaded with cache data through a preset replacement algorithm. It should be noted that the replacement algorithm in the present invention can be a first-in-first-out replacement algorithm, an optimal replacement algorithm, an LRU replacement algorithm, etc. Specific technical personnel in this field can set it according to actual needs, and the present invention does not make specific limitations on this.
[0038] For example, the embodiment of the present invention is aimed at caching geometric data, and the computer-aided design CAD application system will dynamically manage the cache data in the cache data pool according to the configuration. If the geometric data loaded by the model exceeds the size of the cache data pool, the cache needs to load and unload the cache data through a replacement algorithm. The specific replacement strategy can be to replace the least frequently used data LFU (Least Frequently Used), that is, to eliminate the geometric data with the lowest access frequency in the most recent time window from the cache data pool. Among them, the replacement algorithm in the embodiment of the present invention needs to record the reference count for each cached geometric data, and at the same time, according to the set time window, the reference count register is periodically shifted right by one position to form an exponentially decaying average number of uses, thereby preventing some cache data from being used many times at the beginning, but no longer used later, resulting in a waste of space. Of course, in the specific implementation, those skilled in the art can also set other replacement algorithm strategies, and the present invention does not specifically limit this.
[0039] Of course, in order to reduce calculation, the geometric data in the cache data pool may be cleaned directly according to a fixed time period. Those skilled in the art may configure it according to actual needs, and the present invention does not specifically limit this.
[0040] Specifically, the size of the cache data pool is linearly related to the complexity of the CAD 3D model, wherein the complexity of the model is calculated by integrating the number of edges / faces in the model and the geometric type of the edges / faces. Therefore, in a specific implementation, the size of the cache data pool can be set according to the complexity of the CAD 3D model.
[0041] Furthermore, the method of the embodiment of the present invention sets the geometric data before the update in the cache data pool to an expired state after the geometric data of the CAD three-dimensional model is updated, and clears the expired geometric data in the cache data pool according to a preset period, and synchronously stores the updated geometric data in the geometric database. Of course, in the specific implementation, the expired geometric data can also be directly cleared, and the updated geometric data can be synchronously stored in the geometric database for subsequent query loading.
[0042] The following will be combined Figure 2 and Figure 3 Taking the CAD model design of a car as an example, this paper explains and illustrates the 3D geometric model design method of a car in detail through a specific example: See also Figure 2 The specific operation steps of the CAD three-dimensional model design method provided by the present invention include: In the process of automobile CAD model design, when the CAD three-dimensional model needs to be loaded, that is, in the CAD three-dimensional model data loading / analysis stage, the topological information corresponding to the model data is loaded first, and based on the topological information of the model, effective hierarchical organization and management of the model data is achieved.
[0043] In the CAD 3D model geometry data editing / query stage, for example, when querying geometry data such as geometry position and geometry continuity, the geometry data corresponding to this part of the topological information is loaded, and the queried information is extracted / calculated from the geometry data. The loading of geometry data is divided into two stages. First, determine whether there is this part of geometry data in the cache data pool, that is, first search for this part of geometry data in the cache data pool. If the cache hits (that is, the corresponding geometry data is found from the cache data pool), the cached geometry data is directly returned. If the cached geometry data in the cache data pool is invalid or does not exist, the corresponding geometry data is read from the geometry database. After the reading is completed, the geometry data is saved to the cache data pool at the same time.
[0044] During the CAD 3D model data editing stage, if the geometric curve / surface information of the corresponding model is not loaded, first determine whether the cache data pool has this part of the geometric data, that is, first search for this part of the geometric data in the cache data pool. If the cache hits (that is, the corresponding geometric data is found from the cache data pool), the cached geometric data is directly returned. If the cached geometric data in the cache data pool is invalid or does not exist, read the corresponding geometric data from the geometry database. After the reading is completed, the geometric data is saved to the cache data pool at the same time.
[0045] After loading the corresponding geometric data from the cache data pool or geometry database, first extract the type of geometric curve / surface and other definition information, and provide corresponding editing methods and data based on this information. After editing is completed, synchronize the updated model's geometric data to the geometry database, and set the corresponding geometric data in the cache data pool to an invalid state, or directly delete this part of the cache data.
[0046] In terms of the topological information and geometric data organization relationship of CAD three-dimensional model data, the method described in the embodiment of the present invention introduces a management method for geometric data sharing. That is, in the process of creating, editing or combining CAD three-dimensional models, there are operations to create multiple topological edges and faces on the same underlying curves / surfaces. For example, in the process of calculating the Boolean intersection and difference of the model, there will be a process of splitting and merging edges / surfaces. When using the geometric data to perform CAD three-dimensional model editing operations, the geometric data sharing of the same underlying geometric curves or surfaces shared by different topological edges or surface primitives specifically includes: During the creation / editing phase of a CAD 3D model, topological edge / face primitives are created on the same underlying geometric curve / surface. These upper-layer topological edge / face primitives share the same geometric data object, which maintains the reference count of the upper-layer topological primitives. For example, Figure 3 In the topology edge 1 and edge 2, the same geometric line segment is used, and the topology face 1 and face 2 use the same geometric plane. In the actual model creation / editing stage, Figure 4 As shown, topological surface 1 and surface 2 share the geometric data of surface 1, and topological edge 1 and edge 2 share the geometric data of curve 1.
[0047] During the editing phase of the CAD 3D model, the topological primitive reference count of the underlying geometric data object is updated for the deletion and merging of the upper-level topological edge / face primitives. If the reference count of the underlying geometric data object is zero, the geometric data object is deleted.
[0048] In general, the embodiments of the present invention implement on-demand loading of geometric data through settings, thereby greatly reducing the resource overhead of the application system, and effectively improving the model loading speed. Different topological edges / faces and geometric curves / surfaces can be shared within a model body or between multiple model bodies, effectively reducing the amount of data occupied by the CAD three-dimensional model and the amount of data loaded by the overall model. In addition, the embodiments of the present invention also cache the geometric data, thereby greatly improving the data utilization and processing efficiency in the CAD three-dimensional model design stage, and supporting the editing and updating of the model.
[0049] At the same time, the embodiment of the present invention also provides a CAD three-dimensional model design device, see Figure 5 , the device comprises: A loading unit is used to separate the topological information and geometric data of the CAD three-dimensional model, and load the corresponding geometric data on demand according to the loaded topological information based on the topological information required for loading according to the trigger and the current design stage and design scenario of the CAD three-dimensional model; The CAD three-dimensional model in the embodiment of the present invention may be a model of various transportation tools, for example, a three-dimensional model of a rocket, an airplane, a car, and the like.
[0050] The processing unit is used to design the model of the CAD three-dimensional model according to the loaded geometric data, and when using the geometric data to perform CAD three-dimensional model editing operations, share the geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives.
[0051] The present invention utilizes the topological information of the CAD three-dimensional model as a higher-level abstraction of the underlying geometric data of the CAD three-dimensional model, and uses the topological information as a global abstraction or information summary of the CAD three-dimensional model, thereby saving time in loading and parsing the CAD three-dimensional model data. By adopting a top-down hierarchical data description from topology to geometry for the CAD three-dimensional model, it is not necessary to load and parse all the geometric data of the CAD three-dimensional model in all business scenarios or design processes. For example, in the stages of validity verification of the CAD three-dimensional model, structural display and query of the CAD three-dimensional model, and simulation analysis of the CAD three-dimensional model, only the geometric data involved is loaded.
[0052] In specific implementation, the loading unit described in the embodiment of the present invention is specifically used to load corresponding geometric data on demand according to the loaded topological information, and store the loaded geometric data in a preset cache data pool. That is, after the geometric data is stored in the cache data pool, for the required geometric data, the required loaded geometric data is first searched in the cache data pool. If the cache hits, the geometric data in the cache data pool is directly returned. If the cache data pool is invalid or the required loaded geometric data does not exist in the cache data pool, the corresponding geometric data is searched in the preset geometric database, and the found geometric data is saved in the cache data pool.
[0053] That is to say, the embodiment of the present invention stores geometric data by setting a cache data pool, thereby avoiding consumption of system content caused by repeated loading of geometric data and saving time for loading data.
[0054] At the same time, the loading unit in the embodiment of the present invention is also used to, according to the topological information, unload the geometric data loaded in the geometric database that is irrelevant to the current design stage and design scene from the cache data pool when the design stage and design scene are switched. The size of the cache data pool is set according to the complexity of the CAD three-dimensional model. When the remaining space of the cache data pool reaches a preset storage space threshold, the cache data pool is dynamically adjusted according to the loaded geometric data.
[0055] Specifically, the geometric data of the cache data pool data may be cleaned up according to the usage frequency and non-use time of the geometric data; or, the cache data may be loaded and unloaded from the cache data pool through a replacement algorithm.
[0056] In specific implementation, the processing unit described in the embodiment of the present invention is also used to set the expired geometric data in the cache data pool to an expired state, or clear the expired geometric data, and synchronously store the updated geometric data in the geometric database after the geometric data of the CAD three-dimensional model is updated. The upper-level topological edge / face primitives are deleted and merged, and the topological primitive reference count of the underlying geometric data is updated. If the reference count of the underlying geometric data is zero, the geometric data object is deleted; at the same time, when the topological edge / face primitives on the same underlying geometric curve / surface are created, when the upper-level topological edge / face primitives share the same geometric data object, the geometric data object maintains the reference count of the upper-level topological primitives.
[0057] The embodiment of the present invention separates the topological information and geometric data of the CAD three-dimensional model data through a loading unit, so that the geometric data can be loaded on demand, so that the loading processing of the geometric data can be better performed for different design stages and design scenarios, thereby reducing the amount of loading resources for the CAD three-dimensional model. In addition, the present invention uses a processing unit to share the geometric data when different topological edge / face primitives share the same underlying geometric curve / surface, thereby avoiding the duplication and redundancy of the geometric data, thereby further reducing the amount of CAD three-dimensional model loading resources, thereby improving the operating efficiency of system resources, and ultimately greatly improving the user experience.
[0058] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the CAD three-dimensional model design method described in any one of the method embodiments of the present invention is implemented.
[0059] The relevant contents of the device embodiment and the storage medium embodiment of the present invention can be understood by referring to the method embodiment of the present invention, and will not be discussed in detail here.
[0060] In general, the present invention discloses a CAD three-dimensional model modeling design method, device and storage medium. The present invention separates the topological information and geometric data of the CAD three-dimensional model data so that the geometric data can be loaded / unloaded on demand, so that the dynamic optimization processing of the geometric data can be better performed for different design stages and design scenarios, thereby reducing the amount of resources loaded by the CAD three-dimensional model, and further introduces the geometric data cache processing, reducing the repeated loading and creation of complex geometric curve / surface objects, and improving the utilization and processing efficiency of geometric data. At the same time, the present invention sets the geometric data to be shared when different topological edges / faces share the same underlying geometric curve / surface, thereby avoiding the duplication and redundancy of geometric data, thereby further reducing the amount of resources loaded by the CAD three-dimensional model, thereby improving the operating efficiency of system resources, and ultimately greatly improving the user experience. That is, the present invention greatly improves the model processing efficiency of the CAD application system through the on-demand loading of geometric data, the sharing of geometric data and the caching of geometric data, reduces the resource overhead of the application system, and ultimately improves the user experience.
[0061] Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and thus, the scope of the present invention should not be limited to the above embodiments.
Claims
1. A CAD three-dimensional model design method, characterized in that: include: The topological information and geometric data of the CAD three-dimensional model are separated and set, and the topological information required for loading is triggered, and based on the current design stage and design scenario of the CAD three-dimensional model, the corresponding geometric data is loaded on demand according to the loaded topological information, wherein the CAD three-dimensional model is a transportation vehicle model; The CAD three-dimensional model is designed according to the loaded geometric data, and when the CAD three-dimensional model editing operation is performed using the geometric data, the geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives are shared.
2. The method according to claim 1, characterized in that Load the corresponding geometric data on demand based on the loaded topological information, including: The corresponding geometric data is loaded on demand according to the loaded topological information, and the loaded geometric data is stored in a preset cache data pool.
3. The method according to claim 2, characterized in that The method further comprises: When the design phase and the design scene are switched, the geometric data loaded in the cache data pool and irrelevant to the current design phase and the design scene are unloaded from the cache data pool according to the loaded topology information.
4. The method according to claim 2, characterized in that: When geometric data is stored in the cache data pool, when the required geometric data is loaded according to the topology information, the cache data pool is first searched for the geometric data to be loaded. If the cache hits, the geometric data in the cache data pool is directly returned. If the cache data pool is invalid or the geometric data to be loaded does not exist in the cache data pool, the corresponding geometric data is searched in the preset geometric database, and the found geometric data is saved in the cache data pool.
5. The method according to claim 2, characterized in that: The method further comprises: The size of the cache data pool is set according to the complexity of the CAD three-dimensional model.
6. The method according to claim 2, characterized in that The method further comprises: The geometric data stored in the cache data pool is dynamically adjusted according to the remaining space of the cache data pool.
7. The method according to claim 6, characterized in that Dynamically adjusting the geometric data stored in the cache data pool according to the remaining space of the cache data pool includes: When the remaining space of the cache data pool reaches a preset storage space threshold, the geometric data stored in the cache data pool is dynamically adjusted.
8. The method according to claim 6 or 7, characterized in that: Dynamically adjusting the geometric data stored in the cache data pool includes: Cleaning up the geometric data of the cache data pool data according to the usage frequency and unused time of the geometric data in the cache data pool; or, The loading and unloading management of cache data is performed on the geometric data in the cache data pool through a preset replacement algorithm.
9. A CAD three-dimensional model design device, characterized in that: The device comprises: A loading unit, used for separating the topological information and geometric data of the CAD three-dimensional model, and loading the corresponding geometric data on demand according to the loaded topological information based on the triggering of the loading of the required topological information and the current design stage and design scenario of the CAD three-dimensional model, wherein the CAD three-dimensional model is a transportation vehicle model; The processing unit is used to design the model of the CAD three-dimensional model according to the loaded geometric data, and when using the geometric data to perform CAD three-dimensional model editing operations, share the geometric data of the same underlying geometric curves or surfaces shared by different topological edges or face primitives.
10. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the CAD three-dimensional modeling design method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for loading dynamic data based on cache
CN102136000A
Topological geometric data representation method of three-dimensional model, terminal and storage medium
CN113642062A
Data transmission processing method and terminal device
WO2018049887A1
Cited By
CAD three-dimensional model topological organization method and device, equipment, storage medium and program product
CN121167805A
Marking and searching method for topological primitives of CAD three-dimensional model
CN121327912A