MCPcopy Create free account
hub / github.com/CadQuery/cadquery / __init__

Method __init__

cadquery/occ_impl/shapes.py:2010–2017  ·  view source on GitHub ↗

Create a vertex

(self, obj: TopoDS_Shape, forConstruction: bool = False)

Source from the content-addressed store, hash-verified

2008 wrapped: TopoDS_Vertex
2009
2010 def __init__(self, obj: TopoDS_Shape, forConstruction: bool = False) -> None:
2011 """
2012 Create a vertex
2013 """
2014 super(Vertex, self).__init__(obj)
2015
2016 self.forConstruction = forConstruction
2017 self.X, self.Y, self.Z = self.toTuple()
2018
2019 def toTuple(self) -> tuple[float, float, float]:
2020

Callers

nothing calls this directly

Calls 2

toTupleMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected