CN113536739A - Method, device and equipment for converting multiple graphic mode file formats into unified format - Google Patents

Method, device and equipment for converting multiple graphic mode file formats into unified format Download PDF

Info

Publication number
CN113536739A
CN113536739A CN202111084155.4A CN202111084155A CN113536739A CN 113536739 A CN113536739 A CN 113536739A CN 202111084155 A CN202111084155 A CN 202111084155A CN 113536739 A CN113536739 A CN 113536739A
Authority
CN
China
Prior art keywords
file
format
objects
information
geometric
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.)
Pending
Application number
CN202111084155.4A
Other languages
Chinese (zh)
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.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space 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 Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202111084155.4A priority Critical patent/CN113536739A/en
Publication of CN113536739A publication Critical patent/CN113536739A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the specification provides a method, a device and equipment for converting a plurality of graph mode file formats into a unified format. The method comprises the following steps: acquiring a two-dimensional drawing file and a three-dimensional model file, extracting first information of a geometric object and an attribute object in the two-dimensional drawing file, and generating the two-dimensional drawing file with a uniform file format according to the first information; extracting second information of the geometric objects and the attribute objects in the three-dimensional model file, and generating the three-dimensional model file in a unified file format according to the second information; and loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format by at least one graphic engine in a plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphic engines. The scheme can realize that the graph mode file is suitable for different software or graph engines through one-time conversion service, improves the efficiency of format conversion and reduces the cost of format conversion.

Description

