Disclosure of Invention
In view of this, the present disclosure provides a modeling method for a three-dimensional model of power transmission equipment, which can implement an automatic modeling function of the three-dimensional model of the power transmission equipment, thereby effectively improving the modeling efficiency of the three-dimensional model.
According to an aspect of the present disclosure, there is provided a power transmission apparatus three-dimensional model modeling method including:
obtaining model information of power transmission equipment needing to be modeled currently; wherein the model information includes size information of the power transmitting apparatus and type information of the power transmitting apparatus;
processing the geometric surface and/or the geometric body according to the model information to construct a plurality of three-dimensional submodels; wherein, the processing of the geometric surface and/or the geometric body comprises at least one of stretching, rotating and reducing;
and calculating and combining the plurality of three-dimensional submodels to construct a corresponding three-dimensional model.
In one possible implementation, the model information further includes model information of the power transmission apparatus; and is
And the model information, the size information and the type information are recorded in a row of database mode.
In a possible implementation manner, according to the model parameters, processing geometric surfaces and/or geometric bodies is performed to construct a plurality of three-dimensional submodels, including:
extracting the type information from the model information, and acquiring the geometric structure of the power transmission equipment according to the type information;
decomposing the geometric structure of the power transmission equipment to obtain a plurality of geometric surfaces and/or geometric bodies, and size parameters of the geometric surfaces and the geometric bodies;
and processing each geometric surface and/or each geometric body according to the size parameter of each geometric surface and/or the size parameter of each geometric body to construct a plurality of three-dimensional submodels.
In a possible implementation manner, the calculating and combining the plurality of three-dimensional submodels to construct a corresponding three-dimensional model includes:
extracting the size information from the model information;
according to the size information, calculating and combining a plurality of three-dimensional submodels to construct a corresponding three-dimensional model;
wherein calculating the plurality of three-dimensional submodels comprises: at least one of difference set calculation, union set calculation, and intersection set calculation;
the intersection calculation is used for calculating to obtain a public part of the three-dimensional submodels;
the union set calculation is used for calculating to obtain a combination result of the three-dimensional submodels;
and the difference set calculation is used for calculating the rest part of one three-dimensional submodel relative to the other three-dimensional submodel in the plurality of three-dimensional submodels.
According to another aspect of the application, the three-dimensional model modeling device for the power transmission equipment comprises an information acquisition module, a sub-model construction module and a calculation combination module;
the information acquisition module is configured to acquire model information of the power transmission equipment needing to be modeled currently; wherein the model information includes size information of the power transmitting apparatus and type information of the power transmitting apparatus;
the submodel building module is configured to process different geometric surfaces and/or geometric bodies according to the model information to build a plurality of three-dimensional submodels; wherein, the processing of different geometric surfaces and/or geometric bodies comprises at least one of stretching, rotating and reducing;
and the calculation combination module is configured to calculate and combine the plurality of three-dimensional sub-models to construct corresponding three-dimensional models.
In a possible implementation manner, the system further comprises a data storage module;
the data storage module is configured to store the model information;
the model information further comprises model information of the power transmission equipment; and is
The data storage module is further configured to record the model information, the size information and the type information in a row of database.
In one possible implementation manner, the sub-model building module comprises an extraction sub-module, a decomposition sub-module and a processing sub-module;
the first extraction submodule is configured to extract the type information from the model information, and acquire a geometric structure of the power transmission equipment according to the type information;
the decomposition submodule is configured to decompose the geometric structure of the power transmission equipment to obtain a plurality of geometric surfaces and/or geometric bodies, and a size parameter of each geometric surface and a size parameter of each geometric body;
the processing submodule is configured to extract the dimension information from the model information, process each geometric surface and/or each geometric body according to the dimension information and the dimension parameter of each geometric surface and/or the dimension parameter of each geometric body, and construct a plurality of three-dimensional submodels.
In one possible implementation, the calculation combination module includes a second extraction submodule and a combination construction submodule;
the second extraction submodule is configured to extract the size information from the model information;
the combination construction submodule is configured to calculate and combine the three-dimensional submodels according to the size information to construct corresponding three-dimensional models;
wherein calculating the plurality of three-dimensional submodels comprises: at least one of difference set calculation, union set calculation, and intersection set calculation;
the intersection calculation is used for calculating to obtain a public part of the three-dimensional submodels;
the union set calculation is used for calculating to obtain a combination result of the three-dimensional submodels;
and the difference set calculation is used for calculating the rest part of one three-dimensional submodel relative to the other three-dimensional submodel in the plurality of three-dimensional submodels.
According to another aspect of the present application, there is also provided a power transmission apparatus three-dimensional model modeling apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement any of the methods described above.
According to an aspect of the application, there is also provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of any of the preceding.
According to the three-dimensional model modeling method for the power transmission equipment, the model information of the power transmission equipment needing modeling at present is obtained, the geometric surface and/or the geometric body are/is processed according to the model information to construct a plurality of three-dimensional sub models, then the constructed three-dimensional sub models are calculated and combined, so that the three-dimensional model corresponding to the power transmission equipment is constructed, and the automatic modeling mode of the three-dimensional model is realized. Compared with a mode that designers adopt professional drawing software to model the three-dimensional model in the related calculation, the method has the advantages that the modeling process of the three-dimensional model is effectively simplified, and meanwhile, the modeling difficulty of the three-dimensional model is reduced. By using the three-dimensional model modeling method for the power transmission equipment, the designer only needs to input corresponding model parameters, so that the drawing skill requirement on the designer is greatly reduced.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a flowchart of a three-dimensional modeling method for power transmission equipment according to an embodiment of the present application. Referring to fig. 1, the three-dimensional model modeling method for power transmission equipment of the present application includes: and step S100, obtaining model information of the power transmission equipment needing to be modeled currently. Here, it is to be noted that the model information includes size information of the power transmitting apparatus and type information of the power transmitting apparatus. The size information of the power transmission apparatus refers to a main size parameter of the power transmission apparatus. As will be understood by a person skilled in the art, the primary dimensional information of the power transmission apparatus refers to various dimensional parameters of the primary components in the geometry of the power transmission apparatus.
For example, referring to fig. 2, when the current power transmission equipment to be modeled is a hardware tool, specifically a six-split spacer, the corresponding size information includes phi (diameter of an outer large circle of the six-split spacer), L (length between two split points connected by the six-split spacer), and dia (parameter adjustable range). Referring to fig. 3, 4, 5, and 6, when the power transmission equipment currently to be modeled is a strain clamp, the corresponding size information includes M (the diameter of a nut in the strain clamp), C (the width of a wire insertion groove in the strain clamp), L1 (the length of a jumper side clamp in the strain clamp), L2 (the length of a conductor side clamp in the strain clamp), R (the radius of a clamp fixing ring in the strain clamp), and dia (the parameter adjustable range).
It should be noted that the description of each parameter can be defined by software. Which size each parameter represents may be determined by three views (e.g., fig. 4-6) in the document during the definition process. On a display interface of the three-dimensional model modeling method for the power transmission equipment, three views can be displayed on an interface dialog box, so that a user can determine the meaning of the parameter through the three views in the interface.
And S200, processing geometric surfaces and/or geometric bodies according to the model information to construct a plurality of three-dimensional submodels. It should be noted here that the plurality of three-dimensional submodels that are constructed are all the geometric structures of the parts of the power transmission equipment that need to be modeled currently. I.e. the geometry of the individual components that constitute the power transmission equipment. Meanwhile, it should be further noted that the processing operation on the geometric surface and/or the geometric body may include at least one of stretching, rotating, and reducing. It can be understood by those skilled in the art that the operations such as stretching, rotating, and reducing are all inherent in the existing professional drawing software, and therefore the operations such as stretching, rotating, and reducing the geometric surface and/or the geometric body can be directly implemented in the existing implementation manner, and are not described in detail here.
And step S300, calculating and combining the plurality of three-dimensional submodels to construct a corresponding three-dimensional model. That is, the plurality of three-dimensional submodels constructed in step S200 after the step are combined and integrated into a three-dimensional model corresponding to the power transmission equipment.
Therefore, according to the three-dimensional model modeling method for the power transmission equipment, the model information of the power transmission equipment needing modeling at present is obtained, the geometric surface and/or the geometric body are/is processed according to the model information to construct a plurality of three-dimensional sub models, then the constructed three-dimensional sub models are calculated and combined, so that the three-dimensional model corresponding to the power transmission equipment is constructed, and the automatic modeling mode of the three-dimensional model is realized. Compared with a mode that designers adopt professional drawing software to model the three-dimensional model in the related calculation, the method has the advantages that the modeling process of the three-dimensional model is effectively simplified, and meanwhile, the modeling difficulty of the three-dimensional model is reduced. By using the three-dimensional model modeling method for the power transmission equipment, the designer only needs to input corresponding model parameters, so that the drawing skill requirement on the designer is greatly reduced.
Moreover, for the same type of power transmission equipment, when one or more parameters in the model parameters need to be adjusted, the three-dimensional model of the power transmission equipment with the parameters adjusted can be automatically generated only by modifying the size information in the model information without executing other operations. Therefore, the modeling speed of the three-dimensional model is further improved, and the time cost of modeling is saved.
It should be further noted that, in the three-dimensional model modeling method for power transmission equipment of the present application, the model information further includes model information of the power transmission equipment. Also, referring to fig. 2 and 3, the model information is recorded with the size information and the type information by means of a one-line database.
Further, in the three-dimensional model modeling method for the power transmission equipment, the geometric surface and/or the geometric body are/is processed according to the model parameters to construct a plurality of three-dimensional submodels, and the three-dimensional submodels can be realized in the following manner.
First, type information is extracted from the model information. The type information includes a shape structure of the power transmission device. Different types of power transmission equipment correspond to different shapes. Such as: the six-split spacer and the strain clamp correspond to different types of information respectively, and accordingly, the specific geometrical structures of the six-split spacer and the strain clamp are different.
Then, the geometry of the power transmitting apparatus is acquired based on the type information. After the geometric structure of the power transmission equipment is obtained, the geometric structure of the power transmission equipment can be decomposed to obtain a plurality of geometric surfaces and/or geometric bodies, and the size parameters of the geometric surfaces and the size parameters of the geometric bodies. In the process of decomposing the geometric result of the power transmission equipment, the relative position relationship between each geometric surface and/or each geometric body obtained after decomposition can be obtained simultaneously.
Such as: taking the six-split spacer as an example, after the geometric structure of the six-split spacer is obtained according to the type information, a plurality of different geometric surfaces and/or geometric bodies are obtained by performing structural decomposition on the six-split spacer. The geometric surface obtained by decomposition may include a circular surface and a rectangular surface. The circular surface corresponds to a central part of the six-split spacing rod, and the rectangular surface corresponds to a part of the edge part of the six-split spacing rod. Meanwhile, the corresponding geometric surface is obtained, and meanwhile, the size parameters of all the geometric surfaces are also automatically obtained.
Here, it should be noted that the decomposition of the structure of the power transmission equipment can be realized by using a solid geometric model creation related theory and algorithm. Such as: the method can be realized by directly adopting an algorithm corresponding to the graph explosion in CAD drawing software or by adopting a related algorithm of graph decomposition in other drawing software. And will not be described in detail herein.
And then, processing each geometric surface and/or each geometric body according to the dimension parameters of each geometric surface and/or the dimension parameters of each geometric body to construct a plurality of three-dimensional submodels. Wherein, the operation of processing each geometric surface and/or geometric body may include at least one of stretching, rotating, reducing, and the like.
After the plurality of three-dimensional submodels are constructed in the above manner, the corresponding three-dimensional models are constructed by calculating and combining the plurality of three-dimensional submodels.
In a possible implementation manner, the calculating and combining the multiple three-dimensional submodels to construct the corresponding three-dimensional model may include: first, size information is extracted from the model information. And then, according to the size information, calculating and combining the plurality of three-dimensional sub-models to construct a corresponding three-dimensional model.
Wherein the calculating of the plurality of three-dimensional submodels comprises: at least one of difference set calculation, union set calculation, and intersection set calculation. Those skilled in the art will appreciate that intersection calculations are used to calculate the common portion of the plurality of three-dimensional submodels. And performing union set calculation for calculating to obtain a combination result of the plurality of three-dimensional submodels. And calculating a difference set, wherein the difference set is used for calculating and obtaining the rest part of one three-dimensional submodel relative to the other three-dimensional submodel in the plurality of three-dimensional submodels.
To more clearly explain the specific process of the three-dimensional modeling method for power transmission equipment of the present application, a structure for constructing a power transmission equipment is a rectangular parallelepiped model with holes.
It should be noted that, in the process of building a model, different parameters may be set as needed to meet the requirements of different models for style or size. Such as: in the present embodiment, the main size information of the holed rectangular parallelepiped model includes the length, width, height of the rectangular parallelepiped and the radius of the hole. Therefore, in performing automatic construction of the model, it is possible to set the length parameter, the width parameter, the height parameter, and the radius parameter of the hole of the rectangular parallelepiped as the size information in the model information of the model.
After the set model information is obtained, type information is extracted from the model information, and the overall geometric structure of the power transmission equipment is determined to be a cuboid with holes according to the type information. And then carrying out structural decomposition according to the determined geometric structure to obtain a rectangular surface.
Referring to fig. 7, the length and width of the rectangular surface are both the length parameter and the width parameter set in the model information. And the coordinate system of the rectangular plane is the plane of x-y (i.e. the plane of the two-dimensional coordinate system).
Then, referring to fig. 8, the rectangular surface is stretched in the z-axis direction according to the height parameter in the model information. That is, the rectangular surface is stretched in the z-axis direction in accordance with the height parameter in the model information. A three-dimensional submodel (i.e., a constructed cuboid) is constructed.
Further, the method for realizing model punching can be realized through model calculation between geometric bodies. That is, a cylinder with a radius R (or larger than R) and a height H can be constructed simultaneously in the above steps as another three-dimensional submodel. Such as: see fig. 9.
And punching in the model can obtain corresponding effect by solving a difference set through two three-dimensional submodels. It should be noted that model calculations should take care of the spatial position between the multiple models. Such as: to achieve the puncturing effect, one of the models must be calculated to be shifted so that the two models intersect. The unit of computation of a particular movement may be determined by the puncturing effect.
Such as: referring to fig. 10, in this embodiment, a hollow is formed in the center of the rectangular parallelepiped, and the three-dimensional sub-model of the constructed cylinder needs to be moved to the center of the rectangular parallelepiped, and the height on the z-axis is kept consistent. That is to say, in the modeling method of the three-dimensional model of the power transmission equipment, in the process of decomposing the geometric structure of the power transmission equipment to obtain the size parameters of each geometric body and/or geometric surface, and processing and constructing each geometric surface and/or each geometric body according to the size parameters of each geometric surface and/or the size parameters of each geometric body to obtain a plurality of three-dimensional sub models, the relative position relationship between each three-dimensional sub model is also obtained at the same time. Therefore, when a plurality of three-dimensional submodels are calculated and combined subsequently, the relative position relation among the three-dimensional submodels is considered at the same time.
Referring to fig. 11, in this embodiment, the three-dimensional sub-model of the constructed cylinder is moved to the center of the rectangular parallelepiped, so that the cylinder and the rectangular parallelepiped are intersected, and then a difference set calculation is performed on the cylinder and the rectangular parallelepiped, thereby achieving a final punching effect.
Further, referring to fig. 12 and 13, a three-dimensional model of a six-split spacer and a three-dimensional model of a strain clamp are respectively constructed by using the three-dimensional model modeling method of power transmission equipment of the present application.
It should be noted that, although the three-dimensional modeling method of the power transmission apparatus of the present application is described by taking fig. 11 as an example, those skilled in the art will understand that the present disclosure should not be limited thereto. In fact, the user can flexibly set the calculation method adopted in the modeling method according to personal preference and/or actual application scenes, as long as the three-dimensional model of the power transmission equipment can be automatically constructed.
Correspondingly, based on the three-dimensional model modeling method for the power transmission equipment, the application also provides a three-dimensional model modeling device for the power transmission equipment. Because the working principle of the three-dimensional model modeling device for the power transmission equipment provided by the application is the same as or similar to that of the three-dimensional model modeling method for the power transmission equipment provided by the application, repeated parts are not repeated.
Referring to fig. 14, the three-dimensional model modeling apparatus 100 for power transmission equipment of the present application includes an information obtaining module 110, a sub-model building module 120, and a calculation combination module 130. The information obtaining module 110 is configured to obtain model information of the power transmission equipment needing to be modeled currently; wherein the model information includes size information of the power transmitting apparatus and type information of the power transmitting apparatus. A submodel building module 120 configured to perform different geometric surface and/or geometric body processing according to the model information to build a plurality of three-dimensional submodels; wherein, the processing of different geometric surfaces and/or geometric bodies comprises at least one of stretching, rotating and reducing. And the calculation combination module 130 is configured to calculate and combine the plurality of three-dimensional sub models to construct corresponding three-dimensional models.
In a possible implementation manner, the system further comprises a data storage module. Wherein the data storage module is configured to store the model information. The model information also comprises model information of the power transmission equipment; and the data storage module is also configured to record the model information, the size information and the type information in a row of database mode.
In one possible implementation, the sub-model building module 120 includes an extraction sub-module, a decomposition sub-module, and a processing sub-module. The first extraction submodule is configured to extract type information from the model information, and obtain the geometric structure of the power transmission equipment according to the type information. The decomposition submodule is configured to decompose the geometry of the power transmission equipment to obtain a plurality of geometric surfaces and/or geometric bodies, and the size parameters of the geometric surfaces and the size parameters of the geometric bodies. And the processing submodule is configured to extract the dimension information from the model information, process each geometric surface and/or each geometric body according to the dimension information and the dimension parameters of each geometric surface and/or the dimension parameters of each geometric body, and construct a plurality of three-dimensional submodels.
In one possible implementation, the computational combination module 130 includes a second extraction submodule and a combination construction submodule. And the second extraction submodule is configured to extract the size information from the model information. And the combined construction submodule is configured to calculate and combine the plurality of three-dimensional submodels according to the size information to construct a corresponding three-dimensional model. Wherein calculating the plurality of three-dimensional submodels comprises: at least one of difference set calculation, union set calculation, and intersection set calculation.
It should be noted that the intersection calculation is used for calculating and obtaining a common part of the plurality of three-dimensional submodels. And performing union set calculation for calculating to obtain a combination result of the plurality of three-dimensional submodels. And calculating a difference set, wherein the difference set is used for calculating and obtaining the rest part of one three-dimensional submodel relative to the other three-dimensional submodel in the plurality of three-dimensional submodels.
Still further, according to another aspect of the present disclosure, there is also provided a power transmission apparatus three-dimensional model modeling apparatus 200. Referring to fig. 15, a power transmission apparatus three-dimensional model modeling apparatus 200 according to an embodiment of the present disclosure includes a processor 210 and a memory 220 for storing instructions executable by the processor 210. Wherein the processor 210 is configured to execute the executable instructions to implement any of the aforementioned three-dimensional modeling methods for power transmission equipment.
Here, it should be noted that the number of the processors 210 may be one or more. Meanwhile, in the three-dimensional model modeling apparatus 200 for a power transmission apparatus according to the embodiment of the present disclosure, an input device 230 and an output device 240 may be further included. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected via a bus, or may be connected via other methods, which is not limited in detail herein.
The memory 220, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and various modules, such as: the disclosed method for modeling a three-dimensional model of power transmission equipment corresponds to a program or a module. The processor 210 executes various functional applications and data processing of the power transmitting apparatus three-dimensional model modeling apparatus 200 by executing software programs or modules stored in the memory 220.
The input device 230 may be used to receive an input number or signal. Wherein the signal may be a key signal generated in connection with user settings and function control of the device/terminal/server. The output device 240 may include a display device such as a display screen.
According to another aspect of the present disclosure, there is also provided a non-transitory computer-readable storage medium having stored thereon computer program instructions which, when executed by the processor 210, implement the power transmission apparatus three-dimensional model modeling method as set forth in any of the preceding.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.