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

Method edge

cadquery/sketch.py:798–811  ·  view source on GitHub ↗

Add an edge to the sketch.

(
        self: T, val: Edge, tag: Optional[str] = None, forConstruction: bool = False
    )

Source from the content-addressed store, hash-verified

796 return e.endPoint()
797
798 def edge(
799 self: T, val: Edge, tag: Optional[str] = None, forConstruction: bool = False
800 ) -> T:
801 """
802 Add an edge to the sketch.
803 """
804
805 val.forConstruction = forConstruction
806 self._edges.append(val)
807
808 if tag:
809 self._tag([val], tag)
810
811 return self
812
813 @multimethod
814 def segment(

Callers 15

segmentMethod · 0.95
arcMethod · 0.95
splineMethod · 0.95
bezierMethod · 0.95
_split_showablesFunction · 0.45
ctrlPtsFunction · 0.45
test_curveFunction · 0.45
test_approximateFunction · 0.45
test_nurbs.pyFile · 0.45
test_single_ent_selectorFunction · 0.45
test_prismFunction · 0.45

Calls 2

_tagMethod · 0.95
appendMethod · 0.80

Tested by 8

test_curveFunction · 0.36
test_approximateFunction · 0.36
test_single_ent_selectorFunction · 0.36
test_prismFunction · 0.36
test_prism_taperFunction · 0.36
test_offset2DFunction · 0.36
test_history_boolFunction · 0.36