A split algorithm for rock slab design drawings
The DXF-based algorithm simplifies the stone slab design process by annotating main body types and components, reducing drawing time and improving efficiency in stone material processing.
Patent Information
- Application Number
- CN202111225093.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2041-10-21
AI Technical Summary
In the prior art, stone processing design drawings require drawings from parts one by one side, resulting in a long time and low efficiency.
DXF files are used as the drawing carrier, and the drawing steps are simplified by marking the main body type number, special process number and different colors of cutting lines and opening contours, and the drawing steps are simplified, and the system filtering rules and accelerated graphics Boolean operation algorithm are used to calculate part parameters and shapes to form a three-dimensional solid image.
It improves the efficiency of drawings, avoids unclear labeling, is well organized, greatly saves file retrieval and archiving time, and simplifies the operation process.
Smart Images

Figure CN113849876B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of design drawing splitting algorithms, and particularly to a splitting algorithm for rock slab design drawings. Background Art
[0002] In the stone processing industry, the production of kitchen and bathroom countertops involves not only a single panel, but also many other stone accessories on the sides of each edge of the countertop and the bottom of the countertop. When drawing the stone processing design drawings at present, it is necessary to draw all the parts such as the countertop, underhang, water stop, reverse buckle, and cushion strip one by one before they can be cut one by one on the mechanical equipment. In this way, it takes a very long time to complete a design drawing. Therefore, we propose a splitting algorithm for rock slab design drawings. Summary of the Invention
[0003] The purpose of the present invention is to provide a splitting algorithm for rock slab design drawings, and the technical problem to be solved is to simplify the drawing method for stone processing. The traditional drawing method requires drawing each part of the design drawing edge by edge and line by line, which is extremely cumbersome and affects work efficiency.
[0004] To achieve the above purpose, the present invention provides the following technical solution: A splitting algorithm for rock slab design drawings. The splitting of the rock slab design drawing simplifies the drawing method for rock slab processing. The specific steps for simplifying the drawing method are as follows:
[0005] S1: Using a DXF file as the drawing carrier, draw the basic main body contour on the DXF.
[0006] S2: Within a certain range of the main body, label the main body type number. If not labeled, it is defaulted to a common countertop.
[0007] S3: Within a certain range of the main body, label the special process number. If not labeled, it is defaulted to the standard process.
[0008] S4: If the main body needs to be split, draw the cutting line using a line with a different line type from the main body contour, and modify the colors of each side of the main body contour according to the accessory type.
[0009] S5: Within a certain range of the main body, label the width (or height) of various types of accessories. It is not necessary to label each side one by one. If the accessory is not perpendicular to the main body, the offset angle or offset width is also labeled in the annotation of this step.
[0010] S6: If the widths of multiple accessories of the same type are inconsistent, on the basis of S5, it can be labeled separately for the specified side; if the widths of multiple accessories of the same type are consistent, it can also be labeled side by side.
[0011] S7: If the main body has openings, draw the opening contour using a line with a different color from the main body contour.
[0012] S8: If accessories are required for the opening, use the S6 marking method to mark the width of the accessories on the corresponding side.
[0013] S9: If the same order contains different types of main bodies, repeat S1 to S8, draw the diagrams at different positions in the same DXF, and then import them into the system.
[0014] S10: The system uses filtering rules to analyze the markings, calculates the contours of the multiple divided main bodies and accessories, and calculates the processing technology of each side of all parts.
[0015] S11: Obtain the polyline data set, then collect the maximum three-dimensional coordinate points of the polyline, and perform vector conversion on the coordinate points to form a closed vector graphic of the line segment.
[0016] S12: Form a set of line segment objects of the design drawing from the set of closed vector graphics, then copy it to the database to obtain a three-dimensional entity image, and convert it to a preset file format.
[0017] S13: Store the format file in the system and supply it for use in the production line.
[0018] In step S10, the filtering rule is that the system traverses the layers in the drawing, finds the layer with the preset splitting rule, and when reading a single file, it is necessary to select a file object, and use the principle of circle intersection selection by taking points multiple times, and use the object filter to filter out the selection set objects that meet the conditions.
[0019] In step S10, the system calculates various parameters such as the shapes, sizes, and positions of the required parts, adds the automatically analyzed parts to the design drawing, and displays them at the correct positions to complete the drawing of the required parts.
[0020] In step S11, the polyline data set is converted into an entity, and at the same time, the COMParameter Modifier component is called to obtain the maximum three-dimensional coordinates of the polyline data set.
[0021] In step S11, according to the drawing order, use the vector aperture to form a trajectory based on the collected three-dimensional coordinate information, and at the same time, move the three-dimensional coordinate information to convert each drawing item into a closed vector graphic, and the closed vector graphic carries graphic polarity information.
[0022] Judge the graphic polarity information of the closed vector graphics in turn according to the conversion order of the vector graphics, group the closed vector graphics with consecutive conversion orders and the same graphic polarity together, and use the accelerated graphic Boolean operation algorithm to obtain the contour and corner point information of the slab design drawing.
[0023] The accelerated graphic Boolean operation algorithm means that the graphics within each group are first operated to obtain the intra-group operation results, and then all the intra-group operation results are subjected to inter-group operations.
[0024] In step S12, a new database object and an entity object set are created. The selected entities are copied to the newly created database object, and the insertion base point is set as the new database base point.
[0025] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0026] The invention uses a DXF file as the drawing carrier, draws the basic main body contour on the DXF, marks the main body type number and the special process number to achieve differentiation. When the main body needs to be split, the cutting line is drawn with a line of a different line type from the main body contour. For each side of the main body contour, according to the fitting type, it is modified to a different color, and at the same time, the width (or height) of various types of fittings is marked. It is not necessary to mark each side one by one, the operation is simple, clear at a glance, and the visibility is relatively high. At the same time, if the main body has openings, the opening contour is drawn with a line of a different color from the main body contour. If the opening requires fittings, it can be marked separately for a specified side or marked for each side one by one. The markings are independently separated, the splitting efficiency is high, and the simplification is strong. It greatly improves the drawing efficiency of the drawing, avoids the situation of unclear drawing markings, is well-organized, and greatly saves the time for file retrieval, reuse and filing. Description of the Drawings
[0027] Figure 1 is the working flowchart of the present invention. Detailed Embodiments
[0028] Next, in combination with the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0029] Reference Figure 1 , the present invention provides a technical solution: a splitting algorithm for a rock slab design drawing. The splitting of the rock slab design drawing simplifies the drawing method for rock slab processing. The specific steps for simplifying the drawing method are as follows:
[0030] S1: Use a DXF file as the drawing carrier and draw the basic main body contour on the DXF;
[0031] S2: Within a certain range of the main body, mark the main body type number. If not marked, it is defaulted to a common tabletop;
[0032] S3: Within a certain range of the main body, mark the special process number. If not marked, it is defaulted to the standard process;
[0033] S4: If the main body needs to be segmented, draw the cutting line with a line type different from that of the main body contour, and for each side of the main body contour, modify it to a different color according to the fitting type;
[0034] S5: Within a certain range of the main body, mark the width (or height) of various types of fittings. It is not necessary to mark each side one by one. If the fitting is not perpendicular to the main body, mark the offset angle or offset width simultaneously in the marking of this step;
[0035] S6: If the widths of multiple fittings of the same type are inconsistent, on the basis of S5, mark them separately for the specified side; if the widths of multiple fittings of the same type are consistent, it is also possible to mark each side one by one;
[0036] S7: If the main body has openings, draw the opening contour with a line of a color different from that of the main body contour;
[0037] S8: If the opening requires a fitting, use the marking method of S6 to mark the width of the fitting on the corresponding side;
[0038] S9: If the same order contains different types of main bodies, repeat S1 to S8, draw the pictures at different positions in the same DXF, and then import them into the system. That is, when different types of designs are included in the same order, only corresponding markings need to be made in the DXF. To avoid confusion, the font of the type marking needs to use a unique color:
[0039] Ordinary countertop: Mark the ordinary countertop number within the closed figure (since the ordinary countertop accounts for a large proportion, those not marked are defaulted to ordinary countertops);
[0040] Pure water baffle: Use an unclosed figure as the pure water baffle;
[0041] Integrated basin: On the basis of the ordinary countertop, add the basin edge height marking to the opening, then disassemble the countertop, and disassemble the integrated basin attached, while keeping the font color consistent with the opening line; Since there are many types of integrated basins, the types are also classified. For the non - vertical basin edge of the integrated basin, add the inward or outward offset length of the basin bottom in the basin edge height marking;
[0042] Bar counter: The bar counter is divided into single - layer feet and double - layer feet, distinguished by type markings. On the basis of the ordinary countertop, no additional markings are required. For the double - layer one, the reverse buckle needs to be marked, while the single - layer one does not;
[0043] S10: The system analyzes the markings using filtering rules, calculates the contours of the multiple segmented main bodies and fittings, and calculates the processing technology of each side of all parts;
[0044] S11: Obtain the polyline data set, then collect the maximum three - dimensional coordinate points of the polyline, and perform vector transformation on the coordinate points to form a closed vector graph of the line segment;
[0045] S12: Form a set of line segment objects for the design drawing from the set of closed vector graphics, then copy it to the database to obtain a three-dimensional entity image, and convert it into a preset file format;
[0046] S13: Store the format file in the system and supply it for use in the production line;
[0047] In step S10, the filtering rule is that the system traverses the layers in the drawing, finds the layer with the preset splitting rule, and when reading a single file, it is necessary to select a file object, and use the principle of crossing selection by taking points multiple times, and use an object filter to filter out the selection set objects that meet the conditions;
[0048] In step S10, the system calculates various parameters such as the shapes, sizes, and positions of the required parts, adds the automatically analyzed parts to the design drawing, and displays them in the correct positions to complete the drawing of the required parts;
[0049] In step S11, convert the multi-segment data set pair into an object, convert it into an entity, and at the same time call the COMParameter Modifier component to obtain the maximum three-dimensional coordinates of the multi-segment data set;
[0050] In step S11, according to the drawing order, use a vector aperture to form a trajectory based on the collected three-dimensional coordinate information, and at the same time move the three-dimensional coordinate information, convert each drawing item into a closed vector graphic, and the closed vector graphic carries graphic polarity information;
[0051] Judge the graphic polarity information of the closed vector graphics in turn according to the conversion order of the vector graphics, group the closed vector graphics with consecutive conversion orders and the same graphic polarity together, and use the accelerated graphic Boolean operation algorithm to obtain the contour and corner point information of the slab design drawing;
[0052] The accelerated graphic Boolean operation algorithm means that first perform operations on the graphics within each group to obtain the operation results within the group, and then perform inter-group operations on all the operation results within the group;
[0053] In step S12, create a new database object, a set of entity objects, copy the selected entity to the newly created database object, and set the insertion base point as the new database base point;
[0054] The invention uses a DXF file as the drawing carrier, draws the basic main body contour on the DXF, marks the main body type number and the special process number to achieve differentiation. When the main body needs to be segmented, a cutting line is drawn with a line type different from the main body contour. For each side of the main body contour, according to the fitting type, it is modified to different colors, and at the same time, the width (or height) of various types of fittings is marked. It is not necessary to mark each side one by one, the operation is simple, clear at a glance, and the visibility is relatively high. At the same time, if the main body has openings, an opening contour is drawn with a line of a color different from the main body contour. If the opening requires fittings, it can be marked separately for a specified side or marked for each side one by one. The markings are independent and separated, the splitting efficiency is high, and the simplification is strong, which greatly improves the drawing efficiency of the drawing, avoids the situation of unclear drawing markings, is well-organized, and greatly saves the time for file retrieval, reuse and filing.
[0055] Although the embodiments of the present invention have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A split algorithm for a rock slab design drawing, characterized in that: The splitting of the rock slab design drawing simplifies the way of drawing for rock slab processing. The specific steps for simplifying the drawing method are as follows: S1: Use the DXF file as the drawing carrier and draw the basic main body contour on the DXF. S2: Mark the main body type number on the main body. If not marked, it is defaulted to an ordinary tabletop. S3: Mark the special process number on the main body. If not marked, it is defaulted to the standard process. S4: If the main body needs to be split, draw the cutting line with a line type different from the main body contour, and modify the sides of the main body contour to different colors according to the fitting type. S5: Mark the widths of various types of fittings on the main body. It is not necessary to mark each side one by one. If the fitting is not perpendicular to the main body, the offset angle or offset width is also marked in the annotation of this step. S6: If the widths of multiple fittings of the same type are inconsistent, based on S5, mark them separately for the specified side; if the widths of multiple fittings of the same type are consistent, mark them side by side one by one. S7: If the main body has openings, draw the opening contour with a line of a different color from the main body contour. S8: If the opening requires a fitting, use the S6 annotation method to mark the fitting width on the corresponding side. S9: If the same order contains different types of main bodies, repeat S1 to S8, draw the drawings at different positions on the same DXF, and then import them into the system. S10: The system analyzes the annotations using filtering rules, calculates the contours of the multiple split main bodies and fittings, and calculates the processing technology of each side of all parts. S11: Obtain the polyline data set, then collect the maximum three-dimensional coordinate points of the polyline, and perform vector conversion on the coordinate points to form a closed vector graph of the line segment. S12: Combine the closed vector graphs to form a set of line segment objects of the design drawing, then copy them to the database to obtain a three-dimensional solid image, and convert it to a preset file format. S13: Store the format file in the system and supply it for use in the production line.
2. The splitting algorithm for a rock slab design drawing according to claim 1, wherein: In step S10, the filtering rule is that the system traverses the layers in the drawing, finds the layer with the preset splitting rule, and needs to select the file object when reading a single file. Using the principle of crossing selection by taking points multiple times, the object filter is used to filter out the selection set objects that meet the conditions.
3. The splitting algorithm for a rock slab design drawing according to claim 1, characterized in that: In step S10, the system calculates the various shapes, sizes, and position parameters of the required parts, adds the automatically analyzed parts to the design drawing, and displays them in the correct positions to complete the drawing of the required parts.
4. A split algorithm for a rock slab design drawing according to claim 1, characterized in that: In step S11, the polyline data set is converted into an object and then into a solid. At the same time, calling the COM Parameter Modifier component can obtain the maximum three-dimensional coordinates of the polyline data set.
5. The splitting algorithm for a rock slab design drawing according to claim 4, characterized in that: In step S11, according to the drawing order, using the vector aperture based on the collected three-dimensional coordinate information, and at the same time, the trajectory formed by the movement of the three-dimensional coordinate information, each drawing item is converted into a closed vector graph, and the closed vector graph carries the graphic polarity information.
6. The splitting algorithm for a rock slab design drawing according to claim 5, characterized in that: Judge the graphic polarity information of the closed vector graphics in sequence according to the conversion order of the vector graphics, group the closed vector graphics with consecutive conversion orders and the same graphic polarity, and use the accelerated graphic Boolean operation algorithm to obtain the contour and corner point information of the slab design drawing; the accelerated graphic Boolean operation algorithm refers to first performing operations on the graphics within each group to obtain the intra-group operation results, and then performing inter-group operations on all the intra-group operation results.
7. A splitting algorithm for a rock slab design drawing according to claim 1, characterized in that: In step S12, create a new database object, a collection of entity objects, copy the selected entities to the newly created database object, and set the insertion base point as the new database base point.
Citation Information
Patent Citations
Three-dimensional reconstruction and visualization method for engineering drawings
CN102855668A
Design drawing splitting method and system based on. NET plug-in
CN110096270A