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

Method __init__

cadquery/sketch.py:151–172  ·  view source on GitHub ↗

Construct an empty sketch.

(
        self: T,
        parent: Any = None,
        locs: Iterable[Location] = (Location(),),
        obj: Optional[Compound] = None,
    )

Source from the content-addressed store, hash-verified

149 _solve_status: Optional[Dict[str, Any]]
150
151 def __init__(
152 self: T,
153 parent: Any = None,
154 locs: Iterable[Location] = (Location(),),
155 obj: Optional[Compound] = None,
156 ):
157 """
158 Construct an empty sketch.
159 """
160
161 self.parent = parent
162 self.locs = list(locs)
163
164 self._faces = obj if obj else Compound.makeCompound(())
165 self._edges = []
166
167 self._selection = None
168 self._constraints = []
169
170 self._tags = {}
171
172 self._solve_status = None
173
174 def __iter__(self) -> Iterator[Face] | Iterator[Edge]:
175 """

Callers

nothing calls this directly

Calls 2

LocationClass · 0.85
makeCompoundMethod · 0.80

Tested by

no test coverage detected