Method, device and equipment for converting multiple graphic mode file formats into unified format
Technical Field
The present disclosure relates to the field of graph-mode file format conversion technologies, and in particular, to a method, an apparatus, and a device for converting multiple graph-mode file formats into a unified format.
Background
In the construction of building engineering, a great number of drawing models (simply called "drawing models") are generated from the development stage to the completion or operation and maintenance stage, different drawing models often have different file formats, and the drawing models in different file formats need to be opened by using different software or graphic engines, for example: the graph model of the DWG format needs to be opened using AutoCAD software.
Because the software used by each building and construction participant on each terminal is not uniform, if a graph model of a certain file format needs to be opened, the graph model needs to be converted into a file format corresponding to different software, so that the operation needs to be performed by different software or a graph engine under different use scenes. Therefore, the method can not be used for a plurality of use scenes by one-time conversion service, so that the experience of the image-mode format conversion is reduced, and the format conversion cost and the development workload of the image-mode file are increased.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method, an apparatus, and a device for converting multiple formats of a graph-mode file into a unified format, so as to solve the problems that the prior art cannot be used for multiple usage scenarios by using one conversion service, and format conversion cost and development workload of the graph-mode file are large.
In a first aspect of the embodiments of the present disclosure, a method for converting multiple image-mode file formats into a unified format is provided, including: acquiring a two-dimensional drawing file and a three-dimensional model file, wherein the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats; extracting first information of geometric objects and attribute objects in the two-dimensional drawing file, and generating the two-dimensional drawing file with a uniform file format according to the first information; extracting second information of the geometric objects and the attribute objects in the three-dimensional model file, and generating the three-dimensional model file in a unified file format according to the second information; and loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format by at least one graphic engine in a plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphic engines.
In a second aspect of the embodiments of the present disclosure, an apparatus for converting multiple graphic-mode file formats into a unified format is provided, including: the acquisition module is configured to acquire a two-dimensional drawing file and a three-dimensional model file, and the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats; the first conversion module is configured to extract first information of the geometric object and the attribute object in the two-dimensional drawing file, and generate the two-dimensional drawing file with a unified file format according to the first information; the second conversion module is configured to extract second information of the geometric objects and the attribute objects in the three-dimensional model file and generate the three-dimensional model file in a unified file format according to the second information; and the loading rendering module is configured to load and render the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format through at least one graphics engine in the plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphics engines.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method when executing the program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
The embodiment of the present disclosure adopts at least one technical scheme that can achieve the following beneficial effects:
the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats by acquiring the two-dimensional drawing file and the three-dimensional model file; extracting first information of geometric objects and attribute objects in the two-dimensional drawing file, and generating the two-dimensional drawing file with a uniform file format according to the first information; extracting second information of the geometric objects and the attribute objects in the three-dimensional model file, and generating the three-dimensional model file in a unified file format according to the second information; and loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format by at least one graphic engine in a plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphic engines. The scheme can enable the graphic mode file to be suitable for different software or graphic engines through one-time conversion service, reduces the time for converting the format of the graphic mode file, improves the experience of converting the graphic mode format, and reduces the development workload and the conversion cost when different formats are converted and different graphic engines are accessed.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
FIG. 1 is a diagram illustrating a format conversion process of a graphic module file in a practical application scenario according to the related art;
FIG. 2 is a flowchart illustrating a method for converting multiple graphic-model file formats into a unified format according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a format conversion process of a graph-model file in an actual application scenario according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a graphics-model file after uniform format conversion and rendering in an actual application scenario according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an apparatus for converting multiple graphic-model file formats into a unified format according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
In the field of construction of a building process, different format conversion services and different software or graphic engines are required under different use scenes, where the different use scenes refer to different formats of the graphic model files, and the algorithms of the format conversion services corresponding to the different formats of the graphic model files are also different, so that when the different software or graphic engines are used to read the graphic model files in the same format, the graphic model files need to be converted into the formats corresponding to the different software or graphic engines. For example, if different software (such as Autodesk Revit, SketchUp, and 3D Studio Max) is required to read the graph-mode file in the DWG format, the graph-mode file in the DWG format needs to be converted into the graph-mode files in the RVT format, the SKP format, and the 3DS format, and then the graph-mode file after format conversion needs to be read and presented by the software. The inventor finds that a format conversion scheme of the graph mode file, which can be applied to different software or graphic engines through one-time conversion service, improves experience of graph mode format conversion, and reduces cost and development workload of the graph mode format conversion, needs to be provided
Therefore, when different software or graphic engines are used for opening the graphic mode files in the same format, the graphic mode files in a certain format need to be converted into the formats corresponding to the different software or graphic engines respectively. Moreover, for the graphic mode files with different formats, when different software or graphic engines are used for accessing the graphic mode files, the development workload of background personnel can be greatly increased, and the development and maintenance cost is increased.
The following describes an implementation process of format conversion service of a construction drawing in the related art, taking an online collaborative audit scene of the construction drawing as an example. Fig. 1 is a schematic diagram of a format conversion process of a graph-mode file in a practical application scenario in the related art. As shown in fig. 1, the format conversion process of the graph-model file in the related art mainly includes the following steps:
after the construction drawing is manufactured, the construction drawing needs to be mutually checked by each professional, for example, the professional in the water department checks the construction drawing in the electricity department, or an external design institute checks the construction drawing, so as to check whether the drawing meets the specification. When the on-line verification system is used for verifying drawings, because terminals used by all participants of the drawing verification are different, software or graphic engines which can be installed on different terminals are different, and even versions of the software or graphic engines are different, however, different software can only read respective file formats, and the file formats are not uniform, which may cause obstacles to on-line collaborative verification, and therefore, the drawing files in the original format need to be converted into formats corresponding to all the software or graphic engines. For example, the original format of the construction drawing is DWG format, and the software installed on the terminal of the online collaborative audit participant includes Autodesk review, SketchUp or 3D Studio Max, so that in order to achieve the purpose of online collaborative audit, that is, the modification of each auditor can be seen by other auditors, the construction drawing in DWG format needs to be converted into construction drawings in RVT format, SKP format and 3DS format, and the converted construction drawings are respectively sent to the terminals of different auditors, opened by using respective corresponding software, and the construction drawing is audited and modified.
Because the construction drawings in the online auditing system are all drawings in an electronic form, when the online auditing system respectively converts the construction drawings in the original format into different formats, the format conversion time of the construction drawings is increased, and the operation experience of each auditing participant on conversion service is not uniform, that is, when the construction drawings in different formats are converted in the prior art, the unification of the drawing formats cannot be realized through one-time conversion. In order to avoid the problem that the format conversion service of the online auditing system cannot realize format unification, in the related technology, drawings are audited in a offline mode, namely, construction drawings are printed and distributed to auditors, each auditor respectively holds the same drawing, the offline auditing mode needs to carry out face-to-face auditing, or the drawings are distributed and respectively audited, but the offline auditing has low auditing efficiency and high communication cost, and the effect of real-time auditing of the online auditing system cannot be achieved.
It should be noted that, the following embodiments of the present disclosure are described with an online collaborative audit scene of a construction drawing as an example, however, the method for converting the format of the graph-model file provided in the embodiments of the present disclosure is not limited to the online collaborative audit scene, and is also applicable to other usage scenes developed based on drawings, such as effect comment on drawings, and data visualization display of drawings. The drawing model file in the embodiment of the disclosure is not limited to the construction drawing, and any drawing file or model file capable of format conversion is suitable for the scheme.
The execution subject in the embodiment of the present disclosure may be a terminal used by an auditor and installed with a graphics software or engine, for example, the terminal may be a device with networking and display functions, such as a mobile phone, a tablet, a PC, a smart watch, and the like, and the software or the graphics engine in the embodiment of the present disclosure may be implemented by a third party application installed on the terminal, and the above description of the application scenario and the execution subject does not constitute a limitation to the present solution.
Fig. 2 is a schematic flowchart of a method for converting a format of an image model file into a uniform format according to an embodiment of the present disclosure. The method for converting the format of the graphic mode file into the uniform format in fig. 2 may be executed by a server or a terminal, where the server may be a background server corresponding to the online collaborative auditing system. As shown in fig. 2, the format conversion method of the graph model file may specifically include:
s201, acquiring a two-dimensional drawing file and a three-dimensional model file, wherein the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats;
s202, extracting first information of geometric objects and attribute objects in the two-dimensional drawing file, and generating the two-dimensional drawing file with a uniform file format according to the first information;
s203, extracting second information of the geometric objects and the attribute objects in the three-dimensional model file, and generating the three-dimensional model file in a unified file format according to the second information;
s204, loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format through at least one graphics engine in the plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphics engines.
Specifically, in the design and construction field of the building engineering, the drawing model file may be some drawing files, such as design drawings, construction drawings, acceptance drawings, and the like. The initial format of the drawing model file, that is, the drawing is made by using which software or graphic engine, for example, a construction drawing drawn by using AutoCAD software, and the initial format of the derived construction drawing is the DWG format. In practical application, besides the construction drawing in DWG format, drawing files in RVT, SKP, 3DS, and other formats may be included. The drawing files in DWG format correspond to two-dimensional drawing files, and the drawing files in RVT, SKP, 3DS and other formats correspond to three-dimensional model files.
Different drawing model files can come from different use scenes or different data sources, and drawing contents contained in drawing model files with different formats can be the same, for example, in practical application, a certain construction drawing can be in an A file format or a B file format, but the contents of the construction drawing can be completely the same.
Further, the calling function may be considered as an API interface provided by the graphics software of the called object, and the API interfaces of different pieces of software may be configured in advance in a server of the auditing system, and specifically, an API interface installation package provided by different pieces of software may be obtained, and the API interface may be configured in a computing program corresponding to the format conversion service in the server through the installation package. It should be noted that, the embodiments of the present disclosure do not limit the specific content of the calling function (i.e., the API interface), and the calling functions provided by different graphics software are not the same. In practical applications, the API interface is provided by the service side of different graphics software, and therefore, the specific content of the calling function does not constitute a limitation to the present technical solution.
Further, the geometric object and the attribute object in the graph model may also be referred to as a target object, so the geometric object and the attribute object are referred to as the target object in the following, and the target object type refers to a type corresponding to the target object extracted from the graph model file, and in practical applications, the target object type includes, but is not limited to, the following types: points, straight lines, arcs, ellipses, parabolas, quadratic curves, polylines, NURBS curves, planes, cylinders, spheres, torus, NURBS surfaces, etc., layers, views, colors, materials, patterns, text. For example, if the target object extracted from a certain graph-model file is a straight line, the type corresponding to the target object is a straight line type.
It should be noted that the graph-mode file in the initial file format (hereinafter referred to as the initial format) is converted into the graph-mode file in the unified file format (hereinafter referred to as the unified format), where the unified format is a unique unified format generated based on the conversion scheme of the embodiment of the present disclosure, and the graph-mode file in the unified format may be opened by different software or graphics engines.
According to the technical scheme provided by the embodiment of the disclosure, the target objects in the graph-model files with different formats are analyzed to realize the division of the types of the target objects, the construction modes corresponding to different types of the target objects are determined according to the classified target objects and the pre-configured unified type library, the target objects in the original graph-model files are converted into the target objects corresponding to the format of the invention according to the preset conversion rules in the construction modes, even if the converted target objects have the same attributes and expression modes as the objects in the format of the invention, and therefore the format of the graph-model files generated based on the converted target objects is changed into the format specified by the invention. The scheme can enable the graph mode file to be suitable for different software or graphic engines through one-time conversion service, reduces the time for converting the format of the graph mode file, improves the experience of the graph mode format conversion, and reduces the development workload and the conversion cost when different formats are converted and different graphic engines are accessed.
In some embodiments, extracting first information of geometric objects and attribute objects in a two-dimensional drawing file comprises: acquiring a first calling function corresponding to a two-dimensional drawing file in an initial file format, and extracting first information in the two-dimensional drawing file by using the first calling function; the first calling function is a function of an API configured according to an initial file format, and the first information is information corresponding to a first geometric object and a first attribute object in a two-dimensional drawing file
Specifically, at least one graph model file (namely a two-dimensional graph file and a three-dimensional model file) in an initial format generated in different use scenes is obtained, and each graph model file corresponds to one initial format; wherein the initial format comprises a plurality of the following file formats: DWG file format, RVT file format, SKP file format, and 3DS file format.
Further, in the embodiment of the present disclosure, the drawing model file may also be regarded as a drawing file, and the drawing file originates from different usage scenarios, such as: the drawing generated in the design stage of the building scheme can be a primary design drawing, the drawing generated in the construction stage can be a construction drawing, and the drawing generated in the operation and maintenance stage can be an operation and maintenance drawing. It is understood that the construction drawings are made by specific graphic software or a graphic engine, and therefore, each construction drawing may correspond to a different file format, for example, the drawing made by the AutoCAD software is in a DWG format, and the drawing made by the Autodesk review software is in an RVT format. The file format does not limit the initial format of the drawing-mode file, and a file format corresponding to a drawing file derived by any software capable of producing a drawing can be regarded as the initial format of the drawing-mode file.
According to the technical scheme provided by the embodiment of the disclosure, since the embodiment of the disclosure converts different data formats (i.e. initial graphic model file formats) into a uniform data format to achieve the purpose of enabling graphic software on different terminals to be readable, the embodiment of the disclosure firstly needs to acquire the drawing files of different use scenes (here, different file formats are represented) so as to further analyze the drawing files. The following describes the process of parsing a drawing file in detail with reference to specific embodiments.
In some embodiments, extracting the second information of the geometric object and the attribute object in the three-dimensional model file comprises: acquiring a second calling function corresponding to the three-dimensional model file in the initial file format, and extracting second information in the three-dimensional model file by using the second calling function; the second calling function is a function of an API configured according to the initial file format, and the second information is information corresponding to a second geometric object and a second attribute object in the three-dimensional model file.
Further, when extracting the information of the target object from the graph-model file in the initial format by using the calling function, firstly, obtaining the calling function corresponding to the graph-model file in the initial format, extracting the information of the target object in the graph-model file in the initial format by using the calling function, wherein the calling function is a function of an API (application program interface) configured according to the initial format of the graph-model file; wherein the target object comprises a geometric object and a property object, the geometric object comprising one or more of the following geometric figures: points, straight lines, arcs, ellipses, parabolas, quadratic curves, polylines, NURBS curves, NURBS curved surfaces, planes, cylindrical surfaces, spherical surfaces, and torus surfaces; the property objects include one or more of the following geometric figures: layer, view, color, material, style, and text.
It should be noted that the information of the target object refers to information corresponding to the geometric object and the attribute object in the graph-model file, that is, when the graph-model file is a two-dimensional graph file, the information of the target object corresponds to the first information, that is, when the graph-model file is a three-dimensional model file, the information of the target object corresponds to the second information, and therefore, the information of the target object will be referred to as the first information or the second information hereinafter.
Specifically, the calling function may be considered as an API interface corresponding to the graphics software or the graphics engine, where the API interfaces of different graphics software or graphics engines are different, and the API interface may be obtained by a service side of the corresponding graphics software or graphics engine, such as obtaining the API interface from a server of the graphics software or graphics engine. API (application Programming interface) refers to an application Programming interface, which may be considered a predefined function, that provides an application and developer the ability to access a set of routines based on certain software or hardware, without accessing source code or understanding the details of internal working mechanisms.
Further, in the embodiment of the present disclosure, the desired data (i.e., the information of the target object) may be parsed from the drawing file in the corresponding software format through an API interface of the graphics software, for example, taking the file in the DWG format as an example, the drawing file in the DWG format obtained by calling the API interface provided by the AutoCAD software is used, by parsing each line of plaintext information in the drawing file sequentially from top to bottom, whenever an entity object (i.e., the target object) is parsed, the information corresponding to the entity object (i.e., the information of the target object) is extracted, the entity object may be a straight line, a rectangle, a curve, and the like, and the entity object may include other objects, for example, a rectangle may include a plurality of line segments, and therefore, the information of some objects may be included in the information of the previous object.
According to the technical scheme provided by the embodiment of the disclosure, after the drawing files with different data formats are obtained, the corresponding drawing file is called by using the API, the target object in the drawing file is analyzed, and the information of the target object is extracted. According to the method and the device for extracting the target object information, the drawing file is called through the API, the target object information can be extracted more efficiently, the target objects contained in the drawing file can be determined, the target object information can be extracted accurately, and classification of the target objects can be further achieved based on the target object information. The following describes the classification process of the target object in detail with reference to specific embodiments.
In some embodiments, the method further comprises: and classifying the first geometric object and the first attribute object respectively according to the type identifier in the first information so as to divide the first geometric object or the first attribute object containing the same type identifier into the same class, and determining the type corresponding to the first geometric object and the first attribute object according to the classification result.
In some embodiments, the method further comprises: and classifying the second geometric object and the second attribute object respectively according to the type identifier in the second information so as to divide the second geometric object or the second attribute object containing the same type identifier into the same class, and determining the type corresponding to the second geometric object and the second attribute object according to the classification result.
Specifically, the plaintext information of the extracted target object may include at least two pieces of information, i.e., a type identifier and a parameter, and the following describes the information of the target object in detail by taking an actual application scenario as an example. In the DWG file, the following information is extracted by calling a function: AcDbPolyline, (90,4,70,1,43), (0.000000136528,777.6792892819,248.738154619728,243.068571317242). In the above information of the target object, AcDbPolyline corresponds to a type identifier, and the following data corresponds to a parameter, and it can be determined that the target object is a multi-segment line according to the type identifier, that is, the type of the target object belongs to the multi-segment line, the parameter of the target object includes an index of a point and a coordinate of the point, and the parameter in the information of the target object can also be regarded as an attribute included in the target object.
Further, in the embodiment of the present disclosure, the target object may be divided according to the type identifier in the information of the target object, that is, the target object is divided into different categories, for example, all straight lines in the drawing file are divided into straight line types, all points are divided into point types, all arcs are divided into arc types, and so on. Calling a target in a drawing file through an API (application programming interface)
And marking the target object, extracting the information of the target object, and classifying the information according to the type identification in the information of the target object, so that the target object can be reconstructed by selecting a construction mode matched with the type of the target object according to the type of the target object. The following describes the reconstruction process of the target object in detail with reference to specific embodiments.
In some embodiments, generating the two-dimensional drawing file in the unified file format according to the first information includes: determining a preset type corresponding to the types of the first geometric object and the first attribute object by utilizing a pre-configured unified type library based on the types corresponding to the first geometric object and the first attribute object, respectively converting the first geometric object and the first attribute object into objects of the preset type according to a construction mode corresponding to the preset type and a conversion rule in the construction mode, and generating a two-dimensional drawing file in a unified file format according to the objects of the preset type.
In some embodiments, generating the three-dimensional model file in the unified file format from the second information includes: and determining a preset type corresponding to the types of the second geometric object and the second attribute object by utilizing a pre-configured unified type library based on the types corresponding to the second geometric object and the second attribute object, respectively converting the second geometric object and the second attribute object into objects of the preset type according to a construction mode corresponding to the preset type and a conversion rule in the construction mode, and generating a three-dimensional model file in a unified file format according to the objects of the preset type.
Specifically, the unified type library includes a mapping relationship between a class of a target object type and a class of a predetermined type, the class of the target object type is used for representing a set of objects having the same attributes and construction modes as the target object, and the class of the predetermined type is used for representing a set of objects having the same attributes and construction modes as the object of the predetermined type, where the class of the predetermined type includes a conversion rule.
Further, in the embodiment of the present disclosure, a unified type library is preconfigured, and a mapping relationship between classes of different target object types is preconfigured in the unified type library, that is, a class, such as a linear class, a point class, and an arc class, is defined for a type to which each target object belongs. A class refers to a collection of a set of objects having the same properties and methods, which provides a uniform abstract description for all objects belonging to the class. In practical application, when defining a class corresponding to a target object, the attribute and the representation mode of the target object of the same type can be encapsulated into the class of the target object according to the requirements of the preset format of the present invention on different target object types, that is, compared with the original target object, the attribute and the representation mode of the original target object can be constructed into the attribute and the representation mode defined by the format of the present invention through the class. Thus, in the disclosed embodiments, a class can be considered as a way of constructing an object, i.e., a target object of one class can be converted into an object of another class according to the way of constructing the object.
Further, in the embodiment of the present disclosure, conversion rules between different types of target objects may be written into a class (i.e., a construction manner), and functions of different target objects may be corresponding to functions required by a uniform format through the conversion rules, and the conversion rules may be regarded as a conversion relationship of the functions. In the following, a description is given of a function conversion between information of target objects by using a conversion rule, taking a point as a target object as an example, where a function of a point pair in a DWG file is "origin ()"; the function at the point in the RVT is Rpoint (); the function of the point in the SKP file is Kpoint (); mapping the different function data to Lpoint () by using a conversion rule; through the operation, the points in the files with different formats can be converted into the points in the file with the uniform format. The content in the bracket may be parameter or attribute information of the point.
It should be noted that, in practical application, the geometric objects and the attribute objects in the graph-model file correspond to different classes respectively, that is, respective classes are defined for the geometric objects and the attribute objects, where the classes of the geometric objects define attributes of the geometric objects and construction manners of the geometric objects, and the classes of the attribute objects define attributes of the attribute objects and construction manners of the attribute objects, and the construction manners may be implemented by using a construction function.
According to the technical scheme provided by the embodiment of the disclosure, the class of the target object in the initial format file is mapped to the class of the object in the uniform format of the invention through the uniform type library, and because the representation modes of the objects in different format files are different, the functions of the objects in different format files are corresponding to the functions of the objects in the format of the invention through the conversion rule, and the unification of the representation modes of the objects in different format files is realized through the conversion, thereby achieving the unification of the data structure.
In some embodiments, the conversion rule is configured to convert the function expressions corresponding to the types of the geometric object and the attribute object into function expressions corresponding to a predetermined type, so that the function data of the geometric object and the attribute object is converted into function data of an object corresponding to the predetermined type.
Specifically, the conversion rule may be regarded as a conversion function written into a class, by which a function representation of a target object in an initial format can be converted into a function representation of an object in a unified format, for example, assuming that in a DWG file in the initial format, a point function is represented by three-dimensional coordinates of x, y and z, and a point function in the file in the unified format is represented by x ', y' and z ', then by corresponding an x coordinate in a point in the initial format into an x' in the unified format, a y coordinate in a point in the initial format into a y 'in the unified format, and a z coordinate in a point in the initial format into a z' in the unified format, the conversion of the function is realized, or the conversion of function data (i.e., three-dimensional coordinates) is realized.
Further, the following describes the conversion manner of the function in detail with reference to specific embodiments, for example, in a specific application scenario, the expression function of the straight line in the construction drawing made by the graphic software a is as follows
Figure 278480DEST_PATH_IMAGE001
Wherein
Figure 100942DEST_PATH_IMAGE002
The coordinates of the starting point are represented,
Figure 305659DEST_PATH_IMAGE003
representing coordinate vectors and a function of expression of straight lines in a drawing of uniform format as
Figure 504559DEST_PATH_IMAGE004
(ii) a When the straight line of the graphic software A corresponding to the format is corresponding to the straight line of the uniform format, the straight line of the graphic software A corresponding to the uniform format needs to be matched with the graphic software A
Figure 360388DEST_PATH_IMAGE002
Corresponding to the point a, the vector is divided into
Figure 353752DEST_PATH_IMAGE005
And converting into points, then corresponding the points into points b, and correspondingly converting the function data.
According to the technical scheme provided by the embodiment of the disclosure, the expression function of the target object in the initial format is converted into the expression function of the object in the uniform format, so that the conversion of function data is realized, namely, the original object is converted into the current object, and the data format of the converted object can meet the requirement of the uniform format, so that the finally generated graph-model file can meet the requirement of the uniform format, namely, the format of the graph-model file is changed into the uniform format.
In some embodiments, loading and rendering, by at least one graphics engine in a plurality of clients, a two-dimensional drawing file in a unified file format or a three-dimensional model file in a unified file format includes: discretizing the preset type of object, and generating a two-dimensional drawing file or a three-dimensional model file to be rendered based on the discretized object; and rendering the two-dimensional drawing file or the three-dimensional model file to be rendered by utilizing the graphics engines pre-installed on a plurality of different clients, and displaying the rendered two-dimensional drawing file or the rendered three-dimensional model file in the clients so as to execute online collaborative auditing operation.
Specifically, since the discretized data is a basic structure of various applications, in order to render the graph-model file by the applications and achieve the purposes of online auditing of the graph-models, effect display and data presentation, it is necessary to discretize object data in the graph-model file in a uniform format, and use the graph-model file generated by the discretized object as a rendered object, and the discretization operation can also reduce the data volume. Before generating a graph-mode file with a uniform format based on an object corresponding to a predetermined type, performing discretization processing on the object corresponding to the predetermined type, and generating a graph-mode file to be rendered according to the discretized object; and rendering the image-mode file to be rendered by utilizing a webGL technology, and sending the rendered image-mode file to different terminals for displaying so as to perform online collaborative auditing on the rendered image-mode file.
Specifically, the data discretization refers to grouping continuous data into a discretization interval. For example, taking a circle as an example, when discretizing a circle in a graph-model file, a polygon can be obtained by controlling the number of edges to perform discretization, and since discretization is a general method, the embodiment of the present disclosure does not limit a specific implementation process of discretization, and any manner capable of implementing data discretization can be applied to this scheme.
The following describes a process of converting the format of the graphics-mode file in the initial format and rendering the converted graphics-mode file in the disclosed embodiment with reference to the drawings. Fig. 3 is a schematic diagram of a format conversion process of a graph-mode file in an actual application scenario according to an embodiment of the present disclosure. As shown in fig. 3, the format conversion process of the graph model file mainly includes the following steps:
after obtaining a plurality of graph-model files with different initial formats, analyzing the graph-model files respectively, extracting geometric objects and attribute objects in the graph-model files, classifying the geometric objects and the attribute objects according to the information of the target objects, mapping the types of the target objects into uniform types according to a uniform type library, converting functions of the target objects by using conversion functions, putting the objects obtained after the function conversion into one graph-model file to generate the graph-model file with a uniform format, rendering the graph-model file with the uniform format by using a webGL technology, or reading and presenting the graph-model file by using a UE4 engine, AutoCAD software and the like.
In the embodiment of the disclosure, in addition to analyzing the two-dimensional drawing file and the three-dimensional model file to generate a file with a unified format, for a file with an initial file format of a common format, the file with the common format corresponding to the initial file format may also be analyzed separately to generate a file with a common format, and the file with the common format may also be called and rendered by the multi-end engine. And the graph-model file with the uniform format and the universal format file can be stored in the same system database, and when the graph-model file with the uniform format and the universal format file are called in a multi-terminal engine, the graph-model file with the uniform format and the universal format file can be called.
Here, the files in the common format include files in the formats of OFFICE, PDF, JPG, etc., and any existing or future developed technology for converting the common formats of OFFICE, PDF, JPG, etc. into the common format may be used in conjunction with the embodiments of the present disclosure.
Based on the above embodiment, by parsing the graph-model file in the initial format, extracting the target object in the graph-model file, and realizing object classification according to the information of the target object, converting the object in the initial format file into the object in the uniform format file based on the class mapping relation between different types of objects in the uniform type library, thereby realizing the mapping of the types of the target objects into the uniform types, realizing the uniformity of the data structure, changing the format of the graph-model file generated by the objects obtained based on the operations into the uniform format, the uniform format can be recognized and read by different graphics software or graphics engines, so that the purpose of reading different software or graphics engines through one-time conversion service is achieved, therefore, different graphic software does not need to be converted respectively, the efficiency of converting the graphic mode file is improved, and the format of the converted graphic mode file can be suitable for the graphic software on different terminals.
The following describes the format-converted and rendered graphic model file with reference to the drawings in an actual scene. Fig. 4 is a schematic diagram of a graphics-mode file after uniform format conversion and rendering in an actual application scenario according to an embodiment of the present disclosure. As shown in fig. 4, the graph model file mainly includes the following contents:
the graph model file presented in fig. 4 can be regarded as a plan view of a building, including a wall, a curtain wall, and other figures, and can further include the size, color (not shown), and other figures. In practical application, the drawing model document is not limited to construction drawings, and drawings involved from the bidding stage to the completion or operation and maintenance stage of building construction are all applicable to the scheme, for example: design drawings, construction drawings, deepened design drawings, sales material drawings, experience area drawings, completion drawings, operation and maintenance drawings and the like. The graph model file can contain display contents of buildings, structures, electromechanics, landscapes, hardwares, small municipalities, curtain walls, floodlights and the like.
It should be noted that, compared with the graph-mode file before conversion, the graph-mode file after format conversion in the present scheme has lighter data, and the graph-mode file in the unified format can be used by different graphics software or graphics engines, for example, software or graphics engines such as Autodesk review, SketchUp, 3D Studio Max, UE4, unity3D, etc., and the graph-mode file after format conversion and rendering in the unified format can be applied to various scenes such as graph-mode review, effect display, data presentation, etc.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a schematic structural diagram of an apparatus for converting multiple image-mode file formats into a unified format according to an embodiment of the present disclosure. As shown in fig. 5, the format conversion apparatus of the graph model file includes:
an obtaining module 501, configured to obtain a two-dimensional drawing file and a three-dimensional model file, where the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats;
a first conversion module 502, configured to extract first information of a geometric object and an attribute object in a two-dimensional drawing file, and generate a two-dimensional drawing file in a unified file format according to the first information;
the second conversion module 503 is configured to extract second information of the geometric object and the attribute object in the three-dimensional model file, and generate a three-dimensional model file in a unified file format according to the second information;
a loading rendering module 504 configured to load and render, by at least one graphics engine of the plurality of clients, a two-dimensional drawing file in a unified file format or a three-dimensional model file in a unified file format, where the unified file format represents a common format applicable to the plurality of graphics engines.
In some embodiments, the first conversion module 502 in fig. 5 obtains a first call function corresponding to the two-dimensional drawing file in the initial file format, and extracts first information in the two-dimensional drawing file by using the first call function; the first calling function is a function of an API configured according to an initial file format, and the first information is information corresponding to a first geometric object and a first attribute object in a two-dimensional drawing file.
In some embodiments, the first conversion module 502 in fig. 5 classifies the first geometric object and the first attribute object according to the type identifier in the first information, so as to divide the first geometric object or the first attribute object containing the same type identifier into the same class, and determine the type corresponding to the first geometric object and the first attribute object according to the classification result.
In some embodiments, the first conversion module 502 in fig. 5 determines, based on the types corresponding to the first geometric object and the first attribute object, a predetermined type corresponding to the types of the first geometric object and the first attribute object by using a pre-configured unified type library, converts the first geometric object and the first attribute object into objects of the predetermined type according to a construction manner corresponding to the predetermined type and a conversion rule in the construction manner, and generates a two-dimensional drawing file in a unified file format according to the objects of the predetermined type.
In some embodiments, the second conversion module 503 in fig. 5 obtains a second call function corresponding to the three-dimensional model file in the initial file format, and extracts second information in the three-dimensional model file by using the second call function; the second calling function is a function of an API configured according to the initial file format, and the second information is information corresponding to a second geometric object and a second attribute object in the three-dimensional model file.
In some embodiments, the second conversion module 503 of fig. 5 classifies the second geometric object and the second attribute object according to the type identifier in the second information, so as to divide the second geometric object or the second attribute object containing the same type identifier into the same class, and determine the type corresponding to the second geometric object and the second attribute object according to the classification result.
In some embodiments, the second conversion module 503 of fig. 5 determines a predetermined type corresponding to the types of the second geometric object and the second attribute object by using a pre-configured unified type library based on the types corresponding to the second geometric object and the second attribute object, converts the second geometric object and the second attribute object into objects of the predetermined type according to a construction manner corresponding to the predetermined type and a conversion rule in the construction manner, respectively, and generates a three-dimensional model file in a unified file format according to the objects of the predetermined type.
In some embodiments, the unified type library includes a mapping relationship between classes corresponding to types of preset geometric objects and attribute objects and classes of a predetermined type, where the classes corresponding to the types of the geometric objects and attribute objects are used to represent a set of objects having the same attributes and construction manners as the geometric objects and attribute objects, and the classes of the predetermined type are used to represent a set of objects having the same attributes and construction manners as the objects of the predetermined type.
In some embodiments, the conversion rule is configured to convert the function expressions corresponding to the types of the geometric object and the attribute object into function expressions corresponding to a predetermined type, so that the function data of the geometric object and the attribute object is converted into function data of an object corresponding to the predetermined type.
In some embodiments, the load rendering module 504 of fig. 5 performs discretization on an object of a predetermined type, and generates a two-dimensional drawing file or a three-dimensional model file to be rendered based on the discretized object; and rendering the two-dimensional drawing file or the three-dimensional model file to be rendered by utilizing the graphics engines pre-installed on a plurality of different clients, and displaying the rendered two-dimensional drawing file or the rendered three-dimensional model file in the clients so as to execute online collaborative auditing operation.
In some embodiments, the geometric objects include one or more of the following geometric figures: points, straight lines, arcs, ellipses, parabolas, quadratic curves, polylines, NURBS curves, NURBS curved surfaces, planes, cylindrical surfaces, spherical surfaces, and torus surfaces; the property objects include one or more of the following geometric figures: layer, view, color, material, style, and text.
In some embodiments, the initial file format includes a plurality of the following file formats: DWG file format, RVT file format, SKP file format, and 3DS file format.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 6 is a schematic structural diagram of the electronic device 6 provided in the embodiment of the present disclosure. As shown in fig. 6, the electronic apparatus 6 of this embodiment includes: a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and operable on the processor 601. The steps in the various method embodiments described above are implemented when the computer program 603 is executed by the processor 601. Alternatively, the processor 601 realizes the functions of each module/unit in the above-described apparatus embodiments when executing the computer program 603.
Illustratively, the computer program 603 may be partitioned into one or more modules/units, which are stored in the memory 602 and executed by the processor 601 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 603 in the electronic device 6.
The electronic device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 6 may include, but is not limited to, a processor 601 and a memory 602. Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or fewer components than shown, or combine certain components, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 602 may be an internal storage unit of the electronic device 6, for example, a hard disk or a memory of the electronic device 6. The memory 602 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 6. Further, the memory 602 may also include both internal storage units of the electronic device 6 and external storage devices. The memory 602 is used for storing computer programs and other programs and data required by the electronic device. The memory 602 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or each unit may also exist alone physically
Two or more units can be integrated into one unit, and the integrated unit can be realized in a hardware form or a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a division of modules or units, a division of logical functions only, an additional division may be made in actual implementation, multiple units or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (15)

