CN114357042A - CAD data processing method, device, electronic equipment and computer program product - Google Patents

CAD data processing method, device, electronic equipment and computer program product Download PDF

Info

Publication number
CN114357042A
CN114357042A CN202111564921.7A CN202111564921A CN114357042A CN 114357042 A CN114357042 A CN 114357042A CN 202111564921 A CN202111564921 A CN 202111564921A CN 114357042 A CN114357042 A CN 114357042A
Authority
CN
China
Prior art keywords
mesh point
data
vector
cad
processed
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
CN202111564921.7A
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.)
Guangxi Jiaokong Zhiwei Technology Development Co ltd
Original Assignee
Guangxi Jiaokong Zhiwei Technology Development 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 Guangxi Jiaokong Zhiwei Technology Development Co ltd filed Critical Guangxi Jiaokong Zhiwei Technology Development Co ltd
Priority to CN202111564921.7A priority Critical patent/CN114357042A/en
Publication of CN114357042A publication Critical patent/CN114357042A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application relates to the technical field of computer room management, and provides a CAD data processing method, a device, electronic equipment and a computer program product, wherein the method comprises the following steps: converting CAD data to be processed into data of each mesh point through a preset algorithm; classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets; performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set; and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set. According to the CAD data processing method provided by the embodiment of the application, the CAD data is converted into the Web visual image by performing data conversion, data classification, vector processing and image drawing on the CAD data.

Description

