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

Method ellipse

cadquery/sketch.py:264–282  ·  view source on GitHub ↗

Construct an elliptical face.

(
        self: T,
        a1: Real,
        a2: Real,
        angle: Real = 0,
        mode: Modes = "a",
        tag: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

262 return self.each(lambda l: res.located(l), mode, tag)
263
264 def ellipse(
265 self: T,
266 a1: Real,
267 a2: Real,
268 angle: Real = 0,
269 mode: Modes = "a",
270 tag: Optional[str] = None,
271 ) -> T:
272 """
273 Construct an elliptical face.
274 """
275
276 res = Face.makeFromWires(
277 Wire.makeEllipse(
278 a1, a2, Vector(), Vector(0, 0, 1), Vector(1, 0, 0), rotation_angle=angle
279 )
280 )
281
282 return self.each(lambda l: res.located(l), mode, tag)
283
284 def trapezoid(
285 self: T,

Callers

nothing calls this directly

Calls 5

eachMethod · 0.95
VectorClass · 0.85
makeFromWiresMethod · 0.45
makeEllipseMethod · 0.45
locatedMethod · 0.45

Tested by

no test coverage detected