Method, device, equipment, medium and product for automatically generating large sample drawing of special-shaped stone

By automating the acquisition of unique codes and grid numbers for irregularly shaped stone models, and generating and labeling dimensional information and volume, the inefficiency and error-prone nature of existing technologies are solved. This enables efficient and accurate generation of large-scale drawings of irregularly shaped stone, improving project quality and supply chain collaboration efficiency.

CN121392205BActive Publication Date: 2026-04-07CHONGQING JISHENG GARDEN LANDSCAPE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing technologies are inefficient, prone to human error, and prone to information chain breaks when generating large-scale drawings of irregularly shaped stones, resulting in processing errors and economic losses.

Method used

The unique code and number of grids of the irregular stone model are obtained automatically, an initial large-scale drawing is generated and dimension information, volume and yield are marked, and the annotation process is realized by using computer equipment and programs.

Benefits of technology

It improves the efficiency of generating large-scale diagrams, ensures data accuracy and completeness, reduces processing costs and errors, and enhances the efficiency of supply chain collaboration and engineering quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121392205B_ABST
    Figure CN121392205B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, equipment, medium, and product for automatically generating large-scale drawings of irregularly shaped stone, relating to the field of stone processing technology. The method involves first obtaining a unique code for the irregularly shaped stone model used to compose the target building structure, and then generating a sample grid with a mesh size no less than the number of models. Next, the irregularly shaped stone models are moved one-to-one into the corresponding grids to generate an initial large-scale drawing of the irregularly shaped stone, and the unique code of each model is labeled. Finally, for each model, the dimensions of all edges, stone volume, minimum volume of raw stone blocks, optimal yield, and edge dimensions of the minimum raw stone blocks are automatically obtained and labeled on the corresponding large-scale drawing. This fundamentally solves the problems of time-consuming, labor-intensive, and error-prone existing methods, bridging the key gap between digital design and precision processing, and improving the collaborative efficiency and engineering quality of the entire industry chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of stone processing technology, specifically relating to a method, apparatus, equipment, medium, and product for automatically generating large-scale drawings of irregularly shaped stones. Background Technology

[0002] In fields such as landscape engineering, building / curtain wall engineering, and stone processing, irregularly shaped stone is widely used due to its unique artistic expression and malleability. However, the complex curves and irregular shapes of irregularly shaped stone bring enormous challenges to the entire process from design to processing.

[0003] Currently, in the design and refinement stages of the aforementioned projects, digital representation is typically achieved using 3D modeling software (such as Rhino or Revit). While tools exist within the software environment to obtain information such as the volume and dimensions of the stone model, the existing technical workflow is significantly inadequate for generating precise large-scale stone drawings (large-scale drawings are technical drawings used in engineering drafting to specifically enlarge and annotate certain areas) to guide actual production and construction. Specifically, technicians must perform a large amount of repetitive and tedious manual work: they need to manually identify, move, and align the position of each irregularly shaped stone in the 3D model one by one to ensure that its projection or unfolded drawing accurately reflects the information required for processing; subsequently, they must manually annotate each stone with its key dimensions, outline, thickness, and number.

[0004] This work mode, which relies heavily on manual intervention, leads to the following major pain points:

[0005] (1) The efficiency is extremely low. When faced with a complex building project containing hundreds or thousands of irregularly shaped stones, it takes a long time to process them manually one by one, which seriously slows down the design development and drawing progress of the entire project.

[0006] (2) It is easy to introduce human error. In the heavy repetitive work, manual annotation is bound to have problems such as missing dimensions, misreading data and disordered numbering, which will cause the generated detailed drawing to deviate from the original design intention.

[0007] (3) Information chain breakage and distortion, that is, the conversion process from digital model to two-dimensional processing drawing is full of uncertainty. If the wrong large-scale drawing is directly transmitted to the stone processing plant, the stone processing cycle will be forced to be extended. In some cases, the final processed object will not match the style and size expected by the designer, and it will have to be reworked or scrapped, resulting in huge economic losses and project delays.

[0008] Therefore, the industry urgently needs a technical solution that can automatically and intelligently generate detailed drawings of irregularly shaped stones, in order to fundamentally solve the problems of existing methods being time-consuming, labor-intensive, and prone to errors, to build a key bridge from digital design to precision processing, and to improve the collaborative efficiency and engineering quality of the entire industry chain. Summary of the Invention

[0009] The purpose of this invention is to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for automatically generating large-scale drawings of irregularly shaped stones, in order to solve the problems of extremely low efficiency, easy introduction of human error, and / or information chain breakage and distortion in existing large-scale drawing generation schemes for irregularly shaped stones.

[0010] To achieve the above objectives, the present invention adopts the following technical solution:

[0011] Firstly, a method for automatically generating detailed drawings of irregularly shaped stone is provided, including:

[0012] Obtain at least one irregularly shaped stone model for composing the target building, and generate a unique code for the at least one irregularly shaped stone model;

[0013] Based on the number of models of the at least one irregular stone model, generate a sample grid with a mesh number not less than the number of models;

[0014] Move the at least one irregular stone model into at least one grid of the sample grid to generate at least one initial irregular stone large-scale drawing that corresponds to the at least one irregular stone model. For each model in the at least one irregular stone model, mark the corresponding unique code on the corresponding irregular stone large-scale drawing.

[0015] For each model, obtain the dimension information of all edge lines of the corresponding model, and mark the dimension information of all edge lines on the corresponding irregular stone detail drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes the straight line length value, and the dimension information of the curves includes the curve length value and the arc radius value.

[0016] For each of the aforementioned models, generate the minimum bounding box of the stone for that model;

[0017] For each model, obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the minimum bounding box of the corresponding stone, and the optimal yield based on the stone volume and the minimum stone block volume, and mark the stone volume, the minimum stone block volume and the optimal yield on the corresponding irregular stone detail drawing.

[0018] For each model, obtain the edge line dimension information of the corresponding minimum bounding box of the stone, and mark the edge line dimension information on the corresponding irregular stone detail drawing.

[0019] Based on the above-mentioned invention, a new solution is provided for the automated and intelligent generation of large-scale drawings of irregularly shaped stones based on irregularly shaped stone models. Specifically, after obtaining the irregularly shaped stone models used to compose the target building, a unique code for each model and a sample grid with a mesh size no less than the number of models are first generated. Then, the irregularly shaped stone models are moved one-to-one into the corresponding grids to generate initial large-scale drawings of the irregularly shaped stones, and the unique codes of the corresponding models are labeled. Finally, for each model, the dimensions of all edges, stone volume, minimum volume of raw stone blocks, optimal yield, and edge dimensions of the corresponding minimum raw stone blocks are automatically obtained and labeled on the corresponding large-scale drawings. This fundamentally solves the problems of time-consuming, labor-intensive, and error-prone existing methods, bridges the key gap between digital design and precision processing, improves the collaborative efficiency and engineering quality of the entire industry chain, and facilitates practical application and promotion.