CAD data processing method, device, electronic equipment and computer program product
Technical Field
The present application relates to the field of computer room management technologies, and in particular, to a method and an apparatus for processing CAD data, an electronic device, and a computer program product.
Background
Currently, Web display technologies are becoming more sophisticated, such as the ThinkJS technology oriented to the internet of things and the 3DREAL technology oriented to designers. However, no method for converting CAD data into a Web visualization image has been found at present.
The foregoing is merely illustrative of the background art and is not representative of the prior art.
Disclosure of Invention
The application provides a CAD data processing method, a device, an electronic device and a computer program product, and aims to convert CAD data into a Web visual image.
In a first aspect, the present application provides a CAD data processing method, including:
converting CAD data to be processed into data of each mesh point through a preset algorithm;
classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
In an embodiment, the drawing a Web visualization image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set includes:
determining two-dimensional vector mesh point data and three-dimensional vector mesh point data in each mesh point vector set;
and drawing the Web visual image according to the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each mesh point vector set.
The drawing the Web visual image according to the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each mesh point vector set comprises the following steps:
drawing a first visual image according to the two-dimensional vector mesh point data in each mesh point vector set;
determining the mesh type of the three-dimensional vector mesh point data in each mesh point vector set, and determining the processing algorithm of each mesh point vector set according to the mesh type of each mesh point vector set;
drawing a second visual image by combining the three-dimensional vector mesh point data in each mesh point vector set through each processing algorithm;
and combining the first visual image and the second visual image to draw the Web visual image.
The vector processing of the mesh point data in each mesh point set to obtain each mesh point vector set includes:
determining surrounding mesh point data of each mesh point data in each mesh point set, and determining each direction distance between each mesh point data in each mesh point set and the surrounding mesh point data;
determining relative position information of each mesh point data in each mesh point set according to each direction distance between each mesh point data in each mesh point set and the mesh point data around the mesh point data;
and carrying out vector processing on the data of each mesh point in each mesh point set according to the relative position information of the data of each mesh point in each mesh point set to obtain each mesh point vector set.
Converting the CAD data to be processed into the data of each mesh point through a preset algorithm, wherein the method comprises the following steps:
converting the CAD data to be processed into target table data through a table command;
and converting the target table data into the mesh point data through a preset algorithm.
The step of converting the CAD data to be processed into the target table data through the table command comprises the following steps:
selecting all the form data in the CAD data to be processed through the form command, and exporting all the form data in an Excel format to obtain the form data to be processed;
and adjusting the content format in the table data to be processed, and adjusting the numbers in the table data to be processed into the number format to obtain the target table data.
After the combining the first visual image and the second visual image and the rendering the Web visual image, the method further includes:
and determining alarm data, and importing the alarm data into a Web visual image to obtain a final Web visual image.
In a second aspect, the present application also provides a CAD data processing apparatus, including:
the conversion module is used for converting the CAD data to be processed into each mesh point data through a preset algorithm;
the classification module is used for classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
the vector processing module is used for carrying out vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and the image drawing module is used for drawing the Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
In a third aspect, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the CAD data processing method according to the first aspect when executing the program.
In a fourth aspect, the present application also provides a computer program product comprising a computer program that, when executed by the processor, implements the steps of the CAD data processing method of the first aspect.
In a fifth aspect, the present application further provides a computer-readable storage medium comprising a computer program which, when executed by the processor, implements the steps of the CAD data processing method of the first aspect.
According to the CAD data processing method, the CAD data processing device, the electronic equipment and the computer program product, in the CAD data processing process, the CAD data are converted into the Web visual image through data conversion, data classification, vector processing and image drawing.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a CAD data processing method provided in the present application;
FIG. 2 is a schematic diagram of a CAD data processing apparatus provided in the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following describes a CAD data processing method, apparatus, electronic device, and computer program product provided in the present application with reference to fig. 1 to 3.
The application provides a CAD data processing method, and with reference to fig. 1 to 3, fig. 1 is a flow diagram of the CAD data processing method provided by the application; FIG. 2 is a schematic diagram of a CAD data processing apparatus provided in the present application; fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
While the embodiments of the present application provide an example of a CAD data processing method, it should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
The embodiment of the present application takes an electronic device as an execution subject for example, and the embodiment of the present application takes a data processing system as one of forms of the electronic device, and does not limit the electronic device.
Referring to fig. 1, fig. 1 is a schematic flow chart of a CAD data processing method provided in the present application, and the CAD data processing method provided in the embodiment of the present application includes:
and step S10, converting the CAD data to be processed into the mesh point data through a preset algorithm.
It should be noted that the data processing system in the embodiment of the present application is a CAD graph data processing system of a Web client, and therefore, the data processing system includes, but is not limited to, a Web client front-end server and a back-end server, and the back-end server is a back-end K8S platform. The Web client front end is mainly used for displaying Web visual images of the CAD data, and the back end server is mainly used for processing the CAD data.
Further, the back-end server needs to create the CAD data before it can be processed by the user. Specifically, the user converts the real scene to be rendered into the marked CAD data. For the development, a user creates a CAD drawing in advance, makes a plan view and an annotation, and then makes CAD data according to the CAD drawing and the annotation, wherein the CAD data is generally a CAD file made in a computer, and industrial software used in the embodiment of the present application is AutoCAD. The CAD drawing added with the mark is exported through AutoCAD to obtain CAD data, and the produced CAD data is imported into a database of a data processing system.
Further, the embodiment of the application is mainly applied to the field of machine room management, and the machine room management is generally used for machines including but not limited to machine rooms, cabinets and sensors. Thus, the CAD data includes, but is not limited to, machine room CAD data, cabinet CAD data, and sensor CAD data. Therefore, before the data processing system puts the CAD data in storage, the data type of the CAD data needs to be determined, and the data is put in storage according to the data type of the CAD data, for example, the machine room CAD data is put in the machine room database, the cabinet CAD data is put in the cabinet database, and the sensor CAD data is put in the sensor database. For clarity of explanation of the embodiment of the present application, the application scenarios are exemplified by computer room CAD data.
Further, when the CAD data needs to be processed, the background server acquires the machine room CAD data to be processed from the database, and the machine room CAD data to be processed is the CAD data to be processed. Because the obtained to-be-processed CAD data is a CAD file, the background server cannot directly convert the CAD file into a Web visual image which can be displayed at the front end of the Web client. Therefore, the background server needs to convert the CAD data to be processed into the mesh point data through a preset algorithm, as described in step S101 to step S102, where the preset algorithm is set by the user.
Step S20, classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets.
It should be noted that all mesh point data is mixed at this time, that is, it can be understood that mesh point data of each part constituting the computer room and mesh point data of real-time data monitored by the computer room are all mixed together. Therefore, the background server needs to classify the mesh point data according to the data type of the mesh point data to obtain various mesh point sets. The mesh point sets include a mesh point set at the machine room side, a mesh point set at the machine room top side, and the like.
Step S30, performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set.
It should be noted that, at this time, each mesh point data in each mesh point set is featureless and unordered point data, and the background server cannot directly convert each mesh point data in each mesh point set into a Web visualization image that can be displayed at the front end of the Web client. Therefore, the backend server needs to perform vector processing on the mesh point data in each mesh point set, that is, convert the mesh point data in each mesh point set into vector mesh point data to obtain each mesh point vector set, as described in step S301 to step S302.
And step S40, drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
And the background server converts each mesh point set into each mesh point vector set and then transmits each mesh point vector set to the Web client front end. And the Web client front end analyzes each mesh point vector set to obtain each two-dimensional mesh point vector set and each three-dimensional mesh point vector set in each mesh point vector set. Then, the Web client front end draws a two-dimensional plane visualization image according to the vector mesh point data in each two-dimensional mesh point vector set, and draws a three-dimensional machine room visualization image according to the vector mesh point data in each three-dimensional mesh point vector set. And finally, combining the two-dimensional plane visual image and the three-dimensional computer room visual image by the Web client front end, and drawing the Web visual image of the CAD data to be processed. Meanwhile, the Web client front end displays the Web visual image on a display interface.
Further, after the Web visual image of the machine room is drawn, the background server needs to import the alarm data of the machine room, refresh the Web visual image of the machine room, and obtain the final Web visual image of the machine room, which is specifically described in step a.
Step A, determining alarm data, and importing the alarm data into a Web visual image to obtain a final Web visual image.
Specifically, the background server monitors and acquires alarm data of the computer room in real time, and transmits the alarm data of the computer room to the Web client front end. The method comprises the steps that the Web client front end imports alarm data of a computer room into a Web visual image of the computer room, namely the Web visual image is refreshed in real time through the alarm data to obtain a final Web visual image of the computer room, and the final Web visual image is displayed on a display interface, wherein the Web visual image is a WebGL three-dimensional visual image. Further, the alarm data of the machine room and the Web visual image of the machine room are displayed in the final Web visual image of the machine room because the final Web visual image of the machine room carries the alarm data of the machine room and the Web visual image of the machine room.
According to the method and the device, the alarm data are imported into the Web visual image, and the machine room information is monitored in real time through the obtained final Web visual image, so that the visual monitoring of the machine room is realized.
The embodiment provides a method for processing CAD data, which realizes the conversion of the CAD data into a Web visual image by performing data conversion, data classification, vector processing and image drawing on the CAD data in the process of processing the CAD data.
Further, steps S101 to S102 are described as follows:
step S101, converting the CAD data to be processed into target table data through a table command;
and step S102, converting the target table data into the mesh point data through a preset algorithm.
It should be noted that the background server stores the CAD tool, and therefore, the background server selects a form command in a form text toolbar of the CAD tool, where the form command is a roll-out Excel command. The background server transfers the information in the CAD data to be processed in the form of Excel table data through the transfer-out Excel command, that is, converts the CAD data to be processed into target Excel table data, specifically, as described in steps S1011 to S1012. And finally, the background server converts the target Excel table data into each mesh point data through a preset algorithm, wherein the specific conversion process is as follows: according to the method and the device, Apache POI analysis target Excel form data workbook view is introduced, a background server adds a dependent jar package for processing target Excel form data and a class of written contents in the target Excel form data through analyzing the jar package, and reads the original target Excel form data. And then, the background server deletes the original background server, creates a file output column and outputs data. And finally, the background server judges the Excel version of the target Excel table data, acquires Workbook, creates input streams, returns data of each column, and converts the CAD data to be processed into data of each mesh point.
According to the embodiment of the application, the CAD data to be processed which cannot be directly displayed is converted into the mesh point data, and a data basis is provided for subsequent drawing of the visual image.
Further, steps S1011 to S1012 are described as follows:
step S1011, selecting all the form data in the CAD data to be processed through the form command, and exporting all the form data in an Excel format to obtain the form data to be processed;
step S1012, adjusting the content format in the form data to be processed, and adjusting the numbers in the form data to be processed into a number format, to obtain the target form data.
Specifically, the background server selects a form command (an Excel transferring command), selects all form data in the CAD data to be processed after entering the Excel transferring command, and exports all form data in an Excel format to obtain the form data to be processed. And then, the background server adjusts the content format in the table data to be processed through the table start tab, adjusts the table with the numbers in the table data to be processed into a digital format, so that the numerical values in the table can be normally displayed, and finally, the processed table data to be processed is transferred out in the form of excel table data to obtain the target table data. The target form data is to represent the CAD data to be processed in the form of grid line segments.
According to the embodiment of the application, the CAD data to be processed which cannot be directly displayed is converted into the table data through the table command, and a data basis is provided for subsequent drawing of the visual image.
Further, steps S201 to S203 are described as follows:
step S201, determining the data of the surrounding mesh points of each mesh point data in each mesh point set, and determining each direction distance between each mesh point data in each mesh point set and the data of the surrounding mesh points;
step S202, determining the relative position information of each mesh point data in each mesh point set according to each direction distance between each mesh point data in each mesh point set and the mesh point data around the mesh point data;
step S203, performing vector processing on each mesh point data in each mesh point set according to the relative position information of each mesh point data in each mesh point set, to obtain each mesh point vector set.
It should be noted that the mesh point data in each mesh point set is featureless and unordered point data at this time.
Specifically, the backend server determines all surrounding mesh point data around each mesh point data in each mesh point set, and determines each directional distance between each mesh point data in each mesh point set and its corresponding surrounding mesh point data. Then, the process is carried out. The background server determines the relative position information of each mesh point data in each mesh point set according to each direction distance between each mesh point data in each mesh point set and the mesh point data around the mesh point data. And finally, the background server carries out vector processing on the mesh point data in each mesh point set according to the relative position information of the mesh point data in each mesh point set, converts the mesh point data in each mesh point set from an unordered state to vector mesh point data in an ordered state, and forms each mesh point vector set by the vector mesh point data in each mesh point set, wherein the ordered state comprises but is not limited to directional and coordinate points.
Further, the background server needs to verify the data of each vector mesh point in each mesh point vector set, and verify whether each mesh point vector set does not belong to the target mesh point vector of its own set. And if the existence of the target mesh point vector is verified, eliminating the target mesh point vector in each mesh point vector set, and transmitting each final mesh point vector set to the Web client front end.
The method and the device for converting the CAD data into the Web visual image convert the disordered mesh point data in each mesh point set into ordered vector mesh point data to obtain each mesh point vector set capable of drawing the visual image, and convert the CAD data into the Web visual image.
Further, steps S301 to S302 are described as follows:
step S301, determining two-dimensional vector mesh point data and three-dimensional vector mesh point data in each mesh point vector set;
step S302, drawing the Web visual image according to the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each mesh point vector set.
It should be noted that the vector mesh data includes two-dimensional vector mesh data and three-dimensional vector mesh data, and the two-dimensional vector mesh data and the three-dimensional vector mesh data are determined by coordinates, for example, the coordinates of the three-dimensional vector mesh data may be expressed as (0.5, 1, 0.5).
Therefore, the Web client front end analyzes each mesh point vector set to obtain each two-dimensional mesh point vector set and each three-dimensional mesh point vector set in each mesh point vector set. Then, the Web client front end determines coordinate points of the two-dimensional vector mesh point data in each two-dimensional mesh point vector set and annotation data, and draws a two-dimensional plane visualization image according to the coordinate points of the two-dimensional vector mesh point data in each two-dimensional mesh point vector set and the annotation data. Meanwhile, the Web client front end determines coordinate points of three-dimensional vector mesh point data in each three-dimensional mesh point vector set, draws a three-dimensional machine room visual image according to the coordinate points of the three-dimensional vector mesh point data in each three-dimensional mesh point vector set, in one embodiment, draws a body side visual image of the machine room according to the coordinate points of the three-dimensional vector mesh point data in the three-dimensional mesh point vector sets 1-4, draws a top side visual image of the machine room according to the coordinate points of the three-dimensional vector mesh point data in the three-dimensional mesh point vector set 5, and draws the three-dimensional machine room visual image according to the body side visual image and the top side visual image of the machine room. And finally, combining the two-dimensional plane visual image and the three-dimensional computer room visual image by the Web client front end, and drawing the Web visual image of the CAD data to be processed.
According to the embodiment of the application, the CAD data is converted into the Web visual image through the two-dimensional vector mesh point data and the three-dimensional vector mesh point data.
Further, steps S3021 to S3024 are described as follows:
step S3021, drawing a first visual image according to the two-dimensional vector mesh point data in each mesh point vector set;
step S3022, determining a mesh type of the three-dimensional vector mesh point data in each mesh point vector set, and determining a processing algorithm of each mesh point vector set according to the mesh type of each mesh point vector set;
step S3023, drawing a second visual image by combining the three-dimensional vector mesh point data in each mesh point vector set through each processing algorithm;
step S3024, combining the first visualized image and the second visualized image, and rendering the Web visualized image.
Specifically, the Web client front end draws the first visual image according to the two-dimensional vector mesh point data in each two-dimensional mesh point vector set, and the drawing process specifically includes: the Web client front end directly imports two-dimensional vector mesh data, such as text data, picture data and annotation data, into a page application as canvas elements, and draws a first visual image of 2 Dmodel. Then, the Web client front-end determines a mesh type of the three-dimensional vector mesh point data in each three-dimensional mesh point vector set, and determines a processing algorithm of each mesh point vector set according to the mesh type of each three-dimensional mesh point vector set, wherein the processing algorithm includes, but is not limited to, a ThinkJ algorithm and a 3DREAL algorithm. Then, the front end of the Web client sets a Camera Camera, a Scene and a renderer Anima, and draws a second visual image of the 3 Dmodel by combining three-dimensional vector mesh point data in each three-dimensional mesh point vector set through each processing algorithm. And finally, combining the first visual image of the 2 Dmodel and the second visual image of the 3 Dmodel by the front end of the Web client to draw the Web visual image.
According to the embodiment of the application, the CAD data is converted into the Web visual image through the two-dimensional vector mesh point data and the three-dimensional vector mesh point data.
Further, the CAD data processing apparatus described below and the CAD data processing method described above may be referred to in correspondence with each other.
As shown in fig. 2, fig. 2 is a schematic structural diagram of a CAD data processing apparatus provided in the present application, and the CAD data processing apparatus includes:
the conversion module 201 is configured to convert the CAD data to be processed into mesh point data through a preset algorithm;
a classifying module 202, configured to classify each mesh point data according to a data type of each mesh point data, so as to obtain various mesh point sets;
a vector processing module 203, configured to perform vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and the image drawing module 204 is configured to draw a Web visualization image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
Further, the image rendering module 204 is further configured to:
determining two-dimensional vector mesh point data and three-dimensional vector mesh point data in each mesh point vector set;
and drawing the Web visual image according to the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each mesh point vector set.
Further, the image rendering module 204 is further configured to:
drawing a first visual image according to the two-dimensional vector mesh point data in each mesh point vector set;
determining the mesh type of the three-dimensional vector mesh point data in each mesh point vector set, and determining the processing algorithm of each mesh point vector set according to the mesh type of each mesh point vector set;
drawing a second visual image by combining the three-dimensional vector mesh point data in each mesh point vector set through each processing algorithm;
and combining the first visual image and the second visual image to draw the Web visual image.
Further, the vector processing module 203 is further configured to:
determining surrounding mesh point data of each mesh point data in each mesh point set, and determining each direction distance between each mesh point data in each mesh point set and the surrounding mesh point data;
determining relative position information of each mesh point data in each mesh point set according to each direction distance between each mesh point data in each mesh point set and the mesh point data around the mesh point data;
and carrying out vector processing on the data of each mesh point in each mesh point set according to the relative position information of the data of each mesh point in each mesh point set to obtain each mesh point vector set.
Further, the conversion module 201 is further configured to:
converting the CAD data to be processed into target table data through a table command;
and converting the target table data into the mesh point data through a preset algorithm.
Further, the conversion module 201 is further configured to:
selecting all the form data in the CAD data to be processed through the form command, and exporting all the form data in an Excel format to obtain the form data to be processed;
and adjusting the content format in the table data to be processed, and adjusting the numbers in the table data to be processed into the number format to obtain the target table data.
Further, the CAD data processing device further comprises: an import module to:
and determining alarm data, and importing the alarm data into a Web visual image to obtain a final Web visual image.
The specific embodiment of the CAD data processing apparatus provided in the present application is substantially the same as the embodiments of the CAD data processing method described above, and details are not described herein.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 complete the communication with each other through the communication bus 340.
Further, the processor 310 may call logic instructions in the memory 330 to perform a CAD data processing method, which includes:
converting CAD data to be processed into data of each mesh point through a preset algorithm;
classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the CAD data processing method provided by the above methods, the method comprising:
converting CAD data to be processed into data of each mesh point through a preset algorithm;
classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
In yet another aspect, the present application also provides a non-transitory computer-readable storage medium having stored thereon a computer program that, when executed by a processor, is implemented to perform the CAD data processing methods provided above, the methods comprising:
converting CAD data to be processed into data of each mesh point through a preset algorithm;
classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
The above-described embodiments of the apparatus are merely illustrative, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A CAD data processing method, comprising:
converting CAD data to be processed into data of each mesh point through a preset algorithm;
classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
performing vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and drawing a Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
2. The CAD data processing method of claim 1, wherein the rendering the Web visualization of the CAD data to be processed according to the vector mesh point data in each mesh point vector set comprises:
determining two-dimensional vector mesh point data and three-dimensional vector mesh point data in each mesh point vector set;
and drawing the Web visual image according to the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each mesh point vector set.
3. The CAD data processing method of claim 2, wherein the rendering the Web visualization image from the two-dimensional vector mesh point data and the three-dimensional vector mesh point data in each of the mesh point vector sets comprises:
drawing a first visual image according to the two-dimensional vector mesh point data in each mesh point vector set;
determining the mesh type of the three-dimensional vector mesh point data in each mesh point vector set, and determining the processing algorithm of each mesh point vector set according to the mesh type of each mesh point vector set;
drawing a second visual image by combining the three-dimensional vector mesh point data in each mesh point vector set through each processing algorithm;
and combining the first visual image and the second visual image to draw the Web visual image.
4. The CAD data processing method of claim 1, wherein the vector processing mesh point data in each mesh point set to obtain each mesh point vector set comprises:
determining surrounding mesh point data of each mesh point data in each mesh point set, and determining each direction distance between each mesh point data in each mesh point set and the surrounding mesh point data;
determining relative position information of each mesh point data in each mesh point set according to each direction distance between each mesh point data in each mesh point set and the mesh point data around the mesh point data;
and carrying out vector processing on the data of each mesh point in each mesh point set according to the relative position information of the data of each mesh point in each mesh point set to obtain each mesh point vector set.
5. The CAD data processing method of claim 1, wherein the converting the CAD data to be processed into the mesh point data by the predetermined algorithm comprises:
converting the CAD data to be processed into target table data through a table command;
and converting the target table data into the mesh point data through a preset algorithm.
6. The CAD data processing method of claim 5, wherein the converting the CAD data to be processed into the target form data by the form command comprises:
selecting all the form data in the CAD data to be processed through the form command, and exporting all the form data in an Excel format to obtain the form data to be processed;
and adjusting the content format in the table data to be processed, and adjusting the numbers in the table data to be processed into the number format to obtain the target table data.
7. The CAD data processing method according to any one of claims 1 to 6, wherein the combining the first visualized image and the second visualized image and after rendering the Web visualized image further comprises:
and determining alarm data, and importing the alarm data into a Web visual image to obtain a final Web visual image.
8. A CAD data processing apparatus, comprising:
the conversion module is used for converting the CAD data to be processed into each mesh point data through a preset algorithm;
the classification module is used for classifying the mesh point data according to the data type of the mesh point data to obtain various mesh point sets;
the vector processing module is used for carrying out vector processing on the mesh point data in each mesh point set to obtain each mesh point vector set;
and the image drawing module is used for drawing the Web visual image of the CAD data to be processed according to the vector mesh point data in each mesh point vector set.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the steps of the CAD data processing method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the CAD data processing method of any of claims 1 to 7.
CN202111564921.7A 2021-12-20 2021-12-20 CAD data processing method, device, electronic equipment and computer program product Pending CN114357042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111564921.7A CN114357042A (en) 2021-12-20 2021-12-20 CAD data processing method, device, electronic equipment and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111564921.7A CN114357042A (en) 2021-12-20 2021-12-20 CAD data processing method, device, electronic equipment and computer program product

