CN116433794A - Processing method and system for three-dimensional model in CAE software - Google Patents
Processing method and system for three-dimensional model in CAE software Download PDFInfo
- Publication number
- CN116433794A CN116433794A CN202310698834.3A CN202310698834A CN116433794A CN 116433794 A CN116433794 A CN 116433794A CN 202310698834 A CN202310698834 A CN 202310698834A CN 116433794 A CN116433794 A CN 116433794A
- Authority
- CN
- China
- Prior art keywords
- projection
- points
- edge
- modification
- component
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 230000004048 modification Effects 0.000 claims abstract description 120
- 238000012986 modification Methods 0.000 claims abstract description 120
- 238000000034 method Methods 0.000 claims abstract description 54
- 238000012545 processing Methods 0.000 claims abstract description 34
- 239000013598 vector Substances 0.000 claims description 56
- 238000004088 simulation Methods 0.000 claims description 22
- 230000002457 bidirectional effect Effects 0.000 claims description 6
- 238000013461 design Methods 0.000 description 10
- 230000006872 improvement Effects 0.000 description 8
- 238000005070 sampling Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000001788 irregular Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000011960 computer-aided design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/003—Reconstruction from projections, e.g. tomography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Graphics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Architecture (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a processing method and a processing system of a three-dimensional model in CAE software, belongs to the technical field of model data processing, and solves the problems that in the prior art, the three-dimensional model in single CAE software is complex to modify and low in accuracy. The method comprises the steps of importing a model file, and acquiring feature point coordinates and edge information of each component of a three-dimensional model; identifying a displayable edge in the non-edges of each component by a shortest path method; projecting the displayable edges and the characteristic points of the components onto a set main plane, generating projection points and projection edges, and displaying a two-dimensional view of each component; generating corresponding prompting points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and taking the selected prompting point as a modification point, updating the corresponding characteristic point coordinate according to the position of the modification point and the standard graphic library, and re-projecting the corresponding characteristic point coordinate onto a set main plane to obtain the edited two-dimensional view of each component. Two-dimensional view display and modification of the three-dimensional model are realized.
Description
Technical Field
The invention relates to the technical field of model data processing, in particular to a method and a system for processing a three-dimensional model in CAE software.
Background
CAE (Computer Aided Engineering ) refers to an approximate numerical analysis method for solving problems such as analysis and calculation of mechanical and electromagnetic field distribution, voltage and current distribution, radar scattering performance and the like of complex engineering and product structural strength, rigidity, buckling stability, dynamic response, heat conduction, three-dimensional multi-body contact, elastoplasticity and the like, and optimization design of structural performance by computer assistance. The existing CAE software (such as ANSYS, CST, FEKO, COMSOL, SONNET) can conveniently and rapidly perform simulation work in the fields of electromagnetism, heat, mechanics and the like, but generally only three-dimensional view display and model modification can be used, if the model modification is needed in the process of simulating a complex model (such as chip design, complex multi-layer circuit board design and the like), the model modification in the CAE software is very troublesome and even unavailable.
In the design project of complex models, under normal circumstances, engineers or designers will first model in CAD (Computer Aided Design ) software, and then import the models into corresponding CAE software to perform simulation, so that the problems of mismatch of model file data types, mismatch of interfaces, and the like need to be overcome.
In order to improve the situation, although a CAD-CAE software collaborative platform exists at present, such as LiveLink for MATLAB, liveLink for SOLIDWORKS and LiveLink for AutoCAD of COMSOL, two software are simply integrated, the step of importing files is reduced, two-dimensional and three-dimensional views cannot be used for displaying homologous models respectively in actual use, and the software is required to be switched in the collaborative platform for corresponding setting and adjustment so as to complete simulation work, so that the process is complicated.
Disclosure of Invention
In view of the above analysis, the embodiment of the invention aims to provide a method and a system for processing a three-dimensional model in CAE software, which are used for solving the problem that a complex model cannot be modified conveniently and accurately in the existing single CAE software.
The embodiment of the invention provides a processing method of a three-dimensional model in CAE software, which comprises the following steps:
importing a model file to obtain feature point coordinates and edge information of each component of the three-dimensional model; the edges belong to displayable edges; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
projecting the displayable edges and the characteristic points of the components onto a set main plane, generating projection points and projection edges, and displaying a two-dimensional view of each component;
generating corresponding prompting points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
Based on the further improvement of the method, the method for identifying the displayable edges in the non-edges of each component through the shortest path method based on the coordinates of the characteristic points and the edge information comprises the following steps:
combining any two characteristic points into a node, if a line segment formed by the two characteristic points in the node exists in the edge information, the node corresponds to an edge in the displayable edge, otherwise, the node corresponds to a non-edge;
and calculating the shortest path of the non-edge node by using a shortest path method, and if the line segment formed by every two adjacent characteristic points in the shortest path does not exist in the edge information, the shortest path of the node corresponds to the displayable edge in the non-edge.
Based on a further improvement of the above method, generating the projection points and the projection edges includes:
projecting the characteristic points of the displayable edges of each component onto a set main plane, generating projection points and projection relations, and acquiring projection vector values of the characteristic points according to the normal vector direction of the main plane and the projection direction of the characteristic points, wherein the projection points at the same position are sequentially covered from large to small according to the projection vector values of the corresponding characteristic points;
taking projection points corresponding to the feature points belonging to the same displayable edge as line segment endpoints, and connecting the projection points to form projection lines; and identifying whether projection lines with the same projection points or the same vectors exist according to the coordinates of the projection points on the projection lines of all the components, if so, forming the projection lines with the same projection points or the same vectors into a projection edge, otherwise, taking the projection lines as independent projection edges.
Based on a further improvement of the method, corresponding prompting points are respectively generated according to the selected projection points and/or projection edges on the two-dimensional view of the selected component, and the method comprises the following steps:
based on the two-dimensional view, generating a corresponding prompting point at each selected projection point position, and/or respectively generating a corresponding prompting point at the end point and the middle point of the projection edge; only one cue point is generated at the same projection position.
Based on the further improvement of the method, the feature points to be edited and the modification modes are identified according to the positions of the modification points and the standard graphic library, and the method comprises the following steps:
comparing the selected component with a standard graph library, and determining whether the selected component is a standard graph; identifying the type of the projection edge where the modification point is located and the initial projection point of the projection edge according to the projection edge where the modification point is located and the adjacent projection edges, wherein the type comprises line segments in a straight line edge and a curve edge;
if the modification point is at the midpoint position or the selected component is a standard graph and the modification point is at the endpoint position, the feature point to be edited and the modification mode are obtained according to the type of the projection edge where the modification point is and the projection relation of the modification point.
Based on the further improvement of the method, the feature points to be edited and the modification modes are identified according to the positions of the modification points and the standard graphic library, and the method comprises the following steps:
if the selected component is not the standard graph and the modification point is at the endpoint position, the feature point projected to the modification point is obtained as the feature point to be edited according to the projection relation of the modification point, and the modification mode is a bidirectional component mode.
Based on the further improvement of the method, according to the type of the projection edge where the modification point is and the projection relation of the modification point, the feature point to be edited and the modification mode are obtained, which comprises the following steps:
if the standard graph is a non-sphere, when the projection edge is a straight line edge, obtaining characteristic points corresponding to projection points of all projection line endpoints on the projection edge, wherein the characteristic points are used as characteristic points to be edited, and the modification mode is a vertical component mode; when the projection edge is a line segment in the curve edge, obtaining characteristic points corresponding to projection points of all line segment endpoints on the curve edge, wherein the characteristic points are used as characteristic points to be edited, and the modification mode is a radial component mode;
if the standard graph is a sphere, the sphere center of the selected component is acquired, and the modification mode is a two-way component mode.
Based on a further improvement of the method, updating the coordinates of the feature points to be edited in a modification mode according to the offset vector of the modification points, including:
according to the offset vector of the modification point, acquiring a component value of the offset vector in a modification mode, converting the acquired component value according to a normal vector of the main plane, and then superposing the converted component value into coordinate values of corresponding dimensionality of the feature point to be edited; obtaining component values of the offset vector in a modified manner includes: when the modification mode is a bidirectional component mode, acquiring component values of the offset vector in two dimensions of the main plane; when the modification mode is a vertical component mode, acquiring a component value of the offset vector in a dimension vertical to the projection edge; when the modification mode is a radial component mode, component values of the offset vector in the radial direction of the curve edge are acquired.
Based on the further improvement of the method, CAE software creates a plurality of linear tables with the same structure and different priorities in a temporary storage area to store data structure information of the three-dimensional model in different processing stages; when the CAE software receives the save or simulation instruction, the data of the latest version of the linear table with the highest priority is updated into the engineering file of the CAE software.
In another aspect, an embodiment of the present invention provides a processing system for a three-dimensional model in CAE software, including:
the data processing module is used for importing a model file and acquiring the characteristic point coordinates and edge information of each component of the three-dimensional model; the edges belong to displayable edges; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
the model display module is used for projecting the displayable edges and the characteristic points thereof of each component onto a set main plane, generating projection points and projection edges and displaying a two-dimensional view of each component;
the model editing module is used for respectively generating corresponding prompt points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
Compared with the prior art, the invention has at least one of the following beneficial effects: the method has the advantages that the homologous models are displayed in a single CAE software by using two-dimensional and three-dimensional views respectively, the three-dimensional models are modified by using the two-dimensional views, and the problems of complex modeling, model modification and simulation flow of the complex models are fundamentally solved; the steps of editing the complex model are greatly simplified, the simulation efficiency is improved, and the research and development efficiency is further improved; the method is particularly suitable for the design of chip layout design, complex multilayer circuit board design and the like.
In the invention, the technical schemes can be mutually combined to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, like reference numerals being used to designate like parts throughout the drawings;
FIG. 1 is a flowchart of a method for processing a three-dimensional model in CAE software according to embodiment 1 of the present invention;
FIG. 2 is a schematic diagram of a module assembly according to embodiment 1 of the present invention;
FIG. 3 is a schematic diagram of a displayable edge in embodiment 1 of the present invention;
FIG. 4 is a two-dimensional view of the FIG. 3 displayable edge projection onto the XOZ plane in embodiment 1 of the present invention;
FIG. 5 is a two-dimensional view of the FIG. 3 displayable edge projection onto the XOY plane in embodiment 1 of the present invention;
fig. 6 is a schematic diagram of a processing system module of a three-dimensional model in CAE software in embodiment 2 of the present invention.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
Example 1
The invention discloses a processing method of a three-dimensional model in CAE software, which is shown in figure 1 and comprises the following steps:
s11, importing a model file, and acquiring feature point coordinates and edge information of each component of the three-dimensional model; the edges belong to displayable edges; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
and creating a project in the CAE software to generate a project file. In the new construction, a Cartesian coordinate system is established as a world coordinate system (World Coordinate System, WCS), and a length unit of a coordinate axis, such as mm, is selected; and obtaining the characteristic point coordinates and the edge information of each component of the three-dimensional model in the model file by importing the model file.
Illustratively, a patch antenna model file is imported, as shown in fig. 2, and each independent component in the patch antenna model includes: dielectric substrate, ground and radiating patch.
The feature points in the three-dimensional model file include: vertex of the three-dimensional model and points on the curve/curved surface representing the outline of the three-dimensional model; the edge is a straight line edge connecting the feature points, and is an edge which can display an irregular figure without a curved surface, such as 12 edges of a cube. Constructing a graph G (V, E), writing characteristic point coordinates into a set V (G), and writing edge vertex coordinates into a set E (G).
Displayable edges are edges that can be projected onto a two-dimensional plane, including all edges, and partially displayable non-edges. The edge is a line segment formed by two characteristic points, corresponds to a straight line edge, and part of displayable non-edge is formed by approximately representing 1 or more line segments formed by a plurality of points on a curve in sequence, and corresponds to the curve edge, and is generally distributed on a new irregular curved surface.
Illustratively, the initial three-dimensional model is a cube, the cube is subtracted from the sphere using boolean operations, the intersection of the sphere and the cube and the rest of the sphere are deleted, as shown in fig. 3, the non-intersection of the cube and the sphere is preserved, a hollowed curved surface is generated on the cube, a plurality of feature points are generated on the curved surface according to a set angular resolution, such as 15 degrees, the shortest path between every two feature points is the curve segment itself, and is not included in the edge set E (G) of the graph G, and therefore, the displayable edges in the non-edges are optimally displayed in fig. 3, the middle curve segment is hidden, and only each curve segment on the curves DE, DF and EF is displayed. In fig. 3, with the O point as the origin of coordinates, the OC direction as the X axis, the OH direction as the Y axis, and the OA direction as the Z axis, the two-dimensional view projected onto the XOZ plane is shown in fig. 4, and the two-dimensional view projected onto the XOY plane is shown in fig. 5. Therefore, after the model file is imported for the first time and each time the engineering file is saved later, the data processing stage is carried out, the displayable edge of the current three-dimensional model is identified, and the correct display of the three-dimensional model in a two-dimensional view is ensured.
Specifically, the CAE software in this embodiment stores data structure information of the three-dimensional model at different processing stages by creating a plurality of linear tables of the same structure but different priorities in the temporary storage area. Each node in the linear table corresponds to element group information of any two feature point combinations, and the element group information comprises: the three-dimensional coordinates of the two feature points, whether the line segment formed by the two feature points is a displayable edge, the vector modular length between the two feature points and the shortest path between the two feature points.
The priority of the linear table is determined by the processing stage of the three-dimensional model; the data processing stage is used as an initial processing stage of three-dimensional model display and editing, the priority of the created linear table is lowest, any two characteristic points are combined according to the acquired characteristic points of each component, each node of the linear table A in the stage is provided with a mark of a displayable edge of each node as 0; if the line segment formed by two characteristic points in the node exists in the edge information E (G), the node corresponds to the edge in the displayable edge, the mark of the displayable edge is set to be 1, otherwise, the node corresponds to the non-edge, and the mark is still 0.
Calculating the shortest path of a non-edge node by a shortest path method, for example, traversing all the characteristic points in the graph G by using Dijkstra algorithm or Floyd algorithm, and obtaining the shortest path between two characteristic points in the node; if the line segment formed by every two adjacent characteristic points in the shortest path does not exist in the edge information, the shortest path is a non-edge displayable edge corresponding to the element group, and the mark of the displayable edge is set to be 1. If the line segment formed by every two adjacent feature points in the shortest path at least comprises one edge, the shortest path of the two feature points is an useless line segment, the mark of the displayable edge is still 0 without projection display in a two-dimensional view.
For example, 8 vertexes of a cube are obtained as characteristic points according to the imported model file, and 12 edges are obtained; according to any two characteristic points combined into one node of the linear table, the linear table A hasThe nodes, wherein 12 nodes correspond to edges, and the mark of the displayable edges is 1; in addition, since there are no edges directly connecting the body diagonal and the face diagonal in the graph G, the feature points of the 4 nodes correspond to the body diagonal and the feature points of the 12 nodes correspond to the face diagonal, these 16The shortest path of the characteristic points of the nodes is composed of edges, so that the mark of the displayable edge is 0; at this point, there is no displayable non-edge.
In order to increase the operation speed, the node information corresponding to the displayable edges in the linear table a is copied to the linear table B, the priority of the linear table B is higher than that of the linear table a, and after the data is copied, the vector sum modular length of two characteristic points of each node in the linear table B is calculated.
Preferably, in order to avoid that after the linear table a is constructed, other model operations are performed, so that new feature points or displayable edges are not recognized in time, before the data is copied, if a node with a displayable edge mark of 0 exists in the linear table a, the above-mentioned displayable edge recognition operation is performed on the corresponding node in the linear table a again.
Compared with the prior art, the method has the advantages that the displayable edges are rapidly identified through the shortest path method, and an accurate data basis is provided for two-dimensional view display and editing of the three-dimensional model.
And S12, projecting the displayable edges and the characteristic points of the components onto a set main plane, generating projection points and projection edges, and displaying a two-dimensional view of each component.
It should be noted that, the three-dimensional model is projected into a two-dimensional model, and the projected principal plane is set first, which is not limited in this embodiment, and one plane, such as XOY, YOZ, XOZ plane, may be arbitrarily selected according to the three-dimensional coordinates, and the projected principal plane may also be generated according to a self-defined local coordinate system (Local Coordinate System, LCS) and a normal vector. The height of the principal plane defaults to 0, i.e., the state of the principal plane defaults to contain the origin of coordinates, and may be set to other values.
Taking an XOY plane as an example, wherein the height of the main plane corresponds to the Z axis, and when the height of the main plane is 0, the XOY plane is the main plane; when the height of the main plane is 20mm, the main plane is at a position parallel to the XOY plane and 20mm along the Z axis.
Projecting the displayable edges and characteristic points of the components onto a set main plane, namely projecting each node of the linear table B onto the main plane to generate projection points and projection edges, wherein the method specifically comprises the following steps of:
projecting the characteristic points of the displayable edges of each component onto a set main plane, generating projection points and projection relations, and acquiring projection vector values of the characteristic points according to the normal vector direction of the main plane and the projection direction of the characteristic points, wherein the projection points at the same position are sequentially covered from large to small according to the projection vector values of the corresponding characteristic points;
taking projection points corresponding to the feature points belonging to the same displayable edge as line segment endpoints, and connecting the projection points to form projection lines; and identifying whether projection lines with the same projection points or the same vectors exist according to the coordinates of the projection points on the projection lines of all the components, if so, forming the projection lines with the same projection points or the same vectors into a projection edge, otherwise, taking the projection lines as independent projection edges.
It should be noted that, considering that the projection points of different feature points may be at the same position, the projection vector value not only shows the projection direction, but also serves as a layering basis for each projection point at the same position. When the normal vector direction of the main plane is opposite to the projection direction of the feature points, the projection vector value of the feature points is the orthographic projection distance; otherwise, the projection vector value of the feature point is the negative projection distance; points with large projection vector values overlap points with small projection vector values. For example, the point O and the point A are projected to the same position, but the projection vector value of the point O is-20, and the projection vector value of the point A is-10, and after the point A is projected to the main plane, the projection point corresponding to the point A covers the projection point corresponding to the point O.
It should be noted that the projection lines of different displayable edges may partially or completely overlap, or may form straight line segments with longer lengths. For example, when the front view or the side view of the cylinder is displayed, the curved edge of the top surface of the cylinder may be projected as a straight line segment. Therefore, during projection, the generated projection line is optimized, so that the two-dimensional view is simpler, and meanwhile, during the optimization process, the relation between the projection edge and the projection line is established, so that the associated characteristic point coordinates can be synchronously modified during the subsequent editing of the two-dimensional view, and the fine adjustment of the three-dimensional model is realized.
Further, in order to avoid excessive projection lines of display, the display mode is optimized by setting, and part of projection lines are hidden, so that the visual effect is improved.
Specifically, the optimized display mode includes: dividing each component into a plurality of areas according to a preset three-dimensional area, and identifying whether the number of displayable edge line segments in each area exceeds a first threshold value; and for the area exceeding the first threshold, calculating whether the number of the projection edges in the area exceeds the second threshold, if not, displaying the projection edges normally, and otherwise, sampling and displaying the projection edges. Wherein the preset solid area is determined according to the size range of each component, for example 1X 1 mm 3 Or 10× 10×10 mm 3 The method comprises the steps of carrying out a first treatment on the surface of the The sampling method is at least selected from any one of the following:
randomly sampling displayable edges; equidistant sampling of displayable edges; selecting the displayable edge closest to the center of the area; selecting the displayable edge furthest from the center of the region; no non-edge displayable edges are displayed.
It should be noted that, in this embodiment, the data structure information of the currently displayed three-dimensional model is backed up at regular time, and the data is backed up before the key operation steps, such as rotation, stretching, array replication, and boolean operation. That is, in the data backup stage, different versions of the linear table C are created based on the time sequence to store the latest model data, with priority higher than the linear tables a and B in the data processing stage, and the initial version data of the linear table C is derived from the data of the linear table B.
If the model editing operation is not executed, the priority of the linear table C in the data backup stage is highest, after a user clicks a save button or a simulation button, the latest version of the linear table C is updated to the engineering file of CAE software, the data of the graph G, the linear tables A and B are sequentially updated according to the new engineering file, and the data of all the linear tables C in the data backup stage are deleted.
S13, respectively generating corresponding prompt points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
It should be noted that, when the model editing is performed based on the two-dimensional view of the three-dimensional model, a model editing stage is entered, a linear table D is created, the data of the linear table C of the latest version in the data backup stage is obtained as editing copy data, the editing operations are all to update the data in the linear table D, once the user clicks the save button or the simulation button, the data of the linear table D is updated to the engineering file of the CAE software, the update map G, the data of the linear tables a and B are updated sequentially according to the new engineering file, and the data of all the linear tables C in the data backup stage and the data of the linear table D in the model editing stage are deleted.
When the assembly of the three-dimensional model is edited based on the two-dimensional view, 1 or more projection points and/or 1 or more projection sides are selected by clicking or framing, so that corresponding prompting points are respectively generated, and modification operations in a specific height or in a specific direction, such as expanding or shrinking of sides or included angles of the assembly along any dimension of a main plane, modification of the radius of the top surface or the bottom surface and the like, can be conveniently and accurately performed.
Specifically, a corresponding prompting point is generated at each selected projection point position, and/or a corresponding prompting point is respectively generated at the end point and the middle point of the projection edge; only one cue point is generated at the same projection position.
For a regular cylindrical model, the two-dimensional view of the projection in plan view is illustratively a circle formed by projection of the top and bottom surface edge curves, which curve is composed of line segments formed by every two adjacent feature points, so that the circle generated by projection is composed of the projection lines of the line segments. When the circle is selected by the box, a hint point is generated at the end and midpoint positions of each projection line on the circle.
Further, when the selected component is a regular graph, if the cue points on the projection side exceed the set maximum number, the cue points are displayed by random sampling or the same pitch, that is, the cue points are subjected to simplified processing. For example, in the above example, there are more points on the circle generated by projection, but the component is a regular pattern, and adjusting any point on the circle requires synchronously modifying all the feature points on the top and bottom surfaces of the cylinder, so that the edited component is still a regular pattern.
It should be noted that, whether the selected component is the standard graph is determined based on the standard graph library, so that not only can the recognition result be utilized to simplify the prompt point, but also the synchronous modified characteristic point range can be acquired more accurately. By way of example, taking a plane parallel to one surface of the cube as a main plane, wherein the projected two-dimensional view is a square, and when a prompting point on one vertex of the square is selected for dragging, if the prompting point is not a regular graph, only the characteristic point projected to the prompting point is modified, and the modified cube becomes an irregular graph; if the rule graph is formed, all feature points on the projection edge where the prompt points are located need to be synchronously modified, namely, modification of the points is expanded to modification of the relevant surface, so that the effect of expanding the side length of the cube is achieved.
Thus, before editing the selected component, the selected component is compared to the standard graphic library to determine whether the selected component is a standard graphic. The standard graphic library comprises preset regular stereoscopic graphics and comparison data of each regular stereoscopic graphics; the regular solid pattern includes: cuboid, cube, cylinder, cone, round platform, spheroid and ellipsoid.
It should be noted that, the comparison data of each regular stereoscopic pattern includes: the shape and number of each face in each regular pattern; or, different ratios of the connecting line distances from each characteristic point to another characteristic point in each regular solid graph. And identifying whether the selected component is a standard graph according to the comparison data and the statistical method of the comparison data.
In addition, since the types of the projection edges include the straight line edge and the line segment in the curve edge, when the prompting point of the end point or the middle point position of one line segment in the curve edge is modified, the characteristic points corresponding to the projection points of all the line segment end points on the curve edge where the line segment is positioned are synchronously modified, so that the modified line edge can still be the curve edge. Therefore, in this embodiment, the type of the projection edge where the modification point is located and the initial projection point of the projection edge are identified according to the projection edge where the modification point is located and the adjacent projection edges.
And (1) if the modification point is at the midpoint position or the selected component is a standard graph and the modification point is at the endpoint position, acquiring the feature point to be edited and the modification mode according to the type of the projection edge where the modification point is and the projection relation of the modification point.
Specifically, if the standard graph is a non-sphere, when the projection edge is a straight line edge, obtaining feature points corresponding to projection points of all projection line endpoints on the projection edge, wherein the feature points to be edited are obtained, and the modification mode is a vertical component mode; when the projection edge is a line segment in the curve edge, obtaining characteristic points corresponding to projection points of all line segment endpoints on the curve edge, wherein the characteristic points are used as characteristic points to be edited, and the modification mode is a radial component mode; if the standard graph is a sphere, the sphere center of the selected component is acquired, and the modification mode is a two-way component mode.
(2) If the selected component is not the standard graph and the modification point is at the endpoint position, the feature point projected to the modification point is obtained as the feature point to be edited according to the projection relation of the modification point, and the modification mode is a bidirectional component mode.
It should be noted that, according to the position of the modification point and the moving target position, an offset vector of the modification point is obtained, and then the coordinates of the feature point to be edited are updated according to the modification mode, including:
according to the offset vector of the modification point, acquiring a component value of the offset vector in a modification mode, converting the acquired component value according to a normal vector of the main plane, and then superposing the converted component value into coordinate values of corresponding dimensionality of the feature point to be edited; wherein obtaining component values of the offset vector in a modified manner comprises:
when the modification mode is a bidirectional component mode, acquiring component values of the offset vector in two dimensions of the main plane; when the modification mode is a vertical component mode, acquiring a component value of the offset vector in a dimension vertical to the projection edge; when the modification mode is a radial component mode, component values of the offset vector in the radial direction of the curve edge are acquired.
And updating the coordinates of the feature points to be edited in the linear table D in the current model editing stage, and re-projecting the coordinates to the set main plane according to the updated coordinates to obtain a two-dimensional view of each edited assembly.
The priority of the linear table is determined by the processing stage of the three-dimensional model; after being ordered from low to high in priority, the initial data of the linear table of the next priority is derived from the data of the latest version of the linear table of the previous priority.
When the user selects to start the simulation function, namely the CAE software receives a simulation instruction, updating the latest version data of the linear table with the highest priority into the engineering file and the graph G (V, E) of the CAE software, and starting to execute the following steps to obtain a simulation result:
components necessary for simulation are added, including but not limited to: ports, boundary conditions, and field monitors; setting simulation parameters including, but not limited to: electromagnetic parameters, thermal parameters, grid discrete parameters, excitation signal parameters and simulation ending criteria; and after discretizing the grid, starting simulation, and graphically displaying a simulation result.
The existing method for modifying the model in the three-dimensional view of the CAE software can not accurately modify the model in a specific height (or in a specific direction), for example, the model is expanded or contracted along the X-axis or Y-axis direction, compared with the prior art, the method for processing the three-dimensional model in the CAE software provided by the embodiment realizes that the homologous model is respectively displayed by using two-dimensional view and three-dimensional view in single CAE software, and the three-dimensional model modification is performed by using the two-dimensional view, so that the problems of complex modeling, model modification and simulation flow of the complex model are fundamentally solved; the steps of editing the complex model are greatly simplified, the simulation efficiency is improved, and the research and development efficiency is further improved; the method is particularly suitable for the design of chip layout design, complex multilayer circuit board design and the like.
Example 2
In another embodiment of the present invention, a system for processing a three-dimensional model in CAE software is disclosed, so as to implement a method for processing a three-dimensional model in CAE software in embodiment 1. The specific implementation of each module is described with reference to the corresponding description in embodiment 1. As shown in fig. 6, the system includes:
the data processing module 101 is used for importing a model file and acquiring the characteristic point coordinates and edge information of each component of the three-dimensional model; the edges belong to displayable edges; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
the model display module 102 is configured to project the displayable edges and the feature points thereof of each component onto a set main plane, generate projection points and projection edges, and display a two-dimensional view of each component;
the model editing module 103 is configured to generate corresponding hint points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
Further, the system further comprises:
the data backup module is used for carrying out data backup at regular time or before key operation steps, creating linear tables of different versions based on time sequence and storing the latest model data;
and the model simulation module is used for performing simulation operation based on the latest model data, and acquiring and displaying a simulation result.
Because the related parts of the processing system of the three-dimensional model in the CAE software and the processing method of the three-dimensional model in the CAE software in this embodiment can be referred to each other, the description is repeated here, and therefore, the description is not repeated here. The principle of the system embodiment is the same as that of the method embodiment, so the system embodiment also has the corresponding technical effects of the method embodiment.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program to instruct associated hardware, where the program may be stored on a computer readable storage medium. Wherein the computer readable storage medium is a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
In the present invention, "a plurality of" means one or more, and "a plurality of" means two or more; for the step numbers in the method embodiments, which are set for convenience of illustration, the order between the steps is not limited, and the execution order of the steps in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art; the description of "first" and "second" is used for the purpose of distinguishing between technical features only and is not to be construed as indicating or implying relative importance, implicitly indicating the number of technical features indicated, or implicitly indicating the precedence of the technical features indicated.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.
Claims (10)
1. The processing method of the three-dimensional model in the CAE software is characterized by comprising the following steps of:
importing a model file to obtain feature point coordinates and edge information of each component of the three-dimensional model; the edge belongs to a displayable edge; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
projecting the displayable edges and the characteristic points of the components onto a set main plane, generating projection points and projection edges, and displaying a two-dimensional view of each component;
generating corresponding prompting points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
2. The method for processing the three-dimensional model in CAE software according to claim 1, wherein identifying the displayable edge of the non-edge of each component by the shortest path method based on the feature point coordinates and the edge information comprises:
combining any two characteristic points into a node, if a line segment formed by the two characteristic points in the node exists in the edge information, the node corresponds to an edge in the displayable edge, otherwise, the node corresponds to a non-edge;
and calculating the shortest path of the non-edge node by using a shortest path method, and if the line segment formed by every two adjacent characteristic points in the shortest path does not exist in the edge information, the shortest path of the node corresponds to the displayable edge in the non-edge.
3. The method for processing the three-dimensional model in CAE software according to claim 1, wherein the generating the projection points and the projection edges comprises:
projecting the characteristic points of the displayable edges of each component onto a set main plane, generating projection points and projection relations, and acquiring projection vector values of the characteristic points according to the normal vector direction of the main plane and the projection direction of the characteristic points, wherein the projection points at the same position are sequentially covered from large to small according to the projection vector values of the corresponding characteristic points;
taking projection points corresponding to the feature points belonging to the same displayable edge as line segment endpoints, and connecting the projection points to form projection lines; and identifying whether projection lines with the same projection points or the same vectors exist according to the coordinates of the projection points on the projection lines of all the components, if so, forming the projection lines with the same projection points or the same vectors into a projection edge, otherwise, taking the projection lines as independent projection edges.
4. A method for processing a three-dimensional model in CAE software according to claim 3, wherein the generating corresponding hint points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component includes:
based on the two-dimensional view, generating a corresponding prompting point at each selected projection point position, and/or respectively generating a corresponding prompting point at the end point and the middle point of the projection edge; only one cue point is generated at the same projection position.
5. The method for processing a three-dimensional model in CAE software according to claim 4, wherein the identifying feature points to be edited and modification modes according to the positions of modification points and a standard graphic library comprises:
comparing the selected component with a standard graph library, and determining whether the selected component is a standard graph; identifying the type of the projection edge where the modification point is located and the initial projection point of the projection edge according to the projection edge where the modification point is located and the adjacent projection edges, wherein the type comprises line segments in a straight line edge and a curve edge;
if the modification point is at the midpoint position or the selected component is a standard graph and the modification point is at the endpoint position, the feature point to be edited and the modification mode are obtained according to the type of the projection edge where the modification point is and the projection relation of the modification point.
6. The method for processing a three-dimensional model in CAE software according to claim 5, wherein the identifying feature points and modification modes to be edited according to the positions of the modification points and a standard graphic library comprises:
if the selected component is not the standard graph and the modification point is at the endpoint position, the feature point projected to the modification point is obtained as the feature point to be edited according to the projection relation of the modification point, and the modification mode is a bidirectional component mode.
7. The method for processing the three-dimensional model in CAE software according to claim 5, wherein the obtaining the feature point to be edited and the modification mode according to the type of the projection edge where the modification point is and the projection relation of the modification point comprises:
if the standard graph is a non-sphere, when the projection edge is a straight line edge, obtaining characteristic points corresponding to projection points of all projection line endpoints on the projection edge, wherein the characteristic points are used as characteristic points to be edited, and the modification mode is a vertical component mode; when the projection edge is a line segment in the curve edge, obtaining characteristic points corresponding to projection points of all line segment endpoints on the curve edge, wherein the characteristic points are used as characteristic points to be edited, and the modification mode is a radial component mode;
if the standard graph is a sphere, the sphere center of the selected component is acquired, and the modification mode is a two-way component mode.
8. The method for processing a three-dimensional model in CAE software according to claim 6 or 7, wherein updating the coordinates of the feature points to be edited in a modified manner according to the offset vector of the modification points comprises:
according to the offset vector of the modification point, acquiring a component value of the offset vector in a modification mode, converting the acquired component value according to a normal vector of the main plane, and then superposing the converted component value into coordinate values of corresponding dimensionality of the feature point to be edited; the obtaining component values of the offset vector in a modified manner includes: when the modification mode is a bidirectional component mode, acquiring component values of the offset vector in two dimensions of the main plane; when the modification mode is a vertical component mode, acquiring a component value of the offset vector in a dimension vertical to the projection edge; when the modification mode is a radial component mode, component values of the offset vector in the radial direction of the curve edge are acquired.
9. The method for processing the three-dimensional model in the CAE software according to claim 1, wherein the CAE software creates a plurality of linear tables with the same structure but different priorities in a temporary storage area to store data structure information of the three-dimensional model in different processing stages; when the CAE software receives the save or simulation instruction, the data of the latest version of the linear table with the highest priority is updated into the engineering file of the CAE software.
10. A system for processing a three-dimensional model in CAE software, comprising:
the data processing module is used for importing a model file and acquiring the characteristic point coordinates and edge information of each component of the three-dimensional model; the edge belongs to a displayable edge; identifying a displayable edge in the non-edge of each component by a shortest path method based on the feature point coordinates and the edge information;
the model display module is used for projecting the displayable edges and the characteristic points thereof of each component onto a set main plane, generating projection points and projection edges and displaying a two-dimensional view of each component;
the model editing module is used for respectively generating corresponding prompt points according to the selected projection points and/or projection edges on the two-dimensional view of the selected component; and identifying the feature points to be edited and the modification modes according to the positions of the modification points and the standard graphic library by taking the selected prompting points as the modification points, updating the coordinates of the feature points to be edited according to the modification modes according to the offset vectors of the modification points, and re-projecting the coordinates to the set main plane to obtain the two-dimensional view of each edited component.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310698834.3A CN116433794B (en) | 2023-06-14 | 2023-06-14 | Processing method and system for three-dimensional model in CAE software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310698834.3A CN116433794B (en) | 2023-06-14 | 2023-06-14 | Processing method and system for three-dimensional model in CAE software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116433794A true CN116433794A (en) | 2023-07-14 |
CN116433794B CN116433794B (en) | 2023-09-08 |
Family
ID=87094725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310698834.3A Active CN116433794B (en) | 2023-06-14 | 2023-06-14 | Processing method and system for three-dimensional model in CAE software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116433794B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116775097A (en) * | 2023-08-21 | 2023-09-19 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855668A (en) * | 2012-08-06 | 2013-01-02 | 上海中和软件有限公司 | Three-dimensional reconstruction and visualization method for engineering drawings |
US20160098858A1 (en) * | 2014-10-03 | 2016-04-07 | Samsung Electronics Co., Ltd. | 3-dimensional model generation using edges |
CN109410323A (en) * | 2018-10-25 | 2019-03-01 | 周口师范学院 | A kind of three-dimensional " line-face " structural remodeling method of urban architecture facade |
US20190318046A1 (en) * | 2016-07-28 | 2019-10-17 | Siemens Product Lifecycle Management Software Inc. | System and method for perception-based selection of features in a geometric model of a part |
AU2018203328A1 (en) * | 2018-05-11 | 2019-11-28 | Canon Kabushiki Kaisha | System and method for aligning views of a graphical object |
US20220391553A1 (en) * | 2021-06-06 | 2022-12-08 | Purdue Research Foundation | Building information modeling systems and methods |
-
2023
- 2023-06-14 CN CN202310698834.3A patent/CN116433794B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855668A (en) * | 2012-08-06 | 2013-01-02 | 上海中和软件有限公司 | Three-dimensional reconstruction and visualization method for engineering drawings |
US20160098858A1 (en) * | 2014-10-03 | 2016-04-07 | Samsung Electronics Co., Ltd. | 3-dimensional model generation using edges |
US20190318046A1 (en) * | 2016-07-28 | 2019-10-17 | Siemens Product Lifecycle Management Software Inc. | System and method for perception-based selection of features in a geometric model of a part |
AU2018203328A1 (en) * | 2018-05-11 | 2019-11-28 | Canon Kabushiki Kaisha | System and method for aligning views of a graphical object |
CN109410323A (en) * | 2018-10-25 | 2019-03-01 | 周口师范学院 | A kind of three-dimensional " line-face " structural remodeling method of urban architecture facade |
US20220391553A1 (en) * | 2021-06-06 | 2022-12-08 | Purdue Research Foundation | Building information modeling systems and methods |
Non-Patent Citations (1)
Title |
---|
贾慧敏;王安强;: "基于边界二维CAD模型的三维离散元法边界建模方法", 科学技术与工程, no. 08, pages 2093 - 2098 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116775097A (en) * | 2023-08-21 | 2023-09-19 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
CN116775097B (en) * | 2023-08-21 | 2023-11-07 | 广东云湃科技有限责任公司 | Model component management and simulation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN116433794B (en) | 2023-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1710720B1 (en) | Method of computer-aided design of a modeled object having several faces | |
US4864520A (en) | Shape generating/creating system for computer aided design, computer aided manufacturing, computer aided engineering and computer applied technology | |
CN110489778B (en) | Graph segmentation method and laser etching control system for laser etching processing | |
CN116433794B (en) | Processing method and system for three-dimensional model in CAE software | |
KR20140139984A (en) | Compression and decompression of a 3d modeled object | |
JP2013114694A (en) | Creating surface from plural 3d curves | |
JPH05342310A (en) | Method and device for three-dimensional conversion of linear element data | |
EP1906322A2 (en) | Shape detailing device, shape detailing method, computer program product, mechanical cad machine, and method of manufacturing three-dimensional structure | |
JP3599386B2 (en) | Edge mixing method | |
CN111986326B (en) | Construction method and device of pavement three-dimensional model, computer equipment and storage medium | |
JP2002324250A (en) | Method for editing graphics object by using computer implemented tool | |
CN105894553B (en) | A kind of Street Space form layout method based on grid selection | |
JP2007265402A (en) | Evolutionary design optimization using extended direct manipulation of free form deformations | |
US6104409A (en) | Three-dimensional object data processing method and system | |
JPH07254075A (en) | Method for deforming three-dimensional object and modeling system | |
Amiri et al. | Connectivity maps for subdivision surfaces | |
JP2920195B2 (en) | Shape conversion method and device | |
Hrozek et al. | Digital preservation of historical buildings using virtual reality technologies | |
JP4771807B2 (en) | Computer-aided design apparatus, program and method thereof | |
JP2006277672A (en) | Three-dimensional model processing method | |
KR20000072426A (en) | System and method of unstructured tetrahedral mesh generation for a 3d object on semiconductor substrate | |
CN109509249B (en) | Virtual scene light source intelligent generation method based on components | |
JP4317525B2 (en) | 3D drawing system | |
KR20030026300A (en) | Method of generating unstructured tetrahedral mesh for a 3d object | |
JP3582509B2 (en) | 3D map data processing method, apparatus and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |