Create a line between two points :param v1: Vector that represents the first point :param v2: Vector that represents the second point :return: A linear edge between the two provided points
(cls, v1: VectorLike, v2: VectorLike)
| 2848 | |
| 2849 | @classmethod |
| 2850 | def makeLine(cls, v1: VectorLike, v2: VectorLike) -> Edge: |
| 2851 | """ |
| 2852 | Create a line between two points |
| 2853 | |
| 2854 | :param v1: Vector that represents the first point |
| 2855 | :param v2: Vector that represents the second point |
| 2856 | :return: A linear edge between the two provided points |
| 2857 | """ |
| 2858 | return cls( |
| 2859 | BRepBuilderAPI_MakeEdge(Vector(v1).toPnt(), Vector(v2).toPnt()).Edge() |
| 2860 | ) |
| 2861 | |
| 2862 | @classmethod |
| 2863 | def makeBezier(cls, points: list[Vector]) -> Edge: |