MCPcopy
hub / github.com/CadQuery/cadquery / extend

Method extend

cadquery/occ_impl/shapes.py:3905–3929  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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 """

Callers 15

update_hullFunction · 0.80
find_hullFunction · 0.80
runMethod · 0.80
runMethod · 0.80
distributeMethod · 0.80
eachMethod · 0.80
_selectMethod · 0.80
selectMethod · 0.80
addMethod · 0.80
_findTypeMethod · 0.80
loftMethod · 0.80
_getFacesMethod · 0.80

Calls 2

toNURBSMethod · 0.80
geomTypeMethod · 0.45

Tested by 4

test_extendFunction · 0.64
testUnionCompoundMethod · 0.64
get_nodesFunction · 0.64
test_prismFunction · 0.64