摘要 |
The present invention relates to an STL slicing method and, more particularly, provides a method for deriving slicing pixels from an STL file, in which an object on CAD data generated as an STL file is analyzed and arranged in the form of dots in pixels of a three-dimensional space, so as to obtain point cloud data for a cross-section, wherein the amount of calculations can be reduced by calculating a space occupied by each triangle mesh constituting an STL. The method comprises a step for: selecting one of a plurality of triangle meshes as a target mesh; for the target mesh, configuring an inspection rectangular parallelepiped space, which has three angular points of the target mesh as a part of angular points thereof, each of six surfaces of the inspection rectangular parallelepiped space being parallel to one of the XY plane, the YZ plane, and the ZX plane, which are configured by the X axis, the Y axis, and the Z axis of the space; calculating whether each of all inspection rectangular parallelepiped space pixels determined by dividing the inspection rectangular parallelepiped space by a predetermined method intersects the target mash, according to a predetermined order; determining a slicing pixel intersecting the target mesh among the all inspection rectangular parallelepiped space pixels; and repeatedly performing step (i) to step (iii) until it is determined, for all the plurality of triangle meshes, whether each of them is a slicing pixel. |