parameters: (self,obj)
return_statement: return pts
docstring: returns the gridpoints of linked axes
docstring_summary: returns the gridpoints of linked axes
docstring_tokens: returns the gridpoints of linked axes
function: def getAxisPoints(self,obj):
          "returns the gridpoints of linked axes"
          import DraftGeomUtils
          pts = []
          if len(obj.Axes) == 1:
              if hasattr(obj,"Align"):
                  if obj.Align == True :
                      p0 = obj.Axes[0].Shape.Edges[0].Vertexes[1].Point
                      for e in obj.Axes[0].Shape.Edges:
                          p = e.Vertexes[1].Point
                          p = p.sub(p0)
                          pts.append(p)
                  else:
                      for e in obj.Axes[0].Shape.Edges:
                          pts.append(e.Vertexes[0].Point)
              else:
                  for e in obj.Axes[0].Shape.Edges:
                          pts.append(e.Vertexes[0].Point)
          elif len(obj.Axes) >= 2:
              set1 = obj.Axes[0].Shape.Edges
              set2 = obj.Axes[1].Shape.Edges
              for e1 in set1:
                  for e2 in set2:
                      pts.extend(DraftGeomUtils.findIntersection(e1,e2))
          return pts
function_tokens: def getAxisPoints ( self , obj ) : import DraftGeomUtils pts = [ ] if len ( obj . Axes ) == 1 : if hasattr ( obj , "Align" ) : if obj . Align == True : p0 = obj . Axes [ 0 ] . Shape . Edges [ 0 ] . Vertexes [ 1 ] . Point for e in obj . Axes [ 0 ] . Shape . Edges : p = e . Vertexes [ 1 ] . Point p = p . sub ( p0 ) pts . append ( p ) else : for e in obj . Axes [ 0 ] . Shape . Edges : pts . append ( e . Vertexes [ 0 ] . Point ) else : for e in obj . Axes [ 0 ] . Shape . Edges : pts . append ( e . Vertexes [ 0 ] . Point ) elif len ( obj . Axes ) >= 2 : set1 = obj . Axes [ 0 ] . Shape . Edges set2 = obj . Axes [ 1 ] . Shape . Edges for e1 in set1 : for e2 in set2 : pts . extend ( DraftGeomUtils . findIntersection ( e1 , e2 ) ) return pts