Publications (1)

Publication Number Publication Date
CN114357042A true CN114357042A (en) 2022-04-15

Family

ID=81100495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111564921.7A Pending CN114357042A (en) 2021-12-20 2021-12-20 CAD data processing method, device, electronic equipment and computer program product

Country Status (1)

Country Link
CN (1) CN114357042A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368622A (en) * 2017-06-07 2017-11-21 浙江建设职业技术学院 The method for realizing CAD diagram paper online browse
CN109410346A (en) * 2018-11-01 2019-03-01 中德(珠海)人工智能研究院有限公司 A kind of system and method for online editing three-dimensional building model
CN109801370A (en) * 2019-01-14 2019-05-24 山西晋城无烟煤矿业集团有限责任公司 A kind of method of CAD diagram paper modeling underworkings three-dimensional scenic
EP3514709A2 (en) * 2018-01-22 2019-07-24 Joachim Becker Method and apparatus for transmitting and displaying user vector graphics with intelligent info items from a cloud-based cad archive on mobile devices, mobile or stationary computers
EP3547266A1 (en) * 2018-03-30 2019-10-02 First Insight, Inc. Importation and transformation tool for utilizing computer-aided design files in a web browser or customized client interface
US20190304154A1 (en) * 2018-03-30 2019-10-03 First Insight, Inc. Importation and transformation tool for utilizing computer-aided design files in a web browser or customized client interface
CN110377651A (en) * 2019-06-20 2019-10-25 平安科技(深圳)有限公司 Processing method, device, equipment and the storage medium of batch data
CN110968944A (en) * 2019-11-19 2020-04-07 金现代信息产业股份有限公司 Method for displaying and operating CAD drawing at Web front end
CN113111044A (en) * 2021-04-07 2021-07-13 多点(深圳)数字科技有限公司 Data processing method and device, server device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368622A (en) * 2017-06-07 2017-11-21 浙江建设职业技术学院 The method for realizing CAD diagram paper online browse
EP3514709A2 (en) * 2018-01-22 2019-07-24 Joachim Becker Method and apparatus for transmitting and displaying user vector graphics with intelligent info items from a cloud-based cad archive on mobile devices, mobile or stationary computers
EP3547266A1 (en) * 2018-03-30 2019-10-02 First Insight, Inc. Importation and transformation tool for utilizing computer-aided design files in a web browser or customized client interface
US20190304154A1 (en) * 2018-03-30 2019-10-03 First Insight, Inc. Importation and transformation tool for utilizing computer-aided design files in a web browser or customized client interface
CN109410346A (en) * 2018-11-01 2019-03-01 中德(珠海)人工智能研究院有限公司 A kind of system and method for online editing three-dimensional building model
CN109801370A (en) * 2019-01-14 2019-05-24 山西晋城无烟煤矿业集团有限责任公司 A kind of method of CAD diagram paper modeling underworkings three-dimensional scenic
CN110377651A (en) * 2019-06-20 2019-10-25 平安科技(深圳)有限公司 Processing method, device, equipment and the storage medium of batch data
CN110968944A (en) * 2019-11-19 2020-04-07 金现代信息产业股份有限公司 Method for displaying and operating CAD drawing at Web front end
CN113111044A (en) * 2021-04-07 2021-07-13 多点(深圳)数字科技有限公司 Data processing method and device, server device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VJMAP: "CAD图DWG解析WebGIS可视化技术分析总结", Retrieved from the Internet <URL:CAD图DWG解析WebGIS可视化技术分析总结 - vjmap的文章 - 知乎 https://zhuanlan.zhihu.com/p/421139092> *
汪耀: "面向Web的MBD模型显示浏览方法研究与实现", 中国优秀硕士学位论文全文数据库信息科技辑, 15 August 2021 (2021-08-15) *

Similar Documents

Publication Publication Date Title
JP4913777B2 (en) Web page distribution system
CN106776939A (en) A kind of image lossless mask method and system
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
JP2009294801A5 (en)
US10664980B2 (en) Vector graphics handling processes for user applications
CN114020846A (en) Processing method and device capable of changing NFT (network File transfer) works
CN109472847A (en) A kind of image processing method, system and terminal device
CN109885301B (en) Method, device, storage medium and equipment for generating scalable vector graphics
CN113268303A (en) Interface element configuration method and device, storage medium and electronic equipment
CN110348109A (en) The method and terminal device of three-dimensional artificial training data processing
JP2023026531A (en) Virtual character generating method, apparatus, electronic equipment, storage medium, and computer program
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
CN111966934B (en) Power grid information display method, equipment, system and storage medium
CN110633251B (en) File conversion method and equipment
CN110288523B (en) Image generation method and device
CN114693226A (en) Approval process construction method, device, equipment and storage medium
US8867837B2 (en) Detecting separator lines in a web page
CN114357042A (en) CAD data processing method, device, electronic equipment and computer program product
CN115935909A (en) File generation method and device and electronic equipment
KR102026857B1 (en) 3D printing system using 3D modeling authoring tool based on VR technology
CN115731319A (en) Graph drawing method, device, equipment and storage medium
US20140292778A1 (en) Graphic processing method, system and server
CN114666658A (en) Cloud rendering method, device and system and user terminal
US20170109325A1 (en) System and method for generating scalar vector graphics image in an imaginary console
CN112988310A (en) Online experiment method based on multi-split-screen browser

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