CN111338986B - Method for acquiring data in three-dimensional model data structure - Google Patents

Method for acquiring data in three-dimensional model data structure Download PDF

Info

Publication number
CN111338986B
CN111338986B CN202010176539.8A CN202010176539A CN111338986B CN 111338986 B CN111338986 B CN 111338986B CN 202010176539 A CN202010176539 A CN 202010176539A CN 111338986 B CN111338986 B CN 111338986B
Authority
CN
China
Prior art keywords
level cache
dimensional model
rcw
cache
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010176539.8A
Other languages
Chinese (zh)
Other versions
CN111338986A (en
Inventor
谢戟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Exeter Technology Co ltd
Original Assignee
Beijing Exeter Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Exeter Technology Co ltd filed Critical Beijing Exeter Technology Co ltd
Priority to CN202010176539.8A priority Critical patent/CN111338986B/en
Publication of CN111338986A publication Critical patent/CN111338986A/en
Application granted granted Critical
Publication of CN111338986B publication Critical patent/CN111338986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0897Caches characterised by their organisation or structure with two or more cache hierarchy levels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0811Multiuser, multiprocessor or multiprocessing cache systems with multilevel cache hierarchies

Abstract

The invention discloses a three-dimensional model data structure, a creation and a data acquisition method, which relate to the technical field of data processing.

Description

Method for acquiring data in three-dimensional model data structure
Technical Field
The invention relates to the technical field of data processing, in particular to a method for acquiring data in a three-dimensional model data structure.
Background
In a product lifecycle management system, data management for computer aided drawing software is one of the common applications. Some computer aided drawing software provides interface calls to the netframe platform, which enable developers to use these interfaces to access the various three-dimensional model data drawn by the computer aided drawing software, compared to the typical computer aided drawing software of Solidworks, solidEdge and Inventor, etc.
For traditional component object models, a Runtime-Callable Wrapper (RCW module) is typically employed under the Net Framework platform, and the wrapped module is then provided for programming language calls under the Net Framework platform. Some early computer aided drafting software that provided COM interfaces was also provided in the manner of RCW modules.
The current common technical implementation is that an RCW module interface function can be accessed directly written by using C# language, an object related to a three-dimensional model is created, a three-dimensional model structure tree is traversed, a three-dimensional model of a structure tree node is obtained, and then attribute data of the three-dimensional model is obtained. For specific data of a specific node, the three-dimensional model structure tree needs to be traversed again through the RCW module interface function, the corresponding three-dimensional model is found to acquire the data, and if the RCW module interface function is executed for a plurality of times in this way, the RCW module interface function is frequently called.
The method is characterized by simple programming and visual code, and can be used for acquiring small three-dimensional model data, but the method can realize the acquisition of the three-dimensional model data only by taking a plurality of hours when the three-dimensional model data is executed in a medium number (hundreds) or more three-dimensional models, has low efficiency and cannot meet the requirements of a product life cycle management system.
Disclosure of Invention
In order to solve the defects in the prior art, the embodiment of the invention provides a method for acquiring data in a three-dimensional model data structure.
In a first aspect, an embodiment of the present invention provides a three-dimensional model data structure, where the data structure includes a first level cache and a second level cache, where:
the data structure of the first-level cache comprises an identifier of the first-level cache, an executable RCW module of a runtime library, an attribute name of the RCW module, an attribute value and a set of sub-level caches;
the data structure of the secondary cache comprises a primary cache and an identifier of the primary cache.
In a second aspect, an embodiment of the present invention provides a method for creating the data in the three-dimensional model data structure according to the first aspect, where the method includes the following steps:
s1, initializing a first-level cache, creating an identifier of the first-level cache and storing the identifier in the first-level cache;
s2, acquiring attribute names and attribute values of the RCW module of the current three-dimensional model, and storing the attribute names and the attribute values in a dictionary type data set for storing the attribute names and the attribute values of the RCW module in a first-level cache;
s3, the RCW module of the current model is stored in a first-level cache;
s4, storing the first-level cache into a data set of dictionary type of the associated first-level cache, wherein the first-level cache is identified in the second-level cache.
Preferably, the method further comprises:
if the current model contains a part model, a data structure of the part model is created by using the steps S1 to S4 described above.
In a third aspect, an embodiment of the present invention provides a method for acquiring data in the three-dimensional model data structure according to the second aspect, where the method includes the following steps:
acquiring the identification of each first-level cache in the current second-level cache of the three-dimensional model;
acquiring corresponding first-level caches according to the identification of each first-level cache;
acquiring attribute names and attribute values of the RCW modules from each level of cache;
and acquiring the RCW module and the sub-level first-level cache set from each first-level cache according to the identification of each first-level cache.
The three-dimensional model data structure, the creation and the data acquisition method provided by the embodiment of the invention have the following beneficial effects:
by creating a two-level cache mechanism of the first-level cache and the second-level cache, the RCW module is only required to be accessed when the attribute data of the three-dimensional model are read and written, the access times to the RCW module are greatly reduced, and the acquisition efficiency of the three-dimensional model data is improved.
Detailed Description
The present invention will be specifically described with reference to the following specific examples.
In a first aspect, an embodiment of the present invention provides a three-dimensional model data structure, where the data structure includes a first level cache and a second level cache, where:
the data structure of the first-level cache comprises an identification of the first-level cache, an executable RCW module of a calling package of the running library, an attribute name, an attribute value and a set of sub-level caches of the RCW module.
The first level cache comprises a first level cache, which is a representation method of a tree in a data structure and is used for storing sub-objects of the current first level cache. Sub-level caching is only useful if the three-dimensional model contains sub-part models. If the three-dimensional model contains sub-part models, the sub-level one cache is empty.
The data structure of the secondary cache comprises a primary cache and an identifier of the primary cache.
As a specific embodiment, the type of the identifier of the first-level cache is String, the type of the RCW module is Object type, and the attribute name and the attribute value of the RCW module are dictionary types.
In a second aspect, an embodiment of the present invention provides a method for creating the three-dimensional model data structure according to the first aspect, the method comprising the steps of:
s101, initializing a first-level cache, creating an identifier of the first-level cache and storing the identifier in the first-level cache;
s102, acquiring attribute names and attribute values of an RCW module of a current three-dimensional model, and storing the attribute names and the attribute values in a dictionary type data set for storing the attribute names and the attribute values of the RCW module in a first-level cache;
s103, the RCW module of the current model is stored in a first-level cache;
s104, storing the first-level cache into a first-level cache identification in the second-level cache and a dictionary type data set of the associated first-level cache.
Optionally, the method further comprises:
if the current model contains a part model, a data structure of the part model is created by using the steps S1 to S4 described above.
In a third aspect, an embodiment of the present invention provides a method for acquiring data in the three-dimensional model data structure according to the second aspect, where the method includes the following steps:
acquiring the identification of each first-level cache in the current second-level cache of the three-dimensional model;
acquiring corresponding first-level caches according to the identification of each first-level cache;
acquiring attribute names and attribute values of the RCW modules from each level of cache;
and acquiring the RCW module and the sub-level first-level cache set from each first-level cache according to the identification of each first-level cache.
According to the three-dimensional model data structure, the creation and data acquisition method disclosed by the invention, the first-level cache and the second-level cache are created, the corresponding first-level cache is acquired according to the identification of each first-level cache, the attribute names and the attribute values of the RCW modules are acquired from each first-level cache, the collection of the RCW modules and the sub-level caches is acquired from each first-level cache according to the identification of each first-level cache, and the RCW modules are only required to be accessed when the attribute data of the three-dimensional model are read and written in, so that the access times to the RCW modules are greatly reduced, and the acquisition efficiency of the three-dimensional model data is improved.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the methods and apparatus described above may be referenced to one another.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
Furthermore, the memory may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), in a computer readable medium, the memory including at least one memory chip.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (1)

1. A method for obtaining data in a three-dimensional model data structure, comprising:
creating a three-dimensional model;
acquiring the identification of each first-level cache in the current second-level cache of the three-dimensional model;
acquiring corresponding first-level caches according to the identification of each first-level cache;
acquiring attribute names and attribute values of the RCW modules from each level of cache;
acquiring an RCW module and a sub-level first-level cache set from each first-level cache according to the identification of each first-level cache;
the method for creating the three-dimensional model comprises the following steps: the three-dimensional model data structure comprises a first-level cache and a second-level cache, wherein:
the data structure of the first-level cache comprises an identifier of the first-level cache, an executable RCW module of a runtime library, an attribute name of the RCW module, an attribute value and a set of sub-level caches;
the data structure of the secondary cache comprises a primary cache and an identifier of the primary cache;
s1, initializing a first-level cache, creating an identifier of the first-level cache and storing the identifier in the first-level cache;
s2, acquiring attribute names and attribute values of the RCW module of the current three-dimensional model, and storing the attribute names and the attribute values in a dictionary type data set for storing the attribute names and the attribute values of the RCW module in a first-level cache;
s3, the RCW module of the current model is stored in a first-level cache;
s4, storing the first-level cache into a data set of dictionary types of the first-level cache in the second-level cache;
and S5, if the current model comprises a part model, creating a data structure of the part model by utilizing the steps S1-S4.
CN202010176539.8A 2020-03-13 2020-03-13 Method for acquiring data in three-dimensional model data structure Active CN111338986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010176539.8A CN111338986B (en) 2020-03-13 2020-03-13 Method for acquiring data in three-dimensional model data structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010176539.8A CN111338986B (en) 2020-03-13 2020-03-13 Method for acquiring data in three-dimensional model data structure