1. A method for converting a plurality of graphic mode file formats into a unified format, comprising:
acquiring a two-dimensional drawing file and a three-dimensional model file, wherein the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats;
extracting first information of geometric objects and attribute objects in the two-dimensional drawing file, and generating a two-dimensional drawing file with a uniform file format according to the first information;
extracting second information of geometric objects and attribute objects in the three-dimensional model file, and generating a three-dimensional model file with a unified file format according to the second information;
and loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format through at least one graphics engine in a plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphics engines.
2. The method of claim 1, wherein extracting the first information of the geometric object and the attribute object in the two-dimensional drawing file comprises:
acquiring a first calling function corresponding to the two-dimensional drawing file in the initial file format, and extracting first information in the two-dimensional drawing file by using the first calling function;
the first calling function is a function of an API configured according to the initial file format, and the first information is information corresponding to a first geometric object and a first attribute object in the two-dimensional drawing file.
3. The method of claim 2, further comprising:
and classifying the first geometric object and the first attribute object according to the type identifier in the first information, so as to divide the first geometric object or the first attribute object containing the same type identifier into the same class, and determining the type corresponding to the first geometric object and the first attribute object according to the classification result.
4. The method of claim 3, wherein generating the two-dimensional drawing file in a unified file format from the first information comprises:
determining a preset type corresponding to the types of the first geometric object and the first attribute object by utilizing a pre-configured unified type library based on the types corresponding to the first geometric object and the first attribute object, respectively converting the first geometric object and the first attribute object into objects of the preset type according to a construction mode corresponding to the preset type and a conversion rule in the construction mode, and generating a two-dimensional drawing file of a unified file format according to the objects of the preset type.
5. The method of claim 1, wherein the extracting second information of geometric objects and attribute objects in the three-dimensional model file comprises:
acquiring a second calling function corresponding to the three-dimensional model file in the initial file format, and extracting second information in the three-dimensional model file by using the second calling function;
the second calling function is a function of an API configured according to the initial file format, and the second information is information corresponding to a second geometric object and a second attribute object in the three-dimensional model file.
6. The method of claim 5, further comprising:
and classifying the second geometric object and the second attribute object according to the type identifier in the second information, so as to divide the second geometric object or the second attribute object containing the same type identifier into the same class, and determining the type corresponding to the second geometric object and the second attribute object according to the classification result.
7. The method of claim 6, wherein generating the three-dimensional model file in a unified file format from the second information comprises:
and determining a preset type corresponding to the types of the second geometric object and the second attribute object by utilizing a pre-configured unified type library based on the types corresponding to the second geometric object and the second attribute object, respectively converting the second geometric object and the second attribute object into objects of the preset type according to a construction mode corresponding to the preset type and a conversion rule in the construction mode, and generating a three-dimensional model file in a unified file format according to the objects of the preset type.
8. The method according to claim 4 or 7, wherein the unified type library includes a mapping relationship between classes corresponding to types of preset geometric objects and attribute objects and classes of the predetermined types, the classes corresponding to the types of the geometric objects and attribute objects are used for representing a set of objects having the same attributes and construction manners as the geometric objects and attribute objects, and the classes of the predetermined types are used for representing a set of objects having the same attributes and construction manners as the objects of the predetermined types.
9. The method according to claim 4 or 7, wherein the conversion rule is used for converting the functional expressions corresponding to the types of the geometric objects and the attribute objects into the functional expressions corresponding to the predetermined types, so that the functional data of the geometric objects and the attribute objects are converted into the functional data of the objects corresponding to the predetermined types.
10. The method of claim 7, wherein loading and rendering the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format by at least one graphics engine in a plurality of clients comprises:
discretizing the preset type of object, and generating a two-dimensional drawing file or a three-dimensional model file to be rendered based on the discretized object;
and rendering the two-dimensional drawing file or the three-dimensional model file to be rendered by utilizing a graphics engine pre-installed on a plurality of different clients, and displaying the rendered two-dimensional drawing file or three-dimensional model file in the clients so as to execute online collaborative auditing operation.
11. The method of claim 1, wherein the geometric objects comprise one or more of the following geometric figures: points, straight lines, arcs, ellipses, parabolas, quadratic curves, polylines, NURBS curves, NURBS curved surfaces, planes, cylindrical surfaces, spherical surfaces, and torus surfaces; the property objects include one or more of the following geometric figures: layer, view, color, material, style, and text.
12. The method of claim 1, wherein the initial file format comprises a plurality of the following file formats: DWG file format, RVT file format, SKP file format, and 3DS file format.
13. An apparatus for converting a plurality of graphic-mode file formats to a unified format, comprising:
the acquisition module is configured to acquire a two-dimensional drawing file and a three-dimensional model file, wherein the two-dimensional drawing file and the three-dimensional model file correspond to respective initial file formats;
the first conversion module is configured to extract first information of geometric objects and attribute objects in the two-dimensional drawing file, and generate the two-dimensional drawing file with a uniform file format according to the first information;
the second conversion module is configured to extract second information of the geometric objects and the attribute objects in the three-dimensional model file and generate the three-dimensional model file in a unified file format according to the second information;
and the loading rendering module is configured to load and render the two-dimensional drawing file in the unified file format or the three-dimensional model file in the unified file format through at least one graphics engine in a plurality of clients, wherein the unified file format represents a universal format suitable for the plurality of graphics engines.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 12 when executing the program.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 12.
CN202111084155.4A 2021-09-16 2021-09-16 Method, device and equipment for converting multiple graphic mode file formats into unified format Pending CN113536739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111084155.4A CN113536739A (en) 2021-09-16 2021-09-16 Method, device and equipment for converting multiple graphic mode file formats into unified format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111084155.4A CN113536739A (en) 2021-09-16 2021-09-16 Method, device and equipment for converting multiple graphic mode file formats into unified format

