OpenSCAD显示顶点

 Primitive Solids

points = [[-2,0,0], [-2,-3,0], [0,-3,0], [0,0,0], [0,0,3], [0,-3,3]];

for(i=[0:len(points)-1]){    
    translate(points[i]){
        rotate([90,0,0])
        linear_extrude(height=0.05) {            
            text(str(i), size=0.5);
        }
    }
}
    
polyhedron(
    points = points,
    faces = [[0,1,2,3], [3,2,5,4], [1,0,4,5], [4,5,0], [0,3,4], [5,2,1]]
);

猜你喜欢

转载自blog.csdn.net/sonichty/article/details/130618840