修改成三个方向的这样就可以更方便将面转成剖面了。

拍平X轴

拍平Y轴

拍平Z轴

```
def flatten_faceZ(face)
ents = face.parent.entities
verts = face.vertices
vectors = verts.map { |v| Geom::Vector3d.new(0, 0, -v.position.z) }
ents.transform_by_vectors(verts, vectors)
end
def flatten_faceX(face)
ents = face.parent.entities
verts = face.vertices
vectors = verts.map { |v| Geom::Vector3d.new(-v.position.x, 0, 0) }
ents.transform_by_vectors(verts, vectors)
end
def flatten_faceY(face)
ents = face.parent.entities
verts = face.vertices
vectors = verts.map { |v| Geom::Vector3d.new(0, -v.position.y, 0) }
ents.transform_by_vectors(verts, vectors)
end
```