def _update(self): """ """ # TODO: perhaps should take an argument until which topological level # topological entities bound to the vertex should be updated too... reshape = ShapeBuild_ReShape() reshape.Replace(self._vertex, make_vertex(self._pnt))
def __init__(self, x, y, z): """Constructor for KbeVertex""" KbeObject.__init__(self, name='Vertex #{0}'.format(self._n)) self._n += 1 # should be a property of KbeObject self._pnt = gp_Pnt(x, y, z) self._vertex = make_vertex(self._pnt) TopoDS_Vertex.__init__(self, self._vertex)
def __init__(self, x, y, z): super(Vertex, self).__init__() """Constructor for KbeVertex""" BaseObject.__init__(self, name='Vertex #{0}'.format(self._n)) self._n += 1 # should be a property of KbeObject self._pnt = gp_Pnt(x, y, z) self._vertex = make_vertex(self._pnt) TopoDS_Vertex.__init__(self, self._vertex)
def build(self): if self.name.startswith('Vertex'): self = make_vertex(self)