A parametric method and system for generating chamfering and grooving of three-dimensional bricks
By using a parametric method to generate chamfers and grooves for 3D bricks, the problems of complex modeling operations and inaccurate dimensions are solved, achieving simplified operation and precise chamfering and grooving effects that meet the requirements for anti-slip and drainage.
Patent Information
- Application Number
- CN202210589803.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-05-27
AI Technical Summary
In existing technologies, the modeling of tile chamfering and grooving in virtual 3D scenes is complex, resulting in inaccurate chamfering and grooving dimensions that fail to achieve anti-slip or drainage effects.
A parametric method for generating chamfers and grooves in 3D bricks is adopted. By determining the tiles that need to be chamfered or grooved, a tile dataset is constructed, the thickness and boundary point set are obtained, 3D bricks are generated, and a 3D interpolation operation is performed to generate an accurate chamfer or groove model.
It simplifies the modeling process, improves the dimensional accuracy of chamfering and grooving, and ensures the anti-slip and drainage effects of 3D bricks in real-world scenarios.
Smart Images

Figure CN115018980B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3D brick modeling technology, and in particular to a parametric method and system for generating chamfers and grooves in 3D bricks. Background Technology
[0002] In the field of home decoration, tiles are widely used. For example, we now use tiles to cover the floors, bathroom walls, kitchen walls, and living room and dining room walls in almost every household. In daily life, to achieve anti-slip or drainage effects, three-dimensional tiles are often used. Two common techniques for three-dimensional tiles are chamfering and grooving. Chamfering refers to grinding a beveled angle at the edge of the tile for use at external corners; grooving refers to cutting grooves into the tile surface.
[0003] In existing technologies, the process of designing tile chamfers or grooves during decoration modeling in virtual 3D scenes is often quite complex, which may result in inaccurate dimensions of the generated chamfers or grooves. Consequently, the chamfers and grooves of the 3D tiles in the actual scene may not achieve the desired anti-slip or drainage effects. Summary of the Invention
[0004] To address the aforementioned shortcomings, this invention proposes a parametric method and system for generating chamfers and grooves in 3D tiles. The aim is to solve the problems of complex operation and inaccurate dimensions of generated chamfers and grooves in the existing ceramic tile chamfering and grooving modeling process.
[0005] To achieve this objective, the present invention adopts the following technical solution:
[0006] A parametric method for generating chamfers and grooves in 3D bricks includes the following steps:
[0007] Step S1: Identify the tiles that need chamfering or grooving and build a tile dataset;
[0008] Step S2: Based on the tile dataset, obtain the thickness of the selected tiles that need to be chamfered or grooved, and calculate the set of boundary points of the selected tiles that need to be chamfered or grooved;
[0009] Step S3: Generate the corresponding 3D bricks based on the boundary point set and the thickness;
[0010] Step S4: Determine the parameters of the chamfer or groove, generate the chamfer or groove based on the parameters, perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove.
[0011] Preferably, step S2 specifically includes the following steps:
[0012] S21: Determine the size of the tile, set the coordinates of the center point of the tile, obtain the boundary points of the tile based on the tile size and center point coordinates, and connect them to generate the tile boundary;
[0013] S22: Set the region boundary points and connect them to generate the region boundary;
[0014] S23: Obtain the new tile boundary after cutting by using a two-dimensional region intersection-union-difference algorithm to connect the tile boundary with the region boundary.
[0015] Preferably, the chamfering parameters include the chamfering angle and the edge to be chamfered.
[0016] Preferably, the grooving parameters include the number of horizontal grooves, the number of vertical grooves, the depth of the grooves, and the width of the grooves.
[0017] Preferably, in step S4, the three-dimensional difference operation between the three-dimensional brick and the chamfer includes the following steps:
[0018] S51: Based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile, calculate the three points of the stretched triangle base surface;
[0019] S52: Generate a chamfered 3D model based on the distance between the base plane of the extruded triangle and two points on the side that needs to be chamfered;
[0020] S53: Remove the part of the 3D brick that intersects with the beveled 3D model from the 3D brick.
[0021] Preferably, in step S4, the three-dimensional difference operation between the three-dimensional brick and the groove includes the following steps:
[0022] S61: Generate a rectangle based on the pre-set position, length, and width of the groove;
[0023] S62: Perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set;
[0024] S63: Perform a stretching operation on the new two-dimensional point set to generate a grooved three-dimensional model;
[0025] S64: Remove the part of the 3D brick that intersects with the grooved 3D model from the 3D brick.
[0026] Another aspect of this application provides a parametric system for generating chamfers and grooves in three-dimensional bricks, the system comprising:
[0027] The first determination module is used to determine the tiles that need to be chamfered or grooved;
[0028] A tile dataset is used to store tile size information and tile layout information.
[0029] The acquisition module is used to obtain the thickness of the selected tiles that need to be chamfered or grooved based on the tile dataset;
[0030] The calculation module is used to calculate the set of boundary points for selected tiles that need to be chamfered or grooved, based on the tile dataset;
[0031] The first generation module is used to generate the corresponding three-dimensional bricks based on the boundary point set and the thickness.
[0032] The second determining module is used to determine the parameters for chamfering or grooving;
[0033] The second generation module is used to generate chamfers or grooves based on the parameters of the chamfer or groove.
[0034] The third generation module is used to perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove.
[0035] Alternatively, the third generation module further includes a first generation submodule and a second generation submodule;
[0036] The first generation submodule includes a calculation subunit, a first generation subunit, and a second generation subunit. The calculation subunit is used to calculate three points of the extruded triangle base surface based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile. The first generation subunit is used to generate a chamfered 3D model based on the distance between the extruded triangle base surface and the two points on the edge to be chamfered. The second generation subunit is used to remove the part of the 3D tile that intersects with the chamfered 3D model from the 3D tile.
[0037] The second generation submodule includes a third generation subunit, a fourth generation subunit, a fifth generation subunit, and a sixth generation subunit; the third generation subunit is used to generate a rectangle according to the pre-set position, length, and width of the groove; the fourth generation subunit is used to perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set; the fifth generation subunit is used to perform an extrusion operation on the new two-dimensional point set to generate a three-dimensional model of the groove; the sixth generation subunit is used to remove the part of the three-dimensional brick that intersects with the three-dimensional model of the groove from the three-dimensional brick.
[0038] The technical solutions provided in this application embodiment may include the following beneficial effects:
[0039] This solution generates chamfers and grooves for 3D bricks using parametric methods, making the modeling process more convenient and resulting in more precise dimensions for the chamfers and grooves after modeling. Attached Figure Description
[0040] Figure 1This is a flowchart illustrating the steps involved in a parametric method for generating chamfers and grooves in 3D bricks. Detailed Implementation
[0041] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0042] A parametric method for generating chamfers and grooves in 3D bricks includes the following steps:
[0043] Step S1: Identify the tiles that need chamfering or grooving and build a tile dataset;
[0044] Step S2: Based on the tile dataset, obtain the thickness of the selected tiles that need to be chamfered or grooved, and calculate the set of boundary points of the selected tiles that need to be chamfered or grooved;
[0045] Step S3: Generate the corresponding 3D bricks based on the boundary point set and the thickness;
[0046] Step S4: Determine the parameters of the chamfer or groove, generate the chamfer or groove based on the parameters, perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove.
[0047] In the field of home decoration, tiles are widely used. For example, we now use tiles to cover the floors, bathroom walls, kitchen walls, and living room and dining room walls in almost every household. In daily life, to achieve anti-slip or drainage effects, three-dimensional tiles are often used. Two common techniques for three-dimensional tiles are chamfering and grooving. Chamfering refers to grinding a beveled angle at the edge of the tile for use at external corners; grooving refers to cutting grooves into the tile surface.
[0048] In existing technologies, the process of designing tile chamfers or grooves during decoration modeling in virtual 3D scenes is often quite complex, which may result in inaccurate dimensions of the generated chamfers or grooves. Consequently, the chamfers and grooves of the 3D tiles in the actual scene may not achieve the desired anti-slip or drainage effects.
[0049] like Figure 1As shown, this solution presents a parametric method for generating chamfers and grooves in 3D tiles. The user selects tiles for which chamfers or grooves are desired; one or more tiles can be selected. The system sorts the tiles according to the order of selection, resulting in a tile dataset. This dataset includes tile size parameters and tile placement parameters. Based on the data in the tile dataset, the thickness of the selected tiles is obtained, and the set of boundary points is calculated. A corresponding 3D tile is generated using a 3D extrusion modeling method. The user sets the chamfer or groove parameters, and the corresponding chamfer or groove is generated. A 3D difference operation is performed between the 3D tile and the chamfer or groove to obtain a model of the 3D tile with chamfered or grooved edges. This parametric method for generating chamfers and grooves in 3D tiles makes the modeling process more convenient, and the dimensions of the chamfers and grooves after modeling are more accurate.
[0050] Preferably, step S2 specifically includes the following steps:
[0051] S21: Determine the size of the tile, set the coordinates of the center point of the tile, obtain the boundary points of the tile based on the tile size and center point coordinates, and connect them to generate the tile boundary;
[0052] S22: Set the region boundary points and connect them to generate the region boundary;
[0053] S23: Obtain the new tile boundary after cutting by using a two-dimensional region intersection-union-difference algorithm to connect the tile boundary with the region boundary.
[0054] When a brick is laid in a corner of the ground, its boundary may be cut into a more complex shape by the ground due to the boundary of the ground. It may not be a pure rectangle, but a polygon. Therefore, each tile needs to have its boundary cut before the next step of modeling the 3D tile can be carried out.
[0055] In one embodiment, a square tile with a size of 800*800 is taken, and the center point coordinates of the tile are set to (0,0). Dividing 800 by 2 gives 400. The boundary of the tile is then a closed line segment a1 connecting the four points (-400, -400), (400, -400), (400, 400), and (-400, 400) in sequence. Assuming the region boundary is set to a closed line segment a2 connecting the four points (0,0), (300,0), (300, 300), and (0, 300) in sequence, the boundary of the new tile after cutting can be obtained by a two-dimensional region intersection, union, and difference algorithm as a closed line segment a3 connecting the four points (0,0), (300,0), (300, 300), and (0, 300) in sequence. The two-dimensional region intersection, union, and difference algorithm is to perform a union operation between the two-dimensional plane formed by the closed line segment a1 and the two-dimensional plane formed by the closed line segment a2.
[0056] Preferably, the chamfering parameters include the chamfering angle and the edge to be chamfered. In one embodiment, when the cut tile has four edges A, B, C, and D, edge A to be chamfered can be selected, and the chamfering angle (angle) can be set.
[0057] Preferably, the grooving parameters include the number of horizontal grooves, the number of vertical grooves, the depth of the grooves, and the width of the grooves. Specifically, the depth of the grooves is generally set to 8mm. Based on the length and width of the cut tile and the number of horizontal and vertical grooves, the tile is divided into equal parts in the horizontal and vertical directions to obtain the specific groove positions.
[0058] Preferably, in step S4, the three-dimensional difference operation between the solid brick and the chamfer includes the following steps:
[0059] S51: Based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile, calculate the three points of the stretched triangle base surface;
[0060] S52: Generate a chamfered 3D model based on the distance between the base plane of the extruded triangle and two points on the side that needs to be chamfered;
[0061] S53: Remove the part of the 3D brick that intersects with the beveled 3D model from the 3D brick.
[0062] In one embodiment, two points p1 and p2 on the edge to be chamfered are selected, where the distance between p1 and p2 is dis. The chamfer angle is set as angle, and the thickness of the tile is thickness. According to the Pythagorean theorem, with p1 as the origin, three points pt1(0,0,0), pt2(0, thickness, 0), and pt3(thickness, thickness / cos(angle), 0) of the stretched triangle base are calculated. Using the stretched triangle base as the base, and the distance dis between p1 and p2 as the stretching distance, a chamfered 3D model is generated. The chamfered 3D model is subtracted from the 3D tile to obtain the model after the 3D tile has been cut and chamfered. Specifically, subtracting refers to removing the part of the 3D tile that intersects with the chamfered 3D model.
[0063] Preferably, in step S4, the three-dimensional difference operation between the three-dimensional brick and the groove includes the following steps:
[0064] S61: Generate a rectangle based on the pre-set position, length, and width of the groove;
[0065] S62: Perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set;
[0066] S63: Perform a stretching operation on the new two-dimensional point set to generate a grooved three-dimensional model;
[0067] S64: Remove the part of the 3D brick that intersects with the grooved 3D model from the 3D brick.
[0068] In one embodiment, a rectangle (rect) is constructed based on the pre-set position, length, and width of the groove. This rectangle intersects with the point set (edgept) of the 3D brick, and the point set of the overlapping area is taken to form a new 2D point set. Then, this new 2D point set is stretched in the z-direction to a depth equal to the thickness of the groove, resulting in a 3D model of the groove. Specifically, the 3D model of the groove is raised by a height equal to the thickness of the tile minus the thickness of the groove, ensuring that the groove is above the tile. Finally, the 3D model of the groove is subtracted from the 3D brick to obtain the model of the 3D brick after cutting the groove. Specifically, "subtracting" refers to removing the portion of the 3D brick that intersects with the 3D model of the groove.
[0069] Another aspect of this application provides a parametric system for generating chamfers and grooves in three-dimensional bricks, the system comprising:
[0070] The first determination module is used to determine the tiles that need to be chamfered or grooved;
[0071] A tile dataset is used to store tile size information and tile layout information.
[0072] The acquisition module is used to obtain the thickness of the selected tiles that need to be chamfered or grooved based on the tile dataset;
[0073] The calculation module is used to calculate the set of boundary points for selected tiles that need to be chamfered or grooved, based on the tile dataset;
[0074] The first generation module is used to generate the corresponding three-dimensional bricks based on the boundary point set and the thickness.
[0075] The second determining module is used to determine the parameters for chamfering or grooving;
[0076] The second generation module is used to generate chamfers or grooves based on the parameters of the chamfer or groove.
[0077] The third generation module is used to perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove.
[0078] Specifically, a parametric system for generating chamfers and grooves in 3D bricks utilizes the coordinated efforts of various modules to generate chamfers and grooves. This parametric method for generating chamfers and grooves in 3D bricks makes modeling more convenient and results in more precise dimensions for the chamfers and grooves after modeling.
[0079] Preferably, the third generation module further includes a first generation submodule and a second generation submodule;
[0080] The first generation submodule includes a calculation subunit, a first generation subunit, and a second generation subunit. The calculation subunit is used to calculate three points of the extruded triangle base surface based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile. The first generation subunit is used to generate a chamfered 3D model based on the distance between the extruded triangle base surface and the two points on the edge to be chamfered. The second generation subunit is used to remove the part of the 3D tile that intersects with the chamfered 3D model from the 3D tile.
[0081] The second generation submodule includes a third generation subunit, a fourth generation subunit, a fifth generation subunit, and a sixth generation subunit; the third generation subunit is used to generate a rectangle according to the pre-set position, length, and width of the groove; the fourth generation subunit is used to perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set; the fifth generation subunit is used to perform an extrusion operation on the new two-dimensional point set to generate a three-dimensional model of the groove; the sixth generation subunit is used to remove the part of the three-dimensional brick that intersects with the three-dimensional model of the groove from the three-dimensional brick.
[0082] Specifically, the third generation module in this system includes a first generation submodule and a second generation submodule. The first generation submodule is used to generate the model after the three-dimensional brick is cut and chamfered, and the second generation module is used to generate the model after the three-dimensional brick is cut and grooved.
[0083] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0084] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for parametrically generating chamfers and grooves in three-dimensional bricks, characterized in that: Includes the following steps: Step S1: Identify the tiles that need chamfering or grooving and build a tile dataset; Step S2: Based on the tile dataset, obtain the thickness of the selected tiles that need to be chamfered or grooved, and calculate the set of boundary points of the selected tiles that need to be chamfered or grooved; Step S3: Generate the corresponding 3D bricks based on the boundary point set and the thickness; Step S4: Determine the parameters of the chamfer or groove, generate the chamfer or groove based on the parameters, perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove; In step S4, the three-dimensional difference operation between the 3D brick and the chamfer includes the following steps: S51: Based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile, calculate the three points of the extruded triangle base surface. The specific mathematical expressions for the three points of the extruded triangle base surface are as follows: pt1(0,0,0), pt2(0,thickness,0), pt3(thickness,thickness / cos(angle),0); where thickness represents the thickness of the tile and angle represents the chamfer angle. S52: Generate a chamfered 3D model based on the distance between the base plane of the extruded triangle and two points on the side that needs to be chamfered; S53: Remove the portion of the 3D brick that intersects with the beveled 3D model from the 3D brick; In step S4, the three-dimensional difference operation between the three-dimensional brick and the groove includes the following steps: S61: Generate a rectangle based on the pre-set position, length, and width of the groove; S62: Perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set; S63: Perform a stretching operation on the new two-dimensional point set to generate a grooved three-dimensional model; S64: Remove the part of the 3D brick that intersects with the grooved 3D model from the 3D brick.
2. The method for parametrically generating chamfers and grooves in three-dimensional bricks according to claim 1, characterized in that: Step S2 specifically includes the following steps: S21: Determine the size of the tile, set the coordinates of the center point of the tile, obtain the boundary points of the tile based on the tile size and center point coordinates, and connect them to generate the tile boundary; S22: Set the region boundary points and connect them to generate the region boundary; S23: Obtain the new tile boundary after cutting by using a two-dimensional region intersection-union-difference algorithm to connect the tile boundary with the region boundary.
3. The method for parametrically generating chamfers and grooves in three-dimensional bricks according to claim 1, characterized in that: The chamfering parameters include the chamfering angle and the edge that needs to be chamfered.
4. The method for parametrically generating chamfers and grooves in three-dimensional bricks according to claim 1, characterized in that: The grooving parameters include the number of horizontal grooves, the number of vertical grooves, the depth of the grooves, and the width of the grooves.
5. A parametric system for generating chamfers and grooves in three-dimensional bricks, characterized in that: Using the parametric method for generating chamfers and grooves in three-dimensional bricks according to any one of claims 1-4, the system comprises: The first determination module is used to determine the tiles that need to be chamfered or grooved; A tile dataset is used to store tile size information and tile layout information. The acquisition module is used to obtain the thickness of the selected tiles that need to be chamfered or grooved based on the tile dataset; The calculation module is used to calculate the set of boundary points for selected tiles that need to be chamfered or grooved, based on the tile dataset; The first generation module is used to generate the corresponding three-dimensional bricks based on the boundary point set and the thickness. The second determining module is used to determine the parameters for chamfering or grooving; The second generation module is used to generate chamfers or grooves based on the parameters of the chamfer or groove. The third generation module is used to perform a three-dimensional difference operation on the 3D brick and the chamfer or groove to obtain the model of the 3D brick after cutting the chamfer or groove. The third generation module further includes a first generation submodule and a second generation submodule; The first generation submodule includes a calculation subunit, a first generation subunit, and a second generation subunit; The calculation subunit is used to calculate three points of the extruded triangle base surface based on the distance between two points on the edge to be chamfered, the chamfer angle, and the thickness of the tile; the first generation subunit is used to generate a chamfered 3D model based on the distance between the extruded triangle base surface and the two points on the edge to be chamfered; the second generation subunit is used to remove the part of the 3D tile that intersects with the chamfered 3D model from the 3D tile. The second generation submodule includes a third generation subunit, a fourth generation subunit, a fifth generation subunit, and a sixth generation subunit; the third generation subunit is used to generate a rectangle according to the pre-set position, length, and width of the groove; the fourth generation subunit is used to perform an intersection operation between the rectangle and the three-dimensional brick to generate a new two-dimensional point set; the fifth generation subunit is used to perform an extrusion operation on the new two-dimensional point set to generate a three-dimensional model of the groove; the sixth generation subunit is used to remove the part of the three-dimensional brick that intersects with the three-dimensional model of the groove from the three-dimensional brick.
Citation Information
Patent Citations
Special-shaped workpiece cutting modeling method, electronic device, storage medium and system
CN109767486A