CN111338986A - Three-dimensional model data structure, creation and data acquisition method - Google Patents

Three-dimensional model data structure, creation and data acquisition method Download PDF

Info

Publication number
CN111338986A
CN111338986A CN202010176539.8A CN202010176539A CN111338986A CN 111338986 A CN111338986 A CN 111338986A CN 202010176539 A CN202010176539 A CN 202010176539A CN 111338986 A CN111338986 A CN 111338986A
Authority
CN
China
Prior art keywords
level cache
level
dimensional model
rcw
module
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.)
Granted
Application number
CN202010176539.8A
Other languages
Chinese (zh)
Other versions
CN111338986B (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 method for creating and acquiring data, which relates to the technical field of data processing.

Description

Three-dimensional model data structure, creation and data acquisition method
Technical Field
The invention relates to the technical field of data processing, in particular to a three-dimensional model data structure, creation and data acquisition method.
Background
Data management for computer aided drawing software is one of the common applications in a product lifecycle management system. Because of the popularity of the microsoft Net frame platform, some computer aided drawing software provides interface calling for the microsoft Net frame platform, so that developers can use the interfaces to access various three-dimensional model data drawn by the computer aided drawing software, and the typical computer aided drawing software comprises Solidworks, SolidEdge, Inventor and the like.
Under the Net Framework platform, for a traditional component object model, a Runtime-Callable Wrapper (RCW module) is generally adopted, and then the packaged module is provided for a programming language call under the Net Framework platform. Some early computer aided drawing software providing COM interface also provided interface modules under the network Framework platform in the manner of RCW module.
The current common technical implementation is that an interface function which is written by C # language and can access RCW module is directly used, 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 data is obtained after the corresponding three-dimensional model is found, and if the data is executed for multiple times in the mode, the RCW module interface function is frequently called.
The method has the characteristics of simple programming, intuitive codes and capability of acquiring small three-dimensional model data, but for medium (hundreds of) and above three-dimensional models, the execution speed is very low, the acquisition of the three-dimensional model data can be completed within hours, the efficiency is low, and the requirements of a product life cycle management system cannot be met.
Disclosure of Invention
In order to overcome the defects in the prior art, the embodiment of the invention provides a three-dimensional model data structure, a three-dimensional model creation method and a three-dimensional model data acquisition method.
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, a packaging RCW module which can be called by the runtime library, an attribute name and an attribute value of the RCW module and a set of the sub-level first-level caches;
the data structure of the second-level cache comprises a first-level cache and an identifier of the first-level cache.
In a second aspect, an embodiment of the present invention provides a method for creating a three-dimensional model data structure according to the first aspect, where the method includes the following steps:
s1 initializing the first-level cache, creating the mark of the first-level cache and storing the mark in the first-level cache;
s2, acquiring the attribute name and the attribute value of the RCW module of the current three-dimensional model, and storing the attribute name and the attribute value in a data set of a dictionary type for storing the attribute name and the attribute value of the RCW module in a first-level cache;
s3, storing the RCW module of the current model in a first-level cache;
s4 stores the primary cache in a data set of an identification of the primary cache and a dictionary type of the associated primary cache within the secondary cache.
Preferably, the method further comprises:
if the current model contains a part model, a data structure of the part model is created using the above steps S1-S4.
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 identifications of the first-level caches;
acquiring the attribute name and the attribute value of the RCW module from each first-level cache;
and acquiring the RCW module and the set of the sub-level one-level caches from the first-level caches according to the identification of the first-level caches.
The three-dimensional model data structure, the creation method 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 is read and written, the access times of 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 described in detail with reference to the following embodiments.
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, a packaging RCW module which can be called by the runtime library, an attribute name and an attribute value of the RCW module and a set of the second-level cache.
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 child objects of the current first-level cache. If the three-dimensional model contains sub-part models, the sub-level one-level cache is only effective. If the three-dimensional model contains the sub-part model, the sub-level one-level cache is empty.
The data structure of the second-level cache comprises a first-level cache and an identifier of the first-level 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, 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 a three-dimensional model data structure according to the first aspect, where the method includes the following steps:
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 the attribute name and the attribute value of the RCW module of the current three-dimensional model, and storing the attribute name and the attribute value in a dictionary type data set which is used for storing the attribute name and the attribute value of the RCW module and is in a first-level cache;
s103, storing the RCW module of the current model in a first-level cache;
s104, storing the first-level cache into the identification of the first-level cache in the second-level cache and the associated data set of the dictionary type of the 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 using the above steps S1-S4.
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 identifications of the first-level caches;
acquiring the attribute name and the attribute value of the RCW module from each first-level cache;
and acquiring the RCW module and the set of the sub-level one-level caches from the first-level caches according to the identification of the first-level caches.
The invention discloses a three-dimensional model data structure, a method for creating and acquiring data, which comprises the steps of creating a first-level cache and a second-level cache, acquiring a corresponding first-level cache according to the identification of each first-level cache, acquiring the attribute name and the attribute value of an RCW module from each first-level cache, acquiring a set of the RCW module and a sub-level first-level cache from each first-level cache according to the identification of each first-level cache, and accessing the RCW module only when reading the attribute data of a three-dimensional model and writing the attribute data of the three-dimensional model, thereby greatly reducing the access times of the RCW module and improving the acquisition efficiency of the three-dimensional model data.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, 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 above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (4)

1. A three-dimensional model data structure is characterized by comprising 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, a packaging RCW module which can be called by the runtime library, an attribute name and an attribute value of the RCW module and a set of the sub-level first-level caches;
the data structure of the second-level cache comprises a first-level cache and an identifier of the first-level cache.
2. A method of creating the three-dimensional model data structure of claim 1, comprising:
s1 initializing the first-level cache, creating the mark of the first-level cache and storing the mark in the first-level cache;
s2, acquiring the attribute name and the attribute value of the RCW module of the current three-dimensional model, and storing the attribute name and the attribute value in a data set of a dictionary type for storing the attribute name and the attribute value of the RCW module in a first-level cache;
s3, storing the RCW module of the current model in a first-level cache;
s4 stores the primary cache in a data set of an identification of the primary cache and a dictionary type of the associated primary cache within the secondary cache.
3. The method of claim 2, further comprising:
if the current model contains a part model, a data structure of the part model is created using the above steps S1-S4.
4. A method of obtaining data in a three-dimensional model data structure according to claim 1, comprising:
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 identifications of the first-level caches;
acquiring the attribute name and the attribute value of the RCW module from each first-level cache;
and acquiring the RCW module and the set of the sub-level one-level caches from the first-level caches according to the identification of the first-level caches.
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 true CN111338986A (en) 2020-06-26
CN111338986B 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 (17)

* 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
US20150207897A1 (en) * 2013-10-04 2015-07-23 Akamai Technologies, Inc. Systems and methods for controlling cacheability and privacy of objects
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

Patent Citations (17)

* 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
US20150207897A1 (en) * 2013-10-04 2015-07-23 Akamai Technologies, Inc. Systems and methods for controlling cacheability and privacy of objects
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
MOORE K E: "LogTM: Log-based transactional memory", 《THE TWELFTH INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTER ARCHITECTURE》, pages 254 - 265 *

Also Published As

Publication number Publication date
CN111338986B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN106557486A (en) A kind of storage method and device of data
CN106951231B (en) Computer software development method and device
US20220253488A1 (en) Methods and apparatus to process a machine learning model in a web-browser environment
CN109033365B (en) Data processing method and related equipment
US11500828B1 (en) Method and device for constructing database model with ID-based data indexing-enabled data accessing
CN110955714A (en) Method and device for converting unstructured text into structured text
CN115599764A (en) Method, device and medium for migrating table data
CN113791768B (en) Code generation method and device, storage medium and terminal
CN108241620B (en) Query script generation method and device
CN111338986A (en) Three-dimensional model data structure, creation and data acquisition method
CN113641872B (en) Hashing method, hashing device, hashing equipment and hashing medium
CN106407345B (en) Dirty data updating method and device
CN111125087A (en) Data storage method and device
CN112860912B (en) Method and device for updating knowledge graph
CN111651160B (en) Plug-in construction and webpage design method and device
CN115048083A (en) Visualization method and device for assembly, storage medium and electronic equipment
CN111475167B (en) Shell script dependency relation extraction method based on HQL statement
CN110045962B (en) Method and device for supporting multi-language script execution
CN108228604B (en) Model construction method based on memory object, information query method and device
CN110795421A (en) Method for preventing dirty data from being generated
CN110362595A (en) A kind of SQL statement dynamic analysis method
CN113641871B (en) Lock-free hashing method, device, equipment and medium
CN117234466B (en) Enterprise management software development method, system, equipment and storage medium
CN109299125A (en) Database update method and device
US9754047B2 (en) Dynamically adapting objects

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