Extend a face. Does not work well in periodic directions. :param d: length of the extension. :param umin: extend along the umin isoline. :param umax: extend along the umax isoline. :param vmin: extend along the vmin isoline. :param vmax: extend along
(
self,
d: float,
umin: bool = True,
umax: bool = True,
vmin: bool = True,
vmax: bool = True,
)
| 3903 | return [self.isoline(p, direction) for p in params] |
| 3904 | |
| 3905 | def extend( |
| 3906 | self, |
| 3907 | d: float, |
| 3908 | umin: bool = True, |
| 3909 | umax: bool = True, |
| 3910 | vmin: bool = True, |
| 3911 | vmax: bool = True, |
| 3912 | ) -> Face: |
| 3913 | """ |
| 3914 | Extend a face. Does not work well in periodic directions. |
| 3915 | |
| 3916 | :param d: length of the extension. |
| 3917 | :param umin: extend along the umin isoline. |
| 3918 | :param umax: extend along the umax isoline. |
| 3919 | :param vmin: extend along the vmin isoline. |
| 3920 | :param vmax: extend along the vmax isoline. |
| 3921 | """ |
| 3922 | |
| 3923 | # convert to NURBS if needed |
| 3924 | tmp = self.toNURBS() if self.geomType() != "BSPLINE" else self |
| 3925 | |
| 3926 | rv = TopoDS_Face() |
| 3927 | BRepLib.ExtendFace_s(tmp.wrapped, d, umin, umax, vmin, vmax, rv) |
| 3928 | |
| 3929 | return self.__class__(rv) |
| 3930 | |
| 3931 | def addHole(self, *inner: Wire | Edge) -> Self: |
| 3932 | """ |