A modeling method and device
By introducing a visual modeling interface and a method of decomposing into point, line, and surface components into the modeling method, the problems of cumbersome and slow modeling process in the existing technology are solved, and the modeling speed is significantly improved and the cost is reduced. reduce.
Patent Information
- Application Number
- CN202211519036.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-11-30
AI Technical Summary
Existing 3D modeling methods have problems with the modeling process being cumbersome and slow. In particular, it is difficult to obtain internal information of the building through oblique photography modeling, manual modeling has a low degree of automation, and BIM modeling has a large amount of information and is cumbersome, resulting in modeling costs. High and slow.
Provide a modeling method and device that decomposes complex structures into three basic component types: point, line and surface by generating a visual modeling interface, including point construction, line construction, surface construction and component splicing functions, and uses different functions to perform Modeling, simplifying the modeling process and increasing the speed of modeling.
By decomposing the target structure into basic component types, the modeling process is simplified, the modeling speed is significantly improved, and the modeling cost and time are reduced.
Smart Images

Figure CN115761139B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of modeling, and in particular to a modeling method and device. Background Art
[0002] There are three main existing 3D modeling implementation solutions, namely oblique photography modeling, manual modeling and building information modeling (BIM modeling).
[0003] Among them, oblique photography modeling is to carry multiple sensors on the same flight platform, synchronously expose and collect images from five angles such as vertical, several oblique, etc., to obtain real ground object information, and use Street View Factory post-processing software to build a real-scene three-dimensional model; manual modeling is a geometric modeling technology that uses basic geometric elements "points, lines, surfaces, and bodies" to combine into entities, and constructs complex three-dimensional models such as terrain, buildings, and devices through geometric transformations such as stretching, rotation, and translation. Manual modeling uses intuitive graphics for modeling, so it can ignore complex expression algorithms and relational operators. It has an absolute usage advantage in design industries such as architecture, industry, and visual effects. Commonly used software includes AUTODESK 3DS MAX, Sketch Up, etc. BIM modeling is based on three-dimensional digital technology and integrates various related information of construction projects. Engineering data model, BIM is a digital expression of the implementation entity and functional characteristics of engineering projects. BIM modeling is a method of creating and driving three-dimensional building models using various engineering parameters. It no longer abstractly expresses design objects with lines, surfaces, and blocks, but directly uses components ("families") to express design objects. Commonly used BIM modeling software include Revit, Rhino-grasshopper, etc.
[0004] If oblique photography is used, only the spatial position information and appearance information of the photographed objects can be obtained, and it is difficult to model the internal information of the building, so that manual intervention is still required in subsequent modeling, resulting in a long modeling cycle; manual modeling, due to the need for manual modeling, makes the modeling process less automated, and therefore the modeling speed is slower; and the BIM model of BIM modeling has a large amount of information, which makes the modeling process cumbersome, the modeling cost high and the speed slow. Summary of the invention
[0005] The embodiments of the present invention provide a modeling method and device, which can effectively solve the problem that the modeling method in the prior art makes the modeling process complicated and slow, and can effectively improve the modeling speed.
[0006] An embodiment of the present invention provides a modeling method, including:
[0007] Executing the software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a line construction function response area, a surface construction function response area, and a component splicing function response area;
[0008] In response to a point construction function selection operation acting on a point construction function response area, a point component parameter input interface is generated, and in response to a point component parameter setting operation acting on the point component parameter input interface, point component parameters are acquired; and a point component model is generated in the model presentation area according to the point construction parameters;
[0009] In response to a line construction function selection operation acting on a line construction function response area, a line component parameter input interface is generated, and in response to a line component parameter setting operation acting on the line component parameter input interface, line component parameters are acquired; and a line component model is generated in the model presentation area according to the line component parameters;
[0010] In response to a surface construction function selection operation acting on a surface construction function response area, a surface component parameter input interface is generated, and in response to a surface component parameter setting operation acting on the surface component parameter input interface, surface component parameters are obtained; and a surface component model is generated in the model presentation area according to the surface construction parameters;
[0011] In response to the component splicing function selection operation acting on the component splicing function response area, the component models in the model presentation area are spliced to generate a target model.
[0012] Preferably, the point construction function response area is provided with a first point construction function;
[0013] In response to the first point construction function selection operation acting on the point construction function response area, a three-dimensional coordinate vector array input interface is generated, and in response to the three-dimensional coordinate vector array setting operation acting on the three-dimensional coordinate vector array input interface, a three-dimensional coordinate vector array is obtained; and a point component model is generated in the model presentation area according to the three-dimensional coordinate vector array.
[0014] Preferably, the line construction function response area is provided with a first line construction function;
[0015] In response to a first line construction function selection operation acting on a line construction function response area, a line construction parameter input interface is generated, and in response to a line construction parameter setting operation acting on the line construction parameter input interface, line construction parameters are acquired; a line component model is generated in the model presentation area according to the line construction parameters; wherein the line construction parameters include point positions, line vector directions, and line lengths;
[0016] Preferably, the surface building function response area is provided with a first surface building function;
[0017] In response to a first plane construction function selection operation acting on a plane construction function response area, an input interface for a first plane construction parameter is generated, and in response to a first plane construction parameter setting operation acting on the first plane construction parameter input interface, the first plane construction parameter is acquired; a circular plane component model is generated in the model presentation area according to the first plane construction parameter; wherein the first plane construction parameter includes an origin position and a radius of the circular plane component.
[0018] Preferably, the surface building function area is provided with a second surface building function;
[0019] In response to a first selection operation on a plurality of line component models in the model presentation area, the selected plurality of line component models are used as line component models to be closed;
[0020] In response to the second surface construction function selection operation acting on the surface construction function area, the line component models to be closed are spliced to form a closed surface component model.
[0021] Preferably, the function selection area is also provided with a component rendering function;
[0022] In response to a selection operation of a combined surface construction model in the model rendering area, the selected combined surface construction model is used as a model to be rendered; wherein the combined surface construction model includes two sets of overlapping surfaces;
[0023] In response to a component rendering function selection operation acting on a function selection area, the unobstructed side of the model to be rendered is defined as an outer group, and the obstructed side of the model to be rendered is defined as an inner group. After rendering the outer group and the inner group, a rendered component model is generated in the model presentation area.
[0024] Preferably, after rendering the outer group and the inner group, a rendered component model is generated in the model rendering area, as follows:
[0025] Draw a number of vertices of the outer group and generate the coordinates of the outer group vertices according to the number of vertices of the outer group;
[0026] Draw a number of vertices of the inner group and generate the coordinates of the inner group vertices according to the number of vertices of the inner group;
[0027] Get the rendering range according to the outer group vertex coordinates and the inner group vertex coordinates;
[0028] After rendering the outer group and the inner group according to the rendering range, a rendered component model is generated in the model rendering area.
[0029] Preferably, the visual modeling interface further includes a material selection area, and the function selection area is further provided with a material setting function;
[0030] In response to a second selection operation of a component model acting on the model presentation area, the selected component model is used as a component to be material-set;
[0031] In response to a selection operation acting on a response area of a material setting function, a material selection interface is generated;
[0032] In response to a selection operation of a target material on a material selection interface, a target material is obtained;
[0033] The material setting component to be material set is performed according to the target material.
[0034] Preferably, in response to the component splicing function selection operation acting on the component splicing function response area, each component model in the model presentation area is spliced to generate a target model, specifically including:
[0035] In response to the third selection operation of each component model in the model presentation area, each selected component model is used as a component model to be spliced;
[0036] In response to the component splicing function selection operation acting on the component splicing function response area, each component model to be spliced is matched with a preset solid three-dimensional picture to obtain the connection relationship and relative position relationship between the component models to be spliced;
[0037] The component models to be spliced are spliced according to the connection relationship and relative position relationship of the component models to generate a target model.
[0038] Based on the above method embodiments, the present invention provides corresponding device embodiments.
[0039] An embodiment of the present invention provides a modeling device, including: a visual modeling interface generation module, a point component model generation module, a line component model generation module, a surface component model generation module and a target model generation module.
[0040] A visual modeling interface generation module is used to execute a software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a surface construction function response area and a component splicing function selection area;
[0041] A point component model generation module is used to generate a point component parameter input interface in response to a point construction function selection operation acting on a point construction function response area, and to obtain point component parameters in response to a point component parameter setting operation acting on the point component parameter input interface; and to generate a point component model in the model presentation area according to the point construction parameters;
[0042] A line component model generation module is used to generate a line component parameter input interface in response to a line construction function selection operation acting on a line construction function response area, and to obtain line component parameters in response to a line component parameter setting operation acting on the line component parameter input interface; and to generate a line component model in the model presentation area according to the line component parameters;
[0043] A surface component model generation module is used to generate a surface component parameter input interface in response to a surface construction function selection operation acting on a surface construction function response area, and to obtain surface component parameters in response to a surface component parameter setting operation acting on the surface component parameter input interface; and to generate a surface component model in the model presentation area according to the surface construction parameters;
[0044] The target model generation module is used to splice the component models in the model presentation area to generate the target model in response to the component splicing function selection operation acting on the component splicing function response area:
[0045] The following beneficial effects are achieved by implementing the present invention:
[0046] An embodiment of the present invention provides a modeling method and device. The modeling method generates a point component model through a point construction function, generates a line component through a line construction function, and generates a surface component model through a surface construction function, and then splices several component models through a component splicing function to obtain a target model. The present invention simplifies a complex target structure entity into three basic component types by dividing the target model into three basic component types: points, lines, and surfaces, and realizes modeling of the complex target structure entity through different functions, thereby simplifying the modeling process and effectively improving the modeling speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flowchart of a modeling method provided by an embodiment of the present invention.
[0048] Figure 2 It is a schematic diagram of a polygon expansion algorithm of a modeling method provided by an embodiment of the present invention.
[0049] Figure 3 It is a schematic diagram of trajectory line coordinates of a modeling method provided by an embodiment of the present invention.
[0050] Figure 4It is a structural schematic diagram of a modeling device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] See also Figure 1 , is a flow chart of a modeling method provided by an embodiment of the present invention, comprising:
[0053] Step S1: executing a software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a line construction function response area, a surface construction function response area, and a component splicing function response area;
[0054] Step S2: in response to a point construction function selection operation acting on a point construction function response area, generating a point component parameter input interface, and in response to a point component parameter setting operation acting on the point component parameter input interface, acquiring point component parameters; generating a point component model in the model presentation area according to the point construction parameters;
[0055] Step S3: in response to a line construction function selection operation acting on a line construction function response area, generating a line component parameter input interface, and in response to a line component parameter setting operation acting on the line component parameter input interface, acquiring line component parameters; generating a line component model in the model presentation area according to the line component parameters;
[0056] Step S4: in response to the surface construction function selection operation acting on the surface construction function response area, a surface component parameter input interface is generated, and in response to the surface component parameter setting operation acting on the surface component parameter input interface, surface component parameters are obtained; and a surface component model is generated in the model presentation area according to the surface construction parameters;
[0057] Step S5: In response to the component splicing function selection operation acting on the component splicing function response area, the component models in the model presentation area are spliced to generate a target model.
[0058] For step S1, in a preferred embodiment, the basic types are point component model, line component model and surface model; and the point construction function response area is provided with a plurality of point construction functions, all of which are used to construct the point component model; the line construction function response area is provided with a plurality of line construction functions, all of which are used to construct the line component model; the surface construction function response area is provided with a plurality of surface construction function areas, all of which are used to construct the surface component model.
[0059] More specifically, each point component model contains the three-dimensional coordinate vector information of the point, the three vector direction information of the point and the information of the surface to which it belongs; each line component model contains the point position information, the vector direction information of the line, the line length information and the information of the surface to which it belongs; each surface component model contains point component information, line component information and material information.
[0060] For step S2, in a preferred embodiment, the point construction function response area is provided with a plurality of point construction functions; wherein the point construction function response area is provided with a first point construction function, and the property of the first construction function is a construction function of a point component;
[0061] In response to the selection operation acting on the first point construction function response area, a three-dimensional coordinate vector array input interface is generated, and in response to the three-dimensional coordinate vector array setting operation acting on the three-dimensional coordinate vector array input interface, a three-dimensional coordinate vector array is obtained; and a point component model is generated in the model presentation area according to the three-dimensional coordinate vector array.
[0062] Furthermore, the point construction function response area is further provided with a second point construction function, wherein the second point construction function is a point quantity generation function;
[0063] Specifically, the selected line component model or surface component model is obtained; in response to the selection operation acting on the response area of the second point construction function, a point quantity input interface is generated, and in response to the setting operation acting on the point quantity input interface, the point quantity is obtained; according to the point quantity, point components of the number of points are generated in the selected line component model or surface component model. It should be noted that the second point construction function can draw points in an already generated line component model or surface component model, and then construct a new line component or surface component, such as generating a wall component model containing a window by drawing points in a wall component model.
[0064] Furthermore, the point construction function response area is further provided with a third point construction function, wherein the property of the third point construction function is a replication function;
[0065] Specifically, the selected line component model or surface component model and the target point position are obtained; in response to the selection operation of the third point construction function acting on the point construction function response area, a target point position parameter input interface is generated; and in response to the target point position parameter setting operation acting on the target point position parameter input interface, the target point position parameter is obtained; and the selected line component model or surface component model is copied to the target point position according to the target point position parameter. It should be noted that the line component and the surface component can be copied to the point specified by the user through the third point construction function.
[0066] For step S3, in a preferred embodiment, the line construction function response area is provided with a plurality of line construction functions; wherein the line construction function response area is provided with a first line construction function, and the property of the first line construction function is a construction function of a straight line component model;
[0067] Specifically, in response to the first line construction function selection operation acting on the line construction function response area, a line construction parameter input interface is generated, and in response to the line construction parameter setting operation acting on the line construction parameter input interface, the line construction parameters are obtained; a line component model is generated in the model presentation area according to the line construction parameters; wherein the line construction parameters include point position, line vector direction and line length; that is, a straight line component model can be generated according to the first line construction function.
[0068] The line construction function response area is also provided with a second line construction function, and the property of the second line construction function is a construction function of a curve component model;
[0069] Specifically, in response to the second line construction function selection operation acting on the line construction function response area, a curve construction model is generated according to the cubic spline interpolation method; wherein the cubic spline interpolation is a smooth curve through a series of shape value points, and then the curve function group is obtained by solving the three bending moment equations.
[0070] For step S4, in a preferred embodiment, the surface building function response region is provided with a plurality of surface building functions; wherein the surface building function response region is provided with a first surface building function, and the property of the first surface building function is a building function of a circular component model;
[0071] In response to the first plane construction function selection operation acting on the plane construction function response area, an input interface of the first plane construction parameter is generated, and in response to the first plane construction parameter setting operation acting on the first plane construction parameter input interface, the first plane construction parameter is obtained; a circular surface component model is generated in the model presentation area according to the first plane construction parameter; wherein the first plane construction parameter includes the origin position and the radius of the circular surface component. It should be noted that the first surface construction function can generate a circular surface component by the user-specified center position (i.e., the origin position) and the specified circle radius.
[0072] The surface construction function area is also provided with a second surface construction function; specifically, in response to a first selection operation acting on a plurality of line component models in the model presentation area, the selected plurality of line component models are used as line component models to be closed;
[0073] In response to the second surface construction function selection operation acting on the surface construction function area, the line component models to be closed are spliced to form a closed surface component model. That is, the line component models can be closed and connected by the second surface construction function to obtain a surface component model.
[0074] The surface construction function area is also provided with a third surface construction function; specifically, in response to the third surface construction function selection operation acting on the surface construction function area, an input interface for a third plane construction parameter is generated, and in response to the third plane construction parameter setting operation acting on the third plane construction parameter input interface, the third plane construction parameter is obtained; according to the third plane construction parameter, a rectangular grid plane component model is generated in the model presentation area by an interpolation method; wherein the third plane construction parameters include an origin position, a grid size, and a number of sub-grids.
[0075] The surface construction function area is also provided with a fourth surface construction function; specifically, in response to a selection operation acting on a plurality of surface component models in the model presentation area, the selected plurality of surface component models are used as surface component models to be expanded;
[0076] In response to the fifth surface construction function selection operation acting on the surface construction function area, the surface component model to be expanded is expanded inwardly or outwardly; specifically, the surface component model to be expanded is expanded inwardly or outwardly using a polygon expansion algorithm, that is, the interior of the surface component is equidistantly reduced or the exterior is equidistantly enlarged; Figure 2 As shown, two adjacent sides L1 and L2 of the polygon intersect at point Pi. Given an offset distance L so that the two sides intersect at Qi, the coordinates of the intersection point Qi of the two adjacent sides L1 and L2 after offset can be expressed as:
[0077] Q i =Pi +(v1+v2)=L / sqrt(1-(v1x*v2x+v1y*v2y) / 2).
[0078] The surface construction function area is also provided with a sixth surface construction function; specifically, the sixth surface construction function is used to cut any surface component into two parts using the signed distance field method; wherein the signed distance field method determines the plane to be cut according to the position and normal vector given by the user, wherein the normal vector should be perpendicular to the normal vector direction of the plane to be cut. The distance sd from the plane to be cut to the signed plane is calculated point by point, and the plane to be cut is divided into positive and negative parts according to the sign of the plane distance sd; wherein:
[0079]
[0080] The signed distance field p can be expressed as ax+by+cz+d=0, is the normal vector of p,
[0081] The surface construction function area is also provided with a seventh surface construction function; specifically, the seventh surface construction function is used to remove the surface component with the corresponding index number stored in the instantiated surface component according to the given surface index number, so as to delete the specified parts (each part is stored in a different segment) in the grid plane.
[0082] The surface construction function area is also provided with an eighth surface construction function; specifically, the eighth surface construction function is used to change the right angle specified on the selected surface component into a chamfer using a cubic spline interpolation method to generate a component model of a complex shape.
[0083] The surface construction function area is also provided with a ninth surface construction function; specifically, the ninth surface construction function is used to compare the normal vectors of the lines on each surface component, thereby cleaning up the redundant edges on each surface component to smooth each surface component.
[0084] The surface construction function area is also provided with a tenth surface construction function; specifically, the tenth surface construction function is used to compare normal vectors of adjacent vertices and delete redundant vertices on the surface component.
[0085] The surface construction function area is also provided with an eighth surface construction function; specifically, the seventh surface construction function is used to split the contour line of the surface component into line segments and store them in each segment of the surface component respectively.
[0086] The surface construction function area is also provided with an eleventh surface construction function; specifically, the eleventh surface construction function is used to generate more points on the surface component by linear interpolation.
[0087] The surface construction function area is also provided with a twelfth surface construction function; specifically, the twelfth surface construction function is used to delete the lengths specified at both ends of the line segment by linear interpolation.
[0088] For step S5, in a preferred embodiment, in response to the component splicing function selection operation acting on the component splicing function response area, the component models in the model presentation area are spliced to generate a target model, which specifically includes:
[0089] In response to the selection operation of each component model acting on the model presentation area, each selected component model is used as the component model to be spliced;
[0090] In response to the third selection operation of the component splicing function acting on the component splicing function response area, each component model to be spliced is matched with a preset solid three-dimensional picture to obtain a connection relationship and a relative position relationship between each component model to be spliced; wherein the preset solid picture corresponds to the target model finally generated;
[0091] The component models to be spliced are spliced according to the connection relationship and relative position relationship of the component models to generate a target model.
[0092] Furthermore, in a preferred embodiment, the function selection area also includes a plurality of functional function areas;
[0093] The functional function area is also provided with a component rendering function; in response to a selection operation of a combined surface construction model in the model rendering area, the selected combined surface construction model is used as a model to be rendered; wherein the combined surface construction model includes two sets of overlapping surfaces;
[0094] In response to a component rendering function selection operation acting on a function selection area, an unobstructed side of the model to be rendered is defined as an outer group, and an obstructed side of the model to be rendered is defined as an inner group; a plurality of vertices of the outer group are drawn and coordinates of the outer group vertices are generated according to the plurality of vertices of the outer group;
[0095] Draw a number of vertices of the inner group and generate the inner group vertex coordinates according to the vertices of the inner group; obtain the rendering range according to the outer group vertex coordinates and the inner group vertex coordinates; render the outer group and the inner group according to the rendering range and generate a rendered component model in the model rendering area.
[0096] Specifically, when generating a model of a building-type geographic entity, it is usually necessary to assemble the building wall and multiple door and window components together. At this time, the door and window and the wall form a complex non-convex polygon structure, that is, it can be regarded as a non-convex polygon including an outer contour and multiple inner contours; if the structure is directly rendered using a conventional method, the door and window with a transparent material will directly transmit the wall behind the glass, while the component rendering function can be used to render the wall and the door and window separately;
[0097] The component rendering function realizes correct rendering by calling the non-convex polygon rendering mechanism to form a complex non-convex polygon structure of the above-mentioned doors, windows and walls. The specific process includes: defining the wall components as external contours, defining the doors and windows as internal contours, and sending the external contour and the internal contour together to the tessellator, first drawing the vertices for the shape of the external contour in a clockwise order, and then drawing the vertices for the shape of the internal contour in a clockwise order; obtaining two sets of vertex coordinates and obtaining the rendering range; after completing the tessellations of the doors, windows and walls according to the rendering range, rendering the tessellations.
[0098] The functional function area is also provided with a material setting function; in response to a second selection operation of a component model acting on the model presentation area, the selected component model is used as a component to be material-set;
[0099] In response to a selection operation acting on a response area of a material setting function, a material selection interface is generated; in response to a selection operation of a target material acting on the material selection interface, a target material is acquired; and material setting is performed on a material setting component according to the target material.
[0100] The prior art is to attach materials only after the model is baked, which greatly prolongs the time for generating the final target and is not conducive to improving the modeling speed. However, by using the material setting function in this embodiment of the present invention, it is possible to synchronously attach materials while the component is generated, thereby improving the modeling speed.
[0101] The functional function area is also provided with a first functional function, and the first functional function is used to stretch along the normal direction of the selected face structure according to the length specified by the user, so as to realize the transformation of the two-dimensional plane into a three-dimensional entity.
[0102] The functional function area is also provided with a second functional function, and the second functional function is used to generate a three-dimensional surface along the ridge line of the two-dimensional plane according to the cross section specified by the user for the selected two-dimensional plane; specifically, Figure 3 As shown, after the second function function selection operation is performed on the function function area, after the selected two-dimensional plane is obtained, a trajectory line and a cross section are determined according to the cross section specified by the user, and the cross section is scanned along the trajectory line to form a geometric model of the three-dimensional curve. The trajectory line S (u, v) can be specifically expressed as:
[0103] S(u,v)=C(v)+c1(u,v)N+c2(u,v)B
[0104] Among them, C(v) is the trajectory line; c1(u,v) and c2(u,v) are plane sections; N and B are two unit vectors on the active frame (also called the local coordinate system) moving along the trajectory line.
[0105] The function function area is also provided with a copy function, which is used to copy the instantiated point component, surface component and body component (three-dimensional component) objects and add them to another instantiated object.
[0106] The function function area is also provided with a moving function, which is used to move the modified instantiated point components, surface components and body components (three-dimensional components) to the position specified by the user.
[0107] like Figure 4 As shown, based on the embodiments of the above-mentioned modeling methods, the present invention provides corresponding device item embodiments;
[0108] An embodiment of the present invention provides a modeling device, including: a visual modeling interface generation module, a point component model generation module, a line component model generation module, a surface component model generation module and a target model generation module.
[0109] A visual modeling interface generation module is used to execute a software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a surface construction function response area and a component splicing function selection area;
[0110] A point component model generation module is used to generate a point component parameter input interface in response to a point construction function selection operation acting on a point construction function response area, and to obtain point component parameters in response to a point component parameter setting operation acting on the point component parameter input interface; and to generate a point component model in the model presentation area according to the point construction parameters;
[0111] A line component model generation module is used to generate a line component parameter input interface in response to a line construction function selection operation acting on a line construction function response area, and to obtain line component parameters in response to a line component parameter setting operation acting on the line component parameter input interface; and to generate a line component model in the model presentation area according to the line component parameters;
[0112] A surface component model generation module is used to generate a surface component parameter input interface in response to a surface construction function selection operation acting on a surface construction function response area, and to obtain surface component parameters in response to a surface component parameter setting operation acting on the surface component parameter input interface; and to generate a surface component model in the model presentation area according to the surface construction parameters;
[0113] The target model generation module is used to splice the component models in the model presentation area to generate the target model in response to the component splicing function selection operation acting on the component splicing function response area.
[0114] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0115] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0116] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A modeling method, characterized in that: include: Executing the software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a line construction function response area, a surface construction function response area, and a component splicing function response area; In response to a first point construction function selection operation acting on a point construction function response area, a three-dimensional coordinate vector array input interface is generated, and in response to a three-dimensional coordinate vector array setting operation acting on the three-dimensional coordinate vector array input interface, a three-dimensional coordinate vector array is acquired; a point component model is generated in the model presentation area according to the three-dimensional coordinate vector array; wherein the point construction function response area is provided with a first point construction function; In response to a line construction function selection operation acting on a line construction function response area, a line component parameter input interface is generated, and in response to a line component parameter setting operation acting on the line component parameter input interface, line component parameters are acquired; and a line component model is generated in the model presentation area according to the line component parameters; In response to a surface construction function selection operation acting on a surface construction function response area, a surface component parameter input interface is generated, and in response to a surface component parameter setting operation acting on the surface component parameter input interface, surface component parameters are obtained; and a surface component model is generated in the model presentation area according to the surface construction parameters; In response to the component splicing function selection operation acting on the component splicing function response area, each component model in the model presentation area is spliced to generate a target model; Wherein, the line construction function response area is provided with a first line construction function, then in response to the first line construction function selection operation acting on the line construction function response area, a line construction parameter input interface is generated, and in response to the line construction parameter setting operation acting on the line construction parameter input interface, line construction parameters are obtained; a line component model is generated in the model presentation area according to the line construction parameters; wherein the line construction parameters include point positions, line vector directions and line lengths; The surface construction function response area is provided with a first surface construction function, and in response to the first surface construction function selection operation acting on the surface construction function response area, an input interface for a first plane construction parameter is generated, and in response to the first plane construction parameter setting operation acting on the first plane construction parameter input interface, the first plane construction parameter is obtained; a circular surface component model is generated in the model presentation area according to the first plane construction parameter; wherein the first plane construction parameter includes an origin position and a radius of the circular surface component.
2. A modeling method according to claim 1, characterized in that: The surface building function area is provided with a second surface building function; In response to a first selection operation on a plurality of line component models in the model presentation area, the selected plurality of line component models are used as line component models to be closed; In response to the second surface construction function selection operation acting on the surface construction function area, the line component models to be closed are spliced to form a closed surface component model.
3. A modeling method according to claim 1, characterized in that: The function selection area is also provided with a component rendering function; In response to a selection operation on a combined surface construction model in the model rendering area, the selected combined surface construction model is used as a model to be rendered; wherein the combined surface construction model includes two sets of overlapping surfaces; In response to a component rendering function selection operation acting on a function selection area, an unobstructed side of the model to be rendered is defined as an outer group, and an obstructed side of the model to be rendered is defined as an inner group. After rendering the outer group and the inner group, a rendered component model is generated in the model presentation area.
4. A modeling method as claimed in claim 3, characterized in that: After rendering the outer group and the inner group, a rendered component model is generated in the model rendering area, as follows: Draw several vertices of the outer group, and generate the coordinates of the outer group vertices according to the several vertices of the outer group; Draw several vertices of the inner group, and generate the coordinates of the inner group vertices according to the several vertices of the inner group; Get the rendering range according to the outer group vertex coordinates and the inner group vertex coordinates; After rendering the outer group and the inner group according to the rendering range, a rendered component model is generated in the model rendering area.
5. A modeling method according to claim 1, characterized in that: The visual modeling interface also includes a material selection area, and the function selection area is also provided with a material setting function; In response to a second selection operation of a component model acting on the model presentation area, the selected component model is used as a component to be material-set; In response to a selection operation acting on a response area of a material setting function, a material selection interface is generated; In response to a selection operation of a target material on a material selection interface, a target material is obtained; The material setting component to be material set is performed according to the target material.
6. A modeling method according to claim 1, characterized in that: In response to the component splicing function selection operation acting on the component splicing function response area, the component models in the model presentation area are spliced to generate a target model, specifically including: In response to the third selection operation on each component model in the model presentation area, each selected component model is used as a component model to be spliced; In response to the component splicing function selection operation acting on the component splicing function response area, each component model to be spliced is matched with a preset solid three-dimensional picture to obtain the connection relationship and relative position relationship between the component models to be spliced; The component models to be spliced are spliced according to the connection relationship and relative position relationship of the component models to generate a target model.
7. A modeling device, characterized in that: include: Visual modeling interface generation module, point component model generation module, line component model generation module, surface component model generation module and target model generation module; A visual modeling interface generation module is used to execute a software application to generate a visual modeling interface; wherein the visual modeling interface includes: a model presentation area and a function selection area; the function selection area includes: a point construction function response area, a surface construction function response area and a component splicing function selection area; A point component model generation module is used to generate a three-dimensional coordinate vector array input interface in response to a first point construction function selection operation acting on a point construction function response area, and to obtain a three-dimensional coordinate vector array in response to a three-dimensional coordinate vector array setting operation acting on the three-dimensional coordinate vector array input interface; generate a point component model in the model presentation area according to the three-dimensional coordinate vector array; wherein the point construction function response area is provided with a first point construction function; A line component model generation module is used to generate a line component parameter input interface in response to a line construction function selection operation acting on a line construction function response area, and to obtain line component parameters in response to a line component parameter setting operation acting on the line component parameter input interface; and to generate a line component model in the model presentation area according to the line component parameters; A surface component model generation module is used to generate a surface component parameter input interface in response to a surface construction function selection operation acting on a surface construction function response area, and to obtain surface component parameters in response to a surface component parameter setting operation acting on the surface component parameter input interface; and to generate a surface component model in the model presentation area according to the surface construction parameters; A target model generation module is used to splice the component models in the model presentation area to generate a target model in response to a component splicing function selection operation acting on the component splicing function response area; The line construction function response area is provided with a first line construction function, and the line component model generation module is further used to generate a line construction parameter input interface in response to the first line construction function selection operation acting on the line construction function response area, and to obtain line construction parameters in response to the line construction parameter setting operation acting on the line construction parameter input interface; and to generate a line component model in the model presentation area according to the line construction parameters; wherein the line construction parameters include point positions, line vector directions and line lengths; The surface construction function response area is provided with a first surface construction function, and the surface component model generation module is used to generate an input interface for a first plane construction parameter in response to a first surface construction function selection operation acting on the surface construction function response area, and to obtain the first plane construction parameter in response to a first plane construction parameter setting operation acting on the first plane construction parameter input interface; a circular surface component model is generated in the model presentation area according to the first plane construction parameter; wherein the first plane construction parameter includes an origin position and a radius of the circular surface component.
