Exemplo n.º 1
0
 def App_Cont_or_Calc_IntPts(self, cont, points, i, tol, warning):
     """
     App_Cont_or_Calc_IntPts()
     """
     #Hinzuf�gen falls es keine geschlossene Polyline ist
     #Add if it is not a closed polyline
     if self.geo[0].Ps.within_tol(self.geo[-1].Pe, tol):
         self.analyse_and_opt()
         cont.append(ContourClass(len(cont), 1, [[i, 0]], self.length))
     else:
         points.append(PointsClass(point_nr=len(points), geo_nr=i, \
                       Layer_Nr=self.Layer_Nr, \
                       be=self.geo[0].Ps,
                       en=self.geo[-1].Pe, be_cp=[], en_cp=[]))
     return warning
Exemplo n.º 2
0
 def App_Cont_or_Calc_IntPts(self, cont, points, i, tol, warning):
     """
     App_Cont_or_Calc_IntPts()
     """
     if abs(self.length) > tol:
         points.append(
             PointsClass(point_nr=len(points),
                         geo_nr=i,
                         Layer_Nr=self.Layer_Nr,
                         be=self.geo[-1].Pa,
                         en=self.geo[-1].Pe,
                         be_cp=[],
                         en_cp=[]))
     else:
         warning = 1
     return warning
Exemplo n.º 3
0
    def App_Cont_or_Calc_IntPts(self, cont, points, i, tol, warning):
        """
        App_Cont_or_Calc_IntPts()
        """
        if abs(self.length) < tol:
            pass

        #Add if it is not a closed polyline
        elif self.geo[0].Pa.isintol(self.geo[-1].Pe, tol):
            self.analyse_and_opt()
            cont.append(ContourClass(len(cont), 1, [[i, 0]], self.length))
        else:
            points.append(PointsClass(point_nr=len(points), geo_nr=i, \
                                      Layer_Nr=self.Layer_Nr, \
                                      be=self.geo[0].Pa,
                                      en=self.geo[-1].Pe, be_cp=[], en_cp=[]))
        return warning
Exemplo n.º 4
0
 def App_Cont_or_Calc_IntPts(self, cont, points, i, tol, warning):
     """
     App_Cont_or_Calc_IntPts()
     """
     if abs(self.length) > tol:
         points.append(
             PointsClass(point_nr=len(points),
                         geo_nr=i,
                         Layer_Nr=self.Layer_Nr,
                         be=self.geo[-1].Ps,
                         en=self.geo[-1].Pe,
                         be_cp=[],
                         en_cp=[]))
     else:
         #            showwarning("Short Arc Elemente", ("Length of Line geometry too short!"\
         #                                               "\nLength must be greater than tolerance."\
         #                                               "\nSkipping Line Geometry"))
         warning = 1
     return warning