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

Method isoline

cadquery/occ_impl/shapes.py:3876–3894  ·  view source on GitHub ↗

Construct an isoline.

(self, param: Real, direction: Literal["u", "v"] = "v")

Source from the content-addressed store, hash-verified

3874 return self.__class__(bldr.Face()).fix()
3875
3876 def isoline(self, param: Real, direction: Literal["u", "v"] = "v") -> Edge:
3877 """
3878 Construct an isoline.
3879 """
3880
3881 u1, u2, v1, v2 = self._uvBounds()
3882
3883 if direction == "u":
3884 iso = GeomAbs_IsoType.GeomAbs_IsoU
3885 p1, p2 = v1, v2
3886 else:
3887 iso = GeomAbs_IsoType.GeomAbs_IsoV
3888 p1, p2 = u1, u2
3889
3890 adaptor = Adaptor3d_IsoCurve(
3891 GeomAdaptor_Surface(self._geomAdaptor()), iso, param
3892 )
3893
3894 return Edge(_adaptor_curve_to_edge(adaptor, p1, p2))
3895
3896 def isolines(
3897 self, params: Iterable[Real], direction: Literal["u", "v"] = "v"

Callers 3

isolinesMethod · 0.95
test_isolinesFunction · 0.45

Calls 4

_uvBoundsMethod · 0.95
_geomAdaptorMethod · 0.95
EdgeClass · 0.85
_adaptor_curve_to_edgeFunction · 0.85

Tested by 2

test_isolinesFunction · 0.36