Publications (1)

Publication Number Publication Date
CN113536739A true CN113536739A (en) 2021-10-22

Family

ID=78092652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111084155.4A Pending CN113536739A (en) 2021-09-16 2021-09-16 Method, device and equipment for converting multiple graphic mode file formats into unified format

Country Status (1)

Country Link
CN (1) CN113536739A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010025462A (en) * 2000-12-28 2001-04-06 이도훈 Method for conversion from GEOMania Data File to DXF file
CN102063478A (en) * 2010-12-22 2011-05-18 张丛喆 Three-dimensional file format conversion method and search engine suitable for Internet search
CN103353866A (en) * 2013-05-13 2013-10-16 河南大学 Three-dimensional model file format conversion method supporting XNA technology
CN109636887A (en) * 2018-11-29 2019-04-16 北京宇航系统工程研究所 A kind of conversion of Two-dimensional electron technical drawing format and vector quantization interactive system
JP2019159519A (en) * 2018-03-09 2019-09-19 コニカミノルタ株式会社 Document conversion apparatus, document conversion program, and document conversion method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010025462A (en) * 2000-12-28 2001-04-06 이도훈 Method for conversion from GEOMania Data File to DXF file
CN102063478A (en) * 2010-12-22 2011-05-18 张丛喆 Three-dimensional file format conversion method and search engine suitable for Internet search
CN103353866A (en) * 2013-05-13 2013-10-16 河南大学 Three-dimensional model file format conversion method supporting XNA technology
JP2019159519A (en) * 2018-03-09 2019-09-19 コニカミノルタ株式会社 Document conversion apparatus, document conversion program, and document conversion method
CN109636887A (en) * 2018-11-29 2019-04-16 北京宇航系统工程研究所 A kind of conversion of Two-dimensional electron technical drawing format and vector quantization interactive system

