コード例 #1
0
ファイル: vertex.py プロジェクト: aothms/pythonocc-utils
    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))
コード例 #2
0
ファイル: vertex.py プロジェクト: chenkianwee/pythonocc-utils
    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))
コード例 #3
0
ファイル: vertex.py プロジェクト: jf---/pythonocc-utils
    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)
コード例 #4
0
ファイル: vertex.py プロジェクト: chenkianwee/pythonocc-utils
    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)
コード例 #5
0
 def build(self):
     if self.name.startswith('Vertex'):
         self = make_vertex(self)
コード例 #6
0
ファイル: base.py プロジェクト: chenkianwee/envuo
 def build(self):
     if self.name.startswith('Vertex'):
         self = make_vertex(self)