[go: up one dir, main page]

CN118447165A - Model generation method and related device - Google Patents

Model generation method and related device Download PDF

Info

Publication number
CN118447165A
CN118447165A CN202410616341.5A CN202410616341A CN118447165A CN 118447165 A CN118447165 A CN 118447165A CN 202410616341 A CN202410616341 A CN 202410616341A CN 118447165 A CN118447165 A CN 118447165A
Authority
CN
China
Prior art keywords
graph
graphic
model
target model
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410616341.5A
Other languages
Chinese (zh)
Inventor
尹鹏宇
卢协同
王朔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tuozhu Technology Co Ltd
Original Assignee
Shenzhen Tuozhu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tuozhu Technology Co Ltd filed Critical Shenzhen Tuozhu Technology Co Ltd
Priority to CN202410616341.5A priority Critical patent/CN118447165A/en
Publication of CN118447165A publication Critical patent/CN118447165A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/08Projecting images onto non-planar surfaces, e.g. geodetic screens

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a model generation method and a related device, wherein the model generation method is implemented by determining a bottom surface generation mode of at least one first graph in a 2D form; generating the bottom surface of the at least one first graph according to the bottom surface generating mode to obtain a second graph; and finally, generating a 3D-form target model according to the second graph. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved.

Description

Model generation method and related device
Technical Field
The application belongs to the technical field of 3D printing, and particularly relates to a model generation method and a related device.
Background
Currently, 3D printers are often used to print desktop containers, and there are also more containers for model sharing in a 3D model sharing platform. However, the storage requirement is determined according to the stored articles, so that the storage requirement is different for each user, and the same user has different storage requirements under different scenes. Neither of the storage models on the 3D model sharing platform supports customization. The use of modeling tools to design such models is also a high threshold and requires high learning costs.
Disclosure of Invention
The application provides a model generation method and a related device, which are used for reducing the operation complexity of a custom storage box model and improving the model generation efficiency.
In a first aspect, the present application provides a model generating method, including:
determining a bottom surface generation mode of at least one first graph; wherein each first graphic is a 2D graphic, and the at least one first graphic is placed on a two-dimensional canvas;
Generating the bottom surface of the at least one first graph according to the bottom surface generation mode to obtain a second graph; wherein the bottom surface connects the at least one first graphic together to form a unitary body, the second graphic comprising the at least one first graphic and the bottom surface;
And generating a target model according to the second graph, wherein the target model is a 3D graph.
In a second aspect, the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps of the first aspect of the application.
In a third aspect, the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of the application.
In a fourth aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps described in the first aspect of the application. The computer program product may be a software installation package or app.
It can be seen that in the present application, the method of generating the bottom surface of the first pattern in at least one 2D form is first determined; generating the bottom surface of the at least one first graph according to the bottom surface generating mode to obtain a second graph; and finally, generating a 3D-form target model according to the second graph. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic diagram of a model generating device according to an embodiment of the present application;
FIG. 1b is a schematic diagram of a model generating system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a model generating method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a graphical interface provided by an embodiment of the present application;
FIG. 4a is a schematic diagram illustrating a bottom frame width of zero according to an embodiment of the present application;
FIG. 4b is a schematic diagram of a bottom side frame width greater than zero according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a second flare point determination provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of another graphical interface provided by an embodiment of the present application;
FIG. 7 is a diagram illustrating an application of a connector provided in an embodiment of the present application to a target model;
FIG. 8 is a schematic diagram of another model generating apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, system, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Currently, 3D printers are often used to print desktop containers, and there are also more containers for model sharing in a 3D model sharing platform. However, the storage requirement is determined according to the stored articles, so that the storage requirement is different for each user, and the same user has different storage requirements under different scenes. Neither of the storage models on the 3D model sharing platform supports customization. The use of modeling tools to design such models is also a high threshold and requires high learning costs.
In the prior art, a technical scheme of a storage box customized by modularization exists, but the flexibility and the customization degree of the form are general and can only be the combination of the existing independent units; after printing, the storage box is connected by a buckle, and the stability and the reliability are inferior to those of the storage box formed integrally.
In addition, there are solutions from the main design of the case styles through 3D object model modeling software, but 3D modeling software tends to be highly specialized, and it is not practical for an average user to design the case using these modeling software.
For example, a 3D modeling software Fus 360, which generally interacts by drawing a sketch of a 2D object model of the object model, then performing an extrusion operation, and then removing unwanted parts by boolean operations; if the wall thickness of the storage box is better controlled, a shell drawing function and the like may be needed; after the model is generated, the subsequent adjustment is difficult to operate, because the common CAD software has insufficient support for parameterization.
For another example, a 3D modeling software OpenSCAD object model, openSCAD object model is a code-based object model 3D object model modeling software; the OpenSCAD target model is good at parameterized modeling relative to other modeling software. After the creator designs a storage model by using codes, a user can adjust parameters to generate a storage box meeting the needs of the user. However, since the parameter adjustment of the software is based on codes, the threshold is higher than that of the general target model 3D target model modeling software, the user can only customize the separation, and the flexibility and the customization degree are also general.
In order to solve the above problems, an embodiment of the present application provides a model generation method. The model generation method can be applied to a scene for generating a customized model. The manner of generating the bottom surface of the first graph in the form of at least one 2D can be determined; generating the bottom surface of the at least one first graph according to the bottom surface generating mode to obtain a second graph; and finally, generating a 3D-form target model according to the second graph. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved. The present solution may be applicable to model generation of a variety of scenarios, e.g., cases, boxes, shelves, etc., including, but not limited to, the application scenarios mentioned above.
The system architecture to which the embodiments of the present application relate is described below.
Referring to fig. 1a, the present application provides a model generating apparatus 10, where the model generating apparatus 10 includes a processing unit 11 and a display unit 12, and the display unit 12 is configured to display a graphical interface, where the graphical interface includes a toolbar, a two-dimensional canvas, and a preview area, the two-dimensional canvas is configured to place a first graphic and/or a second graphic in a 2D form, and the preview area is configured to generate a 3D form of a target model based on the second graphic.
Specifically, the user operates the drawing tool in the toolbar, and then the processing unit 11 responds to the corresponding operation to generate the first graph and/or the second graph on the two-dimensional canvas, and then the processing unit 11 automatically generates the target model in the preview area for the user to view or edit. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved.
Referring to fig. 1b, the present application further provides a model generating system 20, where the model generating system 20 includes a server 21 and a client device 22, and the client device 22 includes a display unit 23, where the display unit 23 is configured to display a graphical interface, and the graphical interface includes a toolbar, a two-dimensional canvas, and a preview area, where the two-dimensional canvas is configured to place a first graphic and/or a second graphic in a 2D form, and the preview area is configured to generate a 3D form of the target model based on the second graphic. The server 21 maintains a corresponding web page, APP or software.
Specifically, the user operates the drawing tool in the toolbar on the client device 22 to send a corresponding operation instruction to the server 21; the server 21 generates corresponding image data in response to the operation instruction, and transmits the image data to the client device 22; after receiving the image data, the client device 22 displays the corresponding first graphic and/or second graphic on the two-dimensional canvas and displays the corresponding target model on the preview area. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved.
The specific method is described in detail below.
Referring to fig. 2, the present application further provides a model generating method, including:
step S201, determining a bottom surface generating mode of at least one first pattern.
Wherein each first graphic is a 2D graphic, and the at least one first graphic is placed on a two-dimensional canvas.
In a specific implementation, please refer to fig. 3 together, before determining a bottom surface generating manner of at least one first graph, a user may enter a graphical interface 100 corresponding to the model generating method of the present application through software or APP installed in a model generating device or a client device; the client device may also input a web page corresponding to the corresponding web address entering the graphical interface 100, so as to enter the graphical interface 100. Wherein the graphical interface includes a toolbar 130 and the two-dimensional canvas 110; the toolbar 130 includes a plurality of controls (e.g., a-F. In fig. 3) corresponding to a plurality of drawing tools, each for selecting a drawing function of a corresponding drawing tool, the drawing function for generating or editing the first graphic and/or the second graphic.
Specifically, the two-dimensional canvas 110 is a virtual hotbed corresponding to the hotbed of the 3D printer, and the two-dimensional canvas 110 has a scaled relationship with the hotbed size of the 3D printer in equal proportion. It is understood that the dimensions of the two-dimensional canvas 110 may be adjusted as desired to the dimensions of any 3D printer model. The user may refer to the size of the printed finished product according to the two-dimensional canvas 110.
Further, for example, the toolbar 130 may include a base graphic control, a brush control, a special graphic control, and a bottom surface control.
The user may display a basic graphical selection interface on the graphical interface 100 by clicking on the basic graphical control, where the basic graphical selection interface includes various basic graphical sub-controls, including but not limited to sub-controls of square, rectangle, diamond, circle, triangle, polygon, etc., without limitation. The user may select the corresponding base graphic child control by clicking or the like to generate a first graphic corresponding to the base graphic child control on the two-dimensional canvas 110. As shown in FIG. 3, clicking on the base graphic sub-control corresponding to the hexagon, the first graphic displayed on the two-dimensional canvas 110 is a hexagon (112-1); clicking the basic graphic sub-control corresponding to the triangle, and displaying a first graphic on the two-dimensional canvas 110, wherein the first graphic is the triangle (112-2); clicking a basic graphic sub-control corresponding to the rectangle, and displaying a first graphic on the two-dimensional canvas 110, wherein the first graphic is the rectangle (112-3); other figures are similar and will not be described in detail herein.
The user can manually draw the corresponding first graph on the two-dimensional canvas 110 by clicking the brush control to convert the mouse into a brush, connecting points can be automatically configured on the drawn line segments each time, and different line segments can be connected through the connecting points. It can be understood that the brush tool is a mature drawing tool, and the brush in this embodiment has all functions of the brush tool in the prior art, which is not described herein.
The user may display a special graphical selection interface on graphical interface 100 by clicking on a special graphical control, the special graphical selection interface including a plurality of special graphical controls including, but not limited to, sub-controls such as a round-outside-inside or square-outside-inside graphic, and the like, without limitation. The user may generate a first graphic corresponding to the special graphic sub-control on the two-dimensional canvas 110 by clicking on the corresponding special graphic sub-control. As shown in FIG. 3, clicking on the special graphic sub-control corresponding to the inside and outside of the circle causes the first graphic to be displayed on the two-dimensional canvas 110 as the inside and outside graphic (112-4), and other graphics are the same and will not be described in detail herein.
In one possible embodiment, the outer contour of the first graphic has a thickness, which is the wall thickness of the target model 121, which is adjusted by a drawing tool, an attribute bar, or a mouse.
In a specific implementation, when a user selects a corresponding graphic by clicking a corresponding control, or when the user draws the graphic, a first graphic with an outline thickness is directly generated on the two-dimensional canvas 110. For example, when a rectangle is selected, two concentric rectangles with equal proportion are generated, the two concentric rectangles form a first graph, and the outer contour distance of the two concentric rectangles is the outer contour thickness of the first graph. For another example, when the line is drawn by the drawing tool, the line is directly a line with a preset width, the line is similar to a rectangle, and the preset width is the thickness of the line.
In addition, there is another case. The first pattern is a single-line pattern, a concentric pattern extends on the basis of the first pattern, the distance between the concentric pattern and the first pattern is the wall thickness of the target model 121, and the thickness is adjusted by a drawing tool, an attribute bar or a mouse.
In a specific implementation, when a user selects a corresponding graphic by clicking a corresponding control, or when the user draws a graphic, the first graphic generated on the two-dimensional canvas 110 is a single line graphic. After the user confirms that the pattern placement is completed or the drawing is completed, the pattern is converted into a concentric pattern with the thickness of the outer contour. And after generating the concentric pattern, the user may adjust the first pattern via a drawing tool, an attribute bar, or a mouse.
It can be seen that in this embodiment, the wall thickness can be automatically generated for the first graph, so as to meet the design requirement of the storage box, and the manual drawing is not required, so that the operation complexity of the self-defined storage box model is reduced.
Specifically, the at least one first graphic includes a plurality of corner coordinates, where the plurality of corner coordinates are used to generate the bottom surface 111; the corner coordinates of the curve part of the first graph are sampling points of the curve part; and the vertex coordinates of the non-curve part of the first graph are corner coordinates.
In a specific implementation, for any one of at least one first graph, if the first graph does not contain a curve, directly using a vertex in the first graph as a corner point. The first graph, which does not contain curves, includes, but is not limited to: rectangle without fillets, hexagon, triangle, line segment, other polygons.
Vertices are described in specific examples. Taking a rectangle as an example, the rectangle comprises four vertexes, and each vertex is the intersection point of two adjacent sides. Taking a hexagon as an example, the hexagon includes six vertices, each vertex being the intersection of two adjacent edges. Taking a multi-segment line as an example, the vertex of the multi-segment line refers to the intersection point of two adjacent line segments and two end points of the multi-segment line.
If the first graph includes curves, performing discretization sampling on the curves in the first graph, specifically, sampling a point at intervals of a preset distance to obtain at least one sampling point, and taking the sampled vertex as a corner point. Such patterns include: rectangle, circle, arc, irregular curve, etc. containing rounded corners. Taking a rectangle with round corners as an example, sampling can be performed at the center points of four round corners of the rectangle with round corners, so as to obtain the corner point coordinates of the rectangle with round corners. Taking a circle as an example, the circle can be divided into four equal parts to obtain four sectors, and the intersection points of the circular arcs of the sectors are determined as the corner points of the circle. Taking the arc as an example, two ends and a center point of the arc are taken as corner points of the arc.
Further, after editing the first graphics on the two-dimensional canvas 110 is completed, the corner coordinates on each first graphics are automatically obtained; and then the user can call out an attribute column of at least one first graph through a right key or a preset control, wherein the attribute column comprises a plurality of attribute adjustment controls, the attribute adjustment controls are used for adjusting the shape of the first graph or the shape of the bottom surface, the attribute adjustment controls can be input boxes, drop-down boxes, buttons and the like, the attribute adjustment controls comprise, but are not limited to, length, width, height, inner side width, outer side width, inner side height, outer side height, depth and angle.
The first graphic attribute and the bottom attribute can be configured through the attribute column, and the bottom attribute comprises a bottom border width and a bottom generating mode. The bottom surface generation mode can be selected in a form of a drop-down box, or can be selected in a form of clicking a corresponding control. The first graphic attribute, the width of the bottom border, etc. can be selected by means of an input box. It should be understood that these attribute input modes are merely examples, and other input modes are possible, which are not limited herein.
And step S202, generating the bottom surface of the at least one first graph according to the bottom surface generation mode to obtain a second graph.
With continued reference to fig. 3, the bottom surface 111 connects the at least one first pattern together to form a whole, and the second pattern includes the at least one first pattern and the bottom surface 111.
In a specific implementation, after the user selects a generating manner of the bottom surface 111 for the at least one first graphic, the bottom surface 111 corresponding to the at least one first graphic is automatically generated on the two-dimensional canvas 110. Specifically, the bottom surface 111 may be generated in various ways, including, but not limited to, a bounding box algorithm, a convex hull algorithm, an edge-expansion algorithm, and the like, which are not limited to uniqueness.
The manner of generating the bottom surface will be described below by way of specific examples.
Mode one:
The bottom surface is a rectangle formed by a first coordinate and a second coordinate which are diagonal lines; the abscissa value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the ordinate value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the abscissa value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, and the ordinate value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame.
The width of the bottom side frame refers to the distance of the bottom side edge expanding outwards on the basis of the outer contour of the first graph.
In specific implementation, traversing a plurality of corner coordinates of at least one first graph, and recording an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value in the plurality of corner coordinates. The first coordinate is then constructed based on the abscissa minimum and the ordinate minimum, and the second coordinate is constructed based on the abscissa maximum and the ordinate maximum. And then constructing a corresponding rectangle by taking the first coordinate and the second coordinate as diagonal lines, namely, completely surrounding at least one first graph. And finally, generating the rectangular expansion graph based on the width of the bottom frame, and obtaining the bottom surface of at least one first graph.
Further, four corners of the rectangle are rounded corners. After the bottom surface of the rectangle is generated according to the first coordinate and the second coordinate, the four corners of the rectangle can be rounded, the rounded treatment can be triggered by rounded controls in the plurality of controls, the bottom surface generation mode can be selected, or the attribute bar can be called for selection, or other modes are not limited in uniqueness. When the four corners of the rectangle are rounded corners, the first coordinate and the second coordinate are intersections of extension lines of the long side and the wide side of the rectangle.
Mode two:
The bottom surface is a graph obtained by executing a convex hull algorithm by a plurality of first outward expansion points of the plurality of corner coordinates, and the plurality of first outward expansion points are obtained by outward expansion by taking the width of a bottom surface frame as a distance on the basis of the plurality of corner coordinates.
In specific implementation, traversing a plurality of corner coordinates of at least one graph, and concentrically expanding the corner of each first image by taking the width of a bottom frame as a distance to obtain first expansion points corresponding to all the corner coordinates of each first graph so as to determine a plurality of first expansion point coordinates. Forming an outer expansion point set by the first outer expansion point coordinates, and generating a convex hull graph of the outer expansion point set by Jarvi s steps to obtain the bottom surface of at least one first graph. It will be appreciated that the convex hull pattern may also be generated by other algorithms, such as the (GIFT WRAPPING Algor ithm) gift wrapping algorithm, or the (Andrew's Algor ithm) andelu algorithm, without limitation of uniqueness. The concentric expansion distance can be adjusted by attribute bars, controls, command symbols, etc. as needed, and is not limited herein.
In one case, the concentric outer expansion distance may be zero, and then the convex hull pattern is determined directly by using a plurality of corner points as a set through a convex hull algorithm.
For example, when the concentric outer expansion distance is zero, as shown in fig. 4a, determining the outermost corner points of the plurality of corner points in the three first graphs (112-5, 112-6 and 112-7 in the figure) by a convex hull algorithm, sequentially connecting the outermost corner points of the corresponding plurality of corner points to obtain a bottom surface 111-1, wherein the outline of the bottom surface 111-1 does not exceed the peripheral outline of the first graph, that is, the bottom surface 111-1 and the outermost corner points are defined. After the second graphic is converted into the object model, the first graphic 112-5, the first graphic 112-6, and the first graphic 112-7 are respectively converted into the sub-model 121-1, the sub-model 121-2, and the sub-model 121-3, and the bottom surface 111-1 is converted into the model bottom surface 122-1.
When the outer expansion distance is greater than zero, as shown in fig. 4b, first outer expansion points are generated based on the angular points according to the concentric outer expansion distance to obtain a plurality of first outer expansion points, then the first outer expansion points at the outermost periphery of the plurality of first outer expansion points are determined to obtain an outer expansion point set, a bottom surface 111-2 in the figure is generated based on the outer expansion point set, and a frame with a certain width exists between the outline of the bottom surface 111-2 and the outline of the three first patterns. After the second graphic is converted into the object model, the first graphic 112-5, the first graphic 112-6, and the first graphic 112-7 are respectively converted into the sub-model 121-1, the sub-model 121-2, and the sub-model 121-3, and the bottom surface 111-2 is converted into the model bottom surface 122-2.
Mode three:
The bottom surface is a polygon formed by the intersection points of a plurality of concentric expansion patterns generated by the angular point coordinates, the concentric expansion patterns are obtained by forming a closed pattern based on the connection lines of a plurality of second expansion points, and the plurality of second expansion points are obtained by performing expansion operation on the angular point coordinates along the normal direction of the first pattern by taking the width of the bottom surface frame as the distance.
In a specific implementation, for each first graph, a closed path is generated based on the corner coordinates of each first graph. Traversing points on the closed path, and calculating the normal direction corresponding to each corner point through the adjacent points of each corner point. And then, performing outward expansion operation along the normal direction of the first graph by taking the width of the bottom frame as a distance based on each corner point coordinate to obtain second outward expansion points corresponding to each corner point, and finally obtaining a plurality of second outward expansion points. Then using a winding number algorithm to exclude points in the closed path; and then sequentially connecting all the traversed second expansion points to obtain a closed outer edge path. The union of the outer edge paths may be the bottom surface. The method comprises the steps of firstly determining a plurality of corner points of the outer contour of each first graph, then carrying out concentric expansion on each corner point by taking the width of a bottom frame as a distance to obtain a plurality of second expansion points which are concentric with the corner points, and then sequentially connecting the plurality of second expansion points to obtain concentric expansion graphs with the same shape as the contour of the corresponding first graph.
Taking a hexagon as an example, taking the hexagon as shown in fig. 5, forming a closed pattern based on corner points to obtain a hexagon, traversing the frame of the hexagon to sample a plurality of sampling points, determining the direction of a method phase B based on the sampling points adjacent to each corner point, and then copying a second expansion point of the corresponding corner point with the width of the frame of the bottom surface as a distance along the normal direction. Taking the corner point A1 as an example, the second expansion point A1' is obtained by copying the corner points along the normal direction and taking the width of the bottom frame as the distance, and other corner points are the same and are not described in detail herein. It will be appreciated that the width of the bottom border may be adjusted as desired via attribute bars, controls, commanders, etc.
In another case, the width of the bottom frame may be zero or greater than zero. When the width of the bottom side frame is zero, the outline of the bottom side does not exceed the peripheral outline of the first graph, namely, the bottom side and the corner points at the outermost periphery are used as boundaries; when the width of the border of the bottom surface is larger than zero, the outline of the bottom surface and the outlines of the three first patterns are provided with borders with certain width. The width of the bottom frame is similar to that of the second mode, and will not be described here again.
Mode four:
When the plurality of first patterns do not have a connection relationship, and when the at least one first pattern does not have a connection relationship, the bottom surface is formed by at least one sub-bottom surface generated by the at least one first pattern, and the at least one sub-bottom surface does not have a connection relationship.
In a specific implementation, when a plurality of first graphics exist on the two-dimensional canvas, if the plurality of first graphics do not contact each other, or the plurality of first graphics do not contact each other when drawing, but separation is needed when generating the target model, each of the plurality of first graphics can be respectively generated into a corresponding sub-bottom surface, so as to obtain a plurality of sub-bottom surfaces. The plurality of sub-bottom surfaces are separated and have no connection relationship. Therefore, a plurality of mutually independent models can be generated at one time, and the operation time of a user is saved.
As shown in fig. 6, taking an example that three first graphics (112-5, 112-6 and 112-7 in fig. 6) are placed on a two-dimensional canvas, the three first graphics do not have any contact or connection, so that when a bottom surface is generated, the first graphics 112-5 correspondingly generate a sub bottom surface 111-5, and the size of the sub bottom surface 111-5 is consistent with the outline of the first graphics 112-5; the first pattern 112-6 corresponds to the sub-bottom 111-6, and the size of the sub-bottom 111-6 is consistent with the outline of the first pattern 112-6; and since the first pattern 112-7 is not a closed pattern, its bottom surface coincides with itself (not shown in the figure).
After the bottom surface is generated, a corresponding second graph is obtained, and the second graph is converted into a target model, wherein the target model comprises three sub-models (121-1, 121-2 and 121-3 in fig. 6). Wherein the sub-model 121-1 comprises a three-dimensional bottom surface 121-5, and the size of the three-dimensional bottom surface 121-5 is consistent with the outer contour of the sub-model 121-1; the sub-model 121-2 includes a three-dimensional bottom surface 121-6, and the size of the three-dimensional bottom surface 121-6 is consistent with the outer contour of the sub-model 121-2; while the sub-model 121-3 includes a three-dimensional bottom surface (not shown) that coincides with itself.
It can be seen that, in this embodiment, the bottom surface of the first graphic may be generated in different manners, so as to improve flexibility and richness of the self-defining design of the storage box.
And step 203, generating a target model according to the second graph, wherein the target model is a 3D graph.
In one possible embodiment, the graphical interface 100 includes a preview area 120, the preview area 120 being used to display the target model 121.
In a specific implementation, after the second graph is obtained, the target graph is automatically generated according to the second graph, and is displayed in the preview area 120, so that the user can view or edit the 3D form of the target model 121, the second graph is a cross-sectional view of the target model 121, and the target model 121 can be generated by the second graph in a stretching manner. The object model 121 includes at least one sub-model, where the at least one sub-model corresponds to at least one first graphic, and each sub-model is a 3D graphic converted from the corresponding first graphic. Each of the at least one sub-model is a hollow cylinder, and the bottom surface of the at least one sub-model is enveloped by one surface of the at least one sub-model to obtain the storage box capable of carrying articles.
It is understood that the first graphic, the bottom surface, and the object model 121 may be all shaped by a mouse drag operation. For example, the operations such as stretching, shrinking, and rotating are performed by the control points generated on the first pattern, the bottom surface, and the target model 121. Copy, paste, delete, etc. operations may also be performed.
It can be seen that in the present application, the method of generating the bottom surface of the first pattern in at least one 2D form is first determined; generating the bottom surface of the at least one first graph according to the bottom surface generating mode to obtain a second graph; finally, a 3D form of the object model 121 is generated from the second graph. Therefore, the user only needs to edit the 2D graphics, the operation complexity of the self-defined storage box model is reduced, the 2D graphics are automatically converted into the 3D graphics, and the model generation efficiency is improved.
In one possible embodiment, the plurality of controls may further include a connector 122 control, the connector 122 control being configured to add a connector 122 to the target model 121, the connector 122 being configured to connect a plurality of separate target models 121 together.
In a specific implementation, after the target model 121 is obtained, the user may click on the control of the connecting piece 122 to generate a connecting piece 122 graph, and the user may place the connecting piece 122 graph on the target model 121 to add the connecting piece 122 to the target model 121, so that the storage box generated by the target model 121 may be spliced with other storage boxes provided with corresponding connecting pieces 122, to form a larger storage box. Wherein, when adding the connector 122, a first slot is directly generated at the position of the connector 122 of the target model to place the connector 122. The connection member 122 may be an embedded fixing, a snap fixing, a screw fixing, or other fixing methods, which are not limited herein.
As shown in fig. 7, the object model X1 and the object models X2, X3, X4 are all connected by the connecting member 122, that is, connected to the adjacent object model by the connecting member 122. It will be appreciated that the location of the connection 122 may be at the top of the rim of the target model, at the bottom of the target model, or at the sides, without limitation. In addition, the object models X2, X3, X4 and the object model X1 may be independently generated object models, or may be sub-models in the same larger object model, that is, the sub-models may be further added with the connecting piece 122, so that the sub-models are spliced with adjacent sub-models through the connecting piece 122.
It can be seen that, in this embodiment, a connecting piece is added to the target model 121 through a control of the connecting piece, so that the printed product can have a splicing function, so as to improve the expansion and combination capabilities of the product.
In a possible embodiment, the plurality of controls includes an upper cover generation control, where the upper cover generation control is used to generate an upper cover of the target model 121, and a shape of the upper cover is concentric with at least one of the first patterns, and the upper cover is further provided with a protrusion, and the protrusion is used to insert and/or envelope the first patterns, so as to fit the upper cover.
In a specific implementation, after the target model 121 is generated, an upper cover of the target model 121 may also be generated through an upper cover generation control, where the upper cover may generate different upper covers according to the shape of each first graph, or may cover a generating integrated upper cover of at least one first graph. For ease of use, when the height of at least one of the graphics is uniform, then an integral upper cover may be created; when the heights of at least one graph are inconsistent, a corresponding upper cover can be respectively generated for each first graph. It will be appreciated that the shape of the upper cover is adapted to the sub-model, and that the protrusions on the upper cover may be provided to fit tightly against the sub-model. It will be appreciated that the user may choose to generate an overlay for only one or more of the sub-models to meet the user's customisation needs.
In another case, the top cover of the target model 121 may be automatically generated when the target model 121 is generated, so that the user is not required to perform corresponding operations, but the flexibility of customization is reduced.
In another case, the upper cover is a structure independent of the target model, and the upper cover is placed on a reference plane parallel to a bottom surface of the target model. Thus, a plurality of parts can be included in one model, and the number of operations can be reduced. It can be understood that the upper cover can be a structure which is separated from the target model, and can be connected through the connecting piece, and the connecting piece can be a rotary structure, so that the upper cover can be opened and closed through the rotary structure, an opening of the target model is exposed when the upper cover is opened, and the opening of the target model is shielded when the upper cover is closed. The connector may also be other structures, such as a snap, adhesive, etc., without limitation.
It can be seen that in the present embodiment, by generating the upper cover for the target model 121, the customizable degree of the target model 121 is improved.
In one possible embodiment, the method further comprises:
after the target model 121 is obtained, first information corresponding to the first graph on the bottom surface in the 2D canvas and second information corresponding to the target model 121 are stored to a server.
In a specific implementation, after determining that the object model 121 has been edited, the object model 121 may be exported as a 3MF or STL file for download locally. The user can open the device by slicing software to perform slicing and printing.
The first information corresponding to the second graphic and the second information corresponding to the target model 121 are generated for the edited item, and stored in the server, and can be called from the server when the user needs to continue editing. The first information and the second information may be stored in the client device or the model generating apparatus, and may be called from the client device or the model generating apparatus when the user needs to continue editing.
The content of the elements (base graph, broken line drawn by the drawing pen, special graph, etc.) and the attributes of the elements in the two-dimensional canvas are recorded in context data, such as vector drawing, attributes, heights, etc. All operations of the user are the same as updating the data in context. When context changes, the generator redraws the shapes of the bottom plate and each element according to the data in the context in the 3D rendering engine, and stretches the graph into a hollow three-dimensional model (namely a target model) with wall thickness according to the height set by a user.
The user's modifications are automatically saved to the server. When the data needs to be stored, the generator sequences the data in context into JSON and uploads the JSON to the server. When the user reopens the previously edited item, the generator pulls the previously serialized JSON data from the server, after deserialization, adds the element to the two-dimensional canvas, and triggers the update of the three-dimensional model.
It can be seen that, in this embodiment, the project file corresponding to each target model 121 can be updated and saved in real time, so that the user can continue to view or edit later, and the risk of data loss is avoided.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the mobile electronic device, in order to achieve the above-described functionality, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Referring to fig. 8, the present application further provides a model generating apparatus 40, including:
A determining unit 41 that determines a bottom surface generation manner of at least one first pattern; wherein each first graphic is a 2D graphic, and the at least one first graphic is placed on a two-dimensional canvas;
A generating unit 42, configured to generate a bottom surface of the at least one first pattern according to the bottom surface generating manner, so as to obtain a second pattern; wherein the bottom surface connects the at least one first graphic together to form a unitary body, the second graphic comprising the at least one first graphic and the bottom surface; and generating a target model according to the second graph, wherein the target model is a 3D graph.
Specifically, the two-dimensional canvas is disposed in a graphical interface, the graphical interface including a toolbar 130 and the two-dimensional canvas; the toolbar 130 includes a plurality of controls corresponding to a plurality of drawing tools, each control being used to select a drawing function of the corresponding drawing tool, the drawing function being used to generate or edit the first graphic and/or the second graphic.
The plurality of controls comprise upper cover generation controls, the upper cover generation controls are used for generating an upper cover of the target model, the shape of the upper cover is concentrically arranged with at least one first graph, the upper cover is further provided with a convex part, and the convex part is used for inserting and/or enveloping the first graph so as to be matched and assembled with the upper cover.
The plurality of controls comprise a connector control, the connector control is used for adding a connector to the target model, and the connector is used for connecting a plurality of separated target models together; or the graphical interface comprises a preview area, wherein the preview area is used for displaying the target model; or the graphical interface comprises an attribute column, wherein the attribute column comprises a plurality of attribute adjustment controls, and the attribute adjustment controls are used for adjusting the shape of the first graph or the shape of the bottom surface; or the first graph, the bottom surface and the target model are all used for adjusting the shape by a mouse dragging operation.
The thickness exists in the outer outline of the first graph, the thickness is the wall thickness of the target model, and the thickness is adjusted through a drawing tool, an attribute bar or a mouse; or alternatively
The first graph is a single-line graph, concentric graphs extend out on the basis of the first graph, the distance between the concentric graphs and the first graph is the wall thickness of the target model, and the thickness is adjusted through a drawing tool, an attribute column or a mouse.
The at least one first graph comprises a plurality of corner coordinates, and the plurality of corner coordinates are used for generating the bottom surface; the corner coordinates of the curve part of the first graph are sampling points of the curve part; and the angular point coordinates of the non-curve part of the first graph are vertex coordinates.
The bottom surface is a rectangle formed by a first coordinate and a second coordinate which are diagonal lines; the abscissa value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the ordinate value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the abscissa value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, and the ordinate value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame.
The bottom surface is a graph obtained by executing a convex hull algorithm by a plurality of first outward expansion points of the plurality of corner coordinates, and the plurality of first outward expansion points are obtained by outward expansion by taking the width of a bottom surface frame as a distance on the basis of the plurality of corner coordinates.
The bottom surface is a polygon formed by the intersection points of a plurality of concentric expansion patterns generated by the angular point coordinates, the concentric expansion patterns are obtained by forming a closed pattern based on the connection lines of a plurality of second expansion points, and the plurality of second expansion points are obtained by performing expansion operation on the angular point coordinates along the normal direction of the first pattern by taking the width of the bottom surface frame as the distance.
The method further comprises the steps of: after the target model is obtained, storing first information corresponding to the first graph and second information corresponding to the target model according to the bottom surface in the 2D canvas.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
The present application also provides an electronic device 50, as shown in FIG. 9, comprising at least one processor (processor) 51; a display screen 52; and a memory (memory) 53, which may further include a communication interface (communication I NTERFACE) 55 and a bus 54. Wherein the processor 51, the display 52, the memory 53 and the communication interface 55 may communicate with each other via a bus 54. The display screen 52 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 55 may transmit information. The processor 51 may call logic instructions in the memory 53 to perform the methods of the above-described embodiments.
Alternatively, the electronic device 50 may be a mobile electronic device, or may be an electronic device or other device, which is not limited in uniqueness herein.
Further, the logic instructions in the memory 53 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory 53, as a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 51 executes functional applications and data processing, i.e. implements the methods of the above embodiments, by running software programs, instructions or modules stored in the memory 53.
The memory 53 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the electronic device 50, and the like. Further, the memory 53 may include a high-speed random access memory, and may also include a nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, magnetic disk, optical disk, volatile memory or nonvolatile memory. The nonvolatile memory may be read-only memory (ROM), programmable read-only memory (programmab le ROM, PROM), erasable programmable read-only memory (erasab le PROM, EPROM), electrically erasable programmable read-only memory (E LECTR ICA L LY EPROM, EEPROM), or flash memory, among others. The volatile memory may be random access memory (random access memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of random access memory (random access memory, RAM) are available, such as static random access memory (STAT IC RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (doub LEDATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH L INK DRAM, SLDRAM), and direct memory bus random access memory (d i rect rambus RAM, DR RAM). Etc. various media in which program code may be stored.
Although the present invention is disclosed above, the present invention is not limited thereto. Variations and modifications, including combinations of the different functions and implementation steps, as well as embodiments of the software and hardware, may be readily apparent to those skilled in the art without departing from the spirit and scope of the invention.

Claims (14)

1. A model generation method, characterized by comprising:
determining a bottom surface generation mode of at least one first graph; wherein each first graphic is a 2D graphic, and the at least one first graphic is placed on a two-dimensional canvas;
Generating the bottom surface of the at least one first graph according to the bottom surface generation mode to obtain a second graph; wherein the bottom surface connects the at least one first graphic together to form a unitary body, the second graphic comprising the at least one first graphic and the bottom surface;
And generating a target model according to the second graph, wherein the target model is a 3D graph.
2. The method of claim 1, wherein the two-dimensional canvas is disposed in a graphical interface, the graphical interface comprising a toolbar and the two-dimensional canvas;
The toolbar comprises a plurality of controls corresponding to a plurality of drawing tools, each control is used for selecting a drawing function of the corresponding drawing tool, and the drawing function is used for generating or editing the first graph and/or the second graph.
3. The method of claim 2, wherein the plurality of controls includes a cover generation control for generating a cover of the target model, the cover having a shape concentric with at least one of the first graphics, the cover further having a protrusion for inserting and/or enveloping the first graphics for mating fitting the cover.
4. A method according to claim 3, wherein the cover is a structure independent of the target model, the cover being placed on a reference plane parallel to the bottom surface of the target model.
5. The method of claim 2, wherein the plurality of controls includes a connector control for adding a connector to the target model, the connector for connecting a plurality of separate target models together; or alternatively
The graphical interface comprises a preview area, wherein the preview area is used for displaying the target model; or alternatively
The graphical interface comprises an attribute bar, wherein the attribute bar comprises a plurality of attribute adjustment controls, and the attribute adjustment controls are used for adjusting the shape of the first graph or the shape of the bottom surface; or alternatively
The first graph, the bottom surface and the target model are all used for adjusting shapes by mouse dragging operation.
6. The method of claim 1, wherein the first graphic has a thickness, the thickness being a wall thickness of a portion of the object model corresponding to the first graphic, the thickness being adjusted by a drawing tool, an attribute bar, or a mouse; or alternatively
The first graph is a single-line graph, concentric graphs extend out on the basis of the first graph, the distance between the concentric graphs and the first graph is the wall thickness of a part corresponding to the first graph in the target model, and the thickness is adjusted through a drawing tool, an attribute bar or a mouse.
7. The method of claim 1, wherein the at least one first graphic comprises a plurality of corner coordinates for generating the bottom surface;
The corner coordinates of the curve part of the first graph are sampling points of the curve part;
and the vertex coordinates of the non-curve part of the first graph are corner coordinates.
8. The method of claim 7, wherein the bottom surface is rectangular with a diagonal of the first and second coordinates; or the bottom surface is a rectangle formed by taking a first coordinate and a second coordinate as diagonal lines, and four corners of the rectangle are rounded corners;
The abscissa value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the ordinate value of the first coordinate is equal to the minimum value of the abscissas of the plurality of angular point coordinates minus the width of the bottom surface frame, the abscissa value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates plus the width of the bottom surface frame, and the ordinate value of the second coordinate is equal to the maximum value of the abscissas of the plurality of angular point coordinates plus the width of the bottom surface frame.
9. The method of claim 7, wherein the bottom surface is a graph obtained by performing a convex hull algorithm on a plurality of first expansion points of the plurality of corner coordinates, the plurality of first expansion points being obtained by expanding a bottom surface frame width as a distance on the basis of the plurality of corner coordinates.
10. The method of claim 7, wherein the bottom surface is a polygon formed by intersections of a plurality of concentric expansion patterns generated by the plurality of corner coordinates, the concentric expansion patterns being obtained by forming a closed pattern based on a plurality of second expansion point lines, the plurality of second expansion points being obtained by performing an expansion operation on the plurality of corner coordinates in a normal direction of the first pattern with a bottom surface frame width as a distance.
11. The method of claim 7, wherein when there is no connection between the at least one first pattern, the bottom surface is formed of at least one sub-bottom surface generated correspondingly to the at least one first pattern, and there is no connection between the at least one sub-bottom surface.
12. The method according to any one of claims 1-11, further comprising:
And storing the first information corresponding to the first graph and the second information corresponding to the target model according to the bottom surface in the 2D canvas.
13. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-12.
14. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the instructions of the steps in the method according to any one of claims 1-12.
CN202410616341.5A 2024-05-17 2024-05-17 Model generation method and related device Pending CN118447165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410616341.5A CN118447165A (en) 2024-05-17 2024-05-17 Model generation method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410616341.5A CN118447165A (en) 2024-05-17 2024-05-17 Model generation method and related device

Publications (1)

Publication Number Publication Date
CN118447165A true CN118447165A (en) 2024-08-06

Family

ID=92312959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410616341.5A Pending CN118447165A (en) 2024-05-17 2024-05-17 Model generation method and related device

Country Status (1)

Country Link
CN (1) CN118447165A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118691711A (en) * 2024-08-23 2024-09-24 北京纷扬科技有限责任公司 A method, system, device and medium for obtaining a display of a convex point coordinate set

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118691711A (en) * 2024-08-23 2024-09-24 北京纷扬科技有限责任公司 A method, system, device and medium for obtaining a display of a convex point coordinate set
CN118691711B (en) * 2024-08-23 2024-10-29 北京纷扬科技有限责任公司 A method, system, device and medium for obtaining a display of a convex point coordinate set

Similar Documents

Publication Publication Date Title
US6867770B2 (en) Systems and methods for voxel warping
US7436407B2 (en) Topology determination, decomposable shape generation, and structured mesh generation
JP5349879B2 (en) Information processing apparatus, information processing method, program, and storage medium
CN112099887B (en) Interface adjusting method and device, computer equipment and computer readable storage medium
CN118447165A (en) Model generation method and related device
US10210668B2 (en) Technique for extruding a 3D object into a plane
JPH08194840A (en) Graphic input and output device
CN109118593A (en) A kind of system and method creating threedimensional model editable configuration
CN114926615A (en) Modeling method, device, equipment and storage medium
US11639023B2 (en) Interactive design tool for varying density support structures
CN117576359B (en) 3D model construction method and device based on Unity webpage platform
CN111428439B (en) Method for generating three-dimensional character model based on contour tree structure and applicable to mobile terminal
Nam et al. SPACESKETCH: shape modeling with 3D meshes and control curves in stereoscopic environments
CN114491720B (en) Method and device for generating detailed steel structure diagram, electronic equipment and storage medium
CN117421089A (en) Step geographic information element processing method and device
US9223904B2 (en) Correction of topology interference for solid objects in a modeling environment
CN115564857A (en) Video production method and related equipment
US20220234278A1 (en) Varying density support structures for 3d printed objects
CN114692241B (en) CAD drawing method and device, storage medium and computer equipment
CN108553900A (en) A method of the stackable storage Reusability based on UE engines
JP6972647B2 (en) 3D shape data editing device and 3D shape data editing program
CN114240973A (en) Drawing segmentation method, equipment and storage medium
CN114692240A (en) CAD drawing method and device, storage medium and computer equipment
JP3801792B2 (en) 3D-shaped cutting device, cutting method, and storage medium storing cutting processing program
US11074763B2 (en) Systems and methods for editing shapes of faceted geometries

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