Software and method for editing SLC slice file
Through Python-based software, 3D and 2D visual editing of SLC files is solved, and the difficulty of editing SLC file outline data in the existing technology is provided, friendly interface and multiple operation dimensions are provided, and the quality of 3D printing finished products is improved and the design flexibility is improved. sex.
Patent Information
- Application Number
- CN202411003772.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art is difficult to manually edit and post-process the contour data in SLC files, especially in the case of complex 3D models and precision machining requirements. The files automatically generated by the software are difficult to meet the actual needs, and the binary format makes direct editing difficult.
Provides a Python-based software that uses the PyQt6 interface to realize 3D and 2D visual editing of SLC files, supports browsing, copying, and deleting slice layers, and directly editing outline points in the 2D interface, and operates through the graphical interface.
It realizes intuitive editing and precise operation of SLC files, improves the quality of 3D printing finished products, expands the application scope of 3D printing technology, provides a friendly interface and a variety of operation dimensions, and adapts to the needs of complex scenarios.
Smart Images

Figure CN118940346A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 3D printing, and more particularly to software and a method for editing an SLC slice file. Background Art
[0002] 3D printing technology, also known as additive manufacturing, is an emerging additive manufacturing technology. This technology converts 3D digital models into extremely thin layers by slicing them, and forms a three-dimensional entity by stacking them layer by layer. Today, 3D printing technology is relatively mature and has a wide range of applications, including prototyping, small batch production, customized product manufacturing, and complex geometric shape manufacturing.
[0003] 3D printing involves a variety of file formats, such as STL, 3MF, OBJ, etc. These data formats mainly store digital models in the form of a three-dimensional whole. STL is the most widely recognized and used 3D printing file format. 3MF not only contains the geometric data of the model, but can also embed materials, colors, textures and even manufacturing metadata, providing better support for multi-material printing and advanced manufacturing. The OBJ format is often used to exchange data between professional 3D modeling and animation software. It can save color information, texture coordinates and surface normals, making OBJ more suitable for scenes that need to retain model appearance details.
[0004] The SLC format is an important intermediate file format for 3D printing, usually obtained by layered slicing in formats such as STL and 3MF. The SLC format stores printing data in the form of two-dimensional layers and is mainly used in stereolithography (SLA) 3D printing technology. The SLC format was developed by Materialise and stores data in binary form with a specific structure, including a header file, a reserved part, a sample table part, and a contour data part. The file organizes data in a tree structure, and describes the height and contour information of each layer of the model in detail from low to high. The characteristic of the SLC format is that its data is strictly stacked and arranged in order from bottom to top. Although the number of slice layers is not directly provided, the slice information of the entire model can be determined by parsing the number and structure of boundaries in the file. The boundary point set of each slice is closed and connected end to end, and the inner and outer contours are distinguished by the clockwise or counterclockwise arrangement direction of the point set.
[0005] Although the SLC file data structure is clear and convenient to use in some professional fields, the contour layer is directly generated by the software, and the quality depends entirely on the software design and 3D model. Although the software often provides a preview of the contour layer, it is not possible to manually post-process the contour. When complex 3D models require precision machining and special production requirements, the SLC files automatically generated by the software are difficult to meet actual needs. At the same time, the software stores data in binary format, making it very difficult and cumbersome to directly edit the contour point data and complete the processing.
[0006] Therefore, developing a method that can realize visual editing of SLC files is of great significance to promote the development of SLC file post-processing technology. The software has the functions of browsing, copying, deleting slice layers, and directly editing contours within the layer. It can not only enable users to effectively correct contour defects and thus improve the quality of 3D printed products, but also expand the application scope of 3D printing technology by enhancing design flexibility. Summary of the invention
[0007] To fill the gaps in the prior art, the present invention provides a software and method for editing SLC slice files. The software can display the slice layer outline in a 3D interface and support browsing, copying, and deleting slice layers. At the same time, the software can directly edit the single layer outline in a 2D interface. All operations of the software can be implemented through a graphical interface.
[0008] A software and method for editing SLC slice files, including the following functions:
[0009] The software of the present invention is implemented based on Python language, and the interface is based on PyQt6. The software reads and stores data in binary and processes in decimal according to the SLC file format. The software includes an initial overall interface, which includes an SLC file name input box, a 3D function button and a 2D function button.
[0010] When the user enters the file name (including the file suffix) in the SLC file input box and clicks the "3D Display" button, the software will read the SLC file and create a 3D display window based on pyqtgraph to display all slice layers in the window. The user can zoom the image by sliding the middle mouse button and rotate the image by dragging the left mouse button.
[0011] Click the "Display Layer by Layer" button, and the software will only display a single slice layer. Users can display different slice layers by changing the input box value (integer). Click the "Delete" button, and the software will delete all layers between two slice layers. The two slice layers are determined by the corresponding input box value of this row. Click the "Copy" button, and the software will copy a slice layer to the front of another layer. The copy layer, the position after copying, and the number of copies are determined by the input box corresponding to the "Copy" button row.
[0012] Click the "2D Display" button, and the software will display a plane display interface. This interface will display the outline of a slice layer, and the specific layer is determined by the value in the input box. In the plane display interface, the outline display area shows the outline of the slice layer, which is fitted by points. Users can zoom in and out by rolling with the middle mouse button and pan by dragging with the left button. The button and input box realize the point editing function. The information display area displays the current operation information.
[0013] In the plane display interface, click the "Select Point" button to select a contour point, modify its coordinates in the input box in the upper right corner of the interface and confirm. The currently selected point will be marked with an "X". Click the "Delete Point" button to delete the marked point. Click the "Insert Point" button, and then click the contour display area to insert the clicked position as a new contour point after the marked point. At this time, the user can modify the insertion point coordinates in the input box in the upper right corner of the interface and click to confirm.
[0014] Click the "Batch Select Data Points" button, the user can select the area with the mouse, and a batch processing window will pop up. The user can use this window to batch translate and delete the data points in the selected area. Click the "Save" button to save the contour processing results of this layer to the SLC file.
[0015] The present invention discloses a software and method for editing SLC slice files. Users can edit the slice files in SLC format through a graphical interface and make targeted modifications to the slices. The invention has the following advantages:
[0016] 1. Friendly interface. The data stored in the SLC file is intuitively displayed in 3D and 2D graphics, and a direct operation interface is provided. Users can understand and process the slice data visually.
[0017] 2. Accurate and reliable. The SLC format file stores the contour in the form of points. The software provides the possibility to directly perform precise operations on each data point in the contour.
[0018] 3. It provides several different operation dimensions, including whole layer processing, intra-layer contour data point processing and batch data point processing, which can adapt to a variety of situations. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention is described below with the aid of the accompanying drawings, wherein:
[0020] Figure 1 The accompanying drawing is an initial overall interface diagram of the present invention.
[0021] Figure 2 The accompanying drawing is a 3D display window diagram of the present invention.
[0022] Figure 3The accompanying drawing is a planar display interface diagram of the present invention.
[0023] Figure 4 The accompanying drawing is a batch processing window diagram of the present invention. Specific implementation method 1
[0025] Step 1: Move the SLC file one_TEST.slc to the directory where the software is located, open the software, enter "one_TEST.slc" in the initial interface, click the "3D Display" button, and use the mouse to observe all slice layers.
[0026] Step 2: Click the layer-by-layer display button to view the contour information of each slice layer in detail and record the layer to be modified.
[0027] Step 3. In the delete button row, enter 50 and 100 respectively, and click the delete button to delete the slice layers between 50 and 100.
[0028] Step 4. Change the file name to "newone_TEST.slc", click the "3D Display" button, and check whether the slice layer is deleted correctly in combination with the layer-by-layer display. Specific implementation method 2
[0030] Step 1: Move the SLC file one_TEST.slc to the directory where the software is located, open the software, enter "one_TEST.slc" in the initial interface, click the "3D Display" button, and use the mouse to observe all slice layers.
[0031] Step 2: Click the layer-by-layer display button to view the contour information of each slice layer in detail and record the layer to be modified.
[0032] Step 3: In the Copy button row, enter 10, 20, and 5 respectively, and click the Copy button. This operation will copy the 10th layer to before the 20th layer, and the number of copies is 5.
[0033] Step 4. Change the file name to "newone_TEST.slc", click the "3D Display" button, and check whether the slice layer is copied correctly in combination with the layer-by-layer display. Specific implementation method 3
[0035] Step 1: Move the SLC file one_TEST.slc to the directory where the software is located, open the software, enter "one_TEST.slc" in the initial interface, click the "3D Display" button, and use the mouse to observe all slice layers.
[0036] Step 2: Click the layer-by-layer display button to view the contour information of each slice layer in detail and record the layer to be modified.
[0037] Step 3. Enter 10 in the "2D Display" button row and click the button to open the modification interface for the 10th layer.
[0038] Step 4. Click the "Select Point" button, click to select a point in the contour display interface, view the point coordinates in the upper right corner of the interface, modify them as needed, and click the Confirm button to confirm the modification of the point.
[0039] Step 5. Click the Insert button to insert a point at the mouse click. You can click the mouse continuously to insert multiple points. The inserted points will be arranged in sequence after the selected point to keep the outline continuous.
[0040] Step 6. Click the "Select Point" button, select the point to be deleted, and click the "Delete Point" button to delete it.
[0041] Step 7. Click the "Batch Select Data Points" button, select a rectangular area by clicking twice in the contour display interface, and the points in the area will be marked. In the pop-up window, translate the marked points.
[0042] Step 8. Click the Save button and close the window.
[0043] Step 9. Change the file name to "newone_TEST.slc", click the "3D Display" button, and check whether the slice layer 10 is displayed normally in combination with the layer-by-layer display. In the "2D Display" button row, enter 10 and click the button to further check the data point coordinates.
[0044] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A computer software for editing SLC slice files, characterized in that: include: a. A software platform developed based on Python language and PyQt6 interface, designed to process 3D printing slice data following a specific SLC file format; b. File input module, allowing users to enter the name of the SLC file, including the file suffix, so that the software can load data; c. The three-dimensional display function is realized through the pyqtgraph library, which can dynamically display the outlines of all slice layers in the SLC file on the interface. Supports middle-button zooming and left-button rotation to browse different perspectives; d. Layer control function, which allows users to display or select specific slice layers layer by layer in the 3D view by inputting specified values, and provides the functions of deleting and copying slice layers. The copy function supports specifying the copy layer, target location and number of copies; e. Two-dimensional editing interface, providing contour point editing function for a single selected slice layer, including point selection, deletion, insertion and coordinate modification, and realized through a graphical interface; f. Batch data point processing capability, allowing users to select and batch operate data points in the 2D interface, including translation and deletion, and providing preview and confirmation steps; g. Data saving mechanism, which can save the contour editing completed by the user in the 2D interface directly back to the new SLC file.
2. The software system according to claim 1, characterized in that: The three-dimensional display function further includes a "layer-by-layer display" button, which enables the user to view the layer individually by entering a specified slice layer number.
3. The software system according to claim 1, characterized in that: The slice layer processing function includes the ability to operate accurately to each contour point, which improves the accuracy and flexibility of editing.
4. The software system according to claim 1, characterized in that: The two-dimensional editing interface includes "select point", "delete point" and "insert point" buttons, as well as an information display area, which is used to provide real-time feedback on user operation status and editing parameters.
5. The software system according to claim 1, characterized in that: The batch data point processing function is initiated by the "Batch Select Data Points" button, supports user-defined area selection, and provides an auxiliary window to execute batch editing instructions for the selected data points.
6. A method for editing an SLC slice file, characterized in that: Includes steps: a. Receive input of SLC file through graphical user interface; b. Read the slice data in the SLC file in binary form and convert it to decimal for processing; c. Dynamically display the slice layer outline in the 3D interface, and provide browsing, zooming and rotating functions; d. After receiving the user's instruction, switch to the two-dimensional interface to display the contour details of the specific slice layer; e. Allows users to add, delete, move and batch edit contour points directly in the 2D interface; f. Save the edited slice data to SLC file format.
7. The method according to claim 6, characterized in that The method also includes step g. providing the functions of copying and deleting the slice layer, and specifying the number of slice layers to be operated in the three-dimensional interface.
8. The method according to claim 6, characterized in that The batch editing operation includes but is not limited to batch selection, translation and deletion of points, which improves editing efficiency.
9. The method according to claim 6, characterized in that All editing operations are completed through an intuitive graphical user interface, without the need for programming knowledge, which enhances user experience and operation-friendliness.