[0020] In one possible design, based on the number of models of the at least one irregularly shaped stone model, a sample grid with a mesh number not less than the number of models is generated, including:

[0021] Get the number of horizontal grids configured by the user;

[0022] Based on the number of horizontal grids and the number of at least one irregular stone model, the number of models is divided by the number of horizontal grids, and the calculation result is rounded up to obtain the number of vertical grids.

[0023] Based on the number of horizontal grids and the number of vertical grids, generate a sample grid with a number of grids no less than the number of models.

[0024] In one possible design, for each model, the dimensional information of all edge lines of the corresponding model is obtained, and the dimensional information of all edge lines is marked on the corresponding irregular stone detail drawing, including:

[0025] For a specific irregular stone model in the at least one irregular stone model, extract all the edges of the corresponding model;

[0026] For each edge line in the certain irregular stone model, determine whether the difference between the length of the corresponding edge line and the distance between the two ends of the corresponding edge line is less than a preset difference threshold. If so, the corresponding edge line is determined to be a straight line; otherwise, the corresponding edge line is determined to be a curve.

[0027] For each straight line in all the edges of the irregular stone model, the corresponding straight line length value is obtained according to the corresponding edge length. Then, the straight line length value is used as the corresponding dimension information. Combined with the corresponding straight line and the first text parameter configured by the user, a straight line annotation containing the dimension information and the corresponding line is generated on the irregular stone detail drawing corresponding to the irregular stone model.

[0028] For each curve in all the edges of a certain irregular stone model, the corresponding curve length value is obtained according to the corresponding edge length. Then, the curve length value is used as the corresponding first dimension information. Combined with the corresponding curve and the user-configured second text parameter, a curve annotation containing the first dimension information is generated on the irregular stone detail drawing corresponding to the certain irregular stone model. Also, based on the two endpoints and the midpoint of the corresponding curve, a corresponding arc is generated, and the arc radius value and the annotation point on the corresponding curve are obtained. Then, the arc radius value is used as the corresponding second dimension information. Combined with the arc, the annotation point, and the user-configured third text parameter, an arc radius annotation containing the second dimension information is generated on the irregular stone detail drawing corresponding to the certain irregular stone model.

[0029] In one possible design, for each of the aforementioned models, a minimum bounding box for the stone material is generated, including:

[0030] For a specific irregular stone model among the at least one irregular stone model, obtain the corresponding center of gravity;

[0031] With the center of gravity as the origin, XY plane, XZ plane and YZ plane are generated that are mutually perpendicular to each other. A first control parameter for rotating the irregular stone model around the Z-axis from 0 to 360 degrees, a second control parameter for rotating the irregular stone model around the Y-axis from 0 to 360 degrees, and a third control parameter for rotating the irregular stone model around the X-axis from 0 to 360 degrees are constructed. The X-axis, the Y-axis and the Z-axis are mutually perpendicular to each other.

[0032] Based on the normals of the XY plane, the XZ plane, and the YZ plane, a minimum circumscribed square box is formed to enclose the irregular stone model after it has been rotated according to the first control parameter, the second control parameter, and the third control parameter.

[0033] An optimization algorithm is used to optimize the parameter vector consisting of the first control parameter, the second control parameter, and the third control parameter to obtain the optimal parameter vector for minimizing the volume of the minimum circumscribed square box.

[0034] The minimum bounding box formed after rotating the irregular stone model according to the optimal parameter vector will be used as the minimum bounding box of the stone corresponding to the irregular stone model.

[0035] In one possible design, for each model, the stone volume of the corresponding model, the minimum block volume of the stone obtained based on the corresponding minimum bounding box of the stone, and the optimal yield rate obtained based on the stone volume and the minimum block volume of the stone are obtained. The stone volume, the minimum block volume of the stone, and the optimal yield rate are then marked on the corresponding irregular-shaped stone detail drawing, including:

[0036] For a specific irregular stone model among the at least one irregular stone model, obtain the stone volume of the corresponding model;

[0037] Based on the minimum bounding box of the stone corresponding to a certain irregular stone model, obtain the minimum volume of the stone block, and divide the stone volume by the minimum volume of the stone block to obtain the optimal yield.

[0038] On the large-scale drawing of the irregular stone corresponding to the irregular stone model, a first annotation containing the volume of the stone, a second annotation containing the minimum volume of the stone block, and a third annotation containing the optimal yield are generated respectively, wherein the first annotation, the second annotation, and the third annotation are located in different positions.

[0039] In one possible design, for each of the aforementioned models, the edge line dimension information of the corresponding minimum bounding box of the stone is obtained, and this edge line dimension information is marked on the corresponding irregular-shaped stone detail drawing, including:

[0040] For a specific irregular stone model in the at least one irregular stone model, extract all edge lines of the corresponding minimum bounding box of the stone.

[0041] For each edge line among all the edge lines, the corresponding edge line length value is obtained by processing according to the corresponding edge line length. Then, the edge line length value is used as the corresponding edge line size information. Combined with the corresponding edge line and the fourth text parameter configured by the user, an edge line annotation containing the edge line size information and the corresponding edge line annotation is generated on the large-scale drawing of the irregular stone corresponding to the irregular stone model.

[0042] Secondly, an automatic generation device for large-scale drawings of irregularly shaped stone is provided, including a model acquisition and encoding unit, a sample grid generation unit, an initial sample generation unit, an edge dimension annotation unit, a minimum enclosure generation unit, a volume output annotation unit, and a raw material dimension annotation unit.

[0043] The model acquisition and encoding unit is used to acquire at least one irregularly shaped stone model for composing the target building and generate a unique code for the at least one irregularly shaped stone model;

[0044] The sample grid generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate a sample grid with a mesh number not less than the number of models based on the number of models of the at least one irregular stone model.

[0045] The initial sample image generation unit is communicatively connected to the model acquisition encoding unit and the sample image grid generation unit, respectively. It is used to move the at least one irregular stone model into at least one grid of the sample image grid, generate at least one initial irregular stone large-scale image corresponding to the at least one irregular stone model, and mark the corresponding unique code on the corresponding irregular stone large-scale image for each model in the at least one irregular stone model.

[0046] The edge line dimension annotation unit is communicatively connected to the initial sample drawing generation unit. It is used to obtain the dimension information of all edge lines of the corresponding model for each model, and to annotate the dimension information of all edge lines on the corresponding irregular stone large-scale drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes the straight line length value, and the dimension information of the curves includes the curve length value and the arc radius value.

[0047] The minimum bounding box generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate the minimum bounding box of the stone for each model.

[0048] The volume output labeling unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively. It is used to obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the corresponding minimum bounding box of the stone, and the optimal output rate obtained based on the stone volume and the minimum stone block volume for each model, and to label the stone volume, the minimum stone block volume and the optimal output rate on the corresponding irregular stone large-scale drawing.

[0049] The raw material size annotation unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively, and is used to obtain the edge line size information of the corresponding minimum bounding box of the stone for each model, and annotate the edge line size information on the corresponding irregular stone large-scale drawing.

[0050] Thirdly, the present invention provides a computer device comprising a storage module, a processing module, and a transceiver module connected in sequence for communication, wherein the storage module is used to store a computer program, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the automatic generation method for large-scale drawings of irregularly shaped stones as described in the first aspect or any possible design in the first aspect.

[0051] Fourthly, the present invention provides a computer-readable storage medium storing instructions that, when executed on a computer, perform the automatic generation method for large-scale drawings of irregularly shaped stones as described in the first aspect or any possible design within the first aspect.

[0052] Fifthly, the present invention provides a computer program product, including a computer program or instructions, wherein when the computer program or instructions are executed by a computer, the method for automatically generating large-scale drawings of irregularly shaped stones as described in the first aspect or any possible design in the first aspect.

[0053] The beneficial effects of the above scheme are:

[0054] (1) This invention creatively provides a new scheme for generating large-scale drawings of irregularly shaped stones based on irregularly shaped stone models in an automated and intelligent manner. That is, after obtaining the irregularly shaped stone models used to compose the target building, the unique code of the irregularly shaped stone model and the sample grid with a number of grids not less than the number of models are generated first. Then, the irregularly shaped stone models are moved into the corresponding grids one by one to generate the initial large-scale drawings of irregularly shaped stones and the unique code of the corresponding model is marked. Finally, for each model, the size information of all edge lines, stone volume, minimum stone block volume, optimal yield and edge line size information of the corresponding minimum stone block are automatically obtained and marked on the corresponding large-scale drawings of irregularly shaped stones. This can fundamentally solve the dilemma of time-consuming, labor-intensive and error-prone existing methods, open up the key bridge from digital design to precision processing, and improve the collaborative efficiency and engineering quality of the entire industry chain.

[0055] (2) It can dramatically improve the efficiency of large-scale drawing generation. Compared with the traditional manual drawing of large-scale drawings, it can achieve "one-click generation" of automated operation, which greatly shortens the time from design model to production drawings, frees technicians from heavy and repetitive labor, and improves the overall drawing efficiency by orders of magnitude.

[0056] (3) It can ensure the accuracy and completeness of the data. That is, through automated workflow processing, it can ensure that the generated drawings and data tables are complete and without omissions. It strictly follows the three-dimensional model data, avoiding the error of "missing or over-calculating stone" that is very easy to occur in manual statistics and drawing. It ensures the consistency between drawings and models from the source and ensures the accuracy of materials used in the project.

[0057] (4) It can optimize and control costs, that is, it can automatically calculate the processing volume of each stone and match it with the minimum volume of the stone block to obtain the ideal yield. This provides accurate data support for project material selection and cost budgeting, which helps to reduce the procurement and processing costs of stone from the source and maximize economic benefits.

[0058] (5) It can significantly improve the processing quality, thereby reducing deviations and ensuring the effect. Especially for complex spatial irregular materials, this solution achieves seamless integration from digital design to production data, and the automated process greatly reduces the deviations that may be introduced by human intervention, ensuring that each piece of stone processed can accurately match the design intention and installation position, thereby significantly improving the final construction effect and the first-time success rate.

[0059] (6) It enables process reengineering that facilitates supply chain collaboration. In other words, this solution creates a completely new working model, generating a "one-stop" process that producers can directly use for processing. Figure 1 The "3D detailed drawings and data sheets" seamlessly link the construction and processing parties, enabling the completion of landscaping construction and other processes "without secondary processing, in one go." This breaks down the information barriers between design and manufacturing, fundamentally improving the collaborative efficiency and processing effect of the entire industry chain, and facilitating practical application and promotion. Attached Figure Description

[0060] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0061] Figure 1 This is a flowchart illustrating the method for automatically generating detailed drawings of irregularly shaped stones provided in this application embodiment.

[0062] Figure 2 An example diagram of a three-dimensional model of the target building provided in an embodiment of this application.

[0063] Figure 3 This is an example diagram of a new pattern grid after reversing and adjusting the grid order, provided as an embodiment of this application.

[0064] Figure 4 An example diagram showing the initial generation of at least one large-scale drawing of an irregularly shaped stone provided in the embodiments of this application.

[0065] Figure 5 This is a final annotation example of a large-scale drawing of an irregularly shaped stone provided in an embodiment of this application.

[0066] Figure 6 An example diagram showing the unique code of an irregular stone model in a three-dimensional model of a target building, as provided in this application embodiment.

[0067] Figure 7 An example diagram showing the straight line annotation results of the irregular stone model provided in this application embodiment.

[0068] Figure 8 An example diagram showing the curve annotation results of the irregular stone model provided in the embodiments of this application.

[0069] Figure 9 An example diagram showing the arc radius annotation results of the irregular stone model provided in this application embodiment.

[0070] Figure 10 An example diagram showing the edge line annotation results of the minimum bounding box of the irregular stone model provided in this application embodiment.

[0071] Figure 11 This is a schematic diagram of the automatic generation device for large-scale drawings of irregularly shaped stones provided in the embodiments of this application.

[0072] Figure 12 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0073] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these embodiments without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0074] It should be understood that although the terms "first" and "second", etc., may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, the first object may be referred to as the second object, and similarly, the second object may be referred to as the first object, without departing from the scope of the exemplary embodiments of the invention.

[0075] It should be understood that the term "and / or" that may appear in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, B exists alone, or A and B exist simultaneously. Another example is A, B and / or C, which can mean that any one of A, B, and C or any combination thereof exists. The term " / and" that may appear in this document describes another relationship between related objects, indicating that two relationships can exist. For example, A / and B can mean: A exists alone or A and B exist simultaneously. In addition, the character " / " that may appear in this document generally indicates that the related objects before and after it are in an "or" relationship.

[0076] Example

[0077] like Figures 1-10 As shown, the automatic generation method for large-scale drawings of irregularly shaped stones provided in the first aspect of this embodiment can be executed, but is not limited to, by computer devices with certain computing resources, such as servers, personal computers (PCs, referring to a type of multi-purpose computer suitable for personal use in terms of size, price, and performance; desktop computers, laptops, mini-laptops, tablets, and ultrabooks are all considered personal computers), smartphones, personal digital assistants (PDAs), or wearable devices. Figure 1 As shown, the method for automatically generating large-scale drawings of irregularly shaped stones includes, but is not limited to, the following steps S1 to S7.

[0078] S1. Obtain at least one irregular stone model for composing the target building, and generate a unique code for the at least one irregular stone model.

[0079] In step S1, the target building is a specific project to be constructed in landscape engineering and building / curtain wall engineering, etc., and the at least one irregularly shaped stone model can be conventionally obtained based on the three-dimensional model of the target building; for example, in such... Figure 2 The 3D model of the target building shown can yield eighteen irregularly shaped stone models. The unique code is used to uniquely identify the corresponding irregularly shaped stone model; specifically, generating a unique code for at least one irregularly shaped stone model includes, but is not limited to, the following steps S11 to S16.

[0080] S11. Use the center of gravity acquisition function component to acquire the center of gravity of the at least one irregular stone model and form a center of gravity data list.

[0081] In step S11, the center of gravity acquisition function component can be conventionally pre-designed on a low-code / no-code platform.

[0082] S12. Use the data list length acquisition function component to obtain the length of the center point data list, and use the length as the number of models of the at least one irregular stone model.

[0083] In step S12, the data list length acquisition function component can also be conventionally pre-designed on a low-code / no-code platform.

[0084] S13. Using the arithmetic sequence function component, generate a first data list {1,2,3,...,N} based on the number of models, where N represents the number of models.

[0085] In step S13, the arithmetic sequence function component can also be conventionally pre-designed on a low-code / no-code platform.

[0086] S14. Using the numerical conversion function component, transform the first data list {1,2,3,...,N} into a second data list in which all element values ​​have the same number of digits.

[0087] In step S14, the numerical conversion function component can also be conventionally pre-designed on a low-code / no-code platform, for example, by writing code in the Python language. Furthermore, when N is a three-digit number, the second data list can be, for example, {001,002,003,...,N}.

[0088] S15. Using the data combination function component, combine the user-configured encoding prefix characters and the second data list to obtain a third data list.

[0089] In step S15, the data combination function component can also be conventionally pre-designed on a low-code / no-code platform. Furthermore, for example, if the encoded prefix character is "SJA-", then the third data list can be {SJA-001, SJA-002, SJA-003, ..., SJA-N}.

[0090] S16. Each element in the third data list is used as a unique code for the at least one irregular stone model.

[0091] S2. Based on the number of models of the at least one irregular stone model, generate a sample grid with a mesh number not less than the number of models.

[0092] In step S2, the sample grid is used to list at least one large-scale drawing of an irregularly shaped stone, corresponding one-to-one with the at least one irregularly shaped stone model, in tabular form. Therefore, the completeness of the sample drawing list needs to be ensured by the characteristic that the number of grids is not less than the number of models. Specifically, based on the number of models of the at least one irregularly shaped stone model, a sample grid with a number of grids not less than the number of models is generated, including but not limited to the following steps S21 to S23.

[0093] S21. Get the number of horizontal grids configured by the user.

[0094] S22. Based on the number of horizontal grids and the number of at least one irregular stone model, divide the number of models by the number of horizontal grids, and round the result up to obtain the number of vertical grids.

[0095] In step S22, the method for obtaining the number of models can be referred to the aforementioned steps S11 to S12, and will not be repeated here.

[0096] S23. Based on the number of horizontal grids and the number of vertical grids, generate a sample grid with a number of grids not less than the number of models.

[0097] In step S23, for example, when the number of horizontal grids is 6 and the number of vertical grids is 3, a sample grid with a three-row, six-column structure can be generated. Furthermore, a data inversion function component can be used to adjust the grid order of the sample grid: from left to right and from bottom to top. This data inversion function component can also be conventionally pre-designed on a low-code / no-code platform. For example, based on the aforementioned three-row, six-column sample grid, the following can be adjusted to obtain... Figure 3 The new pattern grid is shown.

[0098] S3. Move the at least one irregular stone model one by one into at least one grid of the sample grid, generate at least one initial irregular stone detail image corresponding one by one with the at least one irregular stone model, and mark the corresponding unique code on the corresponding irregular stone detail image for each model in the at least one irregular stone model.

[0099] In step S3, specifically, the arithmetic sequence function component can be used first to generate a fourth data list {0,1,2,...,N-1} based on the number of models, and each element in the fourth data list can be used as the serial number of the at least one irregular stone model, where N represents the number of models; then, the data index filtering function component can be used to filter at least one grid whose index value is equal to the serial number of the irregular stone model based on the index value (i.e., natural numbers such as 0, 1, 2, or 3) of each grid in the sample grid, and the centroid position of the at least one grid can be determined; finally, the object movement function component can be used to move each model in the at least one irregular stone model from the centroid position of the corresponding model to the centroid position of the grid whose index value is equal to the serial number of the corresponding model; the movement result is the initial at least one irregular stone large-scale drawing that corresponds one-to-one with the at least one irregular stone model, for example... Figure 4 As shown. Furthermore, the data indexing and filtering component and the object movement component can also be routinely pre-designed on a low-code / no-code platform.

[0100] In step S3, specifically, the object movement function component can be used to first move the centroid of at least one mesh down to the bottom region of the corresponding mesh to obtain the stone coding points of the at least one mesh. Then, the annotation generation function component (which can also be conventionally pre-designed on a low-code / no-code platform) is used to generate a coding annotation containing a unique code of the corresponding irregular stone model at the stone coding points; for example... Figure 5 As shown, a code can be displayed below the large-scale model, and it matches the unique code of the irregular stone model, thus facilitating the viewing of the model's location within the large-scale model. Furthermore, a curve-sorting component (which can also be routinely pre-designed on low-code / no-code platforms) can be used to sort the centroids of at least one irregular stone model according to a user-configured curve, generating sorted centroids. Then, the annotation generation component is used to generate another coded annotation containing the unique code of the corresponding irregular stone model at each centroid. Figure 6 As shown, it can be based on Figure 2 A unique code is displayed on the irregular stone model to further facilitate viewing the location of the large sample within the model.

[0101] S4. For each model, obtain the dimension information of all edge lines of the corresponding model, and mark the dimension information of all edge lines on the corresponding irregular stone detail drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes, but is not limited to, the length value of the straight line, and the dimension information of the curves includes, but is not limited to, the length value of the curve and the radius value of the arc.

[0102] In step S4, specifically, for each model, the size information of all the edges of the corresponding model is obtained, and the size information of all the edges is marked on the corresponding irregular stone detail drawing, including but not limited to the following steps S41 to S44.

[0103] S41. For a certain irregular stone model in the at least one irregular stone model, extract all the edges of the corresponding model.

[0104] In step S41, the edge extraction can be specifically achieved by using a pre-designed model edge extraction function component that is conventionally designed on a low-code / no-code platform.

[0105] S42. For each edge line in the certain irregular stone model, determine whether the difference between the length of the corresponding edge line and the distance between the two ends of the corresponding edge line is less than a preset difference threshold. If so, determine that the corresponding edge line is a straight line; otherwise, determine that the corresponding edge line is a curve.

[0106] In step S42, the edge length can be specifically implemented using a line length acquisition function component conventionally pre-designed on a low-code / no-code platform, and the distance between the two endpoints of the edge line can be specifically implemented using a line endpoint extraction function component, a two-point straight line connection function component, and the line length acquisition function component conventionally pre-designed on a low-code / no-code platform. Furthermore, the phase difference threshold can be, for example, but not limited to, 0.1 mm.

[0107] S43. For each straight line in all the edges of the irregular stone model, the corresponding straight line length value is obtained according to the corresponding edge length. Then, the straight line length value is used as the corresponding dimension information. Combined with the corresponding straight line and the first text parameter configured by the user, a straight line annotation containing the dimension information and the corresponding straight line is generated on the irregular stone detail drawing corresponding to the irregular stone model.

[0108] In step S43, the specific method for processing the edge length may include, but is not limited to, rounding and text merging. The text merging can be implemented using a pre-designed text merging function component conventionally available on low-code / no-code platforms to add a unit (e.g., "mm") after the edge length to obtain the line length value. The generation of the line annotation can be implemented using a pre-designed line annotation function component conventionally available on low-code / no-code platforms. Furthermore, the first text parameters specifically include, but are not limited to, text height, font type, and font color; the generation position of the line annotation may, but is not limited to, be located on the corresponding line or at a point around the corresponding line; the result of the line annotation can be, for example... Figure 7 As shown.

[0109] S44. For each curve in all the edges of the irregular stone model, the corresponding curve length value is obtained according to the corresponding edge length. Then, the curve length value is used as the corresponding first dimension information. Combined with the corresponding curve and the user-configured second text parameter, a curve annotation containing the first dimension information is generated on the irregular stone detail drawing corresponding to the irregular stone model. Also, based on the two endpoints and the midpoint of the corresponding curve, a corresponding arc is generated. The arc radius value and the annotation point on the corresponding curve are obtained. Then, the arc radius value is used as the corresponding second dimension information. Combined with the arc, the annotation point, and the user-configured third text parameter, an arc radius annotation containing the second dimension information is generated on the irregular stone detail drawing corresponding to the irregular stone model.

[0110] In step S44, the specific method for processing the edge length can also include, but is not limited to, the rounding process and the text merging process, so as to add a unit (e.g., "mm") after the edge length to obtain the curve length value. The generation of the curve annotation can be achieved through a pre-designed arc length annotation function component conventionally available on a low-code / no-code platform. Furthermore, the second text parameter specifically includes, but is not limited to, text height, font type, and font color; the generation position of the curve annotation can be, but is not limited to, a point on or around the corresponding curve; the result of the curve annotation can be, for example... Figure 8 As shown.

[0111] In step S44, the two endpoints of the curve can be obtained through the line endpoint extraction function component; the midpoint of the curve can be obtained through the line midpoint acquisition function component conventionally pre-designed on a low-code / no-code platform; the arc generation can be obtained through the three-point arc drawing function component conventionally pre-designed on a low-code / no-code platform; the arc radius value can be obtained through the arc radius acquisition function component conventionally pre-designed on a low-code / no-code platform, and also needs to undergo the rounding and text merging processes; the annotation point can be obtained through the line point acquisition function component conventionally pre-designed on a low-code / no-code platform, for example, obtaining the golden section point or 30% section point on the curve as the annotation point; the arc radius annotation can be generated through the radius annotation function component conventionally pre-designed on a low-code / no-code platform. Furthermore, the third text parameter specifically includes, but is not limited to, text height, font type, and font color; the result of the arc radius annotation can be, for example... Figure 9 As shown.

[0112] S5. For each of the aforementioned models, generate the minimum bounding box of the stone for that model.

[0113] In step S5, the minimum bounding box for the stone is a square box and is used to subsequently determine the volume of the smallest raw stone block. To quickly generate the minimum bounding box, preferably, for each model, a minimum bounding box for the corresponding model is generated, including but not limited to the following steps S51 to S55.

[0114] S51. For a certain irregular stone model among the at least one irregular stone model, obtain the corresponding center of gravity.

[0115] In step S51, the center of gravity of a certain irregular stone model can be obtained through the center of gravity acquisition function component.

[0116] S52. Generate mutually perpendicular XY planes, XZ planes, and YZ planes with the center of gravity as the origin, and construct a first control parameter for rotating the irregular stone model around the Z-axis from 0 to 360 degrees, a second control parameter for rotating the irregular stone model around the Y-axis from 0 to 360 degrees, and a third control parameter for rotating the irregular stone model around the X-axis from 0 to 360 degrees, wherein the X-axis, the Y-axis, and the Z-axis are mutually perpendicular.

[0117] In step S52, the generation of the XY plane, the XZ plane, and the YZ plane can be achieved by a plane generation function component that is conventionally pre-designed on a low-code / no-code platform, and the construction of the first control parameter, the second control parameter, and the third control parameter can be achieved by a rotation function component that is conventionally pre-designed on a low-code / no-code platform.

[0118] S53. Based on the normals of the XY plane, the XZ plane, and the YZ plane, form a minimum circumscribed square box for enclosing the irregular stone model after rotating it according to the first control parameter, the second control parameter, and the third control parameter.

[0119] In step S53, the formation of the minimum circumscribed square box can be achieved by a square box forming assembly that is conventionally pre-designed on a low-code / no-code platform.

[0120] S54. An optimization algorithm is used to optimize the parameter vector consisting of the first control parameter, the second control parameter, and the third control parameter to obtain the optimal parameter vector that minimizes the volume of the minimum circumscribed square box.

[0121] In step S54, the volume of the minimum circumscribed square box can be achieved by a pre-designed volume acquisition function component conventionally used on a low-code / no-code platform. Furthermore, the optimization algorithm can specifically employ, but is not limited to, particle swarm optimization, Newton's algorithm, genetic optimization, Grey Wolf algorithm, whale optimization, or tuna swarm optimization, etc.; the technical principles of these optimization algorithms are all existing technologies, therefore the specific optimization process can be conventionally derived based on existing technical means, and will not be elaborated further here.

[0122] S55. The minimum bounding box formed after rotating the irregular stone model according to the optimal parameter vector shall be used as the minimum bounding box of the stone corresponding to the irregular stone model.

[0123] In step S5, the irregular stone models can be selected one by one to generate the corresponding minimum bounding boxes of the stone, but not limited to the following: First, a data click generation function component conventionally designed on a low-code / no-code platform is used to add a user-configured value "1" to the fourth data list after each user click; then, a data list summation function component conventionally designed on a low-code / no-code platform is used to obtain the sum of the values ​​in the fourth data list (for example, the initial sum is "1", and the sum is "+1" after each user click); then, a subtraction function component conventionally designed on a low-code / no-code platform is used to subtract the value "2" from the sum of the values ​​to obtain the output value (i.e., the output value is 0 when the user clicks for the first time, 1 when the user clicks for the second time, 2 when the user clicks for the third time, and so on); finally, an index filtering function component conventionally designed on a low-code / no-code platform is used to sequentially index the irregular stone models based on the output values ​​(i.e., the user selects the first irregular stone model when clicking for the first time, selects the second irregular stone model when clicking for the second time, and so on).

[0124] S6. For each model, obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the minimum bounding box of the corresponding stone, and the optimal yield based on the stone volume and the minimum stone block volume, and mark the stone volume, the minimum stone block volume and the optimal yield on the corresponding irregular stone detail drawing.

[0125] In step S6, specifically, for each model, the stone volume of the corresponding model, the minimum stone block volume obtained based on the minimum bounding box of the corresponding stone, and the optimal yield obtained based on the stone volume and the minimum stone block volume are obtained, and the stone volume, the minimum stone block volume, and the optimal yield are marked on the corresponding irregular stone detail drawing, including but not limited to the following steps S61 to S63.

[0126] S61. For a specific irregular stone model among the at least one irregular stone model, obtain the stone volume of the corresponding model.

[0127] In step S61, the volume of the stone can be obtained through the volume acquisition function component, and it also needs to undergo the rounding process and the text merging process to include the volume unit "m". 3 ".

[0128] S62. Based on the minimum bounding box of the stone corresponding to a certain irregular stone model, obtain the minimum volume of the raw stone block, and divide the stone volume by the minimum volume of the raw stone block to obtain the optimal yield.

[0129] In step S62, the minimum volume of the stone block can also be obtained through the volume acquisition function component, and it also needs to undergo the rounding and text merging processes to include the volume unit "m". 3 Furthermore, the optimal yield also needs to undergo the rounding and text merging processes to include the "%".

[0130] S63. Generate a first annotation containing the volume of the stone, a second annotation containing the minimum volume of the stone block, and a third annotation containing the optimal yield on the large-scale drawing of the irregular stone corresponding to the irregular stone model, wherein the first annotation, the second annotation, and the third annotation are located in different positions.

[0131] In step S63, the generation of the first annotation, the second annotation, and the third annotation can also be achieved using the annotation generation function component. The annotation positions of the first annotation, the second annotation, and the third annotation can also be determined by moving them using the object movement function component; for example, such as... Figure 5 As shown, the first annotation is positioned at the top left corner, the second annotation at the top right corner, and the third annotation at the bottom left corner. Furthermore, the overall yield rate can be obtained by summing the volumes of the at least one irregularly shaped stone model and then dividing by the sum of the volumes of all the smallest rough stone blocks.

[0132] S7. For each model, obtain the edge line dimension information of the corresponding minimum bounding box of the stone, and mark the edge line dimension information on the corresponding irregular stone detail drawing.

[0133] In step S7, specifically, for each model, the edge line size information of the corresponding minimum bounding box of the stone is obtained, and the edge line size information is marked on the corresponding irregular stone detail drawing, including but not limited to the following steps S71 to S72.

[0134] S71. For a certain irregular stone model in the at least one irregular stone model, extract all edge lines of the corresponding minimum bounding box of the stone.

[0135] In step S71, since the minimum bounding box of the stone is a square model, the extraction of the edge lines can also be achieved through the model edge line extraction function component.

[0136] S72. For each edge line among all the edge lines, the corresponding edge line length value is obtained by processing according to the corresponding edge line length. Then, the edge line length value is used as the corresponding edge line size information. Combined with the corresponding edge line and the fourth text parameter configured by the user, an edge line annotation containing the edge line size information and the corresponding edge line is generated on the large-scale drawing of the irregular stone corresponding to the irregular stone model.

[0137] In step S72, the edge line length can also be achieved using the line length acquisition function component. The specific method for processing the edge line length can include, but is not limited to, rounding and text merging, to add a unit (e.g., "mm") after the edge line length to obtain the edge line length value. The generation of the edge line annotation can also be achieved using the straight line annotation function component. The fourth text parameter specifically includes, but is not limited to, text height, font type, and font color; the generation position of the edge line annotation can be, but is not limited to, located on the corresponding edge line or at a point around the corresponding edge line. The result of the edge line annotation of the stone's minimum bounding box can be, for example... Figure 10 As shown. In addition, a sorting function component conventionally designed on a low-code / no-code platform can be used to sort all the edge length values ​​from largest to smallest to obtain a list of edge length values. Then, the index filtering function component can be used to query the edge length values ​​with index values ​​of 0, 4 and 8 respectively in the list of edge length values, thereby obtaining the length, width and height information of the minimum block size of the stone for a certain irregular stone model.

[0138] Therefore, based on the automatic generation method for irregular stone detail drawings described in steps S1 to S7 above, a new scheme for automatically and intelligently generating irregular stone detail drawings based on irregular stone models is provided. Specifically, after obtaining the irregular stone models used to compose the target building, a unique code for each irregular stone model and a sample grid with a mesh size no less than the number of models are first generated. Then, the irregular stone models are moved one-to-one into the corresponding grids to generate initial irregular stone detail drawings and label the unique codes of the corresponding models. Finally, for each model, the dimensions of all edges, stone volume, minimum stone block volume, optimal yield, and edge dimensions of the corresponding minimum stone block are automatically obtained and labeled on the corresponding irregular stone detail drawings. This fundamentally solves the problems of time-consuming, labor-intensive, and error-prone existing methods, bridges the key gap between digital design and precision processing, improves the collaborative efficiency and engineering quality of the entire industry chain, and facilitates practical application and promotion.

[0139] like Figure 11As shown, the second aspect of this embodiment provides a virtual device for implementing the automatic generation method of irregular stone detail drawings described in the first aspect, including a model acquisition and encoding unit, a sample drawing grid generation unit, an initial sample drawing generation unit, an edge dimension annotation unit, a minimum enclosure generation unit, a volume output annotation unit, and a raw material dimension annotation unit.

[0140] The model acquisition and encoding unit is used to acquire at least one irregularly shaped stone model for composing the target building and generate a unique code for the at least one irregularly shaped stone model;

[0141] The sample grid generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate a sample grid with a mesh number not less than the number of models based on the number of models of the at least one irregular stone model.

[0142] The initial sample image generation unit is communicatively connected to the model acquisition encoding unit and the sample image grid generation unit, respectively. It is used to move the at least one irregular stone model into at least one grid of the sample image grid, generate at least one initial irregular stone large-scale image corresponding to the at least one irregular stone model, and mark the corresponding unique code on the corresponding irregular stone large-scale image for each model in the at least one irregular stone model.

[0143] The edge line dimension annotation unit is communicatively connected to the initial sample drawing generation unit. It is used to obtain the dimension information of all edge lines of the corresponding model for each model, and to annotate the dimension information of all edge lines on the corresponding irregular stone large-scale drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes the straight line length value, and the dimension information of the curves includes the curve length value and the arc radius value.

[0144] The minimum bounding box generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate the minimum bounding box of the stone for each model.

[0145] The volume output labeling unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively. It is used to obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the corresponding minimum bounding box of the stone, and the optimal output rate obtained based on the stone volume and the minimum stone block volume for each model, and to label the stone volume, the minimum stone block volume and the optimal output rate on the corresponding irregular stone large-scale drawing.

[0146] The raw material size annotation unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively, and is used to obtain the edge line size information of the corresponding minimum bounding box of the stone for each model, and annotate the edge line size information on the corresponding irregular stone large-scale drawing.

[0147] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the automatic generation method for large-scale drawings of irregularly shaped stones described in the first aspect, and will not be repeated here.

[0148] like Figure 12 As shown, the third aspect of this embodiment provides a computer device for executing the automatic generation method for irregularly shaped stone detail drawings as described in the first aspect. The device includes a storage module, a processing module, and a transceiver module connected in sequence. The storage module stores a computer program, the transceiver module sends and receives messages, and the processing module reads the computer program and executes the automatic generation method for irregularly shaped stone detail drawings as described in the first aspect. Specifically, the storage module may include, but is not limited to, random-access memory (RAM), read-only memory (ROM), flash memory, first-in-first-out (FIFO) memory, and / or first-in-last-out (FILO) memory, etc.; the processing module may, but is not limited to, use a microprocessor of the STM32F105 series. Furthermore, the computer device may also include, but is not limited to, a power supply module, a display screen, and other necessary components.

[0149] The working process, working details and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment can be found in the automatic generation method of large-scale irregular stone drawings described in the first aspect, and will not be repeated here.

[0150] This fourth aspect of the embodiment provides a computer-readable storage medium storing instructions comprising the method for automatically generating large-scale drawings of irregularly shaped stone as described in the first aspect. Specifically, the computer-readable storage medium stores instructions that, when executed on a computer, perform the method for automatically generating large-scale drawings of irregularly shaped stone as described in the first aspect. The computer-readable storage medium refers to a data storage medium, which may include, but is not limited to, floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or Memory Sticks. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0151] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be found in the automatic generation method of large-scale drawings of irregularly shaped stone as described in the first aspect, and will not be repeated here.

[0152] This fifth aspect of the embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the automatic generation method for large-scale drawings of irregularly shaped stone as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0153] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for automatically generating detailed drawings of irregularly shaped stone, characterized in that, include: Obtain at least one irregularly shaped stone model for composing the target building, and generate a unique code for the at least one irregularly shaped stone model; Based on the number of models of the at least one irregular stone model, generate a sample grid with a mesh number not less than the number of models; Move the at least one irregular stone model into at least one grid of the sample grid to generate at least one initial irregular stone large-scale drawing that corresponds to the at least one irregular stone model. For each model in the at least one irregular stone model, mark the corresponding unique code on the corresponding irregular stone large-scale drawing. For each model, obtain the dimension information of all edge lines of the corresponding model, and mark the dimension information of all edge lines on the corresponding irregular stone detail drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes the straight line length value, and the dimension information of the curves includes the curve length value and the arc radius value. For each of the aforementioned models, generate the minimum bounding box of the stone for that model; For each model, obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the minimum bounding box of the corresponding stone, and the optimal yield based on the stone volume and the minimum stone block volume, and mark the stone volume, the minimum stone block volume and the optimal yield on the corresponding irregular stone detail drawing. For each model, obtain the edge line dimension information of the corresponding minimum bounding box of the stone, and mark the edge line dimension information on the corresponding irregular stone detail drawing.

2. The method for automatically generating detailed drawings of irregularly shaped stone according to claim 1, characterized in that, Based on the number of models of the at least one irregularly shaped stone model, generate a sample grid with a mesh number not less than the number of models, including: Get the number of horizontal grids configured by the user; Based on the number of horizontal grids and the number of at least one irregular stone model, the number of models is divided by the number of horizontal grids, and the calculation result is rounded up to obtain the number of vertical grids. Based on the number of horizontal grids and the number of vertical grids, generate a sample grid with a number of grids no less than the number of models.

3. The method for automatically generating detailed drawings of irregularly shaped stone according to claim 1, characterized in that, For each model, obtain the dimension information of all edge lines of the corresponding model, and annotate the dimension information of all edge lines on the corresponding irregular stone detail drawing, including: For a specific irregular stone model in the at least one irregular stone model, extract all the edges of the corresponding model; For each edge line in the certain irregular stone model, determine whether the difference between the length of the corresponding edge line and the distance between the two ends of the corresponding edge line is less than a preset difference threshold. If so, the corresponding edge line is determined to be a straight line; otherwise, the corresponding edge line is determined to be a curve. For each straight line in all the edges of the irregular stone model, the corresponding straight line length value is obtained according to the corresponding edge length. Then, the straight line length value is used as the corresponding dimension information. Combined with the corresponding straight line and the first text parameter configured by the user, a straight line annotation containing the dimension information and the corresponding line is generated on the irregular stone detail drawing corresponding to the irregular stone model. For each curve in all the edges of a certain irregular stone model, the corresponding curve length value is obtained according to the corresponding edge length. Then, the curve length value is used as the corresponding first dimension information. Combined with the corresponding curve and the user-configured second text parameter, a curve annotation containing the first dimension information is generated on the irregular stone detail drawing corresponding to the certain irregular stone model. Also, based on the two endpoints and the midpoint of the corresponding curve, a corresponding arc is generated, and the arc radius value and the annotation point on the corresponding curve are obtained. Then, the arc radius value is used as the corresponding second dimension information. Combined with the arc, the annotation point, and the user-configured third text parameter, an arc radius annotation containing the second dimension information is generated on the irregular stone detail drawing corresponding to the certain irregular stone model.

4. The method for automatically generating detailed drawings of irregularly shaped stone according to claim 1, characterized in that, For each of the aforementioned models, generate the minimum bounding box for the stone material of that model, including: For a specific irregular stone model among the at least one irregular stone model, obtain the corresponding center of gravity; With the center of gravity as the origin, XY plane, XZ plane and YZ plane are generated that are mutually perpendicular to each other. A first control parameter for rotating the irregular stone model around the Z-axis from 0 to 360 degrees, a second control parameter for rotating the irregular stone model around the Y-axis from 0 to 360 degrees, and a third control parameter for rotating the irregular stone model around the X-axis from 0 to 360 degrees are constructed. The X-axis, the Y-axis and the Z-axis are mutually perpendicular to each other. Based on the normals of the XY plane, the XZ plane, and the YZ plane, a minimum circumscribed square box is formed to enclose the irregular stone model after it has been rotated according to the first control parameter, the second control parameter, and the third control parameter. An optimization algorithm is used to optimize the parameter vector consisting of the first control parameter, the second control parameter, and the third control parameter to obtain the optimal parameter vector for minimizing the volume of the minimum circumscribed square box. The minimum bounding box formed after rotating the irregular stone model according to the optimal parameter vector will be used as the minimum bounding box of the stone corresponding to the irregular stone model.

5. The method for automatically generating detailed drawings of irregularly shaped stone according to claim 1, characterized in that, For each model, obtain the corresponding stone volume, the minimum block volume of the stone based on the corresponding minimum bounding box, and the optimal yield based on the stone volume and the minimum block volume. Mark the stone volume, the minimum block volume, and the optimal yield on the corresponding irregular stone detail drawing, including: For a specific irregular stone model among the at least one irregular stone model, obtain the stone volume of the corresponding model; Based on the minimum bounding box of the stone corresponding to a certain irregular stone model, obtain the minimum volume of the stone block, and divide the stone volume by the minimum volume of the stone block to obtain the optimal yield. On the large-scale drawing of the irregular stone corresponding to the irregular stone model, a first annotation containing the volume of the stone, a second annotation containing the minimum volume of the stone block, and a third annotation containing the optimal yield are generated respectively, wherein the first annotation, the second annotation, and the third annotation are located in different positions.

6. The method for automatically generating detailed drawings of irregularly shaped stone according to claim 1, characterized in that, For each of the aforementioned models, the edge line dimension information of the corresponding minimum bounding box of the stone is obtained, and this edge line dimension information is marked on the corresponding large-scale drawing of the irregular-shaped stone, including: For a specific irregular stone model in the at least one irregular stone model, extract all edge lines of the corresponding minimum bounding box of the stone. For each edge line among all the edge lines, the corresponding edge line length value is obtained by processing according to the corresponding edge line length. Then, the edge line length value is used as the corresponding edge line size information. Combined with the corresponding edge line and the fourth text parameter configured by the user, an edge line annotation containing the edge line size information and the corresponding edge line annotation is generated on the large-scale drawing of the irregular stone corresponding to the irregular stone model.

7. An automatic drawing generation device for irregularly shaped stone, characterized in that, It includes a model acquisition and encoding unit, a sample grid generation unit, an initial sample generation unit, an edge dimension annotation unit, a minimum box generation unit, a volume output annotation unit, and a raw material dimension annotation unit; The model acquisition and encoding unit is used to acquire at least one irregularly shaped stone model for composing the target building and generate a unique code for the at least one irregularly shaped stone model; The sample grid generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate a sample grid with a mesh number not less than the number of models based on the number of models of the at least one irregular stone model. The initial sample image generation unit is communicatively connected to the model acquisition encoding unit and the sample image grid generation unit, respectively. It is used to move the at least one irregular stone model into at least one grid of the sample image grid, generate at least one initial irregular stone large-scale image corresponding to the at least one irregular stone model, and mark the corresponding unique code on the corresponding irregular stone large-scale image for each model in the at least one irregular stone model. The edge line dimension annotation unit is communicatively connected to the initial sample drawing generation unit. It is used to obtain the dimension information of all edge lines of the corresponding model for each model, and to annotate the dimension information of all edge lines on the corresponding irregular stone large-scale drawing. The edge lines include straight lines and curves. The dimension information of the straight lines includes the straight line length value, and the dimension information of the curves includes the curve length value and the arc radius value. The minimum bounding box generation unit is communicatively connected to the model acquisition and encoding unit, and is used to generate the minimum bounding box of the stone for each model. The volume output labeling unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively. It is used to obtain the stone volume of the corresponding model, the minimum stone block volume obtained based on the corresponding minimum bounding box of the stone, and the optimal output rate obtained based on the stone volume and the minimum stone block volume for each model, and to label the stone volume, the minimum stone block volume and the optimal output rate on the corresponding irregular stone large-scale drawing. The raw material size annotation unit is communicatively connected to the initial sample drawing generation unit and the minimum bounding box generation unit, respectively, and is used to obtain the edge line size information of the corresponding minimum bounding box of the stone for each model, and annotate the edge line size information on the corresponding irregular stone large-scale drawing.

8. A computer device, characterized in that, The device includes a storage module, a processing module, and a transceiver module that are sequentially connected in communication. The storage module is used to store computer programs, the transceiver module is used to send and receive messages, and the processing module is used to read the computer programs and execute the automatic generation method for large-scale drawings of irregularly shaped stones as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that... The computer-readable storage medium stores instructions that, when executed on a computer, perform the automatic generation method for large-scale drawings of irregularly shaped stones as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or the instructions are executed by the computer, they implement the automatic generation method for large-scale drawings of irregularly shaped stones as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Fabricated water scattering ditch structure and construction method thereof

    CN115059164A

  • Automatic design method and equipment for rockery, and medium

    CN116432286A