示例#1
0
 def gvolume(self, mode='subst', display=False):
     """ get a line
     gline(mode='subst',view=0)
     """
     p0 = self.position[:, 0]
     (p1, N1) = eg.pointbox(p0, 10, 'Enter Volume second point')
     (p2, N2) = eg.pointbox(p1, 10, 'Enter Volume third point')
     (p3, N3) = eg.pointbox(p2, 10, 'Enter Volume fourth point')
     self.volume(N1, N2, N3, p0, p1, p2, p3, mode)
     self.save()
     if display:
         self.show3()
示例#2
0
    def gsurface(self, mode='subst', display=False):
        """ get a surface
        gline(mode='subst',display=False)
        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10, 'Enter Surface second point')

        (p2, N2) = eg.pointbox(p1, 10, 'Enter Surface third point')
        self.surface(N1, N2, p0, p1, p2, mode)
        self.save()
        if display:
            self.show3()
示例#3
0
 def gpoint(self, mode='subst', display=False):
     """ get a point
     """
     p0 = self.position[:, 0]
     (p0, n1) = eg.pointbox(p0, 1)
     self.point(p0, [1], np.eye(3), mode)
     self.save()
     if display:
         self.show3()
示例#4
0
 def gline(self, mode='subst', display=False):
     """ get a line
     A line is built between the first point
     """
     p0 = self.position[:, 0]
     (p1, N1) = eg.pointbox(p0, 10)
     self.line(N1, p0, p1, mode)
     self.save()
     if display:
         self.show3()
示例#5
0
    def gvolume(self, mode='subst', display=False):
        """ gui volume 

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10, 'Enter Volume second point')
        (p2, N2) = eg.pointbox(p1, 10, 'Enter Volume third point')
        (p3, N3) = eg.pointbox(p2, 10, 'Enter Volume fourth point')
        self.volume(N1, N2, N3, p0, p1, p2, p3, mode)
        self.save()
        if display:
            self.show3()
示例#6
0
    def gsurface(self, mode='subst', display=False):
        """ gui surface

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10, 'Enter Surface second point')

        (p2, N2) = eg.pointbox(p1, 10, 'Enter Surface third point')
        self.surface(N1, N2, p0, p1, p2, mode)
        self.save()
        if display:
            self.show3()
示例#7
0
    def gvolume(self, mode='subst', display=False):
        """ gui volume 

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10, 'Enter Volume second point')
        (p2, N2) = eg.pointbox(p1, 10, 'Enter Volume third point')
        (p3, N3) = eg.pointbox(p2, 10, 'Enter Volume fourth point')
        self.volume(N1, N2, N3, p0, p1, p2, p3, mode)
        self.save()
        if display:
            self.show3()
示例#8
0
    def gsurface(self, mode='subst', display=False):
        """ gui surface

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10, 'Enter Surface second point')

        (p2, N2) = eg.pointbox(p1, 10, 'Enter Surface third point')
        self.surface(N1, N2, p0, p1, p2, mode)
        self.save()
        if display:
            self.show3()
示例#9
0
    def gpoint(self, mode='subst', display=False):
        """ gui point 

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p0, n1) = eg.pointbox(p0, 1)
        self.point(p0, [1], np.eye(3), mode)
        self.save()
        if display:
            self.show3()
示例#10
0
    def gpoint(self, mode='subst', display=False):
        """ gui point 

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p0, n1) = eg.pointbox(p0, 1)
        self.point(p0, [1], np.eye(3), mode)
        self.save()
        if display:
            self.show3()
示例#11
0
    def gline(self, mode='subst', display=False):
        """ gui line

        A line is built between the first point and the gui point

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10)
        self.line(N1, p0, p1, mode)
        self.save()
        if display:
            self.show3()
示例#12
0
    def gline(self, mode='subst', display=False):
        """ gui line

        A line is built between the first point and the gui point

        Parameters
        ----------

        mode : string 
            subst
        display : boolean 
            False

        """
        p0 = self.position[:, 0]
        (p1, N1) = eg.pointbox(p0, 10)
        self.line(N1, p0, p1, mode)
        self.save()
        if display:
            self.show3()