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

Method trim

cadquery/occ_impl/shapes.py:2599–2608  ·  view source on GitHub ↗

Trim the edge in the parametric space to (u0, u1). NB: this operation is done on the base geometry.

(self, u0: Real, u1: Real)

Source from the content-addressed store, hash-verified

2597 return rv
2598
2599 def trim(self, u0: Real, u1: Real) -> Edge:
2600 """
2601 Trim the edge in the parametric space to (u0, u1).
2602
2603 NB: this operation is done on the base geometry.
2604 """
2605
2606 bldr = BRepBuilderAPI_MakeEdge(self._geomAdaptor().Curve().Curve(), u0, u1)
2607
2608 return self.__class__(bldr.Shape())
2609
2610 def hasPCurve(self, f: Face) -> bool:
2611 """

Callers 15

constructOnMethod · 0.45
faceOnFunction · 0.45
trimmed_circlesFunction · 0.45
test_approximateFunction · 0.45
test_ctrlPtsFunction · 0.45
test_trimmingFunction · 0.45
test_edgeOnFunction · 0.45
olFunction · 0.45
vtk.jsFile · 0.45
jIFunction · 0.45
XIFunction · 0.45
rFunction · 0.45

Calls 1

_geomAdaptorMethod · 0.95

Tested by 5

trimmed_circlesFunction · 0.36
test_approximateFunction · 0.36
test_ctrlPtsFunction · 0.36
test_trimmingFunction · 0.36
test_edgeOnFunction · 0.36