building.py
building.py copied to clipboard
Mirror function
Mirror2D Input(geometry(Point2D, Line2D, Arc2D, PolyCurve2D)
Vector2 is mirror axe
Mirror2D.by_vector(geom, vector2) Mirror2D.by_line(geom, line2D Mirror2D.by_two_points, startpoint, endpoint)
i'll just write a transform function that every object will implement, and then add a matrix constructor for mirroring accepting a plane normal.