MCPcopy Index your code
hub / github.com/CadQuery/cadquery / trim

Method trim

cadquery/occ_impl/shapes.py:3812–3821  ·  view source on GitHub ↗

Trim the face in the (u,v) space to (u0, u1)x(v1, v2). NB: this operation is done on the base geometry.

(self, u0: Real, u1: Real, v0: Real, v1: Real, tol: Real = 1e-6)

Source from the content-addressed store, hash-verified

3810
3811 @multimethod
3812 def trim(self, u0: Real, u1: Real, v0: Real, v1: Real, tol: Real = 1e-6) -> Self:
3813 """
3814 Trim the face in the (u,v) space to (u0, u1)x(v1, v2).
3815
3816 NB: this operation is done on the base geometry.
3817 """
3818
3819 bldr = BRepBuilderAPI_MakeFace(self._geomAdaptor(), u0, u1, v0, v1, tol)
3820
3821 return self.__class__(bldr.Shape())
3822
3823 @multimethod
3824 def trim(

Callers

nothing calls this directly

Calls 5

_geomAdaptorMethod · 0.95
constructOnMethod · 0.95
WireClass · 0.85
appendMethod · 0.80
fixMethod · 0.80

Tested by

no test coverage detected