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

Method locations

cadquery/occ_impl/shapes.py:2463–2480  ·  view source on GitHub ↗

Generate locations along the curve. :param ds: distance or parameter values :param mode: position calculation mode (default: length) :param frame: moving frame calculation method (default: frenet) :param planar: planar mode :return: A list of Locatio

(
        self: Mixin1DProtocol,
        ds: Iterable[float],
        mode: ParamMode = "length",
        frame: FrameMode = "frenet",
        planar: bool = False,
    )

Source from the content-addressed store, hash-verified

2461 return Location(TopLoc_Location(T))
2462
2463 def locations(
2464 self: Mixin1DProtocol,
2465 ds: Iterable[float],
2466 mode: ParamMode = "length",
2467 frame: FrameMode = "frenet",
2468 planar: bool = False,
2469 ) -> list[Location]:
2470 """
2471 Generate locations along the curve.
2472
2473 :param ds: distance or parameter values
2474 :param mode: position calculation mode (default: length)
2475 :param frame: moving frame calculation method (default: frenet)
2476 :param planar: planar mode
2477 :return: A list of Location objects representing local coordinate systems at the specified distances.
2478 """
2479
2480 return [self.locationAt(d, mode, frame, planar) for d in ds]
2481
2482 def project(
2483 self: T1D, face: Face, d: VectorLike, closest: bool = True

Callers 5

distributeMethod · 0.80
circlesFunction · 0.80
trimmed_circlesFunction · 0.80
test_styleFunction · 0.80
testLocationAtMethod · 0.80

Calls 1

locationAtMethod · 0.95

Tested by 4

circlesFunction · 0.64
trimmed_circlesFunction · 0.64
test_styleFunction · 0.64
testLocationAtMethod · 0.64