Similar Documents

Publication Publication Date Title
US11373272B2 (en) Digital gradient signal processing system and method for signals comprising at least three dimensions
US11741272B2 (en) Interpreter framework for a computer file
CN114187633B (en) Image processing method and device, and training method and device for image generation model
KR101900803B1 (en) System and method for infrastructure ifc format conversion of bim model
CN108460056A (en) Method for converting effective graphic elements of DXF file into JSON data
CN114020846A (en) Processing method and device capable of changing NFT (network File transfer) works
CN111476851A (en) Image processing method, image processing device, electronic equipment and storage medium
JP2023026531A (en) Virtual character generating method, apparatus, electronic equipment, storage medium, and computer program
CN113610958A (en) 3D image construction method and device based on style migration and terminal
CN110232726A (en) The generation method and device of intention material
Li et al. An abstract painting generation method based on deep generative model
Grosso Construction of topologically correct and manifold isosurfaces
CN112214622A (en) Data processing method and device for rapidly displaying AutoCAD drawing
Kim et al. 3D CAD model visualization on a website using the X3D standard
CN113536739A (en) Method, device and equipment for converting multiple graphic mode file formats into unified format
CN108734761B (en) Scene visualization method and device, electronic equipment and storage medium
CN115859431A (en) Linkage method, device and equipment of three-dimensional building model and two-dimensional drawing
CN116129052A (en) Electric power three-dimensional scene construction method based on digital twin
CN113781653B (en) Object model generation method and device, electronic equipment and storage medium
CN115375812A (en) CAD data rendering method and device, electronic equipment and storage medium
CN113610512A (en) Electronic signature generation method, device, equipment and storage medium
CN114461959A (en) WEB side online display method and device of BIM data and electronic equipment
US20170092012A1 (en) Specification-based method for generating views in 3d reports
Liu et al. Function-based representation of complex geometry and appearance
CN113778905B (en) UI design acceptance method, device, equipment and storage medium

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