Publications (2)

Publication Number Publication Date
CN111338986A CN111338986A (en) 2020-06-26
CN111338986B true CN111338986B (en) 2023-08-04

Family

ID=71186558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010176539.8A Active CN111338986B (en) 2020-03-13 2020-03-13 Method for acquiring data in three-dimensional model data structure

Country Status (1)

Country Link
CN (1) CN111338986B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652112A (en) * 2005-03-02 2005-08-10 北京北方烽火科技有限公司 Implementing method of data dictionary under embedded environment
CN103092775A (en) * 2013-01-31 2013-05-08 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN103186542A (en) * 2011-12-27 2013-07-03 腾讯科技(北京)有限公司 Data querying method and device
CN105005567A (en) * 2014-04-21 2015-10-28 腾讯科技(深圳)有限公司 Interest point query method and system
CN106407345A (en) * 2016-09-06 2017-02-15 合网络技术(北京)有限公司 Method and apparatus for updating dirty data
CN106504184A (en) * 2015-09-08 2017-03-15 想象技术有限公司 For processing graphic processing method and the system of subgraph unit
CN106649143A (en) * 2015-10-29 2017-05-10 阿里巴巴集团控股有限公司 Method and device for cache access, and electronic equipment
CN107924371A (en) * 2015-06-09 2018-04-17 乌尔特拉塔有限责任公司 Infinite memory constructional hardware implementation with router
CN109299087A (en) * 2018-08-14 2019-02-01 中国平安财产保险股份有限公司 Data cache method, device, computer equipment and storage medium
CN109313741A (en) * 2016-04-27 2019-02-05 齐默尔根公司 The method and system of nucleotide sequence production is controlled for generating factory's order form
WO2019062839A1 (en) * 2017-09-28 2019-04-04 北京金山云网络技术有限公司 Packet forwarding method, device, switch, apparatus, and storage medium
CN109582600A (en) * 2017-09-25 2019-04-05 华为技术有限公司 A kind of data processing method and device
CN109599133A (en) * 2018-12-18 2019-04-09 青岛海信电器股份有限公司 Switching method, device, computer equipment and the storage medium of language soundtrack
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN110673786A (en) * 2019-09-03 2020-01-10 浪潮电子信息产业股份有限公司 Data caching method and device
CN110825943A (en) * 2019-10-23 2020-02-21 支付宝(杭州)信息技术有限公司 Method, system and equipment for generating user access path tree data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641640B2 (en) * 2013-10-04 2017-05-02 Akamai Technologies, Inc. Systems and methods for controlling cacheability and privacy of objects

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652112A (en) * 2005-03-02 2005-08-10 北京北方烽火科技有限公司 Implementing method of data dictionary under embedded environment
CN103186542A (en) * 2011-12-27 2013-07-03 腾讯科技(北京)有限公司 Data querying method and device
CN103092775A (en) * 2013-01-31 2013-05-08 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN105005567A (en) * 2014-04-21 2015-10-28 腾讯科技(深圳)有限公司 Interest point query method and system
CN107924371A (en) * 2015-06-09 2018-04-17 乌尔特拉塔有限责任公司 Infinite memory constructional hardware implementation with router
CN106504184A (en) * 2015-09-08 2017-03-15 想象技术有限公司 For processing graphic processing method and the system of subgraph unit
CN106649143A (en) * 2015-10-29 2017-05-10 阿里巴巴集团控股有限公司 Method and device for cache access, and electronic equipment
CN109313741A (en) * 2016-04-27 2019-02-05 齐默尔根公司 The method and system of nucleotide sequence production is controlled for generating factory's order form
CN106407345A (en) * 2016-09-06 2017-02-15 合网络技术(北京)有限公司 Method and apparatus for updating dirty data
CN109582600A (en) * 2017-09-25 2019-04-05 华为技术有限公司 A kind of data processing method and device
WO2019062839A1 (en) * 2017-09-28 2019-04-04 北京金山云网络技术有限公司 Packet forwarding method, device, switch, apparatus, and storage medium
CN109299087A (en) * 2018-08-14 2019-02-01 中国平安财产保险股份有限公司 Data cache method, device, computer equipment and storage medium
CN109599133A (en) * 2018-12-18 2019-04-09 青岛海信电器股份有限公司 Switching method, device, computer equipment and the storage medium of language soundtrack
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN110673786A (en) * 2019-09-03 2020-01-10 浪潮电子信息产业股份有限公司 Data caching method and device
CN110825943A (en) * 2019-10-23 2020-02-21 支付宝(杭州)信息技术有限公司 Method, system and equipment for generating user access path tree data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LogTM: Log-based transactional memory;Moore K E;《The Twelfth International Symposium on High-Performance Computer Architecture》;254-265 *

Also Published As

Publication number Publication date
CN111338986A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
KR20170019352A (en) Data query method and apparatus
CN102722432B (en) Follow the trail of the method and apparatus of internal storage access
CN106951231B (en) Computer software development method and device
CN112230934B (en) Method and device for converting code language
CN109033365B (en) Data processing method and related equipment
CN108037967A (en) A kind of menu loading method and electronic equipment based on more parent-child structures
CN115599764A (en) Method, device and medium for migrating table data
CN113791768B (en) Code generation method and device, storage medium and terminal
CN111338986B (en) Method for acquiring data in three-dimensional model data structure
CN116680014B (en) Data processing method and device
CN110825764A (en) SQL script generation method, system, storage medium and processor
CN106407345B (en) Dirty data updating method and device
CN111475167B (en) Shell script dependency relation extraction method based on HQL statement
CN111125087A (en) Data storage method and device
CN114968325A (en) Code annotation generation method and device, processor and electronic equipment
CN110045962B (en) Method and device for supporting multi-language script execution
CN112860912A (en) Method and device for updating knowledge graph
CN108228604B (en) Model construction method based on memory object, information query method and device
CN110362595A (en) A kind of SQL statement dynamic analysis method
CN111078157A (en) Volume information query method and system of distributed storage system and related components
CN112749189A (en) Data query method and device
US9754047B2 (en) Dynamically adapting objects
CN117251234B (en) Function calling method and device based on patches
CN111198877B (en) Data storage and query method and device
CN110866033B (en) Feature determination method and device for predicting query resource occupancy

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant