This invention belongs to the field of 3D printing model preprocessing technology, and particularly relates to a method, device, electronic device, and storage medium for generating support units on a specified plane. The method includes: traversing the model; obtaining the minimum model frame; aligning it to the origin of the zero-plane platform; raising the model; dividing it into preset squares; specifying a plane at the bottom of the model and obtaining the maximum
vertical projection range; obtaining all preset squares whose center points fall within the maximum
vertical projection range as candidate squares; obtaining the center points of the squares; specifying a
clock direction and using one square's center point as the starting extraction point, sequentially extracting square center points in pairs with a straight line interval of L + ΔX millimeters and determining them as extraction points; projecting straight lines vertically upwards from each extraction point, intersecting the bottom of the model as target points; leading support units downwards from each target point and connecting them between the bottom plane of the model and the zero-plane platform; and storing the three-dimensional data. This method enables the automatic batch generation of support units on a